forked from CyberAgent/beez
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.js
65 lines (62 loc) · 1.57 KB
/
build.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
({
appDir: "./s",
baseUrl: ".",
dir: "./dist",
optimize: 'none',
paths: {
"backbone" : "../vendor/backbone",
"underscore": "../vendor/underscore",
"zepto" : "../vendor/zepto",
"handlebars": "../vendor/handlebars.runtime",
"beez.core" : "../libs/beez-core/release/beez.core",
"beez.mvcr" : "../libs/beez-mvcr/release/beez.mvcr",
"beez.ua" : "../libs/beez-ua/release/beez.ua",
"beez.utils": "../libs/beez-utils/release/beez.utils",
"beez.i18n" : "../libs/beez-i18n/release/beez.i18n",
"beez" : "./beez/index"
},
shim: {
backbone: {
deps: ["underscore", "zepto"],
exports: "Backbone"
},
zepto: {
exports: "$"
},
underscore: {
exports: "_"
},
handlebars: {
exports: "Handlebars"
},
"beez.mvcr": {
deps: ["beez.core", "beez.ua", "beez.utils", "beez.i18n"]
},
"beez.utils": {
deps: ["beez.ua"]
},
"beez.i18n": {
deps: ["beez.core", "beez.utils"]
},
"beez.ua": {
}
},
modules: [
{
name: "beez",
include: [
"beez.core",
"beez.mvcr",
"beez.ua",
"beez.utils",
"beez.i18n"
],
exclude: [
"backbone",
"underscore",
"zepto",
"handlebars"
]
}
]
})