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 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;
} }
}); });