-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
96 lines (89 loc) · 2.49 KB
/
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
module.exports = function () {
var port = process.env.PORT || 3000,
env = process.env.NODE_ENV || "dev";
var root = "./",
src = root + "src/",
client = src + "client/",
clientApp = client + "app/",
css = client + "css/",
styles = client + "styles/",
images = client + "images/",
server = src + "server/",
build = root + "build/",
temp = root + "temp/",
nodeModules = root + "node_modules/",
bowerComponents = root + "bower_components/",
ignore = [nodeModules, bowerComponents];
var config = {
// Environment
env: env,
port: port,
// Paths
root: root,
src: src,
temp: temp,
build: build,
css: css,
fonts: bowerComponents + "font-awesome/fonts/**/*.*",
html: clientApp + "**/*.html",
htmlTemplates: clientApp + "**/*.html",
images: images + "**/*.*",
client: client,
clientApp: clientApp,
styles: styles + "**/*.styl",
server: server,
// Files
nodeServer: server + "server.js",
index: client + "index.html",
siteCss: css + "site.css",
// JavaScripts
allJs: [
clientApp + "**/*.js",
client + "**/*.js",
root + "*.js"
],
js: [
clientApp + "**/*.module.js",
clientApp + "**/*.service.js",
clientApp + "**/*.js",
client + "**/*.js",
],
// Optimized files
optimized: {
app: "app.js",
lib: "lib.js"
},
// Template Cache
templateCache: {
file: "templates.js",
options: {
module: "app.core",
standAlone: false,
root: "app/"
}
},
// Bower and NPM
nodeModules: nodeModules,
bowerComponents: bowerComponents,
bower: {
json: root + "bower.json",
directory: bowerComponents,
ignorePath: "../.."
},
packages: [
"./package.json",
"./bower.json"
],
// Browser Sync
browserReloadDelay: 1000
};
config.getWiredepDefaultOptions = function () {
var options = {
json: config.bower.json,
directory: config.bower.directory,
ignorePath: config.bower.ignorePath
};
return options;
};
return config;
};