1125 Commits

Author SHA1 Message Date
Leosvel Pérez Espinosa
adafc971a8
fix(angular): add .angular to gitignore only when it hasn't already been added (#7686) 2021-11-10 12:13:40 +00:00
Colum Ferry
c2c64ed8d2
fix(angular): migration versions (#7683) 2021-11-10 10:47:40 +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
f5e98bbd83
fix(angular): migration versions (#7664) 2021-11-09 09:20:13 -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
Caleb Ukle
0ca5a88bf1
fix(testing) generated jest ts configs mismatch (#7556)
* fix(testing): add .test. files to spec tsconfig template

add support for .test.ts and with supportTsx .test.{js|tsx|jsx} files
in the tsconfig.spec.json template.

Note each package that excludes testing files will need to be updated to
exclude the new files (coming in future commits)

* fix(angular): add .test.ts support in tsconfigs

add .test.ts in angular jest template
update angular generators to exclude test files

* fix(gatsby): add .test. file prefixes to tsconfig ignore

ignore the new .test.{js|ts|jsx|tsx} files added to jest configs

* fix(react): add .test. file prefix to app/lib tsconfigs

add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig

* fix(node): add .test. file prefix to app/lib tsconfig

add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig

ISSUES CLOSED: #7263

* fix(nest): update tests for new .test.ts files in tsconfig

update tests to account for changes in node generators which add .test.ts to the exclude of
tsconfigs

* fix(express): update tests to account for new tsconfig changes

updated snapshots
added new patterns for tsconfig

* fix(linter): update snapshots for new tsconfig changes

snapshot updated to include new .test.ts file changes for tsconfig

* fix(node): update testing to account for spec tsconfig changes

add .test.ts files in e2e tests

* fix(testing): add migration for tsconfig changes

initial migration and test for tsconfig changes

* chore(testing): add to migrations collection

add the update-ts-config-for-test-filenames to migrations

* fix(testing): fix filesystem issue with jest tests

mock readConfig to always return an basic config to prevent issues of not finding a config in non
linux environments, aka missing /root

* cleanup(testing): update error message

update message logged when tsconfig isn't found to mention what was trying to be accompished so it
can be manually updated if desired.
2021-11-05 14:25:25 -05:00
Juri Strumpflohner
1241068fd4
fix(storybook): find Angular components in destructured arrays (#7494)
ISSUES CLOSED: 7117
2021-10-29 20:26:10 +03:00
Jack Hsu
75513d6f8b
chore(repo): add tests to make sure migration factory/implementation are correct (#7541) 2021-10-27 16:12:07 -04:00
Leosvel Pérez Espinosa
8311a172d7
feat(angular): add secondary entry point generator for publishable libraries (#7501) 2021-10-26 11:12:53 +01:00
Jack Hsu
8686e919fb
fix(core): update generator logic so empty strings ("") for appsDir and libsDir work properly (#7508) 2021-10-25 12:01:53 -04:00
Leosvel Pérez Espinosa
5853d83fb1
cleanup(angular): remove deprecated utilities related to the angular devkit (#7386)
BREAKING CHANGE:
All the utilities located at `@nrwl/angular/src/utils/ast-utils` were removed. These utilities were already deprecated since the last major version. Also, the previously deprecated utilities `runSchematic` and `runExternalSchematic` located in `@nrwl/angular/src/utils/testing` were removed. These utilities were not part of the package public API and as such, they were not recommended to be used and were likely to be changed or removed.
2021-10-18 12:57:56 -05:00
Leosvel Pérez Espinosa
86613f6e66
cleanup(angular): remove deprecated options from the ngrx generator (#7404)
BREAKING CHANGE:
The deprecated options `onlyAddFiles` and `onlyEmptyRoot` from the `ngrx` generator were removed,
`skipImport` and `minimal` should be used instead.
2021-10-18 13:44:37 -04:00
Leosvel Pérez Espinosa
e29e801d5d
fix(angular): fix building publishable libraries with secondary entry points when enableIvy is set to false (#7405) 2021-10-18 15:30:24 +01:00
Miroslav Jonaš
d9fd42eec8
chore(linter): update eslint to latest v7 version (#7400) 2021-10-18 15:20:51 +02:00
Colum Ferry
b0b9c8fc2e
feat(angular): allow port to be added to non-mfe app (#7403) 2021-10-18 14:04:38 +01:00
Leosvel Pérez Espinosa
e057892272
fix(angular): add required postcss dependencies when creating a buildable lib (#7402) 2021-10-18 05:44:01 -04:00
Craigory Coppola
bdcbac4445
feat(core): standalone project configuration is default (#7351)
* feat(core): standalone project configuration is default

* chore(core): changes to e2e tests

* fix(core): intuit projects when inside their directories when using project.json files

* chore(core): e2e changes

* fix(core): standalone configurations work with npm-project generator

* chore(core): e2e tests should use standalone configurations

* chore(core): e2e fixes per review
2021-10-16 00:07:12 +02:00
Miroslav Jonaš
b23f2d8b80
feat(core): extract project graph external nodes (#7340) 2021-10-15 10:08:12 -04:00
Colum Ferry
65b65bf4c5
docs(angular): provide reason for imported remote entry module (#7377) 2021-10-15 11:38:44 +01: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
Brandon
28f28af487
feat(angular): update NgRx to 12.5.0 (#7370) 2021-10-14 23:21:28 +00: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
0a41a34013
fix(angular): handle components array as static member of the module when generating stories (#7321) 2021-10-13 09:59:57 +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
4d7114f634
docs(angular): better information of what the plugin is (#7262) 2021-10-07 10:21:42 +00:00
Colum Ferry
654cfbf147
fix(angular): incremental builds with mfes #6923 (#7260) 2021-10-06 15:37:22 +01:00
Colum Ferry
2f2ede5ca5
cleanup(angular): add unit and e2e tests for extra reassurance (#6626)
* cleanup(angular): add unit and e2e tests for extra reassurance

After tests didn't fail but issues were introduced, add some extra tests to help catch breaking
changes

* chore(angular): increase timeout for e2e tests

* fix(angular): mfe not installing webpack correctly

Co-authored-by: Miroslav Jonaš <meeroslav@users.noreply.github.com>
2021-10-06 14:15:39 +01:00
Minijus L
259ac84c63
fix(angular): update jest-preset-angular to 10.0.1 (#7139) 2021-10-01 16:47:52 -04:00
Alex Herbig
8addb45fd0
fix(angular): stop modifying tags that match app name (#7137)
ISSUES CLOSED: #7097
2021-10-01 14:57:26 -04:00
Brandon
d920f03149
fix(angular): bump jasmine-marbles to 0.8.4 release (#7162) 2021-09-29 09:29:17 -05:00
Jonathan Romano
f8f09b91df
fix(linter): add setParserOptionsProject option to generators missing it (#7103) 2021-09-24 21:02:52 -04:00
Artur Androsovych
2db6f89d04
feat(angular): allow exporting function and promise within the custom Webpack config (#7129) 2021-09-24 18:19:14 -04:00
Leosvel Pérez Espinosa
9f1fe34b8b
fix(angular): update ng-package.json dest property when moving a library (#7132) 2021-09-24 17:58:03 +01:00
Artur Androsovych
8d0b421545
feat(angular): allow exporting function and promise within the custom Webpack config (#7029) 2021-09-24 11:10:32 -04:00
Leosvel Pérez Espinosa
d52aed9fde
fix(angular): remove extra comma when generating application with --inlineTemplate (#7126) 2021-09-24 15:24:18 +01:00
Miroslav Jonaš
7c4643a914
chore(linter): upgrade typescript-eslint to latest version (#7060) 2021-09-21 14:07:09 +02:00
Victor Savkin
d79bba3630 chore(repo): update to nx 12.10 2021-09-20 16:39:13 -04:00
Andrew Luca
fe7c25d00f
chore(misc): add repository directory for all packages.json (#6973) 2021-09-15 11:53:08 -04:00
Bjorn S
34848b8612
fix(angular): adds missing @angular/cdk to migrations
If @angular/material is used and updated, without updating the underlaying @angular/cdk (and is used); the application might have trouble starting and result in weird errors that are hard to debug.

Example error:
```
./node_modules/@angular/material/fesm2015/autocomplete.js:536:32-47 - Error: export '_getEventTarget' (imported as '_getEventTarget') was not found in '@angular/cdk/platform' (possible exports: Platform, PlatformModule, _getFocusedElementPierceShadowDom, _getShadowRoot, _supportsShadowDom, getRtlScrollAxisType, getSupportedInputTypes, normalizePassiveListenerOptions, supportsPassiveEventListeners, supportsScrollBehavior)
```

Fixed after updating the @angular/cdk to the same version as @angular/material.
2021-09-15 11:48:47 -04:00
Ali Yusuf
93f9569deb feat(angular): add support to sass style to the generator 2021-09-15 09:58:49 -04: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
srleecode
69005cc097
fix (angular): allows importing from @nrwl/angular:init (#6883)
* fix (angular): allows importing from @nrwl/angular:init

fix (angular): allows importing from @nrwl/angular:init

Closes #6790

* chore(angular): fixed formatting error

chore(angular): fixed formatting error
2021-08-31 16:47:25 -04:00
Jason Jean
1b6c0ee7fa
feat(misc): add x-type to app and lib generators (#6874) 2021-08-27 19:28:01 -04:00
Chau Tran
62f2fb621f
fix(angular): move upgrade 12.2 to 12.9.0 migrations (#6857)
* fix(angular): move upgrade 12.2 to 12.9.0 migrations

* fix(angular): move typescript version to 12.9

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2021-08-26 13:39:28 -04:00
Jason Jean
a7f89508e5
feat(linter): cache --outputFile (#6852) 2021-08-26 11:25:51 -04:00
Chau Tran
5ff55ced15
feat(angular): upgrade to ~12.2.0 (#6836)
* feat(angular): upgrade to ~12.2.0

* fix(angular): adjust nrwl/angular packageJson to pass depCheck

* fix(angular): add @angular/platform-server to migrations

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2021-08-25 15:51:22 -04:00
Brandon
c1c7a42444
feat(angular): update NgRx to 12.4.0 (#6828) 2021-08-24 11:26:12 -04:00
AgentEnder
c9c8fa7f1c chore(core): project.json should not be included in builds
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-08-20 20:22:30 -04:00