Go modular
This commit is contained in:
committed by
Phil Kunz
parent
6edd51c6e6
commit
b6a85319b0
24
ts/mod_build/index.ts
Normal file
24
ts/mod_build/index.ts
Normal file
@ -0,0 +1,24 @@
|
||||
import * as plugins from './mod.plugins'
|
||||
import { bash } from '../npmci.bash'
|
||||
import * as env from '../npmci.env'
|
||||
import * as npmciMods from '../npmci.mods'
|
||||
|
||||
/**
|
||||
* defines possible build services
|
||||
*/
|
||||
export type TBuildService = 'docker'
|
||||
|
||||
/**
|
||||
* builds for a specific service
|
||||
*/
|
||||
export let build = async (commandArg): Promise<void> => {
|
||||
switch (commandArg) {
|
||||
case 'docker':
|
||||
let modDocker = await npmciMods.modDocker.load()
|
||||
await modDocker.build()
|
||||
break
|
||||
default:
|
||||
plugins.beautylog.log('build target ' + commandArg + ' not recognised!')
|
||||
};
|
||||
return
|
||||
}
|
1
ts/mod_build/mod.plugins.ts
Normal file
1
ts/mod_build/mod.plugins.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from '../npmci.plugins'
|
Reference in New Issue
Block a user