strong-cached-install

2019-02-12 admin

strong-cached-install是什么

什么是strong-cached-install,Speed up npm install in unit-tests by using a cache on subsequent runs.

strong-cached-install使用教程帮助文档

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
});

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-53591.html

文章标题:strong-cached-install

回到顶部