-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulp.config.js
99 lines (80 loc) · 1.74 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
module.exports = function(){
var src = './src/';
var build = './build/';
var temp = './.tmp/';
var config = {
/* Main Paths */
src: src,
temp: temp,
build: build,
appUtilities: [
src + 'favicon.ico',
src + 'manifiest.webapp',
src + 'manifiest.json',
src + 'robots.txt',
src + 'browserconfig.xml',
src + 'manifiest.webapp',
src + 'Web.config',
],
/* Files Paths */
index : src + 'index.html',
allJs: [
src + 'app/**/*.js'
],
allLess: src + 'styles/*.less',
appJs: [
'app/**/*.module.js',
'app/**/*.service.js',
'app/**/*.controller.js',
'app/**/*.directive.js',
'app/**/*.config.js'
],
images: src + 'images/*.*',
css: 'styles.css',
fonts: [
src + 'vendor/bootstrap/fonts/*.*'
],
less:
src + 'styles/styles.less',
html: [
src + 'app/**/*.html'
],
templates: src + 'app/**/*.html',
/**
* optimized files
*/
optimized: {
app: 'app.js',
lib: 'lib.js'
},
/**
* template cache
*/
templateCache: {
file: 'templates.js',
options: {
module: 'app.core',
standAlone: false,
root: 'app'
},
path: 'js'
},
defaultPort: 3000
};
//wiredep
config.wiredepOptions = function()
{
var options = {
bowerJson: require('./bower.json'),
directory: src + 'vendor',
exclude: [
'vendor/jquery/dist/jquery.js',
'vendor/bootstrap/dist/js/bootstrap.js'
],
cwd: src,
ignorePath: '../..'
};
return options;
};
return config;
};