fix(core): update
This commit is contained in:
parent
f90f391e87
commit
3db075b795
@ -9,16 +9,14 @@ export const runCli = async () => {
|
|||||||
const tsbundle = new TsBundle();
|
const tsbundle = new TsBundle();
|
||||||
const htmlHandler = new HtmlHandler();
|
const htmlHandler = new HtmlHandler();
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case argvArg.production:
|
case (argvArg.production) || process.env.CI:
|
||||||
await tsbundle.buildProduction();
|
await tsbundle.buildProduction();
|
||||||
await htmlHandler.minifyHtml();
|
await htmlHandler.minifyHtml();
|
||||||
break;
|
break;
|
||||||
case argvArg.test:
|
case argvArg.test:
|
||||||
|
default:
|
||||||
await tsbundle.buildTest();
|
await tsbundle.buildTest();
|
||||||
await htmlHandler.copyHtml();
|
await htmlHandler.copyHtml();
|
||||||
break;
|
|
||||||
default:
|
|
||||||
logger.log('error', `Can not determine build target environement. Please specify via --production or --test`)
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user