-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulp.config.js
96 lines (86 loc) · 2.32 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
module.exports = function () {
var src = "./src/";
var app = src + "app/";
var temp = "./.tmp/";
var bowerDirectory = "./bower_components/";
var config = {
temp: temp,
/**
* Files paths
*/
alljs: [
src + "**/*.js",
"./*.js"
],
build: "./build/",
src: src,
css: temp + "*.css",
fonts: [
bowerDirectory + "font-awesome/fonts/**/*.*",
bowerDirectory + "bootstrap/fonts/**/*.*",
],
html: src + "**/*.html",
htmltemplates: app + "**/*.html",
images: src + "img/**/*.*",
assets: src + "assets/**/*.*",
index: src + "index.html",
// app js, with no specs
js: [
app + "**/*.module.js",
app + "**/*.js",
"!" + "**/*.spec.js",
"./lib/*.js",
],
scss: src + "styles/*.scss",
/**
* optimized files
*/
optimized: {
app: "app.js",
lib: "lib.js"
},
/**
* template cache
*/
templateCache: {
file: "templates.js",
options: {
module: "aurignac.core",
root: "app/",
standAlone: false
}
},
/**
* Bower and NPM locations
*/
bower: {
json: require("./bower.json"),
directory: bowerDirectory,
ignorePath: "../../",
overrides: {
"bootstrap": {
"main": [
"./dist/js/bootstrap.js",
"./dist/css/bootstrap.css"
]
},
"font-awesome": {
"main": "./css/font-awesome.css"
},
"jquery": {
"ignore": true
},
"angulartics": {
"main": "src/angulartics.js"
}
}
}
};
config.getBowerFilesDefaultOptions = function () {
var options = {
overrides: config.bower.overrides
};
return options;
};
return config;
};