-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
33 lines (27 loc) · 851 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
29
30
31
32
33
'use strict';
var gulp = require('gulp');
require("gulp-include");
var sass = require('gulp-sass');
gulp.task('sass', function () {
gulp.src('./public/styles/sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./public/styles/sass/css'));
});
gulp.task('sass:watch', function () {
console.log("-- gulp is running task 'sass:watch'");
gulp.watch('./public/styles/sass/**/*.scss', ['sass']);
});
gulp.task("scripts", function() {
// console.log("-- gulp is running task 'scripts'");
// gulp.src("./public/index.html")
// .pipe(include({
// extensions: "js",
// hardFail: true,
// includePaths: [
// __dirname + "./public/bower_components",
// __dirname + "./public/scripts/"
// ]
// }))
// .pipe(gulp.dest("dist/js"));
});
gulp.task("develop", ["scripts", "sass:watch"]);