Repository navigation
Expand file tree
/
Copy pathbuild.js
More file actions
82 lines (73 loc) · 2.2 KB
/
Copy pathbuild.js
File metadata and controls
82 lines (73 loc) · 2.2 KB
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
var path = require("path");
var fs = require("fs");
var pkg = require("../../package.json");
exports.config = {
// Base directory for the application
"base": __dirname,
// Application name
"name": "Codebox",
// Mode debug
"debug": process.env.CLIENT_DEBUG != null,
// Main entry point for application
"main": "main",
"index": fs.readFileSync(path.resolve(__dirname, "index.html")),
// Build output directory
"build": path.resolve(__dirname, "build"),
// Static files mappage
"static": {
"templates": path.resolve(__dirname, "resources", "templates"),
"images": path.resolve(__dirname, "resources", "images"),
"fonts": path.resolve(__dirname, "resources", "fonts"),
"require-tools": path.resolve(__dirname, "resources", "require-tools")
},
// Stylesheet entry point
"style": path.resolve(__dirname, "resources/stylesheets/main.less"),
// Modules paths
'paths': {
'moment': 'vendors/moment'
},
"shim": {
'resources/resources': {
deps: [
'vendors/bootstrap/carousel',
'vendors/bootstrap/dropdown',
'vendors/bootstrap/button',
'vendors/bootstrap/modal',
'vendors/bootstrap/affix',
'vendors/bootstrap/alert',
'vendors/bootstrap/collapse',
'vendors/bootstrap/tooltip',
'vendors/bootstrap/popover',
'vendors/bootstrap/scrollspy',
'vendors/bootstrap/tab',
'vendors/bootstrap/transition'
]
},
'vendors/socket.io': {
exports: 'io'
},
'vendors/socket.io-stream': {
exports: 'ss'
},
'vendors/crypto': {
exports: 'CryptoJS'
},
'vendors/diff_match_patch': {
exports: 'diff_match_patch'
},
'vendors/mousetrap': {
exports: 'Mousetrap'
},
'vendors/filer': {
exports: 'Filer',
deps: [
'vendors/idb.filesystem'
]
}
},
'args': {
'version': pkg.version
},
'options': {
}
};