153 Commits

Author SHA1 Message Date
Jack Hsu
d7536aa7e3 feat(core): clean up workspace configuration code 2023-01-23 19:35:15 -05:00
Caleb Ukle
7857ae00a0
fix(testing): do not set vitest root when not in workspaceRoot (#14362) 2023-01-20 15:58:03 -06:00
Katerina Skroumpelou
dbe2c3b1e6
feat(core): react standalone bundler prompt (#14464) 2023-01-20 08:18:32 -05:00
James Henry
965c638d8d
chore(testing): add lerna-smoke-tests (#14347) 2023-01-17 23:50:01 +04:00
Victor Savkin
422c8c735a cleanup(core): clearly split nx.json config and projects config 2023-01-05 15:35:36 -05:00
Jonathan Cammisuli
a1d9c46cf7
feat(core): add watch command (#13664) 2022-12-13 17:04:34 -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
Victor Savkin
661bea436a feat(misc): nx init should work on non-monorepo projects 2022-11-22 14:04:26 -05:00
Craigory Coppola
76c237bd2c
feat(core): add nx exec command (#13212) 2022-11-21 17:35:24 -05:00
Victor Savkin
8d9de7f81d cleanup(core): clean up workspace creation 2022-11-15 17:22:02 -05:00
Jason Jean
16c3a2eb20
chore(repo): make runCLI work in verbose mode (#13123) 2022-11-10 23:15:14 -05:00
Miroslav Jonas
bce3c03755 chore(repo): hide e2e logs unless verbose is set 2022-11-08 10:16:42 -05:00
Victor Savkin
67e032d5cc fix(core): correctly derive the name of the project based on package.json without name 2022-11-07 09:50:12 -05:00
Jack Hsu
8edcdac5eb
feat(bundling): add initial vite plugin (#12969) 2022-11-03 19:19:29 +02:00
Jack Hsu
58b51964ea
feat(bundling): add support only bundling in workspace libs, not npm packages (#12852) 2022-10-31 09:05:47 -04:00
Miroslav Jonaš
d0f590d0c0
fix(repo): ensure cypress is installed for the e2e tests (#12615) 2022-10-14 22:35:31 +02:00
Craigory Coppola
9b63ce167a
feat(core): don't generate workspace.json for v2 workspaces (#12127) 2022-09-27 23:16:22 +00:00
Jack Hsu
ed7db7c114
feat(bundling): add esbuild plugin (#12053) 2022-09-20 12:05:58 -04:00
Miroslav Jonaš
12c27d3621
fix(misc): ensure cleanup is run on a proper cwd in e2e (#12101) 2022-09-19 19:51:25 +00:00
Emily Xiong
a411e85e42
Feature/move expo (#11712)
* feat(expo): move expo to main repo

* feat(expo): add e2e expo tests and fix expo unit tests

* feat(expo): add generated docs

* feat(expo): update cz-config to add expo to commit message

* feat(expo): add @nrwl/expo to e2e test setup

* feat(expo): add expo to preset

* feat(expo): add detox tests

* feat(expo): update docs

* feat(expo): fix e2e tests

* feat(expo): upgrade expo to 46.0.10

* fix(expo): correct eas-cli build:info parameters names

* fix(expo): add cleanupProject to e2e test
2022-09-16 11:56:28 -04:00
Jack Hsu
dd6addefc3
feat(bundling): move rollup to its own plugin (#12009) 2022-09-15 14:55:06 -04:00
Jack Hsu
f49769a34a
feat(webpack): add webpack plugin (#11966) 2022-09-12 21:19:50 +01:00
Victor Savkin
a914f78701 chore(repo): fix e2e tests 2022-09-12 13:47:49 -04:00
Victor Savkin
0d9dbae789 feat(core): use daemon to watch outputs to enable cache restoration optimization 2022-09-08 10:58:50 -04:00
Colum Ferry
308fd9b382
fix(core): resolve project files correctly in project graph creation for empty root (#11425) 2022-08-04 13:51:21 -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
Miroslav Jonaš
e7e2905e40
chore(repo): fix typings on e2e helper file (#11076) 2022-07-08 15:17:19 +02:00
Miroslav Jonaš
62bae5a120
feat(core): make npmScope optional (#10018) 2022-06-23 10:57:54 +02:00
Victor Savkin
e491c6f738 feat(core): make nx.json optional 2022-05-31 15:35:28 -04:00
Miroslav Jonaš
daa5cfe558
fix(core): ensure pnpm v7 install when peer deps are missing (#10522) 2022-05-30 21:27:28 +00:00
Leosvel Pérez Espinosa
62afcb79b0
feat(angular): support angular v14.0.0-rc.2 (#8883) 2022-05-30 16:09:00 -04:00
Victor Savkin
7bfceb6d6d feat(core): add the flag to stop execution on first error 2022-05-27 22:22:27 -04:00
Miroslav Jonaš
85485cc80d
chore(repo): use latest version in e2e tests to avoid pnpm 7 issues (#10446) 2022-05-24 20:25:05 +02:00
Miroslav Jonaš
d0ece6e1d2
fix(repo): fix pnpm v7 install config (#10361) 2022-05-18 10:22:02 +00:00
Victor Savkin
6351413b98 fix(core): preserve dash casing when passing args to executors 2022-05-17 14:48:53 -04:00
Miroslav Jonaš
34e74b4c93
chore(repo): use @latest to enforce correct version on e2e (#10332) 2022-05-16 22:11:46 +00: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
Craigory Coppola
62d0535acd
fix(nx-plugin): create-nx-plugin should generate valid import path (#10107) 2022-05-03 10:42:23 -04:00
Miroslav Jonaš
c1213b6d09
chore(repo): allow nx version override for E2E tests (#10114) 2022-05-03 15:33:07 +02:00
Miroslav Jonaš
899e0caac8
feat(core): switch cnw ci option to be single-select (#10007)
* feat(core): switch cnw ci option to be single-select

* chore(repo): enforce cache renewal

* chore(repo): revert cache renewal

* fix(core): fix tests

* fix(core): fix enquirer limitation with falsy values
2022-05-02 16:01:34 +02: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
7913f31cff
fix(react): use normalized app name in host/remote generators (#9909) 2022-04-21 02:54:39 +00:00
Leosvel Pérez Espinosa
d860a91a50
feat(angular): allow migrating angular cli workspaces using the @angular-eslint/builder:lint builder (#9750) 2022-04-11 16:30:49 +01:00
Victor Savkin
48769dc4bb
cleanup(core): remove NX_INVOKED_BY_RUNNER (#9693) 2022-04-05 16:58:13 -04:00
Miroslav Jonaš
926b52ab9c
chore(repo): update pnpm version (#9682) 2022-04-05 20:51:29 +02:00
Victor Savkin
428106f6be
cleanup(core): create more meaningful file structure in nx package (#9621) 2022-03-31 09:07:22 -04:00
Miroslav Jonaš
9e06020575
feat(core): toggle additional prompts in CNW with a flag (#9546)
* feat(core): toggle additional prompts in CNW with a flag

* feat(repo): handle cli params with yargs

* feat(core): add docs generation

* chore(repo): add colors

* fix(core): migrate to yargs 17.x

* fix(core): update markup generation
2022-03-29 14:00:07 -04:00
Leosvel Pérez Espinosa
d33a34105f
cleanup(angular): fix ng-add e2e tests to correctly pass args based on the package manager (#9580) 2022-03-29 12:05:54 +01:00
Victor Savkin
16378258cd
chore(repo): minor changes to improve local e2e experience 2022-03-26 12:54:34 -04:00
Leosvel Pérez Espinosa
63f2c02323
cleanup(angular): fix migration from angular cli e2e tests (#9518) 2022-03-25 17:39:50 +00:00