/
index.js
92 lines (83 loc) · 2.59 KB
/
index.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
import 'aurelia-polyfills';
import { initialize } from 'aurelia-pal-browser';
import 'aurelia-loader-esm';
import { LogManager, FrameworkConfiguration, Aurelia, View } from 'aurelia-framework';
import { configure as configureBindingLanguage } from 'aurelia-templating-binding';
import { configure as configureDefaultResources } from 'aurelia-templating-resources';
import { configure as configureEventAggregator } from 'aurelia-event-aggregator';
// import { configure as configureHistory } from 'aurelia-history-browser';
// import { configure as configureRouter } from 'aurelia-templating-router';
import { ConsoleAppender } from 'aurelia-logging-console';
import { getLogger } from 'aurelia-logging';
initialize();
// Using static convention to avoid having to fetch / load module dynamically
(frameworkCfgProto => {
frameworkCfgProto.developmentLogging = function() {
LogManager.addAppender(new ConsoleAppender());
LogManager.setLevel(LogManager.logLevel.debug);
return this;
};
frameworkCfgProto.defaultBindingLanguage = function() {
return this.plugin(configureBindingLanguage);
};
frameworkCfgProto.defaultResources = function() {
return this.plugin(configureDefaultResources);
};
frameworkCfgProto.eventAggregator = function() {
return this.plugin(configureEventAggregator);
};
const errorMsg = 'This bundle does not support router feature. Consider using full bundle';
frameworkCfgProto.history = function() {
getLogger('aurelia').error(errorMsg);
return this;
};
frameworkCfgProto.router = function() {
getLogger('aurelia').error(errorMsg);
return this;
};
})(FrameworkConfiguration.prototype);
export {
start,
enhance
} from './index.quick-start';
export * from 'aurelia-framework';
export { EventAggregator, includeEventsIn } from 'aurelia-event-aggregator';
export {
If,
Else,
Repeat,
Compose,
Show,
Hide,
Focus,
With,
Replaceable,
AbstractRepeater,
ArrayRepeatStrategy,
AttrBindingBehavior,
BindingSignaler,
DebounceBindingBehavior,
FromViewBindingBehavior,
HTMLSanitizer,
MapRepeatStrategy,
NullRepeatStrategy,
NumberRepeatStrategy,
OneTimeBindingBehavior,
OneWayBindingBehavior,
RepeatStrategyLocator,
SanitizeHTMLValueConverter,
SelfBindingBehavior,
SetRepeatStrategy,
SignalBindingBehavior,
ThrottleBindingBehavior,
ToViewBindingBehavior,
TwoWayBindingBehavior,
UpdateTriggerBindingBehavior,
createFullOverrideContext,
updateOneTimeBinding,
updateOverrideContext,
isOneTime,
viewsRequireLifecycle,
unwrapExpression,
getItemsSourceExpression,
} from 'aurelia-templating-resources';