adding new gulp list task thx @elpeyotl

adding new „gulp dist“ task. It creates a new /dist folder with all
files you need to publish/upload to your live server
This commit is contained in:
koenemann 2016-09-02 15:21:26 +02:00
parent 18027b7d7d
commit bbe512b19b
2 changed files with 10 additions and 23 deletions

25
.gitignore vendored
View File

@ -1,27 +1,10 @@
.brackets.json
.idea
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/encodings.xml
*.xml
*.iml
.idea/watcherTasks.xml
.idea/watcherTasks.xml
.sass-cache
bower_components bower_components
node_modules node_modules
understrap.zip understrap.zip
src
dist

View File

@ -77,8 +77,6 @@ gulp.task('watch-scss', ['browser-sync'], function () {
}); });
// Run: // Run:
// gulp sass // gulp sass
// Compiles SCSS files in CSS // Compiles SCSS files in CSS
@ -218,3 +216,9 @@ gulp.task('copy-assets', function() {
gulp.src(basePaths.bower + 'tether/dist/css/*.css') gulp.src(basePaths.bower + 'tether/dist/css/*.css')
.pipe(gulp.dest(basePaths.dev + '/css')); .pipe(gulp.dest(basePaths.dev + '/css'));
}); });
// Run // gulp dist // Copies the files to the dist folder for distributon
gulp.task('dist', function() {
gulp.src(['!sass','!bower_components', '!node_modules','!src','!dist','!bower.json', '!gulpfile.js', '!package.json', '*'])
.pipe(gulp.dest('dist/'))
});