-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequire_config.js
116 lines (109 loc) · 3.44 KB
/
require_config.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
114
115
116
var require = {
baseUrl: 'bower_components',
deps: [
'es6-promise/promise',
'fetch/fetch'
],
paths: {
// LaxarJS Core:
requirejs: 'requirejs/require',
text: 'requirejs-plugins/lib/text',
json: 'requirejs-plugins/src/json',
angular: 'angular/angular',
'angular-mocks': 'angular-mocks/angular-mocks',
'angular-route': 'angular-route/angular-route',
'angular-sanitize': 'angular-sanitize/angular-sanitize',
jjv: 'jjv/lib/jjv',
jjve: 'jjve/jjve',
'laxar': 'laxar/dist/laxar',
'laxar/laxar_testing': 'laxar/dist/laxar_testing',
'laxar-patterns': 'laxar-patterns/dist/laxar-patterns',
'laxar-uikit': 'laxar-uikit/dist/laxar-uikit',
'laxar-uikit/controls': 'laxar-uikit/dist/controls',
'laxar-path-default-theme': 'laxar-uikit/dist/themes/default.theme',
// LaxarJS Core Testing:
jasmine: 'jasmine/lib/jasmine-core/jasmine',
q_mock: 'q_mock/q',
// LaxarJS Patterns:
'json-patch': 'fast-json-patch/src/json-patch-duplex',
// LaxarJS UIKit:
jquery: 'jquery/dist/jquery',
jquery_ui: 'jquery_ui/ui',
'bootstrap-tooltip': 'bootstrap-sass-official/assets/javascripts/bootstrap/tooltip',
'bootstrap-affix': 'bootstrap-sass-official/assets/javascripts/bootstrap/affix',
trunk8: 'trunk8/trunk8',
// App Parts:
'laxar-path-root': '..',
'laxar-path-layouts': '../application/layouts',
'laxar-path-pages': '../application/pages',
'laxar-path-widgets': '../includes/widgets',
'laxar-path-themes': '../includes/themes',
'laxar-path-flow': '../application/flow/flow.json',
// App-specific, LaxarJS-related paths
'laxar-application': '..',
'laxar-app-dependencies': '../var/static/laxar_application_dependencies',
// Widgets:
'angular-bootstrap': 'angular-bootstrap/ui-bootstrap',
'angular-ui-codemirror': 'angular-ui-codemirror/ui-codemirror',
'toastr': 'toastr/toastr'
},
shim: {
angular: {
deps: [ 'jquery' ],
exports: 'angular'
},
'angular-mocks': {
deps: [ 'angular' ],
init: function ( angular ) {
'use strict';
return angular.mock;
}
},
'angular-route': {
deps: [ 'angular' ],
init: function ( angular ) {
'use strict';
return angular;
}
},
'angular-sanitize': {
deps: [ 'angular' ],
init: function ( angular ) {
'use strict';
return angular;
}
},
'angular-bootstrap': {
deps: [ 'angular' ],
init: function ( angular ) {
'use strict';
return angular.module( 'ui.bootstrap' );
}
},
'angular-ui-codemirror': {
deps: [
'angular',
'codemirror/lib/codemirror',
'codemirror/mode/javascript/javascript',
'codemirror/mode/markdown/markdown',
'codemirror/mode/htmlmixed/htmlmixed',
'codemirror/mode/css/css'
],
init: function ( angular, codemirror ) {
'use strict';
window.CodeMirror = codemirror;
return angular.module( 'ui.codemirror' );
}
},
'json-patch': {
exports: 'jsonpatch'
}
},
packages: [
{
name: 'moment',
location: 'moment',
main: 'moment'
}
]
};