1 | 'use strict'
|
2 |
|
3 | const Installer = require('libcipm')
|
4 | const npmConfig = require('./config/figgy-config.js')
|
5 | const npmlog = require('npmlog')
|
6 |
|
7 | ci.usage = 'npm ci'
|
8 |
|
9 | ci.completion = (cb) => cb(null, [])
|
10 |
|
11 | module.exports = ci
|
12 | function 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 |