12 Commits

Author SHA1 Message Date
Jason Jean
0a1423a732 fix(schematics): support migrating projects with root != name from 1.7 2018-08-20 11:39:27 -04:00
Jason Jean
edba67f728 fix(schematics): update other @angular framework packages when updating 2018-08-13 16:10:57 -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
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
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
8de81d6c16 feat(schematics): Add ability to ng update from Nx 1.x 2018-05-16 08:17:19 -04:00