1300 Commits

Author SHA1 Message Date
Colum Ferry
e2c4c5490c
cleanup(angular): deprecate mf signature from app generator (#11680) 2022-08-23 13:12:29 +01: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
Igor Katsuba
9294b64364
fix(angular): adds missing types in the schemes of remote and host generators (#11428) 2022-08-19 10:09:08 +01:00
Caleb Ukle
657b2bff5a
feat(testing): support jest 28 (#10857)
* feat(testing): support jest 28

WIP jest migration

* fix(testing): jest-environment-jsdom must be explicitly added now

* fix(testing): add rxjs to the transform lsit

* fix(testing): jest ts-jest updates and resolver issues

* feat(testing): remove test runner for react native jest

* feat(testing): add preprocessor for react native jest

* fix(testing): update query to handle tsx file syntax, remove rxjs transform

* chore(repo): remove file from accident commit

* chore(testing): update migration to target 14.6 for RN jest preprocessor

* fix(testing): call passed in packageFilter if preset

* docs(testing): add resolver env var to troubleshooting guide

* chore(repo): prep resolver for jest 28 migration

* fix(testing): update deps to handle esbuild-wasm service error

* fix(testing): switch to testEnvironmentOptions for cjs loading vs resolver list

* fix(testing): force babel-jest preset in transformer for project transforms

* chore(testing): address PR feedback

* fix(testing): address pr feedback, remove react-native transform

* chore(testing): update createTreeWithEmptyWorkspace calls

* chore(testing): address pr feedback

* feat(testing): add migration script for react native to rename .babelrc to babel.config.json

* chore(testing): nx format after rebase

* chore(testing): fix display name for @nrwl/js

Co-authored-by: Emily Xiong <xiongemi@gmail.com>
2022-08-18 18:40:31 -04:00
Colum Ferry
09112ccd24
feat(angular): support library routing setup for standalone routes (#11634) 2022-08-18 15:17:04 +01:00
Colum Ferry
1a5a09b790
chore(angular): add standalone router helper (#11632) 2022-08-18 14:12:06 +01: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
Waldbillig Thomas
99a3563c8f
feat(angular): export test runners from package (#11613)
Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: Waldbillig-Thomas <waldbillig.thomas@gmail.com>
2022-08-18 09:58:16 +00:00
Colum Ferry
7891a68715
feat(angular): add scam to standalone conversion generator (#11578) 2022-08-17 12:06:07 +01:00
Colum Ferry
da1741bf56
feat(angular): support standalone component library generation (#11608) 2022-08-17 12:05:54 +01:00
Colum Ferry
af93cfd597
feat(angular): add standalone app generation (#11592) 2022-08-17 12:03:56 +01:00
Colum Ferry
47e38d1cd2
fix(angular): use rxjs 7.5.0 for Angular 14.1 (#11586) 2022-08-16 14:41:51 -04:00
Colum Ferry
f930117ed6
fix(angular): add check before attempting to collect secondary entrypoints #11437 (#11496)
* fix(angular): add check before attempting to collect secondary entry points

* fix(angular): ensure only the tsconfig aliases for the lib are used

* chore(angular): turn off canary releases to prevent overlap

* Revert "chore(angular): turn off canary releases to prevent overlap"

This reverts commit dd0ba238d8bb591b669ccc90752db83d58c09f6d.
2022-08-15 13:11:24 +01:00
Victor Savkin
f8da1ad42b
chore(repo): update nx to 14.6.0-beta.3 2022-08-12 16:10:56 -04:00
Craigory Coppola
8eb2304ecd
fix(angular): 14.5.3 migration should hit @angular/cdk (#11560) 2022-08-12 14:12:00 +00: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
Katerina Skroumpelou
8bc99407aa
feat(storybook): ignore paths when generating stories (#11111)
* feat(storybook): ignore paths when generating stories

ISSUES CLOSED: #10211

* cleanup(storybook): add test for nested component ignore path

* feat(storybook): ensure ignore paths parsed correctly

Co-authored-by: Colum Ferry <cferry09@gmail.com>
2022-08-08 14:17:06 +01:00
Caleb Ukle
bd4e6ac323
fix(testing): exclude jest.config.ts in angular project tsconfigs (#11468) 2022-08-05 12:15:56 -05:00
Jack Hsu
5267f4555d
feat(misc): update shared ts-node and ts-loader packages (#11429) 2022-08-05 16:47:33 +00:00
Craigory Coppola
2dc51d75fb
fix(angular): hide warnings when reading workspace due to extra properties (#11143)
* fix(angular): hide warnings when reading workspace due to extra properties

* fix(angular): bump angular to 14.1.1
2022-08-04 17:58:40 -04:00
Colum Ferry
e8ad46595f
fix(angular): building all projects in webpack-server #11349 (#11455) 2022-08-04 16:03:40 -04:00
Benjamin Cabanes
1c66a225e5
docs(nxdev): upgrade nextseo dependency (#11402) 2022-08-03 15:38:51 +00:00
Caleb Ukle
b4c4501979
docs(testing): update docs to use correct filenames for cypress and jest (#11394)
ISSUES CLOSED: #11392
2022-08-01 13:25:26 -05:00
Leosvel Pérez Espinosa
e5ec39a905
fix(angular): update angular cli package in a migration generator to prevent migration issues (#11375) 2022-07-30 16:17:09 +00:00
Leosvel Pérez Espinosa
7db3aac463
fix(angular): update module federation logic to correctly identify workspace libs secondary entry points (#11286) 2022-07-26 10:54:33 +01:00
Leosvel Pérez Espinosa
6f2d5243c5
cleanup(misc): replace usage of rxjs-for-await (#11182) 2022-07-22 15:28:45 -04:00
Leosvel Pérez Espinosa
712e6dda88
cleanup(angular): move all inline version numbers to versions.ts (#11258) 2022-07-22 17:02:13 +01:00
Leosvel Pérez Espinosa
d372be0043
feat(angular): deprecate generating e2e tests with protractor (#11254) 2022-07-22 16:07:03 +01:00
Leosvel Pérez Espinosa
46ad8c3d63
feat(angular): support angular v14.1.0 (#11155) 2022-07-22 16:01:24 +01:00
Leosvel Pérez Espinosa
ea3fe2e8b1
feat(angular): add spa option to file-server executor to support reloading client-side routes (#11252) 2022-07-22 15:24:11 +01:00
Benjamin Cabanes
8c7b76e8f1
docs(nxdev): convert notes into callouts (#11232) 2022-07-20 22:09:33 +00:00
Leosvel Pérez Espinosa
41693f918b
fix(angular): update package watch version on secondary entrypoint changes when building libraries in watch mode (#11230) 2022-07-20 17:41:18 +01:00
Leosvel Pérez Espinosa
01f7376169
cleanup(misc): consolidate tslib version in generated projects (#11185) 2022-07-19 12:59:37 -04:00
Leosvel Pérez Espinosa
b7a1cd30fc
fix(angular): add @angular/localize to list of default packages to be eagerly loaded in mf apps (#11189) 2022-07-18 18:02:11 +01:00
Leosvel Pérez Espinosa
6866122db8
feat(angular): deprecate syntax option from the ngrx generator (#11184) 2022-07-18 15:41:17 +01:00
Leosvel Pérez Espinosa
cc6c2f9c59
feat(angular): deprecate DataPersistence class in favor of data persistence operators (#11183) 2022-07-18 11:40:20 +01:00
Leosvel Pérez Espinosa
ba592f8a99
fix(angular): do not set a module federation remote project as the default project (#11127) 2022-07-13 14:19:06 +01:00
Leosvel Pérez Espinosa
8ce1444324
fix(angular): do not write files unnecessarily in mfe to mf migration (#11126) 2022-07-13 13:18:20 +01:00
Leosvel Pérez Espinosa
1b6e5874ee
fix(angular): do not generate ts path mappings for lazy loaded libs in app tsconfig file (#11125) 2022-07-13 12:19:36 +01:00
Katerina Skroumpelou
a2d9577553
fix(storybook): fix schema to read projectName from config (#11098) 2022-07-12 09:55:22 -04:00
Leosvel Pérez Espinosa
9352f2ee98
fix(angular): amend wrong project name schema options to hint nx console to show a project dropdown (#11097) 2022-07-11 13:27:33 +01: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
Leosvel Pérez Espinosa
bc5c414468
fix(angular): emit dts when using entrypoint name as filename in ng-packagr executors (#11032) 2022-07-06 11:14:53 +01:00
Leosvel Pérez Espinosa
23d94a82d0
fix(misc): handle external nodes correctly in module federation additional shared config (#11018) 2022-07-05 14:21:19 +01:00
Leosvel Pérez Espinosa
6a63138b08
fix(angular): generate stories for secondary entrypoints (#11005) 2022-07-05 09:11:44 +01:00
Leosvel Pérez Espinosa
a9e1fd06a9
fix(angular): allow generating scam directive and exporting them from secondary entrypoints (#10981) 2022-07-01 17:03:21 +01:00
Leosvel Pérez Espinosa
748fb82bd5
fix(angular): allow generating scam pipe and exporting them from secondary entrypoints (#10977) 2022-07-01 15:42:48 +01:00
Colum Ferry
37072bc5d6
feat(angular): replace mfe references with mf (#10957) 2022-07-01 13:48:38 +00:00
Victor Savkin
c52a8c2e9b feat(core): finalize the input api 2022-06-29 10:52:14 -04:00