0.0.2 • Published 4 years ago
@tgrwb/gulp-clean v0.0.2
@tgrwb/gulp-version
Easy directory cleanup
install
npm i @tgrwb/gulp-clean
gulpfile.js
const clean = require('@tgrwb/gulp-clean');
tgrwb.gulp.js (optional)
module.exports = {
dirDist: 'your/dist_directory'
};
tgrwb.gulp.clean.js (optional)
module.exports = (baseParams)=>{
const {dirDist} = baseParams;
return {
globs: [
`${dirDist}/*`
]
};
};
Usage
const clean = require('@tgrwb/gulp-clean');
exports.clean = clean;
or
const {series, parallel} = require('gulp');
const clean = require('@tgrwb/gulp-clean');
exports.build = series(
clean,
parallel(
...,
...,
...
),
parallel(
...,
...,
...
)
);
0.0.2
4 years ago