43 Commits

Author SHA1 Message Date
Nicholas Cunningham
cb1bd5e9e5
fix(nextjs): Update @nx/next to be a devDependency (#17510) 2023-06-09 08:13:59 -06:00
Jack Hsu
9881efa4dc
feat(nextjs): remove the "root" option from Next.js build executor since it can be inferred (#17248) 2023-05-26 19:08:02 +00:00
Jason Jean
76dfc62412
feat(web): replace usages of @nrwl with @nx (#16376) 2023-04-19 10:59:41 -04:00
Jason Jean
2d195007b0
feat(core): switch packages to use the @nx scope (#16069) 2023-04-14 19:56:37 -04:00
Jack Hsu
e904e04611
fix(nextjs): add missing style deps for less and stylus (#15839) 2023-03-22 22:05:18 +00:00
Jack Hsu
d7536aa7e3 feat(core): clean up workspace configuration code 2023-01-23 19:35:15 -05:00
Victor Savkin
16fd4374d6 feat(misc): derive workspace layout dynamically 2022-11-23 15:45:13 -05:00
Craigory Coppola
d8f3c6b186
fix(react): migrations use tsquery, so we should provide it (#12575) 2022-10-13 13:37:37 -04:00
Craigory Coppola
9b63ce167a
feat(core): don't generate workspace.json for v2 workspaces (#12127) 2022-09-27 23:16:22 +00:00
Nicholas Cunningham
89a401361a
fix(nextjs): fix .next folder linting (#11614)
ISSUES CLOSED: #11541

Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-08-22 11:21:55 -04:00
Craigory Coppola
458fc36014
chore(misc): split create tree with empty workspace to remove parameter (#10188)
* feat(devkit): split create-empty-tree to different functions

* chore(repo): apply migration for createEmptyTree

* cleanup(misc): fix tests that migration misses
2022-08-11 19:24:04 -04:00
Jack Hsu
e45c2f24ba
feat(nextjs): improve support for custom server (#11325)
- Add new generator for custom server
- Add @nrwl/js:node executor for serving custom server
- Deprecate @nrwl/node:node in favor of the above
2022-08-02 18:37:23 +00:00
Jack Hsu
c76eb7fb74
chore(nextjs): clean up constants import path and remove support for Next.js 10 (#11287) 2022-07-25 17:51:22 +00:00
Jack Hsu
e3d5c53d88
fix(nextjs): set development outputPath to a different one from production build (#11169)
- Avoids conflict with cached output
- Fixes #10312
2022-07-15 14:10:07 -04:00
Jonathan Wagner
c35b13dd26
fix(react): migrations should not crash when adding development configuration (#10261) 2022-05-12 14:30:33 -04:00
Chau Tran
512237caf7
feat(core): add nx.json, workspace.json, and project.json JSON schemas (#10228)
* feat(core): add nx.json, workspace.json, and project.json JSON schemas

ISSUES CLOSED: #8574, #2299

* fix(core): add ajv to test generated config files based on JSON schema

* fix(core): only add $schema to project.json if it is standalone and in create mode

* feat(core): add migration to add json schema to config files for 14.2.0

* fix(core): adjust schemas

* chore(core): adjust tests across repo to adhere to JSON schema if generated

* fix(core): construct the json schema object instead of using a boolean flag

* chore(core): add ajv tests for workspacejson and nxjson

* chore(core): remove unnecessary standalone check
2022-05-10 15:05:26 -05:00
Caleb Ukle
39331d1e17
feat(testing): move jest config to .ts files (#9854)
* feat(testing): move jest config to .ts

move jest config and preset to ts files

ISSUES CLOSED: #8344

* fix(testing): update tests for jest.config.ts changes

update tests broken by renaming jest fils to ts files
2022-04-21 17:58:40 +00:00
Jack Hsu
e7447685cc
fix(react): update migration to work without targets (#9901) 2022-04-20 18:25:57 +00:00
Jack Hsu
2b421117bf
feat(react): add default development configuration for React and Next.js apps (#9892) 2022-04-20 04:27:19 +00:00
Kirils L
27f120db39
fix(nextjs): disable 13-1-1 migration (#8209)
* fix(nextjs): 13-1-1 migration - dont delete babelrc if storybook is configured

* fix(nextjs): disable 13-1-1 swc migration
2021-12-17 21:12:43 +00:00
Jack Hsu
157c6e0fb0
feat(web): rename @nrwl/web:build to @nrwl/web:webpack (#7952) 2021-11-30 14:22:34 -05:00
Jack Hsu
339661f18a
fix(nextjs): fix migration path for enable-swc (#7535) 2021-10-27 14:15:54 +00:00
Jack Hsu
2cbba1748f
chore(nextjs): add a guard for SWC migration for custom babel configs (#7529) 2021-10-26 22:47:42 -04:00
Jack Hsu
1000663a91
feat(nextjs): migration to enable SWC for nextjs apps (#7528) 2021-10-26 22:06:23 -04:00
Jack Hsu
39bc2e293e
feat(nextjs): bump Next.js version to 12.0.0 (#7524) 2021-10-27 00:37:14 +00:00
Noriyuki Shinpuku
7a3c485759
feat(nextjs): add migration for css prop (#7396) 2021-10-17 22:16:55 -04:00
Jack Hsu
724b0c0e3c
feat(core): upgrade to webpack 5 (#7283)
* feat(core): upgrade to webpack 5

* chore(core): update webpack 5 docs
2021-10-13 00:34:28 -04:00
Jack Hsu
7bef953fe6
fix(nextjs): generate nextjs app with correct pages dir for no-html-link-for-pages rule (#7230) 2021-10-04 15:50:55 -04:00
Juri
eb15cffa86 fix(nextjs): remove styled-jsx/babel from .babelrc as next/babel has it already built-in 2021-08-19 17:41:28 +02:00
Phumrapee Limpianchop
fc11571178
fix(nextjs): Next 11.1.0 compatibility (#6699)
Co-authored-by: Kirils L <9858620+kirjai@users.noreply.github.com>
2021-08-16 08:00:19 -07:00
Kirils L
267557e8d6
cleanup(nextjs): change manual dependency migration to use packageJsonUpdates (#6319) 2021-07-09 16:25:17 +00:00
Kirils L
434e2915f0
feat(nextjs): support next 11 (#6131) 2021-07-08 11:48:54 -04:00
Vivek
d1b09eaabd
cleanup(misc): make code more consistent and fix typos 2021-03-23 13:03:17 -04:00
Kirils Ladovs
aba5c44ec1
Tsconfig js migration (#4993)
* chore(gatsby): add migration to add js file patterns to tsconfig.app.json

* chore(nextjs): add migration to add js file patterns to tsconfig
2021-03-11 13:34:46 -05:00
Kirils Ladovs
253addef4a
chore(nextjs): add migration to remove tsconfig.app.json (#4988)
additionally, fix linter migration to migrate next.js apps correctly
2021-03-10 11:25:07 -05:00
Jack Hsu
ddec362a5a
fix(nextjs): update babel setup to better support next apps (#4944)
* fix(nextjs): update babel setup to better support next apps

* fix(testing): remove babel-jest.config.json used in jest.config.js

- Fix `@nrwl/web/babel` to support Jest as well
2021-03-09 21:32:36 +00:00
Adam L Barrett
889b648886
Emotion upgrade for React and Next plugins (#4088)
* chore(react): update emotion to new versions and new package names on react plugin

* chore(nextjs): update emotion to latest version and the new package names

* feat(misc): have react and next plugin migrations update emotion imports

 * add renamePackageImports and renameNpmPackage rules to workspace utils
 * update migrations to update emotion imports to the new name and version
2020-11-27 13:32:42 -06:00
Adam L Barrett
4e06d83a1c
feat(nextjs): update nextjs and related packages to current version (9.5.1) (#3485) 2020-08-18 22:02:53 -04:00
Rares Matei
f5181ba188
fix(nextjs): add migration for renaming next/dev-server to next/server in workspace.json (#3040)
ISSUES CLOSED: #3039
2020-05-20 17:59:50 -04:00
Jason Jean
e06822da7e
chore(repo): update prettier to v2 (#2934)
this is just for the repo, and not the workspace

Co-authored-by: Rares Matei <matei.rar@gmail.com>
2020-04-29 01:09:37 -04:00
Jason Jean
09c4654ae9 fix(misc): add formatting to all migrations 2020-03-29 11:30:59 -04:00
Jack Hsu
27f523493e
feat(nextjs): add support for custom next config and optimize style enhancer usages (#2727)
Related #2490
2020-03-26 21:16:09 -04:00
Jason Jean
6c83f2dc59
feat(nextjs): support next@9.1.5 and add log when ready (#2216) 2019-12-18 23:10:29 -05:00