This repository was archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.js
More file actions
46 lines (40 loc) · 1.26 KB
/
build.js
File metadata and controls
46 lines (40 loc) · 1.26 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
({
// the location of all the source files
appDir: 'build',
// the path to begin looking for modules. this is relative to appDir
baseUrl: '.',
// the directory to write the compiled scripts. this will emulate the
// directory structure of appDir
dir: 'dist/dev',
// explicitly specify the optimization method
optimize: 'none',
// no CSS optimization is necessary since we use the sass optimization tool
optimizeCss: 'none',
// everything is namespaced within the code, therefore this must be
// here to route 'cilantro' to the baseUrl to ensure the "url" routes
// to the correct file system location.
paths: {
'jquery': 'empty:',
'backbone': 'empty:',
'zepto': 'empty:'
},
// an array of modules to compile
modules: [{
name: 'synapse'
}, {
name: 'synapse/jquery',
exclude: ['synapse/core', 'jquery']
}, {
name: 'synapse/zepto',
exclude: ['synapse/core', 'zepto']
}, {
name: 'synapse/backbone-model',
exclude: ['synapse/core', 'backbone']
}, {
name: 'synapse/backbone-view',
exclude: ['synapse/core', 'backbone']
}, {
name: 'synapse/object',
exclude: ['synapse/core']
}]
})