Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
public
/
gulp-tasks
/
Filename :
clean.js
back
Copy
var clean = require("gulp-clean"); module.exports = (gulp, callback) => { const cleanCssTask = function() { return gulp .src(["app-assets/css/**/*.css", "!app-assets/css/themes/**"], { read: false, allowEmpty: true }) .pipe(clean()); }; const cleanCssRtlTask = function() { return gulp .src(["app-assets/css-rtl/**/*.css", "!app-assets/css-rtl/themes/**"], { read: false, allowEmpty: true }) .pipe(clean()); }; const CleanDocumentationTask = function() { return gulp .src(config.html + "/" + myTextDirection + "/" + myLayoutName + "/*.html", { read: false, allowEmpty: true }) .pipe(clean()); }; const cleanHtmlTask = function() { return gulp .src(config.html + "/" + myTextDirection + "/" + myLayoutName + "/**/*.html", { read: false, allowEmpty: true }) .pipe(clean()); }; const cleanJsTask = function() { return gulp .src(config.destination.js, { read: false, allowEmpty: true }) .pipe(clean()); }; const cleanSkHtmlTask = function() { return gulp .src(config.starter_kit + "/" + myTextDirection + "/" + myLayoutName + "/**/*.html", { read: false, allowEmpty: true }) .pipe(clean()); }; // --------------------------------------------------------------------------- // Exports return { css: cleanCssTask, css_rtl: cleanCssRtlTask, documentation: CleanDocumentationTask, html: cleanHtmlTask, js: cleanJsTask, sk_html: cleanSkHtmlTask }; };