mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-10-24 01:49:20 +00:00
push all website files
This commit is contained in:
40
website/node_modules/npm/lib/ci.js
generated
vendored
Normal file
40
website/node_modules/npm/lib/ci.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
'use strict'
|
||||
|
||||
const Installer = require('libcipm')
|
||||
const lifecycleOpts = require('./config/lifecycle.js')
|
||||
const npm = require('./npm.js')
|
||||
const npmlog = require('npmlog')
|
||||
const pacoteOpts = require('./config/pacote.js')
|
||||
|
||||
ci.usage = 'npm ci'
|
||||
|
||||
ci.completion = (cb) => cb(null, [])
|
||||
|
||||
Installer.CipmConfig.impl(npm.config, {
|
||||
get: npm.config.get,
|
||||
set: npm.config.set,
|
||||
toLifecycle (moreOpts) {
|
||||
return lifecycleOpts(moreOpts)
|
||||
},
|
||||
toPacote (moreOpts) {
|
||||
return pacoteOpts(moreOpts)
|
||||
}
|
||||
})
|
||||
|
||||
module.exports = ci
|
||||
function ci (args, cb) {
|
||||
return new Installer({
|
||||
config: npm.config,
|
||||
log: npmlog
|
||||
})
|
||||
.run()
|
||||
.then(
|
||||
(details) => {
|
||||
npmlog.disableProgress()
|
||||
console.log(`added ${details.pkgCount} packages in ${
|
||||
details.runTime / 1000
|
||||
}s`)
|
||||
}
|
||||
)
|
||||
.then(() => cb(), cb)
|
||||
}
|
||||
Reference in New Issue
Block a user