mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-23 07:34:00 -05:00
f81dc7a6b2
* wip: move lodash types to dev dependencies * move blob-util types * move types for minimatch * do not lint types from minimatch * move types sinon to dev dependencies * move sinon-chai types to dev dependencies * update tslint * move types bluebird to dev dependencies * move mocha types * move jquery types to dev dependencies * rename moment local wrapper * move chai and chai-jquery * refactor code for building CLI and dealing with folders * linting * include types subfolders * replace types with relative paths * transform sinon path to relative * linting * do not delete d.ts files * linting * chore: build npm package from this branch * add minimatch relative reference * work around minimatch * set sinon to be relative load * add readme to CLI * linting readme
27 lines
775 B
Markdown
27 lines
775 B
Markdown
# 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](NPM_README.md) as its public README file.
|
|
|
|
## Testing
|
|
|
|
To build and test an NPM package:
|
|
|
|
- `npm install`
|
|
- `npm 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
|
|
|
|
```shell
|
|
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`.
|