-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile-base.js
43 lines (37 loc) · 1.19 KB
/
gulpfile-base.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"use strict";
const path = require("path");
const child_process = require("child_process");
module.exports = {
tsc: (done) => {
const tscPath = path.normalize("./node_modules/.bin/tsc");
const command = `${tscPath} -p tsconfig.json`;
child_process.execSync(command, {
stdio: "inherit"
});
done();
},
tslint: (done) => {
const tslintPath = path.normalize('./node_modules/.bin/tslint');
const command = `${tslintPath} -p tsconfig.json -c tslint.json`;
child_process.execSync(command, {
stdio: 'inherit'
});
done();
},
test: (done) => {
const jestPath = path.normalize("./node_modules/.bin/jest");
const command = `${jestPath} --coverage`;
child_process.execSync(command, {
stdio: 'inherit'
});
done();
},
doc: (done) => {
const typedocPath = path.normalize("./node_modules/.bin/typedoc");
const command = `${typedocPath} --theme minimal --excludeExternals --excludePrivate --mode file --out doc lib/`;
child_process.execSync(command, {
stdio: "inherit"
});
done();
},
};