dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/gulpfile.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02:00

20 lines
470 B
JavaScript

var gulp = require('gulp');
var tslint = require('gulp-tslint');
var shell = require('gulp-shell');
var files = {
src: 'src/**/*.ts',
test: 'test/**/*.ts'
};
gulp.task('compile', shell.task([
'node ./node_modules/vscode/bin/compile -p ./'
]));
gulp.task('tslint', function() {
return gulp.src([files.src, files.test, '!test/index.ts'])
.pipe(tslint())
.pipe(tslint.report('verbose'));
});
gulp.task('default', ['compile', 'tslint']);