diff --git a/gulp/template.js b/gulp/template.js index 7664d015..4eed2548 100644 --- a/gulp/template.js +++ b/gulp/template.js @@ -1,8 +1,8 @@ var template = require('gulp-template'); var gulp = require('gulp'); -var config = require('../config'); module.exports = function () { + var config = require('../config'); return gulp.src('./static/index.html') .pipe(template(config)) .pipe(gulp.dest('./build')); diff --git a/gulpfile.js b/gulpfile.js index da743a4b..1ab977e6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -27,12 +27,22 @@ gulp.task('template', ['config', 'clean'], template); gulp.task('less', ['clean'], less); gulp.task('browserify', ['clean', 'locale'], browserify); gulp.task('publish', ['less', 'locale'], publish); -gulp.task('build', ['less', 'browserify', 'publish', 'template'], cache); +gulp.task('build', [ + 'less', + 'browserify', + 'publish', + 'template' +], cache); gulp.task('re-locale', ['clean'], locale); gulp.task('re-browserify', ['clean', 're-locale'], browserify); gulp.task('re-publish', ['less', 're-locale'], publish); -gulp.task('re-build', ['less', 're-browserify', 're-publish', 'template'], cache); +gulp.task('re-build', [ + 'less', + 're-browserify', + 're-publish', + 'template' +], cache); // Test gulp.task('jshint', jshint);