Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
93a332ba50 | |||
109ba0b0ee | |||
ee3ef5d6e9 | |||
d5852ce85d |
4
.snyk
Normal file
4
.snyk
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
|
||||||
|
version: v1.13.3
|
||||||
|
ignore: {}
|
||||||
|
patch: {}
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsbuild",
|
"name": "@gitzone/tsbuild",
|
||||||
"version": "2.1.4",
|
"version": "2.1.6",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsbuild",
|
"name": "@gitzone/tsbuild",
|
||||||
"version": "2.1.4",
|
"version": "2.1.6",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "TypeScript nightly to easily make use of latest features",
|
"description": "TypeScript nightly to easily make use of latest features",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
@ -10,6 +10,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tsrun test/test.ts",
|
"test": "tsrun test/test.ts",
|
||||||
|
"testCustom": "node cli.ts.js custom ts_web",
|
||||||
"build": "node cli.ts.js"
|
"build": "node cli.ts.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -3,6 +3,9 @@ import * as tsbuild from './tsbuild.exports';
|
|||||||
|
|
||||||
const tsbuildCli = new plugins.smartcli.Smartcli();
|
const tsbuildCli = new plugins.smartcli.Smartcli();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the standard task compiles anything in ts/ directory to dist directory
|
||||||
|
*/
|
||||||
tsbuildCli.standardTask().subscribe(argvArg => {
|
tsbuildCli.standardTask().subscribe(argvArg => {
|
||||||
if (process.env.CLI_CALL_TSBUILD === 'true') {
|
if (process.env.CLI_CALL_TSBUILD === 'true') {
|
||||||
tsbuild.compileGlobStringObject(
|
tsbuild.compileGlobStringObject(
|
||||||
@ -16,4 +19,22 @@ tsbuildCli.standardTask().subscribe(argvArg => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the custom command compiles any customDir to dist_customDir
|
||||||
|
*/
|
||||||
|
tsbuildCli.addCommand('custom').subscribe(argvArg => {
|
||||||
|
const listedDirectories = argvArg._;
|
||||||
|
listedDirectories.shift();
|
||||||
|
const compilationCommandObject: {[key: string]: string} = {};
|
||||||
|
for (const directory of listedDirectories) {
|
||||||
|
compilationCommandObject['./' + directory] = './dist_' + directory;
|
||||||
|
};
|
||||||
|
tsbuild.compileGlobStringObject(
|
||||||
|
compilationCommandObject,
|
||||||
|
{},
|
||||||
|
process.cwd(),
|
||||||
|
argvArg
|
||||||
|
);
|
||||||
|
})
|
||||||
|
|
||||||
tsbuildCli.startParse();
|
tsbuildCli.startParse();
|
||||||
|
Reference in New Issue
Block a user