diff options
author | Camil Staps | 2015-05-13 22:57:53 +0200 |
---|---|---|
committer | Camil Staps | 2015-05-13 22:57:53 +0200 |
commit | a14b49e59e6764b6b7764ee3bc95d0d049bf21f8 (patch) | |
tree | 8d91cf08d7a496418f3117037b2e0cd45f14bb6e /gulpfile.js | |
parent | Link in header on 'Botleagues'; About page (diff) |
Turned javascript into coffeescript
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js index 96768e7..4a0dff1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -2,6 +2,7 @@ var gulp = require('gulp'), changed = require('gulp-changed'), + coffee = require('gulp-coffee'), concat = require('gulp-concat'), debug = require('gulp-debug'), foreach = require('gulp-foreach'), @@ -153,11 +154,16 @@ gulp.task('3rd-party-scripts', function(){ }); gulp.task('scripts', function(){ - var src = './src/js/*.js'; + var src = [ + './src/js/*.js', + './src/js/*.coffee' + ] + ; var dst = './build/assets/js'; return gulp.src(src) - .pipe(changed(dst)) + .pipe(changed(dst, { extension: 'js' })) + .pipe(gulpif(/\.coffee$/, coffee())) .pipe(gulpif(production, stripdebug())) .pipe(gulpif(production, uglify())) .pipe(gulp.dest(dst)); |