build in debug logs

This commit is contained in:
2017-07-27 15:27:25 +02:00
parent 0e7c942a97
commit a597c1268b
4 changed files with 11 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ export type TBuildService = 'docker'
* builds for a specific service
*/
export let build = async (argvArg): Promise<void> => {
console.log(argvArg)
let whatToPublish: string = argvArg._[1]
switch (whatToPublish) {
case 'docker':

View File

@@ -14,6 +14,7 @@ smartcli.addVersion(npmciInfo.version)
smartcli.addCommand('build')
.then(async argvArg => {
let modBuild = await npmciMods.modBuild.load()
console.log(argvArg)
await modBuild.build(argvArg)
NpmciEnv.configStore()
}).catch(err => {
@@ -65,9 +66,9 @@ smartcli.addCommand('install')
// prepare
smartcli.addCommand('prepare')
.then(async (argv) => {
.then(async argvArg => {
let modPrepare = await npmciMods.modPrepare.load()
await modPrepare.prepare(argv._[1])
await modPrepare.prepare(argvArg._[1])
await NpmciEnv.configStore()
}).catch(err => {
console.log(err)
@@ -76,7 +77,7 @@ smartcli.addCommand('prepare')
// publish
smartcli.addCommand('publish')
.then(async (argvArg) => {
.then(async argvArg => {
let modPublish = await npmciMods.modPublish.load()
await modPublish.publish(argvArg)
await NpmciEnv.configStore()