Skip to content

Instantly share code, notes, and snippets.

@supalogix
Created September 2, 2015 07:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save supalogix/89012ff320eee0bc6d96 to your computer and use it in GitHub Desktop.
Save supalogix/89012ff320eee0bc6d96 to your computer and use it in GitHub Desktop.
A gulp file for our demo project
var gulp = require('gulp');
var jasmine = require('gulp-jasmine');
var typescript = require('gulp-tsc');
var runSequence = require('run-sequence');
gulp.task('compile', function(){
return gulp.src(['src/ts/**/*.ts'])
.pipe(typescript())
.pipe(gulp.dest('src/js/'));
});
gulp.task('test', function() {
return gulp.src('spec/*.js')
.pipe(jasmine());
});
gulp.task('default', function() {
runSequence( 'compile', 'test' );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment