1.2.0 • Published 8 years ago

localinstall v1.2.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

localinstall

Pack and install your npm package into itself. This is useful if you want to run tests against the distributable that other npm users will be using, and not against the lib / dist in your own build.

Usage

First install this package using npm

$ npm install localinstall --save-dev

Then edit your package.json to include the command before your tests

"scripts": {
  "pretest": "localinstall",
  "test": "your-tests-here"
}

Now, in your tests, you can test your package as if it was installed by an end user.

var mypackage = require('mypackage');
...
1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago