-
-
Save duncanmak/2c6a262f684ce3a70dc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var ts = require('gulp-typescript'); | |
var sources = [ | |
'src/*.ts' | |
]; | |
var typings = [ | |
'typings/byline/byline.d.ts', | |
'typings/request/request.d.ts', | |
'typings/rx/rx.d.ts', | |
'typings/rx/rx.node.d.ts' | |
]; | |
var tsProject = ts.createProject({ | |
noImplicitAny: true, | |
module: 'commonjs' | |
}); | |
gulp.task('build', function() { | |
return gulp.src(sources.concat(typings)) | |
.pipe(ts(tsProject)).js | |
.pipe(gulp.dest('.')); | |
}); | |
gulp.task('watch', function() { | |
gulp.watch(sources, ['build']); | |
}); | |
gulp.task('default', ['build']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment