nx/docs/react/api-storybook/schematics/cypress-project.md
Juri Strumpflohner c9cac2d57a
fix(react): pass linter option properly to storybook cypress setup (#2903)
* fix(react): pass linter option to cypress storybook setup

* fix(react): add storybook linter defaults
2020-04-28 20:28:54 -04:00

50 lines
741 B
Markdown

# cypress-project
Add cypress e2e app to test a ui library that is set up for storybook
## Usage
```bash
nx generate cypress-project ...
```
By default, Nx will search for `cypress-project` in the default collection provisioned in `workspace.json`.
You can specify the collection explicitly as follows:
```bash
nx g @nrwl/storybook:cypress-project ...
```
Show what will be generated without writing to disk:
```bash
nx g cypress-project ... --dry-run
```
## Options
### js
Default: `false`
Type: `boolean`
Generate JavaScript files rather than TypeScript files
### linter
Default: `tslint`
Type: `string`
Possible values: `eslint`, `tslint`
The tool to use for running lint checks.
### name
Type: `string`
Library name