https://github.com/wellwind/cypress-schematics
Code generator for Cypress.io
https://github.com/wellwind/cypress-schematics
Last synced: about 1 year ago
JSON representation
Code generator for Cypress.io
- Host: GitHub
- URL: https://github.com/wellwind/cypress-schematics
- Owner: wellwind
- Created: 2018-07-01T23:40:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-23T06:22:16.000Z (about 3 years ago)
- Last Synced: 2025-05-08T22:14:50.824Z (about 1 year ago)
- Language: TypeScript
- Size: 165 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cypress Schematics
A schematics collection for installing [Cypress.io](https://www.cypress.io/)
This library is designed for Angular CLI project, however, you still can use this for any project you want to run e2e teseting.
## Using Angular CLI
### Requirements
Angular CLI 6.0.0+
### Usage
Just run the `ng add` command:
`ng add cypress-schematics`
You can also enable typescript and cucumber support by add following parameters.
- `--typescript`: Add typescript support .
- `--cucumber`: Add cucumber support.
If you don't enable typescript or cucumber support when `ng add`, you can still enable them after.
To enable typescript support:
`ng g cypress-schematics:typescript`
To enable cypress support:
`ng g cypress-schematics:cucumber`
## Without Angular CLI
### Requirements
Install `@angular-devkit/schematics-cli`
`npm i -g @angular-devkit/schematics-cli`
And install `cypress-schematics` in the folder you want to add cypress:
`npm i cypress-schematics`
### Usage
You can use schematics-cli to add cypress to any your project.
`schematics cypress-schematics:ng-add`
Also, just add `--typescript` or `--cucumber` to add another supports.
If you want to enable them later, you can still using schematics-cli.
To enable typescript support:
`schematics cypress-schematics:typescript`
To enable cypress support:
`schematics cypress-schematics:cucumber`