all files / lib/gulp/tasks/ html.js

57.14% Statements 4/7
100% Branches 0/0
0% Functions 0/3
57.14% Lines 4/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20                               
'use strict';
 
var gulp = require('gulp');
 
function compile(production) {
  return gulp.src(gulp._.config.html.src, {base: gulp._.config.base})
    .pipe(gulp._.plugins.pipes.html.compile({
      prod: production
    }))
    .pipe(gulp.dest(gulp._.config.html.dest));
}
 
gulp.task('dev:html', function() {
  return compile(false);
});
 
gulp.task('prod:html', function() {
  return compile(true);
});