9337 Commits

Author SHA1 Message Date
ben
183f360a2f chore(commands): workspace integrity check angular.json
This updates the `.angular-cli.json` to `angular.json` which is now the convention from Angular CLI.
2018-10-18 13:32:01 -04:00
ben
15b8e4bc93 feat(schematics): make dep-graph export to svg
This enables to export the dependency graph into a `svg` file. It was shown in the documentation but
not quite ready yet.

fix #811
2018-10-18 13:31:44 -04:00
ben
0295996f46 docs(readme): updates
Add a link towards the right blog catagory of the nrwl website and
a Features list.

Fix some alignment quirks.
2018-10-17 16:43:49 -04:00
Victor Savkin
d01ec1836e update readme 2018-10-09 16:40:26 -04:00
Victor Savkin
e118812ccd Release 6.4.0 2018-10-06 10:10:05 -04:00
Steven Masala
3ba5fefc23 fix(schemantics): tests are unable to run when window paths have spaces in them. 2018-10-04 19:42:56 -04:00
Leigh Caplan
b9ffb90ef9 feat(nx): export data persistence operators
DataPersistence methods have been refactored to use pipeable operators, but these operators weren't
exported so they could not be used outside of the library. Now, users will be able to import the
operators themselves.
2018-10-04 19:42:35 -04:00
--get
f1d4dd9f46 feat(schematics): add option for no module in lib 2018-10-04 19:42:13 -04:00
--get
f4c106a644 feat(builders): support es2015 compilation 2018-10-04 19:40:10 -04:00
Victor Savkin
cd4af6a507 build: update publish script 2018-10-03 20:05:31 -04:00
skydever
96716ae279 fix(schematics): convert fileReplacements paths for all configurations 2018-10-03 20:02:43 -04:00
skydever
4bd39e7f85 fix(schematics): exclude jest setup file in tsconfig.app.json 2018-10-03 20:02:29 -04:00
--get
9714a97f3c feat(schematics): update cli to 6.2.4 2018-10-03 20:02:02 -04:00
--get
0b086dd27c fix(schematics): fix affected for projects without architect config 2018-10-03 20:01:42 -04:00
--get
25b6e616df fix(schematics): remove duplicate schematics dep after ng-add 2018-10-03 20:01:19 -04:00
--get
fbdb7847de fix(builders): fix node builders on windows 2018-10-03 20:00:49 -04:00
Cristian Martinez
08c994a74c style(schematics): add empty line after imports
fix #614
2018-10-03 20:00:07 -04:00
Jason Jean
9b8755a327 feat(schematics): add schematics for node apps 2018-10-01 20:31:39 -04:00
Jason Jean
469af6e1a0 feat(builders): introduce node build and execute builders
These builders handle building and executing node applications
2018-10-01 15:29:01 -04:00
skydever
039c1510d9 fix(schematics): clean outDir to avoid blueprint leaks 2018-09-28 13:19:00 -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
--get
ac7cc3b113 tests(schematic): add back unit tests for ng-add 2018-09-28 12:01:56 -04:00
ben
efe38c47a7 fix(ngrx): add store typing
This adds the `<%= className%>PartialState` used to type the store from the
`DataPersistence` methods.
This adds the `XXX_FEATURE_KEY` to the `xxx.reducer.ts` file too.

