Adam Shaw 7 лет назад
Родитель
Сommit
aa7d4240b2

+ 0 - 0
demos/external-dragging-dragula.html → demos/_external-dragging-dragula.html


+ 0 - 0
demos/external-dragging-jquery-ui.html → demos/_external-dragging-jqueryui.html


+ 3 - 2
tasks/archive.js

@@ -85,7 +85,8 @@ gulp.task('archive:packages', function() {
 
 gulp.task('archive:demos', function() {
   return gulp.src([
-    'demos/**'
+    'demos/**',
+    '!**/_*' // no files that start with underscore
   ])
   .pipe(htmlFileFilter)
   .pipe(demoPathModify)
@@ -98,7 +99,7 @@ gulp.task('archive:demos', function() {
 gulp.task('archive:vendor', [ 'archive:demos' ], function() {
   return gulp.src(
     vendorPaths,
-    { cwd: 'node_modules' }
+    { cwd: 'node_modules' } // a cwd without a base will flatten the paths. what we want
   ).pipe(
     gulp.dest('tmp/' + archiveId + '/packages')
   )