-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
39 lines (28 loc) · 1.01 KB
/
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
34
35
36
37
38
39
var path = require('path');
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
function getTask(task) {
return require('./gulp/tasks/' + task)(gulp, plugins);
}
gulp.task('views', getTask('views'));
gulp.task('images', getTask('images'));
gulp.task('fonts', getTask('fonts'));
gulp.task('templates', getTask('templates'));
gulp.task('lang', getTask('lang'));
gulp.task('extras', getTask('extras'));
gulp.task('styles', getTask('styles'));
gulp.task('build', ['styles', 'views', 'images', 'fonts', 'templates', 'lang', 'extras']);
gulp.task('clear-cache', function() {
$.cache.clearAll();
});
gulp.task('clear', function() {
return gulp.src(['assets'], {
read: false
}).pipe($.clean());
});
gulp.task('watch', function() {
//gulp.watch('assets_dev/static/components/**/*.js', ['scripts']);
//gulp.watch('assets_dev/static/components/**/*.ts', ['typescript']);
gulp.watch('assets_dev/static/components/**/*.{scss,_scss}', ['styles']);
gulp.watch('bower.json', ['wiredep']);
});