Skip to content

Commit 9c10778

Browse files
Merge pull request #1186 from DustinCampbell/update-build-task
Update build task to launch "npm run compile"
2 parents d709fc3 + 4848939 commit 9c10778

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

.vscode/tasks.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
{
22
"version": "0.1.0",
3-
"command": "gulp",
4-
"isShellCommand": true,
53
"tasks": [
4+
{
5+
"taskName": "build",
6+
"command": "npm",
7+
"isShellCommand": true,
8+
"args": ["run", "compile"],
9+
"showOutput": "always",
10+
"isBuildCommand": true
11+
},
612
{
713
"taskName": "test",
14+
"command": "echo",
815
"showOutput": "always",
16+
"isShellCommand": true,
17+
"args": ["Run tests in VS Code by launching the debugg with the 'Launch Tests' configuration."],
918
"isTestCommand": true
1019
},
1120
{
1221
"taskName": "tslint",
13-
"args": [],
22+
"command": "gulp",
23+
"isShellCommand": true,
24+
"args": ["tslint"],
1425
"problemMatcher": {
1526
"owner": "tslint",
1627
"fileLocation": [

gulpfile.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,6 @@ gulp.task('package:offline', ['clean'], () => {
145145
return promise;
146146
});
147147

148-
/// Test Task
149-
gulp.task('test', () => {
150-
gulp.src('out/test/**/*.tests.js')
151-
.pipe(mocha({ ui: "tdd" }))
152-
.once('error', () => {
153-
process.exit(1);
154-
})
155-
.once('end', () => {
156-
process.exit();
157-
});
158-
});
159-
160148
/// Misc Tasks
161149
const allTypeScript = [
162150
'src/**/*.ts',

0 commit comments

Comments
 (0)