-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.js
82 lines (75 loc) · 2.29 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
78
79
80
81
82
require.config({
packages: [{
name: 'chiropractor',
location: 'src'
}],
hbs: {
disableI18n: true,
disableHelpers: true
},
paths: {
'handlebars': 'bower_components/require-handlebars-plugin/Handlebars',
'hbs': 'bower_components/require-handlebars-plugin/hbs',
'i18nprecompile': 'bower_components/require-handlebars-plugin/hbs/i18nprecompile',
'text': 'bower_components/requirejs-plugins/lib/text',
'json': 'bower_components/requirejs-plugins/src/json',
'json2': 'bower_components/require-handlebars-plugin/hbs/json2',
'json3': 'bower_components/json3/lib/json3',
'underscore': 'bower_components/underscore/underscore',
'backbone': 'bower_components/backbone-amd/backbone',
'jquery': 'bower_components/jquery/jquery',
'jquery.cookie': 'bower_components/jquery.cookie/jquery.cookie',
'backbone.subroute': 'bower_components/backbone.subroute/backbone.subroute',
'backbone.validation': 'bower_components/backbone-validation/dist/backbone-validation-amd',
'backbone.deep.model': 'bower_components/backbone-deep-model/src/deep-model',
'underscore.mixin.deepextend': './lib/underscore.mixin.deepextend',
'json-ie7': './lib/JSON',
'console-shim': 'bower_components/console-shim/console-shim'
//'easyxdm': 'chiropractor-path/jquery.cors/easyxdm/easyxdm',
//'jquery.cors': 'jquery.cors',
//'chiropractor-path': './'
},
skipModuleInsertion: false,
wrap: true,
pragmasOnSave: {
excludeHbsParser: true,
excludeHbs: true,
excludeAfterBuild: true
},
shim: {
'backbone': {
deps: ['jquery', 'underscore'],
exports: 'Backbone'
},
'underscore': {
exports: '_'
},
'backbone.deep.model': {
deps: ['underscore.mixin.deepextend', 'backbone', 'underscore'],
exports: 'Backbone.DeepModel'
},
'json-ie7': {
exports: 'JSON'
},
'console-shim': {
exports: 'console'
},
'jquery.cookie': {
deps: ['jquery'],
exports: 'jQuery.cookie'
},
'json2': { exports: 'JSON' }
//'chiropractor-path/jquery.cors/easyxdm/easyxdm': { exports: 'easyXDM' },
//'easyxdm': {
// deps: ['json2'],
//exports: 'easyXDM'
// }
},
deps: [
'jquery',
//jquery.cors/jquery.cors',
'hbs',
'underscore'
],
enforceDefine: true
});