106 Commits

Author SHA1 Message Date
Jason Jean
b5550d367c fix(schematics): set versions consistent with cli 6.1.2 2018-08-04 08:37:43 -04:00
Jason Jean
205e7ad7ef feat(schematics): support @angular/cli@6.1.1 2018-08-02 13:39:19 -04:00
Thomas Burleson
04e99b06ae fix(schematics): ngrx schematics should generate enhanced ngrx files
@nrwl/schematics no longer uses the @ngrx/schematics to generate NgRx feature files.
*  `ngrx/files/__directory__` templates are used
*  Templates replicate the simple outputs generated from @ngrx/schematics:feature
*  Templates add significant Nx enhancements.

The following standard files will be scaffolded:
* `<feature>.actions.ts`
* `<feature>.effects.ts` + `<feature>.effects.spec.ts`
* `<feature>.reducer.ts` + `<feature>.reducer.spec.ts`

The following new files will also be scaffolded:
* `<feature>.selectors.ts` +  `<feature>.selectors.spec.ts`

Changes include:

* Change the action/enums to generate a trio of enums for each *feature*: `Load<Feature>`, `<Feature>Loaded`, and `<Feature>LoadError`
* Add code generators for `<feature>.selectors.ts`
* Add code generators for unit and integration testing `*.spec.ts` files
* Update the public barrel [`index.ts`] when adding ngrx to a library
* Use `StoreModule.forFeature()` when adding ngrx feature (without using the `--root` option)
* Use the Effect to respond tp `load<Feature>$` and dispatch `<Feature>Loaded` or `<Feature>LoadError`
* Update the Action to export `<feature>Actions` map of all action classes
* fix `ng-add.test.ts` tests for latest Angular CLI scaffolding
* fix `application.spec.ts` expect fails

