33 Commits

Author SHA1 Message Date
Jason Jean
df23cba0e1 feat(nx): target es2015 by default for all applications 2019-05-27 10:19:47 -04:00
Jason Jean
fb152e689a refactor(frontend): refactor NxModule to @nrwl/angular 2019-04-28 15:10:38 -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
Jason Jean
b4b38d12d8 fix(nx): small fixes 2019-03-03 09:12:53 -05:00
Victor Savkin
03992c7de1 feat(nx): switch defaults to jest, cypress, and nest 2019-02-13 10:35:32 -05:00
Jason Jean
8338507ac2
tests(e2e): fix failing e2e tests due to incorrect flags (#1040) 2019-01-31 14:18:45 -05:00
Jason Jean
d537476b0c enhancement(schematics): optimize formatting during codegen 2019-01-03 14:18:20 -05:00
--get
c9d3f97b9f feat(schematics): update @angular/cli to 6.2.3 and ngrx 6.1.0 2018-09-28 13:14:45 -04:00
Thomas Burleson
57d6b0bd93 feat(ngrx): add support for NgRx Facade classes
Add support to generate NgRx facade classes when the command `--facade` boolean option
is used.

```console
ng g ngrx <feature> --facade
```

> Note this will not generate facades for existing ngrx features; this option
is currently only available for *new* ngrx scaffolding.

* Add code generators for `<feature>.facade.ts` + `<feature>.facade.spec.ts`

Fixes #629. Fixes #638.

use entity
2018-07-29 13:42:44 -04:00
Thomas Burleson
aa1b7766c5 fix(ngrx): fix lint issues in schematic templates
The ngrx schematic templates have some minor lint errors that manfiest in new ngrx generated code.

*  In the ngrx e2e tests, add check for tsLint errors in the generated code
*  Fix lint issues for the upgrade-module and associated tests.
2018-07-29 11:30:04 -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
Victor Savkin
23cb4ae5d4 fix(build): removes fit 2018-05-11 10:45:52 -04:00
Victor Savkin
907ec27528 feat(schematics): switch to cli6 2018-05-06 19:12:02 -04:00
Thomas Burleson
4edc8e6c8b feat(schematics): use @ngrx/schematics
* ngrx collection now extends @ngrx/schematics
* modify the nrwl `ngrx` schematic to use `@ngrx/schematics` to generate the initial source for actions, reducers, and effects
* modify the generated source to conform to Nx standards
* generate init and interface files
* remove template files for action, effect, and reducer scaffolding
* modify collection to extend `@ngrx/schematics` so the ngrx commands are also easily accessible
* inject dataloaded enums into action class
* configure nx workspace devDep on @ngrx/schematics version
* override ngrx effects.spec.ts with nx templated version

fixes #174.
2018-03-30 19:47:29 -04:00
vsavkin
74d920a4cd reformat the code using the new prettier config 2018-03-16 11:21:38 -04:00
vsavkin
172c18dc9b feat(schematics): switch to angular 5.2 and cli 1.6.5 2018-01-21 14:23:08 -05:00
vsavkin
7e479bedf2 test(schematics): bumped up test timeout 2017-12-03 15:09:59 -05:00
vsavkin
808f433fc5 build(schematics): run npm install only once 2017-11-27 18:21:13 -05:00
vsavkin
a6045246c1 fix(schematics): update the NgRx schematic to generate correct root config
Closes #67
2017-10-22 14:58:23 -04:00
vsavkin
2c408cc8f8 refactor: rewrite all e2e tests not requiring execution as unit tests 2017-10-16 11:19:39 -04:00
vsavkin
a43fbaeb9a switch to prettier 2017-10-07 12:09:45 -04:00
vsavkin
1054a134cd bump up timeout 2017-10-06 12:31:40 -04:00
vsavkin
a49be880d7 fix typo 2017-09-23 15:00:24 -04:00
vsavkin
e2c8ef7a36 feat(schematics): add all libs as apps to angularcli.json to support code generation 2017-09-22 15:25:22 -04:00
vsavkin
9935beef5c refactor(schematics): make all schematics work with ng generate 2017-09-21 16:01:09 -04:00
vsavkin
7e4a9f0e21 feat(schematics): change upgrade shell to set up routing 2017-09-14 10:41:19 -04:00
Aysegul Yonet
0ac1edd09a refactor(utils):remove projectName from the arguments 2017-09-14 09:47:55 -04:00
vsavkin
24b4fa01d0 fix(schematics): work around a bug in aotplugin by having same alias in all tsconfig files 2017-09-12 10:23:21 -04:00
vsavkin
fa74208906 feat(schematics): fix --onlyRoot option to generate EffectsModule.forRoot 2017-09-11 16:32:58 -04:00
vsavkin
991b029ac7 fix: formats all the files 2017-09-09 17:24:17 -04:00
vsavkin
9cafbac295 feat(schematics): update upgrade-shell and ngrx schematics to add deps to package.json 2017-09-01 13:36:57 -04:00
vsavkin
f2b5c1b0ce refactor(schematics): rename the ngrx schematic 2017-09-01 11:01:12 -04:00