Welcome to mirror list, hosted at ThFree Co, Russian Federation.

install-test.js « lib « npm « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: feadb25d695e679446ed44292b357c4378db66b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'use strict'

// npm install-test
// Runs `npm install` and then runs `npm test`

module.exports = installTest
var install = require('./install.js')
var test = require('./test.js')

installTest.usage = '\nnpm install-test [args]' +
                    '\nSame args as `npm install`' +
                    '\n\nalias: npm it'

installTest.completion = install.completion

function installTest (args, cb) {
  install(args, function (er) {
    if (er) {
      return cb(er)
    }
    test([], cb)
  })
}