66 Commits

Author SHA1 Message Date
--get
ed938e4cda feat(builders): allow copying of assets for node apps 2018-11-12 13:51:40 -05:00
ben
5154146f02 fix(builders): using fork and getSystemPath 2018-10-27 13:50:24 -04:00
ben
f38bda025b feat(schematics): add cypress e2e test runner
This is enables the use of Cypress as e2e test runner for a new
application in the Nx workspace.

The Cypress command is hidden as a flag in the main application
schematics. Meaning, the only thing needed to enable this feature is to
add the `--e2eTestRunner=cypress` flag at your command when creating
a new application.
Example:
```shell
$ ng generate application myApp --e2eTestRunner=cypress
```

By default `ng e2e my-app-e2e` will start Cypress in the application
mode. You will see the desktop application and will be able to check all
the tests and run them as you which.

If you want to run the Cypress tests in headless mode (while being on CI
for example), you can do so by passing the `--headless` to the command.
  You will see all the test results live in the terminal.
  ```shell
  $ ng e2e my-app-e2e --headless
  ```

The Cypress configuration files and folders are present in the new
`my-app-e2e` folder created. Every file are written in typescript and
will be compiled into the `/dist/apps/my-app-e2e` folder before starting
Cypress.

If you need to fine tunes the options of Cypress, you can do so by
modifying directly the `cypress.json` file in the related project.

The build steps are has follow:
• compile typescript files into javascript inside the
`/dist/app/my-app-e2e` folder
• build a dev server (using the default AngularCLI dev target build)
• run Cypress with the compiled e2e files

Screenshots and Videos will be accessible respectively in
`/dist/apps/homer-app-e2e/screenshots` and
`/dist/apps/homer-app-e2e/videos`.
2018-10-25 12:14:35 -04:00
--get
67c4bdf4af feat(schematics): upgrade to angular 7 2018-10-24 09:42:31 -04:00
--get
f4c106a644 feat(builders): support es2015 compilation 2018-10-04 19:40:10 -04:00
--get
fbdb7847de fix(builders): fix node builders on windows 2018-10-03 20:00:49 -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
--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
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
--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
Jason Jean
74734c97f5 feat(builders): add coverage and snapshot options for jest 2018-08-29 08:07:22 -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