Add customizable initiative.

This commit is contained in:
Matt Smith 2020-07-27 18:14:08 +00:00 committed by Andrew
parent c2d939aa1c
commit ba02ddee4f
6 changed files with 122 additions and 11 deletions

32
gulpfile.js Normal file
View file

@ -0,0 +1,32 @@
const gulp = require('gulp');
const less = require('gulp-less');
/* ----------------------------------------- */
/* Compile LESS
/* ----------------------------------------- */
const SIMPLE_LESS = ["styles/*.less"];
function compileLESS() {
return gulp.src("styles/simple.less")
.pipe(less())
.pipe(gulp.dest("./styles/"))
}
const css = gulp.series(compileLESS);
/* ----------------------------------------- */
/* Watch Updates
/* ----------------------------------------- */
function watchUpdates() {
gulp.watch(SIMPLE_LESS, css);
}
/* ----------------------------------------- */
/* Export Tasks
/* ----------------------------------------- */
exports.default = gulp.series(
gulp.parallel(css),
watchUpdates
);
exports.css = css;