Fixes #472,  Fixes #618,  Fixes #317,  Fixes #561, Refs #380.
2018-07-21 21:13:48 -04:00
Jason Jean
4a587e392d feat(schematics): create global karma conf 2018-07-20 12:00:05 -04:00
Jason Jean
0ad61c7acb feat(schematics): deprecate nx update 2018-06-14 12:02:29 -04:00
Victor Savkin
72f546acda fix(schematics): update migration script to update to Nx 6.1.0 2018-06-14 11:09:18 -04:00
Victor Savkin
f00ff2c7d2 feat(schematics): add nx.json to the default list of implicit deps 2018-06-11 10:26:08 -04:00
Jason Jean
caa5274fad feat(schematics) add migration for implicitDependencies 2018-06-09 12:54:33 -04:00
Jason Jean
d2350c4e86 feat(schematics): fail gracefully and warn when project is missing a format npm script 2018-06-07 20:40:14 -04:00
Jason Jean
e18f94e566 feat(schematics) add migration to add affected:lint npm script 2018-06-02 18:36:33 -04:00
Jason Jean
dd0a93251a fix(schematics): allow projects without e2e configurations and report more useful errors during add and update 2018-06-02 18:22:51 -04:00
Victor Savkin
1d4a0ef189 fix(schematics): revert the change prohibiting libs deep importing themselves 2018-05-22 12:29:36 -04:00
Victor Savkin
d917ad09e1 fix(schematics): fix the update script to point to the right version of @nrwl/nx 2018-05-22 10:02:46 -04:00
Victor Savkin
6c81127eea cleanup: fix formatting 2018-05-21 10:44:17 -04:00
Victor Savkin
7650950abd fix(schematic): make the migration to 6.0.0 more flexible 2018-05-18 14:15:05 -04:00
Jason Jean
31b1150229 fix(schematics): use migrate-only flag to skip installation during upgrade 2018-05-18 12:36:07 -04:00
Jason Jean
cd5ae4a1ea fix(schematics) fix update metadata in package.json and fix migration 2018-05-16 21:07:07 -04:00
Jason Jean
8de81d6c16 feat(schematics): Add ability to ng update from Nx 1.x 2018-05-16 08:17:19 -04:00
Victor Savkin
907ec27528 feat(schematics): switch to cli6 2018-05-06 19:12:02 -04:00
Victor Savkin
c18baf01ca fix(schematic): add a migration to add tsconfig.tools.json 2018-04-24 12:03:17 -04:00
mrmeku
08896fd195 feat(schematics): Generate --help for every CLI function.
This PR introduces the yargs package as our CLI command handler.
We build up commands using yargs to take advantage of its built
in --help flag formatter.
2018-04-12 21:49:59 -04:00
Victor Savkin
2a377fe643 fix(schematics): ignore errors when the tools directory already exists 2018-04-07 07:45:37 -04:00
Nitin Vericherla
49525efe3e feat(nx): support to generate visualization graph
`npm run dep-graph` outputs a visual dependency graph
2018-04-06 20:51:02 -04:00
Victor Savkin
42cd861b55 feat(schematics): add a migration adding the tools directory 2018-04-05 21:09:35 -04:00
Victor Savkin
50295eaadb cleanup(schematics): use relative imports 2018-04-05 21:09:13 -04:00
Victor Savkin
bc559575f5 feat(schematics): add support for workspace-specific schematics 2018-04-05 15:44:15 -04:00
Victor Savkin
ce553b732e feat(schematics): add lint checks ensuring the integrity of the workspace 2018-03-29 13:26:40 -04:00
FrozenPandaz
edac12c859 refactor: add rule for no unused locals and cleanup 2018-03-27 19:46:56 -04:00
FrozenPandaz
9cc8259190 refactor(schematics): add method for updating and reading json 2018-03-27 10:48:12 -04:00
vsavkin
9a40686bcc formatting 2018-03-25 15:43:17 -04:00
FrozenPandaz
8fd05f3e45 feat(schematics): add migration for karma app check 2018-03-25 10:55:20 -04:00
vsavkin
fcec9dc1c0 reformat code with printWidth=80 2018-03-16 15:38:28 -04:00
vsavkin
cc49f366fa fix(schemtics): restruct the folder structure to avoid releasing the shared package 2018-03-13 19:50:58 -04:00
vsavkin
2842cb9c38 feat(schematics): add support for tagged libs 2018-03-13 16:03:51 -04:00
James Henry
56a6611575 feat(schematics): Allow users to set prettier config, add relevant migration 2018-03-11 14:34:40 -04:00
vsavkin
eb42a4e34f feat(bazel): set up the schematic collection and e2e test 2018-03-02 11:26:54 -05:00
vsavkin
f6083ceb5d fix(schematics): update migration to upgrade the version of http to 5.2.7 2018-03-01 13:56:41 -05:00
vsavkin
45fda44e90 fix(schematics): fixed the switch-to-cli17 migration to handle the case when the CLI file isn't present 2018-02-28 10:36:46 -05:00
vsavkin
2fb6259751 feat(schematics): add update, update:skip, and update:check commands 2018-02-27 11:36:38 -05:00
vsavkin
acdeb1b71c feat(schematics): switch to angular/cli 1.7 2018-02-25 17:13:56 -05:00
vsavkin
93a6b4e94b fix(schematics): add a post install script that run nx-migrate:check 2018-01-31 09:35:22 -05:00
vsavkin
4903e8f1ec add @angular-devkit/schematics and @schematics/angular as dev dependencies 2018-01-30 20:29:11 -05:00
vsavkin
d7ba9fdc1b feat(schematics): add nx-migrate:check and nx-migrate:skip scripts 2018-01-30 16:28:14 -05:00
vsavkin
3f37983775 fix(schematics): add an explicit dependency on @angular-devkit/core 2018-01-22 09:47:33 -05:00
vsavkin
7bfd4eb08d fix(schematics): add a migration to update test.js 2018-01-21 17:25:49 -05:00
vsavkin
172c18dc9b feat(schematics): switch to angular 5.2 and cli 1.6.5 2018-01-21 14:23:08 -05:00
vsavkin
847a249980 feat(schematics): add a migration updating the version of prettier 2018-01-20 18:07:10 -05:00
vsavkin
2c49c30295 fix(schematics): avoid relative paths to node modules 2018-01-16 19:27:27 -05:00
vsavkin
826a0b1056 feat(schematics): add format:check and format:write commands 2018-01-02 15:51:44 -05:00
vsavkin
a398ec3166 fix(schematics): a typo in a migration 2017-12-19 17:10:36 -05:00