Switch to Gulp Task Runner

This commit is contained in:
Josh Johnson 2016-01-13 18:01:51 -05:00
parent a7e8c3a1af
commit a49c22958a
6 changed files with 76 additions and 60 deletions

3
.vscode/launch.json vendored
View File

@ -8,8 +8,7 @@
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"--extensionDevelopmentPath=${workspaceRoot}" "--extensionDevelopmentPath=${workspaceRoot}"
], ]
"preLaunchTask": "tsc"
} }
] ]
} }

28
.vscode/tasks.json vendored
View File

@ -1,15 +1,21 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
{ {
"version": "0.1.0", "version": "0.1.0",
"command": "tsc", "command": "gulp",
"isShellCommand": true, "isShellCommand": true,
"showOutput": "silent", "args": [
"problemMatcher": "$tsc-watch" "--no-color"
],
"tasks": [
{
"taskName": "build",
"args": [],
"isBuildCommand": true,
"isWatching": false,
"problemMatcher": [
"$lessCompile",
"$tsc",
"$jshint"
]
}
]
} }

9
gulpfile.js Normal file
View File

@ -0,0 +1,9 @@
var gulp = require('gulp');
var shell = require('gulp-shell');
gulp.task('compile-typescript', function () {
gulp.src('package.json').pipe(shell('tsc'));
});
gulp.task('build', ['compile-typescript']);

View File

@ -113,7 +113,9 @@
], ],
"devDependencies": { "devDependencies": {
"vscode": "^0.10.7", "vscode": "^0.10.7",
"typescript": "^1.6.2" "typescript": "^1.6.2",
"gulp": "^3.9.0",
"gulp-shell": "^0.5.1"
}, },
"dependencies": { "dependencies": {
"xmldom": "DotJoshJohnson/xmldom#2794915", "xmldom": "DotJoshJohnson/xmldom#2794915",