-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild-js.js
113 lines (107 loc) · 3.42 KB
/
build-js.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
({
shim : {
jquery : {
exports : '$'
},
underscore : {
exports : '_'
},
lodash : {
exports : 'lodash'
},
'underscore-wrapper' : {
deps : ['underscore', 'lodash'],
exports : '_'
},
numeral : {
exports : 'numeral'
},
moment : {
exports : 'moment'
},
bootstrap : {
deps : ['jquery']
},
parse : {
deps : ['jquery', 'underscore-wrapper'],
exports : 'Parse'
},
'mCustomScrollbar': {
deps : ['jquery']
},
'jquery-validation': {
deps : ['jquery'],
exports : '$.validator'
},
'jquery-validation.defaults': {
deps : ['jquery-validation']
},
'cke-editor': {
deps : ['jquery']
},
'cke-editor.adapters': {
deps : ['cke-editor']
},
jszip : {
exports : 'JSZip'
},
'jszip-wrapper': {
deps : ['jszip'],
},
'excel-builder' : {
deps : ['underscore-wrapper', 'jszip-wrapper'],
exports : 'ExcelBuilder'
}
},
paths : {
// App
router : 'app/router',
classes : 'app/classes',
entities : 'app/entities',
views : 'app/views',
controls : 'app/controls',
templates : 'app/templates',
// Libs
underscore : 'libs/underscore/underscore',
lodash : 'libs/lodash/lodash.min',
numeral : 'libs/numeral/numeral',
moment : 'libs/moment/moment',
parse : 'libs/parse/parse-1.5.0',
'underscore-wrapper' : 'libs/underscore/underscore-wrapper',
'underscore+' : 'libs/underscore/extension',
'parse+' : 'libs/parse/extension',
'jszip' : 'libs/jszip/jszip.min',
'jszip-wrapper' : 'libs/jszip/jszip-wrapper',
// Theme
'jquery' : 'assets/plugins/jquery/jquery-1.11.1.min',
'bootstrap' : 'assets/plugins/bootstrap/js/bootstrap',
'layout' : 'assets/theme/layout',
'noty' : 'assets/plugins/noty/jquery.noty.packaged',
'jquery-validation' : 'assets/plugins/jquery-validation/jquery.validate',
'jquery-validation.defaults' : 'assets/plugins/jquery-validation/defaults',
'select2' : 'assets/plugins/select2/select2',
'autosize' : 'assets/plugins/autosize/autosize.min',
'jquery.magnific-popup' : 'assets/plugins/magnific/jquery.magnific-popup',
'filedrop-iterate' : 'assets/plugins/filedrop-iterate/jquery.filedrop-iterate',
'jquery-ui' : 'assets/plugins/jquery-ui/jquery-ui-1.10.4.min',
'jquery.nestable' : 'assets/plugins/jquery-ui/jquery.nestable',
'bootstrap-datepicker' : 'assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker',
'bootstrap-editable' : 'assets/plugins/bootstrap-editable/js/bootstrap-editable',
'jquery.bootstrap-touchspin' : 'assets/plugins/touchspin/jquery.bootstrap-touchspin',
'icheck' : 'assets/plugins/icheck/icheck',
'jquery.cookies' : 'assets/plugins/jquery-cookies/jquery.cookies',
'mCustomScrollbar' : 'assets/plugins/mcustom-scrollbar/jquery.mCustomScrollbar.concat.min',
'magnific-popup' : 'assets/plugins/magnific-popup/jquery.magnific-popup',
'jquery.sortable' : 'assets/plugins/sortable/jquery.sortable',
'cke-editor' : 'assets/plugins/cke-editor/ckeditor',
'cke-editor.adapters' : 'assets/plugins/cke-editor/adapters/jquery',
'svg' : 'assets/plugins/svg/svg.min',
'jstree' : 'assets/plugins/jstree/jstree.min',
'excel-builder' : '//assets/plugins/excel-builder/excel-builder.dist'
},
baseUrl : './src/',
name : 'main',
out : './public/main.js',
optimize: 'uglify',
preserveLicenseComments: false
})