Skip to content

Instantly share code, notes, and snippets.

@duncanmak
Created March 13, 2015 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duncanmak/2c6a262f684ce3a70dc9 to your computer and use it in GitHub Desktop.
Save duncanmak/2c6a262f684ce3a70dc9 to your computer and use it in GitHub Desktop.
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