14 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
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
Victor Savkin
13a72f4fd1 refactor(frontend): refactor web components support into a separate package 2019-04-16 14:44:24 -04:00
Jason Jean
625b2837a8 refactor(testing): separate jest to @nrwl/jest 2019-04-16 13:10:49 -04:00
Victor Savkin
b81e767300 feat(nx): add presets for web components and react 2019-03-03 09:12:53 -05:00
Victor Savkin
7f2c16f3a3 feat(nx): add presets to simplify the creation of workspaces with angular and fullstack apps 2019-02-25 14:28:36 -05:00
Victor Savkin
03992c7de1 feat(nx): switch defaults to jest, cypress, and nest 2019-02-13 10:35:32 -05:00
Jason Jean
d537476b0c enhancement(schematics): optimize formatting during codegen 2019-01-03 14:18:20 -05:00
Jason Jean
92383e53b6 fix(schematics): add es2015 module to tsconfig 2018-12-03 11:52:01 -05:00
Jason Jean
dd4d671341 fix(schematics): generate defaults for scss 2018-11-23 11:10:10 -05: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
Victor Savkin
3a2d27ac20 fix(schematics): fix 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