146 Commits

Author SHA1 Message Date
Colum Ferry
b86ace50d3
fix(angular): change rxjs migration to conditional migration (#11771) 2022-08-30 10:43:35 -04:00
Colum Ferry
aaeeaedceb
feat(angular): migrate versions to 14.2.0 (#11530)
* feat(angular): migrate versions to 14.2.0-next.0

* feat(angular): support 14.2.0-rc.0
2022-08-29 10:39:40 +01: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
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
8ce1444324
fix(angular): do not write files unnecessarily in mfe to mf migration (#11126) 2022-07-13 13:18:20 +01:00
Colum Ferry
37072bc5d6
feat(angular): replace mfe references with mf (#10957) 2022-07-01 13:48:38 +00:00
Leosvel Pérez Espinosa
e507d7b4cf
cleanup(angular): remove remaining angular cli helpers and set version target for existing deprecations helpers (#10791) 2022-06-17 18:00:42 +01:00
Leosvel Pérez Espinosa
9e91bafb9c
fix(angular): prevent deleting library's root package.json file on windows machines (#10635) 2022-06-08 11:57:54 +01:00
Leosvel Pérez Espinosa
eea2470619
feat(angular): support angular v14.0.0 (#10559) 2022-06-03 10:23:09 -04:00
Jason Jean
925a27bf64
fix(devkit): add options allow trailing commas for parsing json (#10538) 2022-06-01 13:13:24 -04:00
Leosvel Pérez Espinosa
26edb49302
feat(angular): support angular v14.0.0-rc.3 (#10543) 2022-06-01 16:26:09 +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
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
388eb4026d
feat(angular): align config file naming for module federation (#9889) 2022-04-19 22:15:01 +00:00
Miroslav Jonaš
3b21f4dfea
fix(core): switch from appRootPath to workspaceRoot (#9600) 2022-03-30 09:15:20 -04:00
Benjamin Cabanes
dd3d7682b6
docs(core): fix links to documentation (#9520) 2022-03-25 15:12:31 -04:00
Victor Savkin
74317bebea
chore(repo): fix flaky tests 2022-03-24 17:10:33 -04:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Leosvel Pérez Espinosa
a82edb1bc4
feat(angular): add buildLibsFromSource option to @nrwl/angular:webpack-browser executor (#9334) 2022-03-15 15:33:56 +00:00
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00
Richard Roozenboom
5949c4ea45
fix(angular): jest-preset-angular migration format files once (#9292)
Move the formatFiles call outside of the for loop

ISSUES CLOSED: #9291

Co-authored-by: Richard Roozenboom <richard.roozenboom@rabobank.nl>
2022-03-11 13:56:00 +00:00
Colum Ferry
5d9176eda7
fix(angular): karma migrator fixes (#9063) 2022-02-22 10:03:25 +00:00
Colum Ferry
01dba862e9
fix(angular): upgrade karma and fix settings (#9056) 2022-02-21 16:35:07 +00:00
Colum Ferry
91ca67ad6b
fix(angular): add cypress workaround when generating mfes (#8909)
* fix(angular): add cypress workaround when generating mfes

* fix(angular): add a migration for cypress mfe

* docs(angular): fix typos in mfe docs

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

* fix(angular): target 13.8.1 for migration

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2022-02-09 23:12:08 +00:00
Leosvel Pérez Espinosa
b5b666f03d
fix(angular): remove invalid style option from the library generator defaults (#8515) 2022-01-13 18:19:03 +00:00
Colum Ferry
90f0ab2ea5
feat(angular): add mfe migration to fix incorrect setups from previously incorrect generator (#8433) 2022-01-10 09:40:33 +00:00
Colum Ferry
0f50de73d8
fix(angular): mfe migration failing in certain scenarios (#8384) 2022-01-05 16:42:23 +00:00
Phillip Barta
e57cef0901
cleanup(repo): use devkit instead of devkit reexports from workspace (#7773) 2021-12-21 21:06:31 +00:00
Dmitrii Kuzmin
5640e62c22
fix(angular): use jasmine-marbles 0.9.1 for rxjs7 (#8062)
* fix(angular): use jasmine-marbles 0.9.1 for rxjs7

* fix(angular): get dynamicly jasmine-marbles version
2021-12-09 09:08:02 -06:00
Colum Ferry
6e400322f1
fix(angular): support module syntax for mfes (#8020)
* fix(angular): support module syntax for mfes

* fix(angular): add publich host to prevent infinte reload
2021-12-09 12:49:37 +00:00
Leosvel Pérez Espinosa
5623da58ce
fix(angular): add migration to opt-out of the new default testbed teardown for existing projects using jest (#7907) 2021-11-29 11:37:53 +00:00
Craigory Coppola
57bf28bfbc
fix(angular): fix missing null checks in v13 migrations (#7790) 2021-11-18 16:52:04 +00:00
Colum Ferry
bfb95af1ff
fix(angular): do not re-add transform ignore pattern (#7751) 2021-11-16 10:26:57 +00:00
Jason Jean
18f2e703dd
fix(angular): remove unnecessary addition of module file extensions (#7725) 2021-11-12 16:36:59 -05:00
Jason Jean
a6085a9e97
fix(angular): handle projects with no targets in angular 13 migration (#7719) 2021-11-12 14:19:53 -05:00
Colum Ferry
85692e488d
chore(angular): bump jest-preset-angular to rc.3 (#7687)
* chore(angular): bump jest-preset-angular to rc.3

* fix(angular): version string typo

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

* fix(angular): add mjs to angular jest module extensions

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2021-11-10 14:24:05 +00:00
Jason Jean
f9d9e26882
fix(angular): do not ignore any mjs files for jest (#7670) 2021-11-09 13:44:52 -05:00
Colum Ferry
5d70627d18
fix(angular): ignore unmatching jest configs (#7663) 2021-11-09 09:21:15 -05:00
Colum Ferry
8d6ac4f694
chore(angular): support angular 13 (#7161)
* chore(angular): support angular 13

Support Angular 13

chore(angular): support ng 13 next 11

chore(angular): upgrade tslib dep

chore(angular): update package and ng-packagr-lite executors to align with ng-packagr v13

chore(angular): update test snapshots with ts version

fix(angular): buildable lib tsconfig transform test

* chore(angular): sync ng-packagr changes to the package and ng-packagr-lite executors

* chore(angular): add migrations

* chore(angular): rxjs7

* feat(angular): check rxjs version to install

* feat(angular): update jest resolver to resolve esm

* chore(angular): fix version

* chore(angular): support jest-preset-angular

* fix(angular): tests

* fix(angular): fix e2e tests and add .angular to gitignore

* fix(angular): fix jest transformers ignore pattern

* fix(angular): fix node test

* fix(angular): fix workspace test

* fix(angular): import marble utils from jasmine-marbles instead of @nrwl/angular/testing

* feat(angular): update ngrx to 13.0.0-beta.;0

* fix(angular): temporarily skip test with pnpm

* fix(angular): bump jest-preset-angular to fix jest performance issues

* fix(angular): webpack-browser and server schema changes

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-11-08 12:01:55 -05:00
Miroslav Jonaš
b23f2d8b80
feat(core): extract project graph external nodes (#7340) 2021-10-15 10:08:12 -04:00
Leosvel Pérez Espinosa
8973d6ba69
chore(angular): add postcss deps needed by tailwind support in publishable libraries (#7359) 2021-10-15 04:34:02 -06:00
Craigory Coppola
79cf69b4e4
feat(core): consolidate nx.json and workspace.json (#6642)
* feat(core): consolidate settings between workspace.json + nx.json

workspace.json (and linked project.json files) now contain all project specific settings.
nx.json now contains all settings that affect the whole workspace.

* chore(core): fix angular unit tests w/ new config

* chore(core): fix failing tests

* chore(core): fix formatting

* chore(core): fix more tests

* chore(core): normalize-nx-json feedback

* chore(core): Fix more unit tests

* chore(core): fix remaining tests in workspace

* chore(linter): fix remaining linter tests

* chore(core): fix remaining spec + build issues

* chore(core): formatting fixes

* feat(core): migration script to move config options to new locations

* chore(core): fix e2e tests

* chore(core): run format

* chore(react-native): fix failing tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): move properties to new location during format step

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): initial pass on ngcli-adapter for property consolidation

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(misc): fix tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* docs(core): update docs with changes

* chore(misc): fix tests

* chore(core): code review changes

updateWorkspaceJson -> updateWorkspace, no longer uses updater function

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix bug in ngcli impl

* fix(core): fix bug in ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* fix(core): fix ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix workspace e2e

* chore(core): fix nx-plugin e2e

* fix(core): move defaultProject to nx.json

* chore(core): fix broken workspace test

* chore(core): formatting

* chore(core): fix workspace format

* chore(core): add nxJson to ExecutorContext

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): remove all references ot `NxProjectConfiguration` from our code

* chore(core): Review Changes

* fix(core): update new config locations v13 migration
2021-10-14 10:42:47 -04:00
Colum Ferry
20481d92e4
fix(angular): support tsconfig.json at root of workspace (#7333)
* fix(angular): support tsconfig.json at root of workspace

* fix(angular): typo in error

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

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2021-10-13 13:18:18 +01:00
Leosvel Pérez Espinosa
a00f8e0e5b
feat(angular): add tailwind support when building publishable libraries (#7285) 2021-10-12 12:32:43 +01:00
Colum Ferry
aa81561b06
fix(angular): importPath migration to fix broken paths (#6902)
Fixes broken importPaths and package.json names due to incorrect logic that has already been fixed

ISSUES CLOSED: #6648
2021-09-01 12:58:32 -04:00
Jason Jean
85f92e740e
feat(misc): simplify npm scripts generated (#6764) 2021-08-20 12:07:26 -04:00
Juri
a3b22aae50 fix(angular): don't error when project configuration has no targets 2021-08-19 18:10:10 +02:00
Miroslav Jonaš
3aca62af68
cleanup(repo): remove unused ext from file data and fix ext regex matcher (#6550) 2021-08-04 09:45:07 -04:00
Miroslav Jonaš
117ee9308a
cleanup(core): use isNpmProject and cleanup project graph utils (#6522)
* cleanup(core): use isNpmProject and cleanup project graph utils

* chore(core): mark utils/buildable-libs-utils as deprecated
2021-07-29 11:17:31 -04:00
Miroslav Jonaš
a9afb97307
docs(core): fix broken links and add missing latest prefix (#6471) 2021-07-23 08:16:54 -04:00