Skip to content

Commit a700627

Browse files
chore(all): prepare release 0.14.0
1 parent 1858f0b commit a700627

14 files changed

+986
-806
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-framework",
3-
"version": "0.13.4",
3+
"version": "0.14.0",
44
"description": "The aurelia framework brings together all the required core aurelia libraries into a ready-to-go application-building platform.",
55
"keywords": [
66
"aurelia",

dist/amd/aurelia-framework.d.ts

Lines changed: 89 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,80 @@ declare module 'aurelia-framework' {
1818
constructor(aurelia: Aurelia);
1919

2020
/**
21-
* Configures a plugin before Aurelia starts.
21+
* Configures an internal feature plugin before Aurelia starts.
22+
*
23+
* @method feature
24+
* @param {string} plugin The folder for the internal plugin to configure (expects an index.js in that folder).
25+
* @param {config} config The configuration for the specified plugin.
26+
* @return {Plugins} Returns the current Plugins instance.
27+
*/
28+
feature(plugin: string, config: any): Plugins;
29+
30+
/**
31+
* Configures an external, 3rd party plugin before Aurelia starts.
2232
*
2333
* @method plugin
24-
* @param {moduleId} moduleId The ID of the module to configure.
25-
* @param {config} config The configuration for the specified module.
34+
* @param {string} plugin The ID of the 3rd party plugin to configure.
35+
* @param {config} config The configuration for the specified plugin.
2636
* @return {Plugins} Returns the current Plugins instance.
2737
*/
28-
plugin(moduleId: string, config: any): Plugins;
38+
plugin(plugin: string, config: any): Plugins;
39+
40+
/**
41+
* Plugs in the default binding language from aurelia-templating-binding.
42+
*
43+
* @method defaultBindingLanguage
44+
* @return {Plugins} Returns the current Plugins instance.
45+
*/
46+
defaultBindingLanguage(): Plugins;
47+
48+
/**
49+
* Plugs in the router from aurelia-templating-router.
50+
*
51+
* @method router
52+
* @return {Plugins} Returns the current Plugins instance.
53+
*/
54+
router(): Plugins;
55+
56+
/**
57+
* Plugs in the default history implementation from aurelia-history-browser.
58+
*
59+
* @method history
60+
* @return {Plugins} Returns the current Plugins instance.
61+
*/
62+
history(): Plugins;
63+
64+
/**
65+
* Plugs in the default templating resources (if, repeat, show, compose, etc.) from aurelia-templating-resources.
66+
*
67+
* @method defaultResources
68+
* @return {Plugins} Returns the current Plugins instance.
69+
*/
70+
defaultResources(): Plugins;
71+
72+
/**
73+
* Plugs in the event aggregator from aurelia-event-aggregator.
74+
*
75+
* @method eventAggregator
76+
* @return {Plugins} Returns the current Plugins instance.
77+
*/
78+
eventAggregator(): Plugins;
79+
80+
/**
81+
* Sets up the Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().history().router().eventAggregator();`
82+
*
83+
* @method standardConfiguration
84+
* @return {Plugins} Returns the current Plugins instance.
85+
*/
86+
standardConfiguration(): Plugins;
87+
88+
/**
89+
* Plugs in the ConsoleAppender and sets the log level to debug.
90+
*
91+
* @method developmentLogging
92+
* @return {Plugins} Returns the current Plugins instance.
93+
*/
94+
developmentLogging(): Plugins;
2995
}
3096

3197
/**
@@ -93,6 +159,24 @@ declare module 'aurelia-framework' {
93159
*/
94160
renameGlobalResource(resourcePath: string, newName: string): Aurelia;
95161

162+
/**
163+
* Adds an async function that runs before the plugins are run.
164+
*
165+
* @method addPreStartTask
166+
* @param {Function} task The function to run before start.
167+
* @return {Aurelia} Returns the current Aurelia instance.
168+
*/
169+
addPreStartTask(task: Function): Aurelia;
170+
171+
/**
172+
* Adds an async function that runs after the plugins are run.
173+
*
174+
* @method addPostStartTask
175+
* @param {Function} task The function to run after start.
176+
* @return {Aurelia} Returns the current Aurelia instance.
177+
*/
178+
addPostStartTask(task: Function): Aurelia;
179+
96180
/**
97181
* Loads plugins, then resources, and then starts the Aurelia instance.
98182
*
@@ -106,7 +190,7 @@ declare module 'aurelia-framework' {
106190
*
107191
* @method enhance
108192
* @param {Object} bindingContext A binding context for the enhanced elements.
109-
* @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
193+
* @param {string|Object} applicationHost The DOM object that Aurelia will enhance.
110194
* @return {Promise<Aurelia>} Returns the current Aurelia instance.
111195
*/
112196
enhance(bindingContext?: Object, applicationHost?: any): Promise<Aurelia>;

0 commit comments

Comments
 (0)