UNPKG

471 BJavaScriptView Raw
1'use strict'
2
3const Installer = require('libcipm')
4const npmConfig = require('./config/figgy-config.js')
5const npmlog = require('npmlog')
6
7ci.usage = 'npm ci'
8
9ci.completion = (cb) => cb(null, [])
10
11module.exports = ci
12function ci (args, cb) {
13 return new Installer(npmConfig({ log: npmlog })).run().then(details => {
14 npmlog.disableProgress()
15 console.log(`added ${details.pkgCount} packages in ${
16 details.runTime / 1000
17 }s`)
18 }).then(() => cb(), cb)
19}
20
\No newline at end of file