382 Commits

Author SHA1 Message Date
Caleb Ukle
6f8a849d6b
fix(testing): handle cypress-project generation for standalone projects (#13602) 2022-12-05 10:12:32 -05:00
Victor Savkin
fe062f42c3 fix(core): deduce layout directory 2022-11-29 16:08:57 -05:00
Miroslav Jonaš
110b5f2867
feat(core): enable linter on root projects (#13347) 2022-11-24 22:51:24 +01:00
Jason Jean
6d35fd4d85
chore(core): reconcile functions to find project of a path (#13364) 2022-11-24 11:02:32 -05:00
Victor Savkin
16fd4374d6 feat(misc): derive workspace layout dynamically 2022-11-23 15:45:13 -05:00
Miroslav Jonaš
bd4f4a23c2
feat(core): use createProjectFileMappings in TargetProjectLocator (#13268) 2022-11-21 14:43:40 +01:00
Miroslav Jonaš
de44bf86b1
feat(core): optimize project graph file mapping (#13249) 2022-11-18 14:34:58 +01:00
Miroslav Jonaš
ab6f62a9b5
feat(core): move runtime-lint-utils to eslint plugin (#13222) 2022-11-18 12:24:53 +01:00
Victor Savkin
c4ebef2803 feat(react): add a preset to generate a workspace with a single app at the root 2022-11-12 17:17:58 -05:00
Caleb Ukle
37c8483db2
feat(testing): support cypress 11 (#13075) 2022-11-08 18:11:52 -06:00
Craigory Coppola
f311ecbdd7
chore(repo): remove workspace.json (#13040) 2022-11-08 13:12:31 -05:00
Caleb Ukle
39518e33ba
fix(testing): provide better error messages around component test --build-target (#12886) 2022-11-04 15:42:42 -07:00
Caleb Ukle
9096d41f05
fix(testing): cypress 10 migration supports more configuration setups (#12036) 2022-10-27 18:03:46 -04:00
Steven Rathbauer
cc55cff272
fix(testing): update tsconfig.cy.json template file for generator (#12849) 2022-10-27 17:31:30 -04:00
Caleb Ukle
ed05ca3d6e
fix(testing): run init generator in cypress-project when cypress is n… (#12552) 2022-10-18 10:09:45 -07:00
Victor Savkin
23de788b5e
chore(repo): update to 15.0.0-rc1 (#12586) 2022-10-13 18:34:24 -04: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
8ab7f85ca1
fix(core): swap default method for output capture (#12535) 2022-10-12 22:06:32 +00:00
Caleb Ukle
80635dbae2
fix(testing): move to using cy.mount (#12273) 2022-10-12 20:50:41 +00:00
Jason Jean
49c5e5069b
feat(core): migrate existing workspaces to use inputs configuration (#12416) 2022-10-05 22:30:03 +00:00
Colum Ferry
09c6ccb266
feat(linter): remove tslint support (#12279) 2022-09-28 11:08:01 -04:00
Younes Jaaidi
fb0ea29e68
fix(testing): include cypress commands in tsconfig (#12149)
closes #12148
2022-09-26 08:09:09 -05:00
Caleb Ukle
09fd9132e6
docs(testing): add cypress example docs (#12209)
* docs(testing): add cypress example docs

* docs(core): sync docs
2022-09-23 14:06:32 -06:00
Miroslav Jonaš
074ac5ec22
feat(core): add package manager parsers and stringifiers (#11953) 2022-09-20 18:47:27 +00:00
Victor Savkin
6e6925f8e4
chore(repo): update to nx 14.7.6-beta.6 2022-09-17 15:59:06 -04:00
Caleb Ukle
1a9df531b6
fix(testing): normalize paths for component-testing (#11963)
* fix(testing): normalize paths before accessing the project graph

* fix(testing): return object with offset input instead of string

* fix(testing): update schemas to provide better prompts
2022-09-13 14:17:49 +00:00
Jack Hsu
ee8ba2de57
feat(misc): remove unused dependencies from packages (#11986) 2022-09-13 08:27:07 -04:00
Colum Ferry
d782a694f4
feat(core): support ts 4.8 (#11845) 2022-09-12 13:47:31 +01:00
Caleb Ukle
ff0126c3ba
fix(testing): change @nrwl/workspace import to deep import (#11961) 2022-09-09 22:06:36 +00:00
Caleb Ukle
6d0c6a83d4 fix(testing): move cypress tsconfig to cypress folder 2022-09-09 10:37:48 -04:00
Caleb Ukle
7b52c0da5f fix(testing): add component-test named inputs 2022-09-09 10:37:48 -04:00
Jason Jean
8a35f182b1
fix(testing): do not add cypress inputs if namedInputs is not defined (#11943) 2022-09-09 02:01:21 +00:00
Jason Jean
292f0c14b1
feat(core): generate inputs configuration for new workspaces (#11856) 2022-09-07 22:32:59 -04:00
Caleb Ukle
a0904a601b
feat(testing): support angular cypress component testing (#11790)
* feat(testing): ng cypress component testing

closes: #11602

* chore(testing): move story utils into common util area

* feat(testing): add options for ng component testing

* docs(testing): add more info for component testing

* chore(testing): address PR feedback

* chore(testing): remove logs
2022-09-07 13:32:19 +00:00
Caleb Ukle
c7249db386
fix(testing): handle more complex projects for react component testing (#11725)
* fix(testing): use @nrwl/web:webpack utils to generate a more robust webpack config

fixes: #11372

* fix(testing): do not overwrite existing component test

* fix(testing): add component-test to cacheable operations

* chore(testing): address pr feedback
2022-08-30 16:42:42 +00:00
Colum Ferry
bbe7a3679a
fix(linter): use typescript-eslint 5.33.1 as latest requires ts4.8 (#11773) 2022-08-30 10:43:17 -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
Caleb Ukle
6866f55c4a
chore(repo): run jest 28 migrations to fix package sync issue (#11650) 2022-08-19 20:56:52 +00: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
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
Jack Hsu
5267f4555d
feat(misc): update shared ts-node and ts-loader packages (#11429) 2022-08-05 16:47:33 +00:00
Benjamin Cabanes
1c66a225e5
docs(nxdev): upgrade nextseo dependency (#11402) 2022-08-03 15:38:51 +00:00
Caleb Ukle
0cd8d8c531
fix(testing): update exports for .ts plugin files (#11200) 2022-07-19 17:28:02 -05: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
Caleb Ukle
df0f334886
chore(testing): remove console.log in migration util (#11149) 2022-07-14 21:07:21 +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
6a65101ec2 feat(core): extend the default hasher to support different filesets 2022-06-21 11:21:42 -04:00