forked from stevesloan/litecoin.org
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathGulpfile.js
26 lines (21 loc) · 908 Bytes
/
Gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
'use strict';
const gulp = require('gulp');
const sass = require('gulp-sass')(require('sass'));
const concat = require('gulp-concat');
const cleanCSS = require('gulp-clean-css');
gulp.task('sass', function () {
return gulp.src('./themes/hugo-litecoin-theme/static/sass/**/*.sass')
.pipe(sass().on('error', sass.logError))
.pipe(cleanCSS({compatibility: 'ie8'}))
.pipe(gulp.dest('./themes/hugo-litecoin-theme/static/css'));
});
gulp.task('config', function() {
return gulp.src(['./config_partials/base.toml', './config_partials/*.toml'])
.pipe(concat('config.toml'))
.pipe(gulp.dest('.'));
});
gulp.task('sass:watch', function () {
gulp.watch(['./themes/hugo-litecoin-theme/static/sass/*.sass',
'./themes/hugo-litecoin-theme/static/sass/*.scss'], gulp.series('sass'));
gulp.watch('./config_partials/*.toml', gulp.series('config'));
});