25 Commits

Author SHA1 Message Date
Victor Savkin
2c1d99e066 fix(angular): use @schematics/angular when setting style defaults 2020-09-03 20:49:53 -04:00
Ashley Hunter
10911e25c2
feat(angular): add an option to add strict type checking (#3465)
* feat(angular): add an option to add strict type checking

Adding support for strict type checking to Angular application and library generate schematics.

E.g.

`nx generate application myapp --strict`
`nx generate lib mylib --strict`

Closes #3383.

Performs the following configuration changes:

- Enables strict mode in TypeScript, as well as other strictness flags recommended by the TypeScript team. Specifically, forceConsistentCasingInFileNames, noImplicitReturns, noFallthroughCasesInSwitch.

- Turns on strict Angular compiler flags strictTemplates and strictInjectionParameters

These match the flags used in the standard CLI strict mode.

* cleanup(misc): updating import path

Co-authored-by: Ashley Hunter <ashley.hunter@hotmail.co.uk>
2020-08-12 18:15:59 -05:00
Jonathan Cammisuli
8509ded7e4
fix(angular): update tsconfig.lib.json to have "include" (#3389) 2020-07-23 11:23:34 -04:00
Juri Strumpflohner
ed0a9a7405
fix: generated tsconfig path mapping for publishable libs (when generated in nested folders) (#2840)
fix(core): require importPath for publishable libs
2020-07-22 12:39:44 -04:00
Brandon
a593573623
fix(angular): check for spec files when generating a library (#3323)
Closes #3286
2020-07-13 15:41:17 -05:00
Jason Jean
a7b7af2dfe
feat(core): switch over to angular 10 (#3056)
* feat(core): switch over to devkit 10-rc.0

* feat(core): implement solution tsconfigs wip

* feat(angular): add angular migrations

* fix(angular): modify angularjs tests
2020-07-07 17:02:06 -04:00
Rares Matei
5a59f090fe
fix(linter): fix exclude pattern for tslint and eslint schematics (#3113) 2020-06-05 16:04:53 -04:00
Jo Hanna Pearce
319f7d0f26 feat(angular): add addModuleSpec flag to library schematic + refactor 2020-06-03 16:46:42 -04:00
Victor Savkin
690be207be fix(misc): several misc fixes 2020-05-28 15:02:06 -04:00
Jason Jean
e06822da7e
chore(repo): update prettier to v2 (#2934)
this is just for the repo, and not the workspace

Co-authored-by: Rares Matei <matei.rar@gmail.com>
2020-04-29 01:09:37 -04:00
Brandon
9f0fdac4b5
fix(angular): remove prod tsconfig for non-publishable lib (#2816)
Closes #2765
2020-04-09 10:33:17 -05:00
Jason Jean
aeb0bdcb4e feat(core): enable caching by default 2020-03-26 17:14:17 -04:00
Bradley Zeggelaar
172c3a57c9 fix(angular): changes the styleext setting of the component schematic to style
the styleext setting to define the component style extension was removed in Angular 9.

ISSUES CLOSED: #2475
2020-03-25 09:11:07 -04:00
Juri
e5b9d80543 fix(angular): schematic to register routes
Fixes the schematic to register the route properly even if it is not directly defined at the
RouterModule registration
2020-03-10 10:24:14 -04:00
Bucky Maler
fa05f1171a fix(angular): remove tsconfig.lib.json excludes when --unit-test-runner is none 2019-09-17 12:01:48 -04:00
Jo Pearce
eeb713f5f0 fix(nx): exclude appropriate test setup file in tsconfig.lib.json
Resolves #1139
2019-09-05 15:27:47 -04:00
Victor Savkin
2b646f8eb4 feat(nx): standalone version of nx 2019-07-24 10:27:47 -04:00
Kristof Degrave
9278a8e4db fix(nx): fixed path to $schema in ng-package.json
The ng-package.json in a library had the $schema generate by the angular cli. This pointed to the ../node_modules by default, instead of  an offset to the project root. This is fixed in this commit.
2019-07-03 19:11:35 -04:00
Jason Jean
2f27cc2156 feat(nx): exclude files from outside the project root when linting 2019-06-15 19:10:41 -04:00
Sumanth Chinthagunta
d757a6964c fix(frontend): fix styles default 2019-05-25 01:48:45 -04:00
Jason Jean
d72db4d05b feat(nx): use dynamic imports for lazy-loading 2019-05-22 17:04:22 -04:00
Jason Jean
b6170bdb17 feat(nx): update angular to v8 (#1334)
feat(nx): update angular to v8
2019-05-10 12:09:47 -04:00
Victor Savkin
90c2d45686 cleanup(nx): clean up schematics to only depend on non-framework specific packages 2019-05-02 11:43:47 -04:00
Victor Savkin
b5f1966ca5 refactor(nx): extract workspace creation into @nrwl/workspace 2019-04-21 09:46:21 -04:00
Jason Jean
9bbb69d40f refactor(frontend): refactor angular to @nrwl/angular 2019-04-18 15:25:06 -04:00