npmci/ts/npmci.build.ts

24 lines
542 B
TypeScript
Raw Normal View History

2016-11-24 22:21:40 +00:00
import * as plugins from './npmci.plugins'
2017-03-07 17:07:03 +00:00
import { bash } from './npmci.bash'
2016-11-24 22:21:40 +00:00
import * as env from './npmci.env'
import * as buildDocker from './npmci.build.docker'
2016-06-02 11:39:03 +00:00
2016-09-04 14:05:47 +00:00
/**
* defines possible build services
*/
2017-03-07 17:07:03 +00:00
export type TBuildService = 'docker'
2016-09-04 14:05:47 +00:00
/**
* builds for a specific service
*/
2017-03-07 17:07:03 +00:00
export let build = async (commandArg): Promise<void> => {
switch (commandArg) {
case 'docker':
await buildDocker.build()
break
default:
plugins.beautylog.log('build target ' + commandArg + ' not recognised!')
};
return
2016-06-03 00:10:34 +00:00
}