Skip to content

Commit

Permalink
Document how to skip installing Cypress (shakacode#70)
Browse files Browse the repository at this point in the history
If the user already has a globally-installed Cypress, they may not want one created in their app's `node_modules` folder (particularly if the Rails app is an API-only backend!)

As passing any value to `install_cypress_with` that isn't `yarn` or `npm` skips installation, I've chosen `skip` here. As long as nobody releases a package manager called `skip` this should be fine 😁
  • Loading branch information
unikitty37 committed Nov 27, 2020
1 parent 6928778 commit 7f97fc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ bin/rails g cypress_on_rails:install --cypress_folder=test/cypress
# if you want to install cypress with npm
bin/rails g cypress_on_rails:install --install_cypress_with=npm

# if you already have cypress installed globally
bin/rails g cypress_on_rails:install --install_cypress_with=skip

# to update the generated files run
bin/rails g cypress_on_rails:update
```
Expand Down

0 comments on commit 7f97fc7

Please sign in to comment.