twhite96
11/13/2017 - 4:59 AM

A gulp file for our demo project

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' );
});