-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
28 lines (21 loc) · 803 Bytes
/
index.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
var gulp = require('gulp'),
config = require('./src/Config'),
js = require('./src/Tasks/Js'),
mixer = require('./src/Mixer.js'),
sass = require('./src/Tasks/Sass'),
styles = require('./src/Tasks/Styles');
require('./src/bootstrap');
module.exports = recipe => {
recipe(mixer);
require('./src/RewritePaths');
let tasks = ['sass', 'styles', 'js'];
gulp.task('sass', sass);
gulp.task('styles', styles);
gulp.task('js', js);
gulp.task('default', tasks);
gulp.task('watch', tasks, () => {
gulp.watch(`${config.paths.root}/${config.paths.styles}/**/*`, ['styles']);
gulp.watch(`${config.paths.root}/${config.paths.sass}/**/*`, ['sass']);
gulp.watch(`${config.paths.root}/${config.paths.js}/**/*`, ['js']);
});
};