223 Commits

Author SHA1 Message Date
Pascal Küsgen
0de895d35e
fix(angular): return error when name is missing from package.json (#10356)
Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2022-05-18 10:46:03 +01:00
Leosvel Pérez Espinosa
43d5e621b7
fix(angular): add types to tsconfig.editor.json correctly (#10316) 2022-05-16 13:09:24 +01: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
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
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
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
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
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
2e8e1a45e0
feat(angular): support migrating angular cli workspaces with multiple applications (#10020) 2022-04-27 15:35:56 +01:00
James Henry
13807d3a81
chore(core): remove deprecated with-deps, NxJsonProjectConfiguration + operators (#9947) 2022-04-26 10:55:24 -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
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
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
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
Colum Ferry
5b105b1a0e
fix(angular): add application schema options to mfe-remote (#9752) 2022-04-08 15:32:00 +00:00
Colum Ferry
409f000cbe
fix(angular): add application schema options to mfe-host (#9751) 2022-04-08 14:47:50 +00:00
Miroslav Jonaš
9d89ea8f1f
chore(linter): update eslint version (#9708) 2022-04-07 00:02:09 +02:00
Colum Ferry
f4403e2dba
feat(angular): add example remote override to prod mfe (#9703) 2022-04-06 15:44:24 +01:00
Katerina Skroumpelou
9579aec307
feat(storybook): add projectBuildConfig as an option in generator (#9655)
Co-authored-by: Colum Ferry <cferry09@gmail.com>
2022-04-05 16:16:25 +00:00
Colum Ferry
e42069b5ec
fix(angular): add --module option to component generator (#9684) 2022-04-05 15:37:08 +01:00
Leosvel Pérez Espinosa
557b241859
feat(angular): support migrating angular cli workspaces with multiple projects when keeping the angular cli layout (#9649) 2022-04-01 15:49:16 +01:00
Leosvel Pérez Espinosa
18776f6764
feat(angular): update ng-add generator so the migration result is more aligned with new nx workspaces (#9630) 2022-03-31 16:30:06 +01: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š
3b21f4dfea
fix(core): switch from appRootPath to workspaceRoot (#9600) 2022-03-30 09:15:20 -04:00
Colum Ferry
b952d0c755
docs(angular): fix schema for host application (#9602) 2022-03-30 12:59:57 +00:00
Colum Ferry
5378128851
feat(angular): add dynamic federation support to mfe generator (#9551) 2022-03-29 16:45:19 +01:00
Leosvel Pérez Espinosa
f664b7d344
cleanup(angular): refactor ng-add generator to enable making improvements easier (#9525) 2022-03-29 10:46:06 +01:00
Caleb Ukle
c12a647c11
fix(testing): add root karma config if one isn't present when using karma-project generator (#9485)
when using the karma-project generator directory ensure the karma generator (install deps/root
config) is called if the root karma config isn't present

ISSUES CLOSED: #9234
2022-03-25 21:05:08 +00:00
Colum Ferry
8bae893d4c
feat(angular): use a mfe.config.js for mfe (#9495) 2022-03-25 09:31:12 +00:00
Benjamin Cabanes
6dae32cc3a
docs(nxdev): support packages schemas metadata & discoverability (#9383) 2022-03-24 12:00:06 -04:00