mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-23 23:49:05 -06:00
* update cli_spec * linting * update named snapshot to have 1 to match snap-shot-it v5 * update errors spec * linting * update snapshot use in download_spec * update install_spec snapshot * linting * update use of snapshot in unzip_spec * update snapshot use in verify_spec * enable all CLI specs * no need to skip snapshot sorting * upgrade snap-shot-it to v6 in root * update snap-shot-it to v6 in packages/server * need to add build script to transpile * update cypress_spec snapshot use with names
Cypress CLI source
This folder is used to build Cypress NPM module.
Building
See scripts/build.js. Note that the built NPM package will include NPM_README.md as its public README file.
Testing
To build and test an NPM package:
npm installnpm run build
This creates build folder.
cd build; npm pack
This creates an archive, usually named cypress-<version>.tgz. You can install this archive from other projects, but because there is no corresponding binary yet (probably), skip binary download. For example from inside cypress-example-kitchensink folder
npm i ~/git/cypress/cli/build/cypress-3.1.5.tgz --ignore-scripts
Which installs the tgz file we have just built from folder ~/git/cypress/cli/build.