@patternfly/pfe-sass
Advanced tools
Comparing version 1.5.1 to 1.6.0
const { | ||
task, | ||
src, | ||
dest, | ||
watch, | ||
parallel, | ||
series | ||
} = require("gulp"); | ||
const pfelementPackage = require("./package.json"); | ||
// const pfelementPackage = require("./package.json"); | ||
// const version = pfelementPackage.version; | ||
@@ -20,32 +18,27 @@ // const elementName = pfelementPackage.pfelement.elementName; | ||
const clean = require("gulp-clean"); | ||
const del = require("del"); | ||
const sassdoc = require("sassdoc"); | ||
// Delete the demo assets | ||
task("clean", () => { | ||
return src(["demo/*.html", "demo/assets"], { | ||
cwd: paths.compiled, | ||
read: false, | ||
allowEmpty: true | ||
}).pipe(clean()); | ||
}); | ||
task("clean", () => del(["demo/*.html", "demo/assets"], { | ||
cwd: paths.compiled, | ||
read: false, | ||
allowEmpty: true | ||
})); | ||
task("build:sassdoc", () => { | ||
return src(["{extends,functions,maps,mixins,variables}/_*.scss", "pfe-sass.scss"], { | ||
cwd: paths.compiled, | ||
allowEmpty: true | ||
}).pipe(sassdoc()); | ||
}); | ||
task("build:sassdoc", () => src(["{extends,functions,maps,mixins,variables}/_*.scss", "pfe-sass.scss"], { | ||
cwd: paths.compiled, | ||
allowEmpty: true | ||
}).pipe(sassdoc())); | ||
task("build", series("clean", "build:sassdoc")); | ||
task("watch", () => watch( | ||
["{extends,functions,maps,mixins,variables}/_*.scss", "pfe-sass.scss"], { | ||
task("watch", () => { | ||
watch(["{extends,functions,maps,mixins,variables}/_*.scss", "pfe-sass.scss"], { | ||
cwd: paths.compiled | ||
}, | ||
series("build:sassdoc") | ||
)); | ||
}, series("build:sassdoc")); | ||
}); | ||
task("dev", parallel("build", "watch")); | ||
task("dev", series("build", "watch")); | ||
task("default", series("build")); |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"publishConfig": { | ||
@@ -68,3 +68,3 @@ "access": "public" | ||
}, | ||
"gitHead": "188a5eb938aeec3d47bea1fd986caddc9737ead7" | ||
"gitHead": "d8a0430405a01f6c93e8de7d2f0274e8e26b7aff" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
880239
805