Menu icon Foundation
Gulp function rimraf and excluded folder

Hi,

I'm trying to integrate Zurb Foundation in CodeIgniter.
I've got a problem with gulp and clean() function.

Actually the entire folder 'dist' is deleted, I would like to exclude a folder inside it.
I've tried to edit the function clean() inside gulpfile.babel.js without success.
Beside this I've read that rimraf() is deprecated and should be replaced by del().

So your help will be very appreciated

// Delete the "dist" folder
// This happens every time a build starts
function clean(done) {
  rimraf(PATHS.dist, done);
}

and I've found this code but without success to integrate it :

var ignore = require('gulp-ignore');
var rimraf = require('gulp-rimraf');

gulp.task('task', function() {
return gulp.src('./**/*.js', { read: false }) // much faster
  .pipe(ignore('node_modules/**'))
  .pipe(rimraf());
});

Foundationcodeignitergulp

Hi,

I'm trying to integrate Zurb Foundation in CodeIgniter.
I've got a problem with gulp and clean() function.

Actually the entire folder 'dist' is deleted, I would like to exclude a folder inside it.
I've tried to edit the function clean() inside gulpfile.babel.js without success.
Beside this I've read that rimraf() is deprecated and should be replaced by del().

So your help will be very appreciated

// Delete the "dist" folder
// This happens every time a build starts
function clean(done) {
  rimraf(PATHS.dist, done);
}

and I've found this code but without success to integrate it :

var ignore = require('gulp-ignore');
var rimraf = require('gulp-rimraf');

gulp.task('task', function() {
return gulp.src('./**/*.js', { read: false }) // much faster
  .pipe(ignore('node_modules/**'))
  .pipe(rimraf());
});
Andrew Cetnarskyj about 2 years ago

I'm having the same issue that any changes I make to the gulpfile just aren't picked up by foundation