generator-angular2gen
Version:
A simple way to learn Angular2 with angular2gen !
19 lines (18 loc) • 486 B
JavaScript
import del from 'del';
import {
TMP_DIR,
TEMPLATE_DIR
} from '../gulp.conf';
/**
* This function deletes:
* <ul>
* <li>Everything in the directory</li>
* <li>The directory itself</li>
* </ul>
*
* @param {String} directory - The directory to delete.
* @param {Function} callback - Callback function.
*/
export function clean (directory, callback) {
return del(['{' + directory + ',' + directory + '/**/*}', TMP_DIR, TEMPLATE_DIR], callback);
}