]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
In customizer Gulp task, ensure all JavaScript files are properly included
authorGeoff Kimball <geoff@zurb.com>
Mon, 28 Mar 2016 20:19:15 +0000 (13:19 -0700)
committerGeoff Kimball <geoff@zurb.com>
Mon, 28 Mar 2016 20:19:15 +0000 (13:19 -0700)
gulp/customizer.js
package.json

index c800994cddbecbb8aa317e7ffe8c0a6b4487e856..5a7e4d30605150a2f0fe68ae5ea55e04437f060d 100644 (file)
@@ -1,3 +1,4 @@
+var addSrc = require('gulp-add-src');
 var babel = require('gulp-babel');
 var concat = require('gulp-concat');
 var cssnano = require('gulp-cssnano');
@@ -75,7 +76,7 @@ gulp.task('customizer:javascript', ['customizer:loadConfig'], function() {
     .pipe(gulp.dest(path.join(OUTPUT_DIR, 'js/vendor')))
     .pipe(uglify())
     .pipe(rename('foundation.min.js'))
-    .pipe(gulp.src([
+    .pipe(addSrc([
       'node_modules/jquery/dist/jquery.js',
       'node_modules/what-input/what-input.js'
     ]))
index fc833b5e4dfff9ee37c2945f49fc74eb52d72820..f90ec036711a373a29f667331b14bb7623b18e33 100644 (file)
@@ -39,6 +39,7 @@
     "corejs-typeahead": "corejavascript/typeahead.js",
     "foundation-docs": "zurb/foundation-docs",
     "gulp": "^3.8.10",
+    "gulp-add-src": "^0.2.0",
     "gulp-autoprefixer": "^2.3.1",
     "gulp-babel": "^6.1.1",
     "gulp-cache-bust": "^1.0.2",