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

install-test.js « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9593361e320b8e51f85ce0246333bd05a944948f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// npm install-test
// Runs `npm install` and then runs `npm test`

const install = require('./install.js')
const test = require('./test.js')
const usageUtil = require('./utils/usage.js')

const usage = usageUtil(
  'install-test',
  'npm install-test [args]' +
  '\nSame args as `npm install`'
)

const completion = install.completion

const installTest = (args, cb) =>
  install(args, er => er ? cb(er) : test([], cb))

module.exports = Object.assign(installTest, { usage, completion })