53 Commits

Author SHA1 Message Date
Jason Jean
b4b38d12d8 fix(nx): small fixes 2019-03-03 09:12:53 -05:00
Jason Jean
3bad40ea65 feat(nx): support no framework apps 2019-03-02 12:03:30 -05:00
Victor Savkin
03992c7de1 feat(nx): switch defaults to jest, cypress, and nest 2019-02-13 10:35:32 -05:00
Jason Jean
52f90b9702
feat(schematics): add vscode extension recommendations (#1023) 2019-01-31 14:19:41 -05:00
Jason Jean
92383e53b6 fix(schematics): add es2015 module to tsconfig 2018-12-03 11:52:01 -05:00
--get
f8ac8e1569 feat(schematics): add generic affected 2018-11-12 14:30:25 -05:00
--get
67c4bdf4af feat(schematics): upgrade to angular 7 2018-10-24 09:42:31 -04: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
Jason Jean
5a547ccadd feat(schematics): add schematics for jest 2018-08-29 11:44:39 -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
b77ad0e479 fix(schematics): fix e2e tests 2018-05-13 20:12:59 -04:00
Victor Savkin
907ec27528 feat(schematics): switch to cli6 2018-05-06 19:12:02 -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
bc559575f5 feat(schematics): add support for workspace-specific schematics 2018-04-05 15:44:15 -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
Victor Savkin
ce553b732e feat(schematics): add lint checks ensuring the integrity of the workspace 2018-03-29 13:26:40 -04:00
Victor Savkin
4e9d52a044 simplify build setup to use the main tsconfig.json file for tests 2018-03-28 11:21:52 -04:00
FrozenPandaz
9cc8259190 refactor(schematics): add method for updating and reading json 2018-03-27 10:48:12 -04:00
mrmeku
4184bb2d13 Rebasing issues resolved 2018-03-20 08:38:03 -04:00
vsavkin
74d920a4cd reformat the code using the new prettier config 2018-03-16 11:21:38 -04:00
vsavkin
eb42a4e34f feat(bazel): set up the schematic collection and e2e test 2018-03-02 11:26:54 -05:00
vsavkin
2fb6259751 feat(schematics): add update, update:skip, and update:check commands 2018-02-27 11:36:38 -05:00
vsavkin
cb79dec084 feat(schematics): add skipInstall and skipGit options 2018-02-26 09:08:55 -05:00
vsavkin
acdeb1b71c feat(schematics): switch to angular/cli 1.7 2018-02-25 17:13:56 -05:00
vsavkin
125852d7ec test(schematics): add tests for create-nx-workspace 2018-02-04 18:14:40 -05:00
vsavkin
e0a977b2d3 fix(build): build improvements 2018-01-18 17:08:37 -05:00
vsavkin
2c49c30295 fix(schematics): avoid relative paths to node modules 2018-01-16 19:27:27 -05:00
vsavkin
ddd8de3813 fix(schematics): copy the cli file when running the workspace schematic 2018-01-08 21:50:00 -05:00
vsavkin
d6e66b9931 feat(schematics): add nx-migrate command 2017-12-01 11:37:13 -05:00
vsavkin
048448eba2 refactor(schematics): add all schematics into the collection dir 2017-12-01 11:37:13 -05:00
vsavkin
808f433fc5 build(schematics): run npm install only once 2017-11-27 18:21:13 -05:00
vsavkin
a43fbaeb9a switch to prettier 2017-10-07 12:09:45 -04:00
vsavkin
bb19c2d207 build: improve error output 2017-10-04 11:51:04 -04:00
vsavkin
06df591d59 refactor(schematics): add an option to runCLI to silence errors 2017-10-04 09:39:26 -04:00
vsavkin
d0f99a144e build: improves error reporting for e2e tests 2017-10-03 20:34:23 -04:00
vsavkin
cc5de0a082 style: reformat the code 2017-10-03 15:40:26 -04:00
vsavkin
317591861d fix(schematics): use a patched version of angular/cli 2017-10-03 15:33:19 -04:00
vsavkin
e0d0f64dc5 fix(schematics): strip out colors from the output when running e2e tests 2017-10-03 14:27:52 -04:00
vsavkin
8e91e120d9 chore: temporary disable e2e tests 2017-10-03 14:06:26 -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
df3c58fe9d feat(bazel): add tests building bazel projects 2017-09-19 09:16:57 -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
991b029ac7 fix: formats all the files 2017-09-09 17:24:17 -04:00
vsavkin
c992a7e111 feat(schematics): implement nrwl workspace schematics 2017-09-04 12:54:20 -04:00
vsavkin
c5585008a6 feat(schematics): add upgrade-shell 2017-09-01 11:00:35 -04:00
vsavkin
3223582921 fix e2e tests 2017-09-01 11:00:34 -04:00
vsavkin
7cd989508d formats all the files 2017-09-01 11:00:33 -04:00