feat(cli options): now support --web for web compilations targeting Google Chrome
This commit is contained in:
17
ts/tsbuild.cli.ts
Normal file
17
ts/tsbuild.cli.ts
Normal 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
|
||||
);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user