0.0.2 • Published 4 years ago

@tgrwb/gulp-clean v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@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(
		...,
		...,
		...
	)
);