From cb0e8aa2ff1ffcee5674a9a93ed8cff12ed0df21 Mon Sep 17 00:00:00 2001 From: John Yeates Date: Thu, 26 Nov 2020 15:51:22 +0000 Subject: [PATCH] Document how to skip installing Cypress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 😁 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 5055f8b..a786b30 100644 --- a/README.md +++ b/README.md @@ -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 ```