close #748
2018-09-28 12:01:34 -04:00
ben
e63e787704 fix(schematics): use ngrx pipe select operator
This update the way the Facade select a slice of the Store using the
select operator through the pipe, contrary to the `.select()` which is
now deprecated.
2018-09-28 12:01:19 -04:00
--get
4ed154d11d fix(schematics): update jest-preset-angular to 6.0.1 2018-09-21 06:55:54 -04:00
Jeff Cross
88b424c406 Release 6.4.0-beta.1 2018-09-19 11:57:44 -07:00
skydever
97b773789b fix(schematics): remove polyfill.ts from tsconfig.spec.json (jest-project) 2018-09-19 13:16:35 -04:00
Jason Jean
f19810a890 fix(schematics): remove tsconfig.spec.json linting for non-karma apps (#766) 2018-09-17 09:55:39 -04:00
Jason Jean
d6ff7244c7 feat(schematics): allow generation of app with jest unit testing (#764)
This PR requires https://github.com/nrwl/nx/pull/758

## Current Behavior

The option to generate an application with a unit-test-runner of jest is not available

## Expected Behavior

User is able to generate an application which uses jest to run unit tests via:
```sh
ng g jest
ng g app jest-app --unit-test-runner jest
ng test jest-app
```
2018-09-14 11:59:49 -04:00
Thomas Skalnik
9fd399348f fix(schematics): do not modify tests when skipTests is set 2018-09-14 11:59:30 -04:00
Jason Jean
edae03eaea feat(builders): add runInBand and maxWorkers options to jest (#757)
Fixes https://github.com/nrwl/nx/issues/754

## Current Behavior

`runInBand` and `maxWorkers` are useful for CI environments but are not available through the builder.

## Expected Behavior

Both `runInBand` and `maxWorkers` have been added and can be used as per [Jest Troubleshooting](https://jestjs.io/docs/en/troubleshooting#tests-are-extremely-slow-on-docker-and-or-continuous-integration-ci-server).

```sh
  --max-workers
    Max number of workers to run tests across. Useful for CI. (https://jestjs.io/docs/en/cli.html#maxworkers-num)
  --run-in-band
    Run tests in a single process as opposed to multiple workers. Useful for CI. (https://jestjs.io/docs/en/cli.html#runinband)
```
2018-09-14 11:58:34 -04:00
Thomas Skalnik
817691d38d feat(builders): add bail and silent options to jest 2018-09-14 11:09:17 -04:00
Jason Jean
f960d5aba2 fix(schematics): normalize paths passed to offsetFromRoot (#758) 2018-09-14 11:07:34 -04:00
Benjamin Cabanes
5c4db34e37 fix(scripts): checkcommit allows release commit (#740) 2018-09-14 10:43:19 -04:00
Jason Jean
c9e29a265f build(prettier): ignore package.json from prettier (#759)
## Current Behavior

`package.json` was reformatted incorrectly after publishing.

## Expected Behavior

`/package.json` is ignored from `prettier`. This makes it so the two formatters do not conflict with one another.

## Notes

This is causing all PRs to fail currently
2018-09-14 10:16:43 -04:00
Victor Savkin
99f4434a6d Release 6.3.0 2018-08-30 16:31:39 -04:00
--get
6f909b2fde feat(builders): add --only-changed and --pass-with-no-tests to jest 2018-08-30 16:16:22 -04:00
Jason Jean
794075b8b2 fix(builders): import directly from jest 2018-08-30 11:30:20 -04:00
Hernan Magrini
5ccaef93d4 feat(schematics): add SCSS/CSS support via Prettier 2018-08-29 13:36:06 -04:00
Jason Jean
5a547ccadd feat(schematics): add schematics for jest 2018-08-29 11:44:39 -04:00
--get
e608211f46 fix(schematics): fix migration version 2018-08-29 08:08:03 -04:00
Jason Jean
74734c97f5 feat(builders): add coverage and snapshot options for jest 2018-08-29 08:07:22 -04:00
ben
84686d94c4 fix(command-line): format split in chunks patterns
The format command now splits all the array containing all the urls and patterns given, in smaller chunks arrays, executing the command on each chunks. This prevent to have too long argument on the command for the terminal, which can lead to error on specific OS. The chaining of command is transparent for the user.

close #511
2018-08-23 12:29:52 -04:00
ben
f93d8e3d36 fix(command-line): add ng command test on affected parallel
When running the affected command with the `--parallel` option, `npm-run-all` is used to achieve the parallel execution of the desired tasks. Because of the use of `npm-run-all`, the `ng` command should be visible and declared as script command in the `package.json` of your project.

This adds a verification before runing the command with the `--parallel` option to make sure the `package.json` has the `ng: "ng"` command in the `scripts` section.

close #700
2018-08-23 11:24:55 -04:00
ben
9c10fa7db2 build(package.json): run prettier before commit
This adds a hook to the git command to run prettier on the staged files, before committing. Prettier
has now more broad and general rules with excluded folder and more files to correct.
2018-08-23 09:59:04 -04:00
Jason Jean
0788a81322 feat(builders): introduce builders package and jest builder 2018-08-22 11:13:54 -04:00
ben
78b1ea19e7 chore(commitizen): add cz-conventional-changelog
This adds the ability to automate the format of the commit by prompting the information needed in sequence.
It is then easier to follow the standard format of the repository.
A commit check has been added to the CI too.
2018-08-22 10:49:31 -04:00
Victor Savkin
fce682c0f8 Release 6.2.1 2018-08-21 16:06:30 -04:00
Victor Savkin
c57832dfda fix(schematics): pin the version of the cli 2018-08-21 16:04:20 -04:00
ben
f2cea959b1 chore(schematics): remove console.log 2018-08-21 07:10:30 -04:00