forked from Assembly-WebCrew/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
39 lines (31 loc) · 1012 Bytes
/
Copy pathgulpfile.js
File metadata and controls
39 lines (31 loc) · 1012 Bytes
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
'use strict';
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var paths = gulp.paths = {
src: 'frontend/src',
statics: './frontend/static',
templates: './templates'
};
gulp.watchlist = [
{ path: [
paths.src + '/scripts/**/*.js',
paths.src + '/components/**/*.js'
], tasks: ['scripts']
},
{ path: 'bower_components/**/*.js', tasks: ['vendor-scripts'] },
{ path: [
paths.src + '/styles/**/*.scss',
paths.src + '/components/**/*.scss',
'!' + paths.src + '/styles/**/vendor.scss'
], tasks: ['styles']
},
{ path: paths.src + '/styles/**/vendor.scss', tasks: ['vendor-styles', 'styles'] },
{ path: paths.src + '/templates/**/*.html', tasks: ['templates'] },
{ path: paths.src + '/components/**/*.html', tasks: ['angular-templates'] }
];
gulp.showOutputFiles = true;
gulp.handleError = function (error) {
$.util.log($.util.colors.red('Error'), error.message);
};
require('require-dir')('./gulp');
gulp.task('default', ['watch']);