1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-12 23:35:56 +00:00

add gulp task for less compilation

This commit is contained in:
Andrew Dolgov
2020-09-17 13:30:52 +03:00
parent 5415a0e033
commit f41fdef389
14 changed files with 47 additions and 10 deletions

24
gulpfile.js Normal file
View File

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