2795 Commits

Author SHA1 Message Date
Emily Xiong
9eb3ac58e9
chore(react-native): uncomment detox e2e test to build and test native ios (#7479) 2021-11-08 12:33: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
Nico
5bc169264b
fix(web): custom typescript webpack config files are now compatible for react applications (#7633)
When a typescript webpack config file is provided as an option for the web build executor
`nx
run
project:serve` will not fail because the file type is typescript.
ISSUES CLOSED: #7454
2021-11-05 21:50:45 +00:00
Philip Fulcher
cbc5ccc2d3
fix(misc): fix dep-graph HTML generation (#7619) 2021-11-05 15:22:36 -06:00
danjor
7332bbce81
fix(core): fixing move generator to update all import path (#7611) 2021-11-05 15:16:27 -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
Kirils L
3c6044c821
fix(core): wrong migration docs link again (#7628) 2021-11-05 16:35:33 +00:00
Kirils L
3d6496b7a3
fix(core): wrong migration docs link (#7625) 2021-11-05 15:32:16 +00:00
Miroslav Jonaš
f23a4cf7f1
feat(linter): allow wildcards for banning external imports (#7623) 2021-11-05 15:25:05 +01:00
Leosvel Pérez Espinosa
c09aefd9f9
fix(core): consider available cpus when deciding whether to use workers to build the project graph (#7617) 2021-11-05 13:07:11 +00:00
Katerina Skroumpelou
c68b37e29f fix(storybook): install cypress packages if not installed for e2e apps
ISSUES CLOSED: #7158
2021-11-05 11:06:38 +01:00
Gustavo Perdomo
e960285769
feat(nest): support nest 8 (#6284)
* feat(nest): support nest 8

* feat(nest): update migration and generation logic

* feat(nest): updated according feedback

* feat(nest): fix migration issues

* feat(nest): final changes according feedback

Co-authored-by: Chau Tran <nartc7789@gmail.com>

* fix(nest): log info to install packages install running installPackageTask

Co-authored-by: Chau Tran <nartc7789@gmail.com>
2021-11-04 16:48:38 -05:00
Ashley Hunter
c08f506c5c
feat(nest): exporting nest generators (#7585) 2021-11-03 11:55:03 -05:00
Miroslav Jonaš
c8603f1911
fix(core): ensure cache has correct project graph version (#7572) 2021-11-02 09:49:42 -04:00
Ashley Hunter
cae625a817
feat(nest): nest resource generator (#7571)
* feat(nest): adding nest resource generator

Adding a generator to run the Nest Resource schematic

ISSUES CLOSED: #6754

* feat(nest): adding nest resource generator

Adding a generator to run the Nest Resource schematic

ISSUES CLOSED: #6754

* feat(nest): adding nest resource generator

Adding a generator to run the Nest Resource schematic

ISSUES CLOSED: #6754
2021-11-01 11:10:58 -05:00
Miroslav Jonaš
27cc2d9c5f
fix(core): improve graph version adapter error message (#7573) 2021-10-29 22:42:51 +00:00
Juri Strumpflohner
1241068fd4
fix(storybook): find Angular components in destructured arrays (#7494)
ISSUES CLOSED: 7117
2021-10-29 20:26:10 +03:00
Juri Strumpflohner
0d3a5c375d
fix(storybook): make sure Storybook can use TypeScript for the config files (#7566)
ISSUES CLOSED: #7515
2021-10-29 20:23:34 +03:00
Gustavo Perdomo
89fc04da72 fix(nextjs): fix peer next version 2021-10-28 20:37:08 -04:00
Pierre-Alexandre
6734187051 cleanup(core): avoid first format to modify nx.json
Getting the `nx.json` code formatting right on brand new workspaces, so the first `nx format` won't update that file
2021-10-28 20:35:46 -04: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
Jack Hsu
339661f18a
fix(nextjs): fix migration path for enable-swc (#7535) 2021-10-27 14:15:54 +00:00
Jack Hsu
2cbba1748f
chore(nextjs): add a guard for SWC migration for custom babel configs (#7529) 2021-10-26 22:47:42 -04:00
Jack Hsu
1000663a91
feat(nextjs): migration to enable SWC for nextjs apps (#7528) 2021-10-26 22:06:23 -04:00
Jack Hsu
39bc2e293e
feat(nextjs): bump Next.js version to 12.0.0 (#7524) 2021-10-27 00:37:14 +00: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
Craigory Coppola
f11baf6813
fix(core): nx daemon shouldn't cause flickering on windows (#7492) 2021-10-26 12:25:00 +04:00
Chau Tran
9356f73380
feat(node): add tsPlugins to node:package executor (#7477)
node:build currently has tsPlugins options to invoke TypeScript Plugins (transformers). This PR
brings the same functionality to node:package

ISSUES CLOSED: #7420
2021-10-25 20:03:56 -05: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
Kirils L
67ff4acea2
fix(nextjs): sourcemaps display transpiled code (#7487) 2021-10-25 10:01:07 -04:00
Krzysztof Orkisz
d0d1a6187e fix(react): migration to 13

Fixes migration to nx 13: when there are no react projects with storybook but other kind of projects uses SB migration to fails 2021-10-22 18:29:33 +02:00
Craigory Coppola
c87dfad2df
fix(storybook): storybook migration fails if targets not defined on a project (#7475) 2021-10-21 14:48:49 -05:00
Craigory Coppola
0fe1614505
fix(core): convert-nx-executor should be executable in ng workspace (#7474) 2021-10-21 12:29:49 -04:00
Jack Hsu
1528248548
fix(web): remove sass migration since it is failing (#7461) 2021-10-20 17:32:43 -04:00
Miroslav Jonaš
9a94542223
fix(testing): remove outdated deprecation message when headless not set (#7446) 2021-10-20 22:46:26 +02:00
Craigory Coppola
3681bb0c4b
chore(core): pass stdio: inherit during ng add alias (#7459) 2021-10-20 18:18:03 +00:00
Jason Jean
d2c18e651f
fix(core): throw an error when configuration is invalid/ outdated (#7452) 2021-10-20 17:05:37 +00:00
Jason Jean
63b71e8a4d
fix(testing): make cypress peer dependency optional (#7455) 2021-10-20 16:15:43 +00:00
Miroslav Jonaš
3d250efb52
docs(core): update nx-add text (#7445) 2021-10-20 15:21:00 +02:00
Jack Hsu
22294e98a5
chore(react): update react packages (#7434) 2021-10-19 22:08:55 -04:00
Emily Xiong
5d47468f17
feat(react-native): upgrade @types/react-native versions (#7392)
- upgrade @type/react-native, detox and @react-native-community/cli
2021-10-19 21:24:35 -04:00
Jack Hsu
5028a9116c fix(web): fix index html generator for webpack 5 2021-10-19 16:30:55 -04:00
Craigory Coppola
bbe6bebcdd chore(core): update @nrwl/cli package.json 2021-10-19 11:47:49 -04:00
AgentEnder
00615d0f36 fix(angular): ng add works in v2 workspaces 2021-10-19 11:47:49 -04:00
Victor Savkin
693bd411d7 fix(core): reset daemon intenral state when cache is missing 2021-10-19 11:19:20 -04:00
Jack Hsu
9c1ae3a1b0
chore(web): clean up webpack setup (#7411) 2021-10-19 09:07:33 -06:00
Katerina Skroumpelou
fd3868c94e feat(storybook): migrator for webpack 5 2021-10-19 16:31:16 +02: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
Katerina Skroumpelou
ce9dbd011c fix(storybook): if there is no propstype name do not add angle brackets 2021-10-18 18:11:25 +02:00