diff options
| author | Cristiano Almeida <[email protected]> | 2018-10-14 10:44:38 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-10-14 10:44:38 +0100 |
| commit | 672971c9393925a62193b51dab14b8120d2488a1 (patch) | |
| tree | d6ac42ff1dc75cb376a809cf46b40d0ed8e03fac /gulpfile.js | |
| parent | 2dd82ebe8abd6d61c70be0feb14ebe6fe45c858a (diff) | |
| parent | 4d432861ab4cabb44cce513df1e4a46cb23f0e9e (diff) | |
| download | protonmail-themes-3.14.19.tar.xz protonmail-themes-3.14.19.zip | |
Merge pull request #14 from csalmeida/gulpv3.14.19
Replaced Webpack with Gulp. Theme updates.
Diffstat (limited to 'gulpfile.js')
| -rw-r--r-- | gulpfile.js | 24 |
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'])) |
