update dependencies and add yarn

This commit is contained in:
2017-02-19 14:46:05 +01:00
parent 97d2a8d1b7
commit b86b090c07
9 changed files with 2898 additions and 180 deletions

View File

@@ -3,84 +3,76 @@ import * as paths from './npmci.paths'
let npmciInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot)
plugins.beautylog.log('npmci version: ' + npmciInfo.version)
import {build} from './npmci.build'
import {clean} from './npmci.clean'
import {command} from './npmci.command'
import {install} from './npmci.install'
import {publish} from './npmci.publish'
import {prepare} from './npmci.prepare'
import {test} from './npmci.test'
import {trigger} from './npmci.trigger'
import { build } from './npmci.build'
import { clean } from './npmci.clean'
import { command } from './npmci.command'
import { install } from './npmci.install'
import { publish } from './npmci.publish'
import { prepare } from './npmci.prepare'
import { test } from './npmci.test'
import { trigger } from './npmci.trigger'
import * as NpmciEnv from './npmci.env'
export {build} from './npmci.build'
export {install} from './npmci.install';
export {publish} from './npmci.publish';
export { build } from './npmci.build'
export { install } from './npmci.install';
export { publish } from './npmci.publish';
let smartcli = new plugins.smartcli.Smartcli()
smartcli.addVersion(npmciInfo.version)
// build
smartcli.addCommand({
commandName: 'build'
}).then((argv) => {
build(argv._[1])
.then(NpmciEnv.configStore)
})
smartcli.addCommand('build')
.then((argv) => {
build(argv._[ 1 ])
.then(NpmciEnv.configStore)
})
// clean
smartcli.addCommand({
commandName: 'clean'
}).then((argv) => {
smartcli.addCommand('clean')
.then((argv) => {
clean()
.then(NpmciEnv.configStore)
})
.then(NpmciEnv.configStore)
})
// command
smartcli.addCommand({
commandName: 'command'
}).then((argv) => {
smartcli.addCommand('command')
.then((argv) => {
command()
.then(NpmciEnv.configStore)
})
.then(NpmciEnv.configStore)
})
// install
smartcli.addCommand({
commandName: 'install'
}).then((argv) => {
install(argv._[1])
.then(NpmciEnv.configStore)
})
smartcli.addCommand('install')
.then((argv) => {
install(argv._[ 1 ])
.then(NpmciEnv.configStore)
})
// prepare
smartcli.addCommand({
commandName: 'prepare'
}).then((argv) => {
prepare(argv._[1])
.then(NpmciEnv.configStore)
})
smartcli.addCommand('prepare')
.then((argv) => {
prepare(argv._[ 1 ])
.then(NpmciEnv.configStore)
})
// publish
smartcli.addCommand({
commandName: 'publish'
}).then((argv) => {
publish(argv._[1])
.then(NpmciEnv.configStore)
})
smartcli.addCommand('publish')
.then((argv) => {
publish(argv._[ 1 ])
.then(NpmciEnv.configStore)
})
// test
smartcli.addCommand({
commandName: 'test'
}).then((argv) => {
test(argv._[1])
.then(NpmciEnv.configStore)
})
smartcli.addCommand('test')
.then((argv) => {
test(argv._[ 1 ])
.then(NpmciEnv.configStore)
})
// trigger
smartcli.addCommand({
commandName: 'trigger'
}).then((argv) => {
smartcli.addCommand('trigger')
.then((argv) => {
trigger()
})
})
smartcli.startParse()