-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.js
92 lines (82 loc) · 2.64 KB
/
example.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
(function () {
'use strict';
var root = this,
require = root.require;
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',
//'jquery.ie.cors': './lib/jquery.ie.cors',
'chiropractor': 'src/main',
'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': './'
},
urlArgs: "bust="+(new Date()).getTime(),
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' }
},
deps: [
//'jquery',
'hbs',
'jquery'
//'jquery.cors/jquery.cors'
//'jquery.ie.cors'
],
enforceDefine: true
});
define(function (require) {
var example = require('src/example');
});
}).call(this);