feat(cli options): now support --web for web compilations targeting Google Chrome

This commit is contained in:
2018-12-05 23:29:01 +01:00
parent fee2a60162
commit bbcb8e6b3f
9 changed files with 902 additions and 206 deletions

17
ts/tsbuild.cli.ts Normal file
View File

@ -0,0 +1,17 @@
import * as plugins from './tsbuild.plugins';
import * as tsbuild from './tsbuild.exports';
const tsbuildCli = new plugins.smartcli.Smartcli();
tsbuildCli.standardTask().subscribe(argvArg => {
if (process.env.CLI_CALL_TSBUILD === 'true') {
tsbuild.compileGlobStringObject(
{
'./ts/**/*.ts': './dist'
},
{},
process.cwd(),
argvArg
);
}
});