npmci/ts/mod_build/index.ts

25 lines
586 B
TypeScript
Raw Normal View History

2017-05-18 20:40:09 +00:00
import * as plugins from './mod.plugins'
import { bash } from '../npmci.bash'
import * as env from '../npmci.env'
import * as npmciMods from '../npmci.mods'
2016-06-02 13:39:03 +02:00
2016-09-04 16:05:47 +02:00
/**
* defines possible build services
*/
2017-03-07 18:07:03 +01:00
export type TBuildService = 'docker'
2016-09-04 16:05:47 +02:00
/**
* builds for a specific service
*/
2017-03-07 18:07:03 +01:00
export let build = async (commandArg): Promise<void> => {
switch (commandArg) {
case 'docker':
2017-05-18 20:40:09 +00:00
let modDocker = await npmciMods.modDocker.load()
await modDocker.build()
2017-03-07 18:07:03 +01:00
break
default:
plugins.beautylog.log('build target ' + commandArg + ' not recognised!')
};
return
2016-06-03 02:10:34 +02:00
}