Provides platform specific cypress binary to cypress.
An example dictator created with dictator-builder.
The cypress binaries are not small enough to be published to registry.npm.org
. This repository shows how to package your own NPM package that you can published to your internal NPM registry.
This is just an example of how to package cypress to use it inside firewalls where you cannot download from the cypress public download mirror.
Se example usage in dictator-cypress-example.
When added to your package.json
like this:
{
"scripts": {
"preinstall": "npx dictator-cypress@a.b.c"
}
}
And when npm install
is performed in that repository, it will:
/cypress.zip
.npmrc
contains CYPRESS_INSTALL_BINARY=${PWD}/cypress.zip
You need to get the binaries from the Cypress download mirror. Only pick the ones you need, perhaps:
Replace the fake zip-binaries in /dictatables folders with the real ones you downloaded.
Perhaps you want to commit the binaries to Git and release with a CI environment like Jenkins. Or publish the package from your local machine without committing to Git. This repository has a release
script that you may want to use npm run release
.