fix(core): update

This commit is contained in:
Philipp Kunz 2019-06-17 07:06:56 +02:00
parent f90f391e87
commit 3db075b795

View File

@ -9,16 +9,14 @@ export const runCli = async () => {
const tsbundle = new TsBundle();
const htmlHandler = new HtmlHandler();
switch (true) {
case argvArg.production:
case (argvArg.production) || process.env.CI:
await tsbundle.buildProduction();
await htmlHandler.minifyHtml();
break;
case argvArg.test:
default:
await tsbundle.buildTest();
await htmlHandler.copyHtml();
break;
default:
logger.log('error', `Can not determine build target environement. Please specify via --production or --test`)
return;
}
});