From fb9ece22872a1f91ec7b8a4c7c9422f5cac8c468 Mon Sep 17 00:00:00 2001 From: sillitoe Date: Wed, 20 Apr 2016 12:08:15 +0100 Subject: [PATCH] move template substitutions to top of the file I think it improves readability to declare all the local template variables at the top of the file - also helps to avoid issues on refactoring / renaming projects. --- templates/gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/gulpfile.js b/templates/gulpfile.js index 37dc20a..81e83e8 100644 --- a/templates/gulpfile.js +++ b/templates/gulpfile.js @@ -10,6 +10,7 @@ // browserify build config var buildDir = "build"; var outputFile = "<%= appNameShort %>"; +var appNameSlug = "<%= appNameSlug %>"; // packages var gulp = require('gulp'); @@ -133,7 +134,7 @@ gulp.task('build-browser',['init'], function() { // browserify min gulp.task('build-browser-min',['init'], function() { - var b = browserify({hasExports: true, standalone: "<%= appNameSlug %>"}); + var b = browserify({hasExports: true, standalone: appNameSlug}); exposeBundles(b); return b.bundle() .pipe(source(outputFile + ".min.js"))