strong-cached-install

2.0.5 • Public • Published

strong-cached-install Build Status

NPM badge

Overview

Strong-cached-install speeds up npm install in your tests by caching the content of node_modules and using plain cp -r on subsequent runs.

Installation

$ npm install strong-cached-install

Usage

var path = require('path');
var install = require('strong-cached-install');
 
describe('my yo generator', function() {
  before(resetSandbox);
  before(runGeneratorInSandbox);
 
  before(function installDependencies(done) {
    var appDir = SANDBOX;
    var cacheDir = path.resolve(__dirname, '.pkgcache');
    install(appDir, cacheDir, done);
  }
 
  // and the tests
});

Package Sidebar

Install

npm i strong-cached-install

Weekly Downloads

13

Version

2.0.5

License

Artistic-2.0

Last publish

Collaborators

  • dhmlau
  • 0candy
  • hacksparrow