44 Commits

Author SHA1 Message Date
James Henry
bff5d431c9
feat(core): add --ignoreExistingTsLintConfig option to lint conversion generators (#5127)
* feat(core): add --discardExistingLintConfig option to lint conversion generators

* fixup! feat(core): add --discardExistingLintConfig option to lint conversion generators

* chore(core): address PR feedback

* fix(linter): properly store defualts for converting tslint to eslint

* fix(linter): fix tests for set defaults

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-04-12 15:40:48 -04:00
Rares Matei
6c4155dac6
feat(storybook): configure Cypress directory (#5314) 2021-04-12 14:06:51 +02:00
Manfred Steyer
9d2290fea9 feat(angular): add buildTarget to webpack-browser builder
Before, the webpack-browser builder always directly scheduled @angular-devkit/build-angular:browser. Now, one can configure an
optional buildTarget that is scheduled instead. If this option is not used, the former behavior -- directly scheduling
@angular-devkit/build-angular:browser -- takes place.
2021-03-31 21:11:47 -04:00
Tasos Bekos
01e536c6eb fix(repo): documentation generation correclty handles deprecated 2021-03-31 21:03:10 -04:00
Tasos Bekos
14b1df2173
cleanup(misc): deprecate showCircularDependencies option (#5135) 2021-03-26 15:12:21 -04:00
James Henry
00dec221e2
feat(linter): convert-tslint-to-eslint generators (#4943)
* feat(linter): convert-tslint-to-eslint generators

* fix(core): remove generators in collection for ng and nest

* fix(core): update tao to support mixed generators and schematics

* fix(core): update tao to support mixed generators and schematics

* fix(core): address some PR feedback

* fix(core): fix snapshots after syncing up with master

* feat(core): store user preference for removeTSLintIfNoMoreTSLintTargets

* fix(linter): unit tests

* feat(core): apply root tslint.json conversion to root .eslintrc.json
2021-03-19 13:41:13 -04:00
Matt Hodgson
5ee28743bc
fix(angular): honor buildableProjectDepsInPackageJsonType in angula… (#4760)
Fixes the angular:package builder to honor the `buildableProjectDepsInPackageJsonType` setting. It was previously ignored.
2021-02-19 20:52:20 +01:00
katerina
0fc65d8763 feat(storybook): Storybook v6 migration generator for default configurations
Co-authored-by: Philip Fulcher <philip@nrwl.io>
2021-02-01 09:17:49 -05:00
Victor Savkin
14503c27c9 Revert "feat(storybook): storybook v6 migration generator for default configuration"
This reverts commit e3c46f3fefd39c3095651d6074a04c0590433ecb.
2021-01-28 16:26:19 -05:00
Katerina Skroumpelou
e3c46f3fef
feat(storybook): storybook v6 migration generator for default configuration
Co-authored-by: Philip Fulcher <philip@nrwl.io>
Co-authored-by: Juri <juri.strumpflohner@gmail.com>
2021-01-28 21:45:32 +01:00
James Henry
57ae457258
fix(core): change all default linter values from tslint to eslint (#4602) 2021-01-26 15:54:07 -05:00
victor savkin
93ebc835dc docs(misc): clean up api docs 2020-12-02 10:51:43 -05:00
Jason Jean
b9791a3108
feat(core): upgrade to angular and angular devkit 11 (#4095) 2020-11-30 14:07:27 -05:00
victor savkin
0a955a420c cleanup(docs): use words generator and executor in api docs 2020-11-24 11:57:52 -05:00
Jay Bell
090350bb5d
feat(angular): allow for ivy to be enable for buildable libraries (#4058) 2020-11-20 13:58:58 -06:00
Victor Savkin
825202b5f4 fix(repo): fix docs formatting 2020-11-16 09:56:24 -05:00
Victor Savkin
9d053e7912 fix(core): a new workspace should have an explict dep on tao 2020-11-16 09:25:33 -05:00
Juri
1fcea9718b feat(angular): browser builder with incremental build support 2020-11-12 20:49:38 -05:00
Juri Strumpflohner
0892fa2b32
feat(angular): improve incremental build speed (#3854) 2020-10-30 10:23:34 -04:00
Brian
3f436fc6d0
feat(core): add flag to set dependant libs in either peerDependencies or dependencies (#3078)
* feat(core): add flag to set dependant libs in either peerDependencies or dependencies

* fix(core): mark new property as optional

* feat(core): add migration for new option

* Update migrations.json

Co-authored-by: Jonathan Cammisuli <jon@cammisuli.ca>
2020-09-30 10:36:35 -04:00
Webber Wang
9efa305b62
feat(storybook): storybook config projectType application (#2382) (#3611)
* feat(storybook): storybook config projectType application

* docs(storybook): update auto-generated docs

* feat(storybook): supporting projectType application for storybook

feat(storybook): supporting projectType application for storybook

* fix(storybook): change build asset glob pattern

fix(storybook): change build asset glob pattern

Co-authored-by: Webber Wang <webber@codelabstudios.com>
2020-09-24 17:33:24 +03:00
Jo Hanna Pearce
001b6ee8cc fix(misc): updates the mv schematic to cope with libs created with --importPath
ISSUES CLOSED: #3476
2020-09-14 13:36:46 -04:00
Jason Jean
d796731c97
fix(angular): generate storybook configuration with proper linter (#3580) 2020-08-21 11:55:24 -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
Victor Savkin
aff592b930 feat(angular): add an option to use eslint 2020-08-06 22:08:16 -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
Jo Hanna Pearce
319f7d0f26 feat(angular): add addModuleSpec flag to library schematic + refactor 2020-06-03 16:46:42 -04:00
Victor Savkin
2a3116f2e6 feat(misc): add an option not to update package.json files when building libs 2020-06-03 12:55:37 -04:00
Victor Savkin
6e9fb0efa0 docs(core): clean up generated docs 2020-03-30 13:08:41 -04:00
Victor Savkin
2c42431130 feat(core): rewrite path mappings when buildings apps 2020-03-19 21:41:03 -04:00
Juri
7723e941c0 docs(core): adjusts description on library schematics
right now "where the app is placed" is displayed which might be confusing given we generate a
library
2020-02-20 08:26:28 -05:00
Brandon
c7d075df49
fix(angular): update defaults for NgRx schematics (#2443)
BREAKING CHANGES:

The minimal flag is set to true
The syntax flag is set to creators
The useDataPersistence flag is set to false

BEFORE:

By default, the root Store and Effects modules are registered, with a generated feature
By default, the action classes syntax is used for scaffolding
By default, the DataPersistence class in injected and used in Effects

AFTER:

By default, only the root Store and Effects modules are registered
By default, the creator functions are used for scaffolding with schematics
By default, the DataPersistence operators are used in Effects
2020-02-06 15:17:05 -05:00
Jason Jean
b6e6b3f1c3
Revert "Revert "feat(core): update to next version of angular deps"" (#2264)
This reverts commit f816fc424d4b0d850e0a49d0ed8e4a30ddca308c.
2020-01-31 13:08:50 -05:00
Jo Pearce
8c99bc3da7
feat(angular): add --project alias, default argv source and example to move schemas (#2390) 2020-01-28 16:46:29 +00:00
Juri Strumpflohner
f951a1bc9b feat(angular): library builder to handle buildable libraries with deps (#2307)
This builder makes sure using buildable libraries depending on
other buildable libraries works as expected, without limiting the
current dx with auto-reload when using libraries within apps.
2020-01-24 10:19:24 -05:00
Jo Hanna Pearce
25de783a26 feat(angular): add move schematic for workspace and angular collections 2020-01-08 13:09:24 -05:00
Victor Savkin
f816fc424d Revert "feat(core): update to next version of angular deps"
This reverts commit bd230e0530e690b2ae7896a876510f62002943c8.
2019-12-10 08:07:26 -05:00
Jason Jean
bd230e0530 feat(core): update to next version of angular deps 2019-12-08 16:16:33 -05:00
Isaac Mann
8b8d30eff1 chore(nx): storybook schematics for react 2019-11-03 16:57:00 -05:00
Isaac Mann
c60857a6df feat(nx): storybook schematics
chore(nx): move some schematics into @nrwl/angular

    chore(nx): add e2e test

    feat(nx): add storybook schematics and builder

    test: Add tests

    test: remove test

    chore: Move some schematics into @nrwl/angular

    test: fix tests

    chore: Add e2e test

    chore: Bump storybook versions

    chore: createTestUiLib takes a libName argument

    chore: configs extend root config

    fix: Remove custom scss loader

    feat: add storybook builder

    fix: generate documentation and fix linting

    chore: Builder tests passing

    fix(nx): configuration schematic can run multiple times

    feat(nx): component story format

    docs(nx): update storybook docs

    fix(nx): pin core-js dev dependency to ^2.6.9

    chore(nx): fix formatting

    chore(nx): match core-js version for web/storybook

    chore(nx): remove storybook's angular dependencies

    chore(nx): modifyObstructiveCode to false in cypress.json

    See: https://github.com/cypress-io/cypress/issues/4042#issuecomment-487562075

    chore(nx): storybook tests --no-interactive

    chore(nx): add storybook to e2e tests

    chore(nx): reorder e2e tests
2019-10-23 17:16:19 -04:00
Brandon Roberts
6160cc2324 feat(nx): update usage of facades with NgRx and add better support for barrel exports 2019-10-10 11:30:16 -04:00
mehrad-rafigh
5ada9dd394 feat(angular): add backendProject flag to angular app generation schematics
--backend-project now accepts a string, which should be the name of a node/nest app and creates a
proxy.conf.json

closes #1288
2019-09-02 13:15:28 -04:00
Victor Savkin
64063f72df docs(nx): update api docs to contain examples 2019-08-21 11:56:21 -04:00
Victor Savkin
9a8f637899 docs(nx): generate different flavours of nx docs 2019-08-17 13:25:22 -04:00