aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
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 0000000..3d00c12
--- /dev/null
+++ b/gulpfile.js
@@ -0,0 +1,24 @@
+const gulp = require('gulp')
+const sass = require('gulp-sass')
+
+const themesPath = './templates/*/*.scss'
+const blueprintPath = './templates/*.scss'
+const ignoredFiles = '!./templates/theme_example/*.scss'
+
+
+/*
+ Compiles SCSS themes into CSS
+*/
+gulp.task('styles', () => {
+ return gulp.src([themesPath, ignoredFiles])
+ .pipe(sass().on('error', sass.logError))
+ .pipe(gulp.dest('themes'))
+})
+
+/* Registers changes in scrips and sass files. */
+gulp.task('watch', () => {
+ gulp.watch([themesPath, blueprintPath, ignoredFiles], gulp.series('styles'));
+})
+
+/* Compiles all files. */
+gulp.task('build', gulp.series(['styles']))