forked from const-se/selectize-bootstrap4-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
28 lines (24 loc) · 839 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
27
28
const gulp = require('gulp');
const pug = require('gulp-pug');
const sass = require('gulp-sass')(require('sass'));
gulp.task('sass', () => {
return gulp
.src('scss/selectize.bootstrap4.scss')
.pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError))
.pipe(gulp.dest('dist/css'));
});
gulp.task('examples-selectize', () => {
return gulp
.src('node_modules/selectize/dist/js/standalone/selectize.js')
.pipe(gulp.dest('dist/js'));
});
gulp.task('examples-html', () => {
return gulp
.src('template/*.pug')
.pipe(pug({pretty: true}))
.pipe(gulp.dest('dist'));
});
gulp.task('default', gulp.series('sass', 'examples-selectize', 'examples-html'), () => {
gulp.watch(['scss/*.scss'], ['sass']);
gulp.watch(['template/*.pug'], ['examples-html']);
});