417 Commits

Author SHA1 Message Date
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
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
Phillip Barta
0cc7042beb
chore(repo): updated dependency fs-extra to ^10.1.0 (#9985) 2022-05-06 17:56:19 -04:00
Jason Jean
e4cccfc14d
chore(repo): update nx to 14.1.1 (#10132) 2022-05-04 15:27:43 +00:00
Jack Hsu
14b3419c19
fix(nextjs): update custom server setup so hostname and port are always provided (#10103) 2022-05-04 14:31:05 +00:00
Jack Hsu
e07ef9f216
fix(nextjs): fix support for custom distDir (#10106) 2022-05-02 20:50:44 +00:00
Jason Jean
4f99b77e42
chore(repo): update nx to 14.0.2 (#9974) 2022-04-23 18:06:01 +00:00
Caleb Ukle
88971468db
fix(testing): pass --js flag to jest generators (#9965) 2022-04-22 22:43:59 -04: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
Jason Jean
cb7fb22bca
feat(core): remove @types/node from default workspace (#9853)
Signed-off-by: Jason Jean <jasonjean1993@gmail.com>
2022-04-20 12:43:23 -04: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
James Henry
46e7b4d49c
chore(core): improve help output for generators and executors (#9800) 2022-04-12 14:05:55 -04:00
Jack Hsu
b02beb551b
feat(react): update to react 18 (#9613) 2022-03-30 17:48:37 +00:00
Miroslav Jonaš
3b21f4dfea
fix(core): switch from appRootPath to workspaceRoot (#9600) 2022-03-30 09:15:20 -04:00
Benjamin Cabanes
f6126663eb
docs(core): add description to nextjs package (#9534) 2022-03-25 20:19:53 +00:00
Benjamin Cabanes
6dae32cc3a
docs(nxdev): support packages schemas metadata & discoverability (#9383) 2022-03-24 12:00:06 -04:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Benjamin Cabanes
1723e8e6b3
docs(nxdev): remove unused versions & flavors feature (#9462) 2022-03-22 17:44:35 +00:00
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00