101 Commits

Author SHA1 Message Date
Jack Hsu
ea34e88473
chore(nextjs): increase test timeout to avoid intermittent failure (#16059) 2023-04-03 09:26:54 -06:00
Jack Hsu
b3200fb7c4
fix(nextjs): set correct distDir when running production server through Nx (#15861) 2023-03-23 16:57:10 +00:00
Jack Hsu
c7e49c564a
fix(nextjs): produce correct next.config.js file for production server (#15824) 2023-03-22 14:03:09 -04:00
Jack Hsu
63cdddfa11
fix(nextjs): handle buildable libs correctly (#15795) 2023-03-21 11:21:02 -04:00
Colum Ferry
80f3d03d1d
feat(core): move string utils to devkit (#15479) 2023-03-10 13:15:47 -05:00
Miroslav Jonaš
088a236306
chore(repo): temporarily disabling flaky next test (#15473) 2023-03-06 10:49:47 -05:00
Jason Jean
92610fe4b6
chore(repo): update nx to 15.8.0-beta.7 (#15293) 2023-02-27 17:24:06 -05:00
Jason Jean
84fedf36e0
Revert "chore(repo): update nx to 15.8.0-beta.6" (#15274) 2023-02-26 12:39:15 -05:00
Jason Jean
3c50474f40
chore(repo): update nx to 15.8.0-beta.6 (#15247) 2023-02-26 02:26:53 -05:00
Caleb Ukle
5ddd657a42
chore(repo): enable cypress in CI (#15155) 2023-02-24 11:16:19 -05:00
Miroslav Jonaš
b80286191d
feat(core): refactor lock file parsing and pruning (#13864)
Co-authored-by: Jason Jean <FrozenPandaz@users.noreply.github.com>
Co-authored-by: Victor Savkin <vsavkin@users.noreply.github.com>
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-02-06 11:39:36 -05:00
Jack Hsu
d3ba6447d0
fix(nextjs): hide lockfile generation behind a flag so it can be toggled on and off (#14204) 2023-01-06 20:26:10 +00:00
Craigory Coppola
7992ec618f
chore(repo): setup negative config for several targets (#14080) 2023-01-04 11:34:50 -05:00
Jason Jean
4a43a04caf
chore(repo): re-enable next.js styles tests (#13995) 2022-12-22 16:58:12 -05:00
Jason Jean
5e5892f086
chore(repo): update nx to 15.4.0-beta.3 (#13904) 2022-12-20 17:48:03 -05:00
Miroslav Jonaš
75de1651a1
feat(core): add lockfile pruning to executors that generate package.json (#13734) 2022-12-09 12:17:36 -05:00
Jack Hsu
66c85bd15c
cleanup(nextjs): remove workaround for enhanced-resolve bug in e2e test (#13639) 2022-12-05 12:20:18 -05:00
Miroslav Jonaš
1a3cc515a4
fix(core): prevent peer deps from ending up as dev deps in create package json (#13502) 2022-12-01 12:07:52 +01:00
Jack Hsu
98a6cb1e32
chore(repo): re-enable storybook e2e tests with overrides for enhance… (#13339) 2022-11-22 16:49:35 -05:00
Jack Hsu
6b305ef4c1
chore(repo): disable storybook e2e tests temporarily until a fix for … (#13336) 2022-11-22 16:07:40 -05:00
Craigory Coppola
f311ecbdd7
chore(repo): remove workspace.json (#13040) 2022-11-08 13:12:31 -05:00
Victor Savkin
23de788b5e
chore(repo): update to 15.0.0-rc1 (#12586) 2022-10-13 18:34:24 -04:00
Jack Hsu
17cef57656
cleanup(nextjs): re-enable storybook e2e test for next.js (#12384) 2022-10-04 00:19:31 -04:00
Jack Hsu
5ae5f8858d
fix(nextjs): return correct webpack config for next.js storybook app (#12371) 2022-10-04 02:36:55 +00:00
Jack Hsu
ce5393776c
chore(misc): update graph-client build-base target to @nrwl/webpack:webpack (#12073) 2022-09-19 15:20:10 +00:00
Jack Hsu
dd6addefc3
feat(bundling): move rollup to its own plugin (#12009) 2022-09-15 14:55:06 -04:00
Jack Hsu
84c2330311
chore(nextjs): add a e2e test for next.js without nx config entry (#11913) 2022-09-07 09:12:35 -04: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
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
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
8075cb9a9f
chore(nextjs): remove outdir from Next.js config since it is no longer needed (#11257) 2022-07-22 11:06:22 -04: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
Nicholas Cunningham
89d9d9afd6
fix(nextjs): update e2e test case to cover env variables exported from libraries (#10532)
ISSUES CLOSED: #9633

update

Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-06-01 14:36:54 -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
Victor Savkin
6351413b98 fix(core): preserve dash casing when passing args to executors 2022-05-17 14:48:53 -04:00
Miroslav Jonas
8a88b989fa chore(repo): increase timeout for jest e2e tests 2022-05-17 13:45:03 -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
Jason Jean
e4cccfc14d
chore(repo): update nx to 14.1.1 (#10132) 2022-05-04 15:27:43 +00:00
Jason Jean
4f99b77e42
chore(repo): update nx to 14.0.2 (#9974) 2022-04-23 18:06:01 +00:00
Jack Hsu
b02beb551b
feat(react): update to react 18 (#9613) 2022-03-30 17:48:37 +00:00
Miroslav Jonaš
60b68b81dc
chore(nextjs): disable failing e2e test for windows runs (#8455) 2022-01-10 12:32:43 +01:00
Jack Hsu
195b8f3262
chore(nextjs): remove assertion that dependencies have been built (#8325) 2021-12-29 13:04:10 -05:00
Jack Hsu
568c94ece6
chore(repo): clean up nextjs e2e tests to run faster (#8324) 2021-12-29 11:58:19 -05:00
Miroslav Jonaš
80361423fc
chore(repo): increase e2e test timeouts (#8318) 2021-12-28 23:34:17 +01:00
Benjamin Cabanes
66e4e85067
feat(core): new nx starter (#7912) 2021-12-03 11:05:09 -05:00
AgentEnder
f6a562d1ec chore(repo): migrate to v13.1.4 2021-11-11 15:12:06 -05:00
Jack Hsu
39bc2e293e
feat(nextjs): bump Next.js version to 12.0.0 (#7524) 2021-10-27 00:37:14 +00:00