Skip to content

Instantly share code, notes, and snippets.

@teltploek
Created September 23, 2014 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teltploek/4c34c34cca5b41762d72 to your computer and use it in GitHub Desktop.
Save teltploek/4c34c34cca5b41762d72 to your computer and use it in GitHub Desktop.
// Task: clean
// Description: clean static dir for gulp generated files "rimraf": "^2.2.8",
// -----------------------------------------------------------------------
var frontend = require('../local_modules/frontend-builder.js');
var path = require('path');
var gulp = require('gulp');
var rimraf = require('rimraf');
var project = frontend.getProjectDetails();
gulp.task('clean', function () {
rimraf( path.join(process.cwd(), project.baseDirs.dist), function() { } );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment