can-run-tests v0.0.2
can-run-tests
A CLI tool for testing can-* repos against canjs.
This tool allows you to test local changes to a can-* package against the main canjs repository.
Installation
$ npm install can-run-tests --save-dev
$ yarn add can-run-tests --dev
Caveats
The can-* package you are working on must:
- be a dependency of
cancheck here. - have its tests run be
cancheck here
Usage
$ node_modules/.bin/can-run-tests
A local .can-test folder will be created. It contains the local clone of CanJS and its dependencies. It's recommended
to keep this folder so running the tool doesn't have to clone the CanJS repository and and install all of its
dependencies each time.
Make sure you add .can-run-tests to your .gitignore and .npmignore.
What it does
- Creates a
.can-run-testdirectory - If
.can-run-tests/canjsexists
- Reset local clone of CanJS, otherwise
- Clone CanJS from GitHub
- Updates the CanJS
package.jsonto pull thecan-*project you are working on from the file system Runs
npm installin the CanJS directoryIf this isn't the first time
npm installhas been run, only thecan-*dependency will be installed.Runs
npm testin the CanJS directory
Changelog
0.0.1
- Initial release
License
Released under the MIT License.