Skip to content
Permalink
Browse files

added build process to gulp file (for en-US only)

  • Loading branch information...
Peter Elliott
Peter Elliott committed Jun 11, 2015
1 parent 4c7f937 commit 6f502a2c8b373d45c19289be49b8309944f67a88
Showing with 19 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +18 −4 gulpfile.js
@@ -1 +1,2 @@
node_modules/
dist/
@@ -1,5 +1,8 @@
var gulp = require('gulp');
var jasmine = require('gulp-jasmine');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var sourcemaps = require('gulp-sourcemaps');
var runSequence = require('run-sequence');


@@ -29,16 +32,27 @@ var extendedtests = [
gulp.task('coretest', function() {
return gulp.src(corefiles.concat(coretests))
.pipe(jasmine());
})
});

gulp.task('extendedtest', function() {
return gulp.src(corefiles.concat(extendedtests))
.pipe(jasmine());
})
});

gulp.task('build', ['coretest'], function() {
return gulp.src(corefiles)
.pipe(sourcemaps.init())
.pipe(concat('date.js'))
.pipe(uglify())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./dist'))
});

gulp.task('test', function() {
runSequence(['coretest'],['extendedtest']);
})
});



gulp.task('default', ['test']);
gulp.task('default', ['build']);

0 comments on commit 6f502a2

Please sign in to comment.
You can’t perform that action at this time.