summaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-17 13:30:52 +0300
committerAndrew Dolgov <[email protected]>2020-09-17 13:30:52 +0300
commitf41fdef38982f0acc895f312f58d14704a8a9f0f (patch)
treedc7f0a7d02f2a89375d4b1cadfd023d3d631a1c2 /gulpfile.js
parent5415a0e033bb2c6ad2530d4e52ac602eecbbd5ae (diff)
add gulp task for less compilation
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js
new file mode 100644
index 000000000..97f7443d1
--- /dev/null
+++ b/gulpfile.js
@@ -0,0 +1,24 @@
+// Less configuration
+const gulp = require('gulp');
+const less = require('gulp-less');
+
+gulp.task('less', function(cb) {
+ gulp
+ .src(['themes/compact.less', 'themes/compact_night.less',
+ 'themes/light.less', 'themes/night_blue.less', 'themes/night.less'])
+ .pipe(less())
+ .pipe(
+ gulp.dest(function(f) {
+ return f.base;
+ })
+ );
+ cb();
+});
+
+gulp.task(
+ 'default',
+ gulp.series('less', function(cb) {
+ gulp.watch(['themes/*.less', 'themes/*/*.less'], gulp.series('less'));
+ cb();
+ })
+);