-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulp.config.js
71 lines (67 loc) · 1.83 KB
/
gulp.config.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
module.exports = function () {
'use strict';
var appDir = 'src/';
var buildProd = 'builds/prod/';
var buildASIS = 'builds/asis/';
var buildDev = 'builds/develop/';
var buildTemp = 'builds/temp/';
var config = {
serving:false,
src: appDir,
temp: buildTemp,
dest: buildDev,
changeToDev: function() {
this.dest = buildDev;
},
changeToProd: function() {
this.dest = buildProd;
},
changeToASIS: function() {
this.dest = buildASIS;
},
jsToVet: [
appDir + 'js/**/*.js',
'./*.js'
],
sassToCompile: appDir + 'sass/**/*.scss',
bootstrapPath: 'node_modules/bootstrap-sass/assets/stylesheets/bootstrap/',
vendorJs: [
],
angularJs: [
appDir + 'js/app.js',
appDir + 'js/route/*.js',
appDir + 'js/services/*.js',
appDir + 'js/controllers/*.js',
appDir + 'js/directives/*.js'
],
resourcesJs: [
appDir + 'resources/jquery.min.js',
appDir + 'resources/angular.min.js',
appDir + 'resources/angular-route.min.js',
appDir + 'resources/angular-cookies.min.js',
'node_modules/bootstrap-sass/assets/javascripts/bootstrap.min.js',
appDir + 'resources/ui-bootstrap-tpls-1.1.2.min.js',
appDir + 'resources/moltin.min.js',
appDir + 'resources/underscore-min.js'
],
tempSources: [
buildTemp + 'css/**/*.css',
appDir + 'data/**/*.js',
buildTemp + 'js/**/*.js'
],
injectSources: [
buildDev + '*.css',
buildDev + 'productData.js',
buildDev + 'resources.js',
buildDev + 'templates.js',
buildDev + 'main.js'
],
views: appDir + 'views/**/*.html',
fonts: [appDir + 'fonts/*.*', '!' + appDir + 'fonts/*.txt'],
images: [appDir + 'images/*.*', '!' + appDir + 'images/*.txt'],
assets: [appDir + 'assets/*.*', '!' + appDir + 'assets/*.txt'],
sassConfigPartials: appDir + 'sass/partials',
styleConfigFile: appDir + 'sass/config/style.config.js'
};
return config;
};