565 Commits

Author SHA1 Message Date
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
NejcZdovc
60382f6370 docs(misc): Fixes typo for browserslistrc
Resolves #10230
2022-05-10 16:32:25 -04: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
Leosvel Pérez Espinosa
25035927d6
fix(angular): handle packages with no exported package.json when collecting secondary entry points for mf builds (#10216) 2022-05-09 15:43:54 +01:00
Colum Ferry
e7074617be
fix(angular): module federation generation should match react (#10214) 2022-05-09 15:31:57 +01:00
Stian Morsund
eb4243bc87
feat(angular): add flag for skipping the postinstall script in relevant generators (#10208) 2022-05-09 12:48:41 +01:00
Colum Ferry
b51327111f
fix(angular): eagerly load default packages (#10207) 2022-05-09 11:28:00 +01:00
Colum Ferry
38345dae3a
fix(angular): remote failing to serve should fail host serve (#10181) 2022-05-09 09:36:36 +01:00
Stian Morsund
d6f49ea624
fix(angular): support skipPackageJson for library generation (#10179) 2022-05-06 09:08:52 +01:00
Leosvel Pérez Espinosa
5c94d6222f
fix(angular): add missing skipImport option to the component generator (#10167) 2022-05-06 08:57:20 +01:00
Colum Ferry
77cc38a624
fix(angular): use fork in file-server for http-server (#10161) 2022-05-05 16:08:04 +01:00
Leosvel Pérez Espinosa
b8c175f5e0
feat(angular): add support for passing additional shared dependencies in the module federation config (#10156) 2022-05-05 15:08:55 +01:00
Leosvel Pérez Espinosa
e212cb9fe1
fix(angular): fix collecting secondary entry points for module federation builds (#10129) 2022-05-05 09:14:56 +01:00
Colum Ferry
1d3becac90
fix(angular): kill ports correctly (#10142) 2022-05-04 20:08:34 +01:00
Leosvel Pérez Espinosa
0e21fa0368
fix(angular): normalize project name and don't default to npmScope as prefix when it's not a valid html selector (#10116) 2022-05-03 16:16:30 +01:00
Victor Savkin
085554b682
cleanup(misc): remove incorrect comments 2022-05-02 11:46:26 -04:00
Victor Savkin
cb8bf523ff
chore(repo): update cloud to 1403 (#10070) 2022-04-30 13:21:55 -04:00
Colum Ferry
0e5f4d5938
fix(angular): don't share angular mfe package (#10059) 2022-04-29 14:49:04 +01:00
Colum Ferry
b78d353c7a
fix(angular): cleanup ports on exit of mf server (#10060) 2022-04-29 13:49:53 +01:00
Byron
be1d1578e5
fix(angular): fix stylus import (#9950) 2022-04-28 16:20:38 -04:00
Jason Jean
5e23c07077
fix(core): automatically add root to the project.json projects (#9977)
* fix(core): automatically add root to the project.json projects

* chore(core): move project-configuration generator utils to nx package

* fix(core): add migrations to remove root
2022-04-28 13:24:35 -04:00
Leosvel Pérez Espinosa
4711d598ec
cleanup(angular): simplify collecting mfe application dependencies (#10023) 2022-04-27 15:39:09 +01:00
Leosvel Pérez Espinosa
2e8e1a45e0
feat(angular): support migrating angular cli workspaces with multiple applications (#10020) 2022-04-27 15:35:56 +01:00
Jay Bell
4d17b3275e
fix(angular): shared transitive npm deps from host and remote applica… (#9997) 2022-04-26 17:29:15 +01:00
James Henry
13807d3a81
chore(core): remove deprecated with-deps, NxJsonProjectConfiguration + operators (#9947) 2022-04-26 10:55:24 -04:00
Victor Savkin
8f1376277b
fix(misc): file server should force remote caching when invoking build 2022-04-25 14:31:23 -04:00
Jason Jean
c3484c775e
fix(core): make npm scope optional (#9966) 2022-04-22 18:05:43 -04:00
Jason Jean
9f87d4c346
fix(angular): remove src from lintFilePatterns (#9940) 2022-04-21 18:54:22 -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
Emily Xiong
2f41eb07c1
cleanup(core): update the docs to be inline with nx 14 (#9851) (#9872)
Co-authored-by: Victor Savkin <mail@vsavkin.com>
2022-04-21 12:42:45 -04:00
Colum Ferry
56aa346354
fix(angular): mf generators failed with directory (#9922) 2022-04-21 12:21:21 +01:00
Colum Ferry
e7f220dfac
fix(angular): there is no cors option on the file-server (#9923) 2022-04-21 12:21:11 +01:00
Colum Ferry
991efef5e5
feat(angular): serve static for remotes (#9911) 2022-04-20 21:49:26 +00:00
Colum Ferry
cc389704b5
fix(angular): share secondary entry points (#9896) 2022-04-20 20:31:22 +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
Colum Ferry
388eb4026d
feat(angular): align config file naming for module federation (#9889) 2022-04-19 22:15:01 +00:00
Leosvel Pérez Espinosa
cfaedc8181
feat(angular): support migrating angular cli workspaces with library projects (#9885) 2022-04-19 16:18:26 +01:00
Colum Ferry
5fb6fc78bc
fix(angular): path normalize was in correct on windows #9861 (#9881) 2022-04-19 12:47:29 +01:00
Colum Ferry
31de6717db
feat(angular): host generator should create remotes (#9848)
* feat(angular): host generator should create remotes

* fix(angular): remove log line

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2022-04-19 11:38:45 +01:00
Colum Ferry
c560c8075e
feat(angular): use module-federation-dev-server for hosts (#9850) 2022-04-19 10:38:16 +01:00
Colum Ferry
fc235de1f1
feat(angular): remove unnecessarily generated code for remotes (#9844) 2022-04-19 10:36:56 +01:00
Colum Ferry
4b846e8dc9
feat(angular): add module-federation-dev-server builder (#9843) 2022-04-14 15:39:15 -04:00
Colum Ferry
e1f64a3896
feat(angular): remove mfe-host alias in favour of host (#9834) 2022-04-14 12:42:02 +01:00
Colum Ferry
73d8967a2b
feat(angular): remove mfe-remote alias in favour of remote (#9832) 2022-04-14 11:11:46 +01:00
James Henry
46e7b4d49c
chore(core): improve help output for generators and executors (#9800) 2022-04-12 14:05:55 -04:00
Katerina Skroumpelou
ad0002586b
feat(storybook): removing support for Storybook 5 (#9380) 2022-04-12 16:58:20 +03:00
Colum Ferry
9396db03c3
docs(angular): hide mfe options from the app generator (#9798) 2022-04-12 11:39:24 +00:00
Colum Ferry
dfd4a1dd51
fix(angular): remove implicit deps creation from mfe (#9799) 2022-04-12 10:11:04 +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
Colum Ferry
33ec4ac6f7
fix(storybook): component props should only consider inputs #9417 (#9780)
Previously, all decorators were being taken into consideration. However, props to an Angular component would be its Inputs.
We should only consider those.

Fixes #9417
2022-04-11 10:14:30 +00:00