Skip to content

Commit

Permalink
chore(all): prepare release 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed May 1, 2015
1 parent 5692911 commit 10394dd
Show file tree
Hide file tree
Showing 15 changed files with 554 additions and 668 deletions.
18 changes: 9 additions & 9 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-framework",
"version": "0.10.0",
"version": "0.11.0",
"description": "The aurelia framework brings together all the required core aurelia libraries into a ready-to-go application-building platform.",
"keywords": [
"aurelia",
Expand All @@ -17,14 +17,14 @@
"url": "http://github.com/aurelia/framework"
},
"dependencies": {
"aurelia-binding": "^0.5.0",
"aurelia-dependency-injection": "^0.6.0",
"aurelia-loader": "^0.5.0",
"aurelia-logging": "^0.3.0",
"aurelia-metadata": "^0.4.0",
"aurelia-path": "^0.5.0",
"aurelia-task-queue": "^0.3.0",
"aurelia-templating": "^0.10.0",
"aurelia-binding": "^0.6.0",
"aurelia-dependency-injection": "^0.7.0",
"aurelia-loader": "^0.6.0",
"aurelia-logging": "^0.4.0",
"aurelia-metadata": "^0.5.0",
"aurelia-path": "^0.6.0",
"aurelia-task-queue": "^0.4.0",
"aurelia-templating": "^0.11.0",
"core-js": "zloirock/core-js"
}
}
104 changes: 43 additions & 61 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
System.config({
"transpiler": "babel",
"babelOptions": {
"optional": [
"runtime",
"es7.decorators"
]
},
"paths": {
"*": "*.js",
"github:*": "jspm_packages/github/*.js",
Expand All @@ -9,77 +16,52 @@ System.config({

System.config({
"map": {
"aurelia-binding": "github:aurelia/binding@0.5.0",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.6.0",
"aurelia-loader": "github:aurelia/loader@0.5.0",
"aurelia-logging": "github:aurelia/logging@0.3.0",
"aurelia-metadata": "github:aurelia/metadata@0.4.0",
"aurelia-path": "github:aurelia/path@0.5.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.3.0",
"aurelia-templating": "github:aurelia/templating@0.10.0",
"core-js": "github:zloirock/core-js@0.8.1",
"github:aurelia/binding@0.4.0": {
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.5.0",
"aurelia-metadata": "github:aurelia/metadata@0.3.4",
"aurelia-task-queue": "github:aurelia/task-queue@0.2.5"
"aurelia-binding": "github:aurelia/binding@0.6.0",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.7.0",
"aurelia-loader": "github:aurelia/loader@0.6.0",
"aurelia-logging": "github:aurelia/logging@0.4.0",
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
"aurelia-path": "github:aurelia/path@0.6.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.4.0",
"aurelia-templating": "github:aurelia/templating@0.11.0",
"babel": "npm:babel-core@5.2.2",
"babel-runtime": "npm:babel-runtime@5.2.2",
"core-js": "npm:core-js@0.9.5",
"github:aurelia/binding@0.6.0": {
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.7.0",
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.4.0",
"core-js": "npm:core-js@0.9.5"
},
"github:aurelia/binding@0.5.0": {
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.6.0",
"aurelia-metadata": "github:aurelia/metadata@0.4.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.3.0",
"core-js": "github:zloirock/core-js@0.8.1"
"github:aurelia/dependency-injection@0.7.0": {
"aurelia-logging": "github:aurelia/logging@0.4.0",
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
"core-js": "npm:core-js@0.9.5"
},
"github:aurelia/dependency-injection@0.5.0": {
"aurelia-logging": "github:aurelia/logging@0.2.6",
"aurelia-metadata": "github:aurelia/metadata@0.3.4",
"core-js": "npm:core-js@0.4.10"
},
"github:aurelia/dependency-injection@0.6.0": {
"aurelia-logging": "github:aurelia/logging@0.3.0",
"aurelia-metadata": "github:aurelia/metadata@0.4.0",
"core-js": "github:zloirock/core-js@0.8.1"
},
"github:aurelia/loader@0.4.0": {
"aurelia-html-template-element": "github:aurelia/html-template-element@0.1.3",
"aurelia-path": "github:aurelia/path@0.4.6",
"core-js": "npm:core-js@0.4.10",
"webcomponentsjs": "github:webcomponents/webcomponentsjs@0.5.5"
},
"github:aurelia/loader@0.5.0": {
"github:aurelia/loader@0.6.0": {
"aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0",
"aurelia-path": "github:aurelia/path@0.5.0",
"core-js": "github:zloirock/core-js@0.8.1",
"webcomponentsjs": "github:webcomponents/webcomponentsjs@0.5.5"
"aurelia-path": "github:aurelia/path@0.6.0",
"core-js": "npm:core-js@0.9.5",
"webcomponentsjs": "github:webcomponents/webcomponentsjs@0.6.1"
},
"github:aurelia/metadata@0.4.0": {
"core-js": "github:zloirock/core-js@0.8.1"
"github:aurelia/metadata@0.5.0": {
"core-js": "npm:core-js@0.9.5"
},
"github:aurelia/templating@0.10.0": {
"aurelia-binding": "github:aurelia/binding@0.5.0",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.6.0",
"github:aurelia/templating@0.11.0": {
"aurelia-binding": "github:aurelia/binding@0.6.0",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.7.0",
"aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0",
"aurelia-loader": "github:aurelia/loader@0.5.0",
"aurelia-logging": "github:aurelia/logging@0.3.0",
"aurelia-metadata": "github:aurelia/metadata@0.4.0",
"aurelia-path": "github:aurelia/path@0.5.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.3.0",
"core-js": "github:zloirock/core-js@0.8.1"
},
"github:aurelia/templating@0.9.0": {
"aurelia-binding": "github:aurelia/binding@0.4.0",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.5.0",
"aurelia-html-template-element": "github:aurelia/html-template-element@0.1.3",
"aurelia-loader": "github:aurelia/loader@0.4.0",
"aurelia-logging": "github:aurelia/logging@0.2.6",
"aurelia-metadata": "github:aurelia/metadata@0.3.4",
"aurelia-path": "github:aurelia/path@0.4.6",
"aurelia-task-queue": "github:aurelia/task-queue@0.2.5",
"core-js": "npm:core-js@0.4.10"
"aurelia-loader": "github:aurelia/loader@0.6.0",
"aurelia-logging": "github:aurelia/logging@0.4.0",
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
"aurelia-path": "github:aurelia/path@0.6.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.4.0",
"core-js": "npm:core-js@0.9.5"
},
"github:jspm/nodelibs-process@0.1.1": {
"process": "npm:process@0.10.1"
},
"npm:core-js@0.4.10": {
"npm:core-js@0.9.5": {
"process": "github:jspm/nodelibs-process@0.1.1"
}
}
Expand Down
186 changes: 91 additions & 95 deletions dist/amd/aurelia.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ define(['exports', 'core-js', 'aurelia-logging', 'aurelia-dependency-injection',

var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

Object.defineProperty(exports, '__esModule', {
value: true
});
exports.__esModule = true;

var _core = _interopRequire(_coreJs);

Expand Down Expand Up @@ -73,112 +69,112 @@ define(['exports', 'core-js', 'aurelia-logging', 'aurelia-dependency-injection',
this.withInstance(_aureliaTemplating.ResourceRegistry, this.resources);
}

_createClass(Aurelia, [{
key: 'withInstance',
value: function withInstance(type, instance) {
this.container.registerInstance(type, instance);
return this;
}
}, {
key: 'withSingleton',
value: function withSingleton(type, implementation) {
this.container.registerSingleton(type, implementation);
return this;
}
}, {
key: 'globalizeResources',
value: function globalizeResources(resources) {
var toAdd = Array.isArray(resources) ? resources : arguments,
i,
ii,
pluginPath = this.currentPluginId || '',
path,
internalPlugin = pluginPath.startsWith('./');

for (i = 0, ii = toAdd.length; i < ii; ++i) {
path = internalPlugin ? _aureliaPath.relativeToFile(toAdd[i], pluginPath) : _aureliaPath.join(pluginPath, toAdd[i]);

this.resourcesToLoad[path] = this.resourcesToLoad[path];
}
Aurelia.prototype.withInstance = function withInstance(type, instance) {
this.container.registerInstance(type, instance);
return this;
};

return this;
}
}, {
key: 'renameGlobalResource',
value: function renameGlobalResource(resourcePath, newName) {
this.resourcesToLoad[resourcePath] = newName;
return this;
}
}, {
key: 'start',
value: function start() {
var _this = this;
Aurelia.prototype.withSingleton = function withSingleton(type, implementation) {
this.container.registerSingleton(type, implementation);
return this;
};

if (this.started) {
return Promise.resolve(this);
Aurelia.prototype.globalizeResources = function globalizeResources(resources) {
var toAdd = Array.isArray(resources) ? resources : arguments,
i,
ii,
resource,
pluginPath = this.currentPluginId || '',
path,
internalPlugin = pluginPath.startsWith('./');

for (i = 0, ii = toAdd.length; i < ii; ++i) {
resource = toAdd[i];
if (typeof resource != 'string') {
throw new Error('Invalid resource path [' + resource + ']. Resources must be specified as relative module IDs.');
}

this.started = true;
logger.info('Aurelia Starting');
path = internalPlugin ? _aureliaPath.relativeToFile(resource, pluginPath) : _aureliaPath.join(pluginPath, resource);

preventActionlessFormSubmit();
this.resourcesToLoad[path] = this.resourcesToLoad[path];
}

return this.use._process().then(function () {
if (!_this.container.hasHandler(_aureliaTemplating.BindingLanguage)) {
var message = 'You must configure Aurelia with a BindingLanguage implementation.';
logger.error(message);
throw new Error(message);
}
return this;
};

if (!_this.container.hasHandler(_aureliaTemplating.Animator)) {
_aureliaTemplating.Animator.configureDefault(_this.container);
}
Aurelia.prototype.renameGlobalResource = function renameGlobalResource(resourcePath, newName) {
this.resourcesToLoad[resourcePath] = newName;
return this;
};

return loadResources(_this.container, _this.resourcesToLoad, _this.resources).then(function () {
logger.info('Aurelia Started');
var evt = new window.CustomEvent('aurelia-started', { bubbles: true, cancelable: true });
document.dispatchEvent(evt);
return _this;
});
});
Aurelia.prototype.start = function start() {
var _this = this;

if (this.started) {
return Promise.resolve(this);
}
}, {
key: 'setRoot',
value: function setRoot() {
var _this2 = this;

var root = arguments[0] === undefined ? 'app' : arguments[0];
var applicationHost = arguments[1] === undefined ? null : arguments[1];
this.started = true;
logger.info('Aurelia Starting');

preventActionlessFormSubmit();

var compositionEngine,
instruction = {};
return this.use._process().then(function () {
if (!_this.container.hasHandler(_aureliaTemplating.BindingLanguage)) {
var message = 'You must configure Aurelia with a BindingLanguage implementation.';
logger.error(message);
throw new Error(message);
}

if (!applicationHost || typeof applicationHost == 'string') {
this.host = document.getElementById(applicationHost || 'applicationHost') || document.body;
} else {
this.host = applicationHost;
if (!_this.container.hasHandler(_aureliaTemplating.Animator)) {
_aureliaTemplating.Animator.configureDefault(_this.container);
}

this.host.aurelia = this;
this.container.registerInstance(Element, this.host);

compositionEngine = this.container.get(_aureliaTemplating.CompositionEngine);
instruction.viewModel = root;
instruction.container = instruction.childContainer = this.container;
instruction.viewSlot = new _aureliaTemplating.ViewSlot(this.host, true);
instruction.viewSlot.transformChildNodesIntoView();

return compositionEngine.compose(instruction).then(function (root) {
_this2.root = root;
instruction.viewSlot.attached();
var evt = new window.CustomEvent('aurelia-composed', { bubbles: true, cancelable: true });
setTimeout(function () {
return document.dispatchEvent(evt);
}, 1);
return _this2;
return loadResources(_this.container, _this.resourcesToLoad, _this.resources).then(function () {
logger.info('Aurelia Started');
var evt = new window.CustomEvent('aurelia-started', { bubbles: true, cancelable: true });
document.dispatchEvent(evt);
return _this;
});
});
};

Aurelia.prototype.setRoot = function setRoot() {
var _this2 = this;

var root = arguments[0] === undefined ? 'app' : arguments[0];
var applicationHost = arguments[1] === undefined ? null : arguments[1];

var compositionEngine,
instruction = {};

applicationHost = applicationHost || this.host;

if (!applicationHost || typeof applicationHost == 'string') {
this.host = document.getElementById(applicationHost || 'applicationHost') || document.body;
} else {
this.host = applicationHost;
}
}]);

this.host.aurelia = this;
this.container.registerInstance(Element, this.host);

compositionEngine = this.container.get(_aureliaTemplating.CompositionEngine);
instruction.viewModel = root;
instruction.container = instruction.childContainer = this.container;
instruction.viewSlot = new _aureliaTemplating.ViewSlot(this.host, true);
instruction.viewSlot.transformChildNodesIntoView();

return compositionEngine.compose(instruction).then(function (root) {
_this2.root = root;
instruction.viewSlot.attached();
var evt = new window.CustomEvent('aurelia-composed', { bubbles: true, cancelable: true });
setTimeout(function () {
return document.dispatchEvent(evt);
}, 1);
return _this2;
});
};

return Aurelia;
})();
Expand Down
13 changes: 3 additions & 10 deletions dist/amd/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
define(['exports', 'aurelia-logging', './aurelia', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-metadata', 'aurelia-templating', 'aurelia-loader', 'aurelia-task-queue'], function (exports, _aureliaLogging, _aurelia, _aureliaDependencyInjection, _aureliaBinding, _aureliaMetadata, _aureliaTemplating, _aureliaLoader, _aureliaTaskQueue) {
'use strict';

var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _interopRequireWildcard = function (obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (typeof obj === 'object' && obj !== null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } };

var _defaults = function (obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; };

Object.defineProperty(exports, '__esModule', {
value: true
});
Object.defineProperty(exports, 'Aurelia', {
enumerable: true,
get: function get() {
return _aurelia.Aurelia;
}
});
exports.__esModule = true;
exports.Aurelia = _aurelia.Aurelia;

_defaults(exports, _interopRequireWildcard(_aureliaDependencyInjection));

Expand Down
Loading

0 comments on commit 10394dd

Please sign in to comment.