536 Commits

Author SHA1 Message Date
Jack Hsu
f49769a34a
feat(webpack): add webpack plugin (#11966) 2022-09-12 21:19:50 +01:00
Jason Jean
c64dbdec24
fix(next): fix withNx with nx property doesn't exist (#11900) 2022-09-06 21:33:15 +00:00
Jack Hsu
525350f844
fix(nextjs): use SWC compiler for next.js libraries (#11848) 2022-09-02 14:10:33 +00:00
Jack Hsu
9b26bc1585
fix(nextjs): SVGR plugin should not be used if nx: { svgr: false } is set in next.config.js (#11829) 2022-09-01 15:55:24 +00:00
Noriyuki Shinpuku
4dfd0f37e6
fix(nextjs): set __NEXT_REACT_ROOT only when the version of react-dom is 18 or above (#11749) 2022-08-29 10:13:11 -04:00
Jonathan Cammisuli
e7ec91b9e0
feat(core): add file completion types for the nx language server (#11669) 2022-08-26 10:34:33 -04:00
richardwong
3afb6bf45a
fix(next): add default hostname value to @nrwl/next:server (#11701)
Co-authored-by: 文虎 <wenhu@myweimai.com>
2022-08-26 10:17:18 -04:00
Noriyuki Shinpuku
43b6e1e1f8
fix(nextjs): fix React 18 detection (#11656) 2022-08-22 11:23:06 -04: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
Jack Hsu
646b8c2cf5
feat(nextjs): upgrade to nextjs 12.2.5 (#11665) 2022-08-22 11:21:26 -04:00
Craigory Coppola
6948ffdcff fix(core): project graph should be read from executor context
These changes lower the risk of reading the cache during a write operation when multiple
processes are actively writing / reading the cache.
2022-08-19 12:50:07 -04:00
Miroslav Jonaš
187f5200c0
fix(linter): add jest to root .eslintrc if selected as unit test runner (#11555) 2022-08-18 14:51:09 +02:00
Jack Hsu
51da354e65
feat(nextjs): add --custom-server option to app generator (#11607) 2022-08-16 10:32:30 -04:00
Victor Savkin
f8da1ad42b
chore(repo): update nx to 14.6.0-beta.3 2022-08-12 16:10:56 -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
Nicholas Cunningham
522dcdd339
feat(nextjs): improve type checking for nextjs config file (#11497)
Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-08-09 11:31:22 -04:00
Jack Hsu
5267f4555d
feat(misc): update shared ts-node and ts-loader packages (#11429) 2022-08-05 16:47:33 +00:00
Nicholas Cunningham
50afd2b664
fix(nextjs): react root enabled for nextjs (#11362)
ISSUES CLOSED: #11345

Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-08-05 12:36:23 -04:00
Jack Hsu
5d167ee8a4
feat(react): update emotion and tailwind versions (#11409) 2022-08-03 08:35:51 -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
ccd6295be0
fix(nextjs): remove unsupported cssModules config property (#11405)
LGTM
2022-08-02 09:49:19 -06:00
Jack Hsu
1fef99d8ae
fix(nextjs): fix invalid config warning by sanitizing it before passing to Next.js (#11313) 2022-07-27 14:48:13 +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
2bcf1c28aa
Next version update (#11280)
* feat(react): update eslint a11y plugin version

* feat(next): update next.js versions
2022-07-25 14:08:27 +00:00
Jack Hsu
8075cb9a9f
chore(nextjs): remove outdir from Next.js config since it is no longer needed (#11257) 2022-07-22 11:06:22 -04:00
Leosvel Pérez Espinosa
01f7376169
cleanup(misc): consolidate tslib version in generated projects (#11185) 2022-07-19 12:59:37 -04:00
Juri
9436a96309 fix(nextjs): adjust generator reference in Next startup page component 2022-07-19 16:43:33 +02:00
Jack Hsu
d657f912d9
feat(web): upgrade webpack plugin versions (#11191) 2022-07-18 15:23:30 -04:00
Jack Hsu
96e84eea39
fix(misc): add dotenv as dependencies for plugins that import it (#11167) 2022-07-15 16:46:41 -04: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
Jack Hsu
b042b80e2d
feat(next): update next.js versions (#11115) 2022-07-13 18:30:12 +00:00
Caleb Ukle
8154191eb1
feat(testing): Cypress 10 and component testing support (#9201)
* feat(testing): add generator to aid in the migration to cypress 10

cypress 10 introduces a new configuration format and new layout that requires update settings and
files for e2e projects

* feat(testing): cypress component tests for react/next

initial work for cypress component tests for react and next

* feat(testing): add support for v10 e2e cypress projects

create the correct files for cypress projects >v10 and reorganize tests based on version to allow
easier parsing of tests

* feat(testing): add utils for modifying cypress v10 config

provide ts transformers to take in an existing cypress config and update/add properties within the
given configuration

* fix(testing): fix tests affected by the cypress v10 changes

update tests to assert the correct files/folders/file contents due to the cypress changes in v10

* cleanup(testing): move cypress component testing plugins into the respective packages

move the plugins into out of cypress plugins into the specific vertical plugin to prevent issues
with circular refs

* cleanup(testing): bump cypress version

bump to latest cypress v10 release

* docs(testing): update docs for cypress 10

update cypress docs to include info about component testing and migration to cypress v10

* fix(repo): revert cypress version bump

keep v9 of cypress installed for nx repo until v10 release

* fix(testing): update cypress gen tsconfig and infer targets with converter

* fix(testing): make sure tests use the cypress v10 (for the intermediate)

* fix(testing): update target name after feedback

* fix(testing): support multiple target w/custom configs for cypress v10 migration

* fix(testing): refactor cy component tests into seperate verticals

* feat(testing): create storybook cypress preset

* fix(testing): clean up cy v10 migration

* fix(testing): don't branch for cypress executor testingType

* fix(testing): move cy comp test generator to next

* fix(testing): bump cypress deps

* fix(testing): clean up cy component testing generators

* fix(testing): update cy component testing docs

* fix(testign): dep check. runtime plugin pulls from @nrwl/react

* fix(testing): move e2e into verticals

* fix(testing): address PR feedback

* fix(testing): clean up unit tests

* feat(angular): support migrating angular cli workspaces using cypress v10

* chore(testing): update e2e tests

* fix(testing): address pr feedback

* chore(testing): remove cypress component testing for next.js

* fix(testing): address pr feedback

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2022-07-08 14:34:00 -05:00
Miroslav Jonaš
b8efa778f6
fix(core): remove eslintrc.json from the package build artifact (#11043) 2022-07-07 18:34:34 +00:00
Victor Savkin
c52a8c2e9b feat(core): finalize the input api 2022-06-29 10:52:14 -04:00
Chau Tran
1afad766e6
fix(core): return a list of dependents that do not have sourceRoot to calculate glob patterns (#10899)
When a library (often an implicit dependency one) does not have `sourceRoot`,
`getSourceDirOfDependentProjects` returns an array with the problematic library path as `[undefined,
libs/some-other-lib]` which causes `createGlobPatternsForDependencies` to throw an error and
ultimately returns an empty `[]` instead of `[libs/some-other-lib]`.
This PR ensures
`getSourceDirOfDependentProjects` filters out `undefined` (`sourceRoot`) as well as logs a warning
to let the users know that they have libraries that are missing `sourceRoot` and Nx cannot calculate
their glob patterns

ISSUES CLOSED: #10871
2022-06-27 13:53:40 -05:00
Craigory Coppola
5b90514008
feat(core): move workspace configuration computation to daemon (#10860) 2022-06-24 09:45:51 -04:00
Nicholas Cunningham
fd98c505e0
fix(nextjs): reorder eslint extension so that local eslint loads last (#10802)
ISSUES CLOSED: #9741

Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-06-20 14:03:32 +00:00
Jack Hsu
ea159d7d87
docs(react): update tailwind guide (#10779) 2022-06-16 16:16:46 +00:00
Dylan Andersen
8cae2c9eca
docs(core): fix links to nx tutorials (#10763)
Co-authored-by: Dylan Andersen <dylan@joinhandshake.com@Dylans-MBP.attlocal.net>
2022-06-16 10:54:22 -04:00
Nicholas Cunningham
550b185921
fix(nextjs): Fixes Next JS Component generator to export component when export flag is provided (#10699)
Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-06-13 09:25:19 -04:00
Craigory Coppola
15c04b099e
chore(repo): enable eslint plugin checks (#10666) 2022-06-09 18:04:06 -04:00
Jack Hsu
f95b1c3c7d
feat(next): update package versions (#10658) 2022-06-09 14:26:34 +00:00
Craigory Coppola
4d7e5ba29a
chore(misc): remove defaultCollection from generators (#10601) 2022-06-06 20:03:46 +00:00
Leosvel Pérez Espinosa
914f0ce707
feat(misc): update typescript to 4.7 (#10560) 2022-06-02 13:29:11 -04:00
Victor Savkin
e491c6f738 feat(core): make nx.json optional 2022-05-31 15:35:28 -04:00
Victor Savkin
3d97203b1e
chore(repo): migrate to nx@14.2.0-beta.1 2022-05-30 20:10:02 -04:00
Jason Jean
04985be149
chore(repo): switch publishing to use lerna (#10293) 2022-05-20 00:35:47 +00:00
Victor Savkin
6351413b98 fix(core): preserve dash casing when passing args to executors 2022-05-17 14:48:53 -04:00
Jonathan Wagner
c35b13dd26
fix(react): migrations should not crash when adding development configuration (#10261) 2022-05-12 14:30:33 -04:00
Caleb Ukle
ecf88a6995
fix(testing): update v14 migration and migrate jest.config.ts to use export default (#10035)
* fix(testing): jest.preset.ts => jest.preset.js

* fix(testing): update to export default

* fix(testing): migration for moving to export default

* fix(testing): add eslint ignore comments for jest config properties

fixes: #10021

* fix(testing): update tsconfig.spec.json for next apps with project parserOptions

fixes: #9982

* fix(testing): prevent renaming root jest preset

fixes: #9973

* fix(testing): update snapshots for export default

* fix(testing): bump migration version to run

* fix(testing): make sure default jest tests pass for various projects

* fix(js): generate correct jest config for --compiler=swc --js
2022-05-11 18:04:29 +00:00