forked from B3ST/B3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.js
77 lines (73 loc) · 2.65 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
66
67
68
69
70
71
72
73
74
75
76
77
/**
* RequireJS build configuration.
*/
({
baseUrl: 'app/scripts',
dir: 'dist/scripts',
optimize: 'uglify2',
findNestedDependencies: true,
removeCombined: true,
preserveLicenseComments: false,
generateSourceMaps: false,
keepBuildDir: false,
wrapShim: true,
paths: {
'jquery': '../../lib/jquery',
'underscore': '../../lib/lodash.compat',
'backbone': '../../lib/backbone',
'backbone.wreqr': '../../lib/backbone.wreqr',
'backbone.babysitter': '../../lib/backbone.babysitter',
'marionette': '../../lib/backbone.marionette',
'dust': '../../lib/dust-full.min',
'dust.helpers': '../../lib/dust-helpers.min',
'dust.marionette': '../../lib/backbone.marionette.dust',
'backbone.validateAll': '../../lib/Backbone.validateAll.min',
'bootstrap.affix': '../../lib/affix',
'bootstrap.alert': '../../lib/alert',
'bootstrap.button': '../../lib/button',
'bootstrap.carousel': '../../lib/carousel',
'bootstrap.collapse': '../../lib/collapse',
'bootstrap.dropdown': '../../lib/dropdown',
'bootstrap.tab': '../../lib/tab',
'bootstrap.transition': '../../lib/transition',
'bootstrap.scrollspy': '../../lib/scrollspy',
'bootstrap.modal': '../../lib/modal',
'bootstrap.tooltip': '../../lib/tooltip',
'bootstrap.popover': '../../lib/popover',
'text': '../../lib/text',
'moment': '../../lib/moment',
'i18n': '../../lib/i18n'
},
shim: {
'backbone': ['underscore'],
'marionette': ['underscore', 'backbone', 'jquery'],
'dust.helpers': ['dust'],
'dust.marionette': ['marionette', 'dust'],
'backbone.validateAll': ['backbone'],
'bootstrap.affix': ['jquery'],
'bootstrap.alert': ['jquery'],
'bootstrap.button': ['jquery'],
'bootstrap.carousel': ['jquery'],
'bootstrap.collapse': ['jquery'],
'bootstrap.dropdown': ['jquery'],
'bootstrap.tab': ['jquery'],
'bootstrap.transition': ['jquery'],
'bootstrap.scrollspy': ['jquery'],
'bootstrap.modal': ['jquery'],
'bootstrap.tooltip': ['jquery'],
'bootstrap.popover': ['jquery', 'bootstrap.tooltip'],
'templates': ['dust'],
'dust': {'exports': 'dust'}
},
modules: [
{
name: 'main',
exclude: [
'infrastructure'
]
},
{
name: 'infrastructure'
}
]
})