141 Commits

Author SHA1 Message Date
Isaac Mann
07ebdb36a3
feat(core): add nx graph as alias of nx dep-graph (#8539)
* feat(core): add nx graph as alias of nx dep-graph

* docs(core): add note about old dep-graph syntax

* cleanup(core): formatting

* feat(core): formatting

* feat(core): formatting

Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
2022-01-21 11:15:23 -05:00
Leosvel Pérez Espinosa
5afd3d6d2c
fix(angular): update tailwind content glob pattern to ignore stories and tests (#8637) 2022-01-21 11:02:23 +00:00
Leosvel Pérez Espinosa
ad72d7a95e
fix(angular): configure tailwind content and purge properties for libraries (#8556) 2022-01-20 10:04:08 +00:00
Jason Jean
c72520ec17
fix(angular): do not format when skipFormat is passed for generating a lib (#8549) 2022-01-14 23:51:21 +00:00
Katerina Skroumpelou
883acaf4f4
fix(storybook): fixed story template for angular (#8388) 2022-01-12 20:46:21 +02:00
Katerina Skroumpelou
31b8b46a18
Revert "fix(storybook): apply a webpack tweak for storybook and angular (#8392)" (#8486)
This reverts commit 77529a1770ce848c3184d0b86571e3300f585ac8.
2022-01-12 16:45:43 +02:00
Leosvel Pérez Espinosa
b989e8de19
feat(angular): simplify generated tailwind config for v3 (#8471) 2022-01-12 11:33:29 +00:00
Maurizio Vitale
c2115c2a72
fix(angular): skipFormat files when converting to Nx project (#8387)
Add the ability to skipFormat files when converting to Nx project

ISSUES CLOSED: #8386
2022-01-11 15:26:45 +00:00
Colum Ferry
8c8b257a3c
feat(angular): add option to skip module creation #7806 (#8391) 2022-01-06 11:49:04 +00:00
Vadim
77529a1770
fix(storybook): apply a webpack tweak for storybook and angular (#8392)
* fix(storybook): apply a webpack tweak for storybook and angular

- [x] remove html raw-loader from the webpack rules array if storybook is used with angular v13;

the html raw-loader breaks jit compilation when storybook 6.5 aplha is used with angular v13

ISSUES CLOSED: #8360

fix(testing): update storybook generator configuration snapshot

fix(testing): update storybook generator configuration snapshot, use the flag --update-snapshot

fix(testing): update storybook generator configuration snapshot, test affected, update snapshot

* cleanup(storybook): make the webpack tweak for storybook and angular explanation more concise
2022-01-06 11:21:13 +02:00
Colum Ferry
be908e2be6
feat(angular): use share helper to ensure correct version matching (#8277) 2021-12-22 15:03:39 +00:00
Isaac Mann
aea4f099fc
feat(angular): add helper to add any property to an ngModule decorator (#7850)
Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
2021-12-21 15:20:22 -05:00
Colum Ferry
c5ce3b2748
fix(angular): mfe remote entry to use common module (#8250) 2021-12-21 12:25:03 +00:00
Leosvel Pérez Espinosa
2b00c99db1
feat(angular): add support for configuring tailwind in existing and new apps and buildable/publishable libs (#8043) 2021-12-16 17:25:32 +00:00
Colum Ferry
a75f1bd763
fix(angular): set public host for both projects (#8184) 2021-12-15 10:39:31 +00:00
Noriyuki Shinpuku
e77c498f2d
feat(angular): update complier options for strict mode (#8126) 2021-12-14 22:32:45 -05:00
Shlomi Levi
4bb109e175
feat(angular): add scam generator for pipes and directives (#8144)
ISSUES CLOSED: #8122
2021-12-14 11:28:47 +00:00
Colum Ferry
bc8dda6c44
fix(angular): scam component default type as lowercase (#8160) 2021-12-14 11:09:16 +00:00
Leosvel Pérez Espinosa
364136f3f6
fix(angular): handle scam components when generating storybook stories (#8139) 2021-12-13 16:19:08 +00:00
Colum Ferry
5339e99d84
feat(angular): enable minimization for MFEs (#8135)
* feat(angular): enable minimization for MFEs

* fix(angular): test snapshots
2021-12-13 15:58:16 +00:00
Leosvel Pérez Espinosa
4343f56da6
fix(angular): remove unnecessary extension from scam component import (#8136) 2021-12-13 12:53:21 +00:00
Leosvel Pérez Espinosa
3fa53857d7
fix(angular): fix setParserOptionsProject being ignored when generating apps (#8105) 2021-12-10 16:00:43 +00:00
Jay Bell
e2626adb68
feat(angular): allow for passing in parser options flag to lib generation (#8082) 2021-12-10 14:33:46 +00:00
Colum Ferry
5f537183b2
fix(angular): use path property correctly when generating scams #8083 (#8100) 2021-12-10 12:46:54 +00:00
Juri
6f4226af75 feat(storybook): upgrade to Storybook 6.4 2021-12-09 10:06:10 -05: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
0280e5ec7b
fix(angular): fix @nrwl/angular package build to produce the right type definitions and package entry points (#8054) 2021-12-08 15:22:25 +00:00
Victor Savkin
8806d1f815 Revert "feat(storybook): upgrade to Storybook 6.4 (#7917)"
This reverts commit e4595867cc16cd5fe20d02e242d6ccbc727bd1f1.
2021-12-06 20:02:54 -05:00
Colum Ferry
48712948b3
feat(angular): add scam generator (#7987)
* feat(angular): add scam generator

* feat(angular): support flat and type component flags
2021-12-06 12:59:42 +00:00
Juri Strumpflohner
e4595867cc
feat(storybook): upgrade to Storybook 6.4 (#7917) 2021-12-06 12:49:16 +02:00
Mateo Tibaquirá
d6410162a0
fix(angular): remove numbers from the project name (#6646)
* fix(angular): remove numbers after dashes

* fix(angular): correctly handle empty libsDir

* feat(angular): validate apps with empty appsDir

* feat(angular): validate libs with empty libsDir

* fix(angular): revert change to createTreeWithEmptyWorkspace
2021-12-06 09:45:46 +00:00
Benjamin Cabanes
66e4e85067
feat(core): new nx starter (#7912) 2021-12-03 11:05:09 -05:00
Leosvel Pérez Espinosa
125d3a689e
fix(angular): fix storybook-migrate-defaults-5-to-6 generator default export (#7990) 2021-12-03 15:55:09 +00:00
Craigory Coppola
c04686ab10
feat(core): optional workspace.json file (#7584) 2021-11-30 15:02:06 -06:00
Leosvel Pérez Espinosa
153e038c9b
fix(angular): install @angular/cli if not installed (#7910) 2021-11-26 17:09:09 +00:00
Jay Bell
2d9c0ff4d9
feat(angular): allow for full ivy compilation in buildable libraries (#7873) 2021-11-25 18:56:10 +00:00
Colum Ferry
b3664fe264
feat(angular): update angular-architects/module-federation plugin to v13 (#7868) 2021-11-24 20:04:21 +00:00
James Henry
8fa36ff3e8
feat(linter): support eslint v8 (#7800)
* feat(core): support eslint v8

* fix(core): align version of eslint across all packages
2021-11-19 17:22:21 +00:00
James Henry
512f094f98
feat(angular): update to angular-eslint v13 (#7799) 2021-11-18 19:04:45 -05:00
Jason Jean
448923a1b1
chore(repo): update nx to 13.2.0-rc.4 (#7796) 2021-11-18 16:56:36 -05:00
Juri Strumpflohner
97e154401b
fix(storybook): do not add Story args when the default value cannot be inferred (#7754) 2021-11-18 12:58:27 -05:00
Leosvel Pérez Espinosa
7f0e8c7579
fix(angular): generate ng-package.json for secondary entrypoints (#7786) 2021-11-18 12:25:18 +00:00
Juri Strumpflohner
1d9825875e
feat(storybook): angular v13 and Storybook 6.4 support (#7690)
* feat(storybook): angular v13 and Storybook 6.4 support

* fixup! feat(storybook): angular v13 and Storybook 6.4 support

* fix(angular): add specific storybook prerelease for angular 13 support

* fixup! fix(angular): add specific storybook prerelease for angular 13 support

* fixup! fixup! fix(angular): add specific storybook prerelease for angular 13 support

* feat(angular): add storybook support for angular 13

* fix(angular): temporarily disable storybook tests

Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-11-13 02:14:10 +00:00
Ashley Hunter
8f205715ea
fix(angular): fixing application generator when using protractor (#7603) 2021-11-10 10:41:41 -06:00
Katerina Skroumpelou
8551a7478b fix(storybook): only match exact component name for Storybook
ISSUES CLOSED: #7175
2021-11-10 14:06:59 +01:00
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
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
Leosvel Pérez Espinosa
8311a172d7
feat(angular): add secondary entry point generator for publishable libraries (#7501) 2021-10-26 11:12:53 +01:00