Skip to content

Commit

Permalink
chore(all): update build
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jul 27, 2016
1 parent 864f682 commit fef4e67
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 43 deletions.
17 changes: 9 additions & 8 deletions dist/amd/aurelia-framework.js
Expand Up @@ -97,7 +97,7 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-m
}
}



function preventActionlessFormSubmit() {
_aureliaPal.DOM.addEventListener('submit', function (evt) {
Expand All @@ -112,7 +112,7 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-m

var Aurelia = exports.Aurelia = function () {
function Aurelia(loader, container, resources) {


this.loader = loader || new _aureliaPal.PLATFORM.Loader();
this.container = container || new _aureliaDependencyInjection.Container().makeGlobal();
Expand Down Expand Up @@ -166,7 +166,7 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-m
_this2.root = engine.enhance({ container: _this2.container, element: _this2.host, resources: _this2.resources, bindingContext: bindingContext });
_this2.root.attached();
_this2._onAureliaComposed();
return _this2;
resolve(_this2);
});
};

Expand Down Expand Up @@ -249,7 +249,8 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-m
function runTasks(config, tasks) {
var current = void 0;
var next = function next() {
if (current = tasks.shift()) {
current = tasks.shift();
if (current) {
return Promise.resolve(current(config)).then(next);
}

Expand Down Expand Up @@ -355,7 +356,7 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-m
function FrameworkConfiguration(aurelia) {
var _this4 = this;



this.aurelia = aurelia;
this.container = aurelia.container;
Expand Down Expand Up @@ -414,7 +415,6 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-m

var toAdd = Array.isArray(resources) ? resources : arguments;
var resource = void 0;
var path = void 0;
var resourcesRelativeTo = this.resourcesRelativeTo || ['', ''];

for (var i = 0, ii = toAdd.length; i < ii; ++i) {
Expand Down Expand Up @@ -526,7 +526,8 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-m
var current = void 0;

var next = function next() {
if (current = info.shift()) {
current = info.shift();
if (current) {
return loadPlugin(_this7, loader, current).then(next);
}

Expand All @@ -545,4 +546,4 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-m

exports.FrameworkConfiguration = FrameworkConfiguration;
var LogManager = exports.LogManager = TheLogManager;
});
});
2 changes: 1 addition & 1 deletion dist/amd/index.js
Expand Up @@ -5,7 +5,7 @@ define(['exports', './aurelia-framework'], function (exports, _aureliaFramework)
value: true
});
Object.keys(_aureliaFramework).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
Expand Down
6 changes: 3 additions & 3 deletions dist/aurelia-framework.d.ts
Expand Up @@ -237,6 +237,6 @@ export * from 'aurelia-task-queue';
export * from 'aurelia-path';
export * from 'aurelia-pal';
/**
* The log manager.
*/
export const LogManager: any;
* The log manager.
*/
export const LogManager: any;
15 changes: 7 additions & 8 deletions dist/aurelia-framework.js
Expand Up @@ -5,7 +5,6 @@ import {BindingLanguage,ViewSlot,ViewResources,TemplatingEngine,CompositionTrans
import {DOM,PLATFORM} from 'aurelia-pal';
import {relativeToFile,join} from 'aurelia-path';

/*eslint no-unused-vars:0*/
function preventActionlessFormSubmit() {
DOM.addEventListener('submit', evt => {
const target = evt.target;
Expand Down Expand Up @@ -106,7 +105,7 @@ export class Aurelia {
this.root = engine.enhance({container: this.container, element: this.host, resources: this.resources, bindingContext: bindingContext});
this.root.attached();
this._onAureliaComposed();
return this;
resolve(this);
});
}

Expand Down Expand Up @@ -180,14 +179,14 @@ export class Aurelia {
}
}

/*eslint no-unused-vars:0, no-cond-assign:0, consistent-return: 0*/
const logger = TheLogManager.getLogger('aurelia');
const extPattern = /\.[^/.]+$/;

function runTasks(config, tasks) {
let current;
let next = () => {
if (current = tasks.shift()) {
current = tasks.shift();
if (current) {
return Promise.resolve(current(config)).then(next);
}

Expand All @@ -211,7 +210,7 @@ function loadPlugin(config, loader, info) {
return _loadPlugin(id);

function _loadPlugin(moduleId) {
return loader.loadModule(moduleId).then(m => {
return loader.loadModule(moduleId).then(m => { // eslint-disable-line consistent-return
if ('configure' in m) {
return Promise.resolve(m.configure(config, info.config || {})).then(() => {
config.resourcesRelativeTo = null;
Expand Down Expand Up @@ -275,7 +274,7 @@ function loadResources(aurelia, resourcesToLoad, appResources) {
}
}

function getExt(name) {
function getExt(name) { // eslint-disable-line consistent-return
let match = name.match(extPattern);
if (match && match.length > 0) {
return (match[0].split('.'))[1];
Expand Down Expand Up @@ -397,7 +396,6 @@ export class FrameworkConfiguration {

let toAdd = Array.isArray(resources) ? resources : arguments;
let resource;
let path;
let resourcesRelativeTo = this.resourcesRelativeTo || ['', ''];

for (let i = 0, ii = toAdd.length; i < ii; ++i) {
Expand Down Expand Up @@ -551,7 +549,8 @@ export class FrameworkConfiguration {
let current;

let next = () => {
if (current = info.shift()) {
current = info.shift();
if (current) {
return loadPlugin(this, loader, current).then(next);
}

Expand Down
15 changes: 8 additions & 7 deletions dist/commonjs/aurelia-framework.js
Expand Up @@ -122,7 +122,7 @@ function preventActionlessFormSubmit() {

var Aurelia = exports.Aurelia = function () {
function Aurelia(loader, container, resources) {


this.loader = loader || new _aureliaPal.PLATFORM.Loader();
this.container = container || new _aureliaDependencyInjection.Container().makeGlobal();
Expand Down Expand Up @@ -176,7 +176,7 @@ var Aurelia = exports.Aurelia = function () {
_this2.root = engine.enhance({ container: _this2.container, element: _this2.host, resources: _this2.resources, bindingContext: bindingContext });
_this2.root.attached();
_this2._onAureliaComposed();
return _this2;
resolve(_this2);
});
};

Expand Down Expand Up @@ -259,7 +259,8 @@ var extPattern = /\.[^/.]+$/;
function runTasks(config, tasks) {
var current = void 0;
var next = function next() {
if (current = tasks.shift()) {
current = tasks.shift();
if (current) {
return Promise.resolve(current(config)).then(next);
}

Expand Down Expand Up @@ -365,7 +366,7 @@ var FrameworkConfiguration = function () {
function FrameworkConfiguration(aurelia) {
var _this4 = this;



this.aurelia = aurelia;
this.container = aurelia.container;
Expand Down Expand Up @@ -424,7 +425,6 @@ var FrameworkConfiguration = function () {

var toAdd = Array.isArray(resources) ? resources : arguments;
var resource = void 0;
var path = void 0;
var resourcesRelativeTo = this.resourcesRelativeTo || ['', ''];

for (var i = 0, ii = toAdd.length; i < ii; ++i) {
Expand Down Expand Up @@ -536,7 +536,8 @@ var FrameworkConfiguration = function () {
var current = void 0;

var next = function next() {
if (current = info.shift()) {
current = info.shift();
if (current) {
return loadPlugin(_this7, loader, current).then(next);
}

Expand All @@ -554,4 +555,4 @@ var FrameworkConfiguration = function () {
}();

exports.FrameworkConfiguration = FrameworkConfiguration;
var LogManager = exports.LogManager = TheLogManager;
var LogManager = exports.LogManager = TheLogManager;
2 changes: 1 addition & 1 deletion dist/commonjs/index.js
Expand Up @@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
var _aureliaFramework = require('./aurelia-framework');

Object.keys(_aureliaFramework).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
Expand Down
9 changes: 5 additions & 4 deletions dist/es2015/aurelia-framework.js
Expand Up @@ -63,7 +63,7 @@ export let Aurelia = class Aurelia {
this.root = engine.enhance({ container: this.container, element: this.host, resources: this.resources, bindingContext: bindingContext });
this.root.attached();
this._onAureliaComposed();
return this;
resolve(this);
});
}

Expand Down Expand Up @@ -137,7 +137,8 @@ const extPattern = /\.[^/.]+$/;
function runTasks(config, tasks) {
let current;
let next = () => {
if (current = tasks.shift()) {
current = tasks.shift();
if (current) {
return Promise.resolve(current(config)).then(next);
}

Expand Down Expand Up @@ -288,7 +289,6 @@ export let FrameworkConfiguration = class FrameworkConfiguration {

let toAdd = Array.isArray(resources) ? resources : arguments;
let resource;
let path;
let resourcesRelativeTo = this.resourcesRelativeTo || ['', ''];

for (let i = 0, ii = toAdd.length; i < ii; ++i) {
Expand Down Expand Up @@ -394,7 +394,8 @@ export let FrameworkConfiguration = class FrameworkConfiguration {
let current;

let next = () => {
if (current = info.shift()) {
current = info.shift();
if (current) {
return loadPlugin(this, loader, current).then(next);
}

Expand Down
9 changes: 5 additions & 4 deletions dist/native-modules/aurelia-framework.js
Expand Up @@ -74,7 +74,7 @@ export var Aurelia = function () {
_this2.root = engine.enhance({ container: _this2.container, element: _this2.host, resources: _this2.resources, bindingContext: bindingContext });
_this2.root.attached();
_this2._onAureliaComposed();
return _this2;
resolve(_this2);
});
};

Expand Down Expand Up @@ -157,7 +157,8 @@ var extPattern = /\.[^/.]+$/;
function runTasks(config, tasks) {
var current = void 0;
var next = function next() {
if (current = tasks.shift()) {
current = tasks.shift();
if (current) {
return Promise.resolve(current(config)).then(next);
}

Expand Down Expand Up @@ -322,7 +323,6 @@ var FrameworkConfiguration = function () {

var toAdd = Array.isArray(resources) ? resources : arguments;
var resource = void 0;
var path = void 0;
var resourcesRelativeTo = this.resourcesRelativeTo || ['', ''];

for (var i = 0, ii = toAdd.length; i < ii; ++i) {
Expand Down Expand Up @@ -434,7 +434,8 @@ var FrameworkConfiguration = function () {
var current = void 0;

var next = function next() {
if (current = info.shift()) {
current = info.shift();
if (current) {
return loadPlugin(_this7, loader, current).then(next);
}

Expand Down
9 changes: 5 additions & 4 deletions dist/system/aurelia-framework.js
Expand Up @@ -21,7 +21,8 @@ System.register(['aurelia-logging', 'aurelia-dependency-injection', 'aurelia-loa
function runTasks(config, tasks) {
var current = void 0;
var next = function next() {
if (current = tasks.shift()) {
current = tasks.shift();
if (current) {
return Promise.resolve(current(config)).then(next);
}

Expand Down Expand Up @@ -260,7 +261,7 @@ System.register(['aurelia-logging', 'aurelia-dependency-injection', 'aurelia-loa
_this2.root = engine.enhance({ container: _this2.container, element: _this2.host, resources: _this2.resources, bindingContext: bindingContext });
_this2.root.attached();
_this2._onAureliaComposed();
return _this2;
resolve(_this2);
});
};

Expand Down Expand Up @@ -405,7 +406,6 @@ System.register(['aurelia-logging', 'aurelia-dependency-injection', 'aurelia-loa

var toAdd = Array.isArray(resources) ? resources : arguments;
var resource = void 0;
var path = void 0;
var resourcesRelativeTo = this.resourcesRelativeTo || ['', ''];

for (var i = 0, ii = toAdd.length; i < ii; ++i) {
Expand Down Expand Up @@ -517,7 +517,8 @@ System.register(['aurelia-logging', 'aurelia-dependency-injection', 'aurelia-loa
var current = void 0;

var next = function next() {
if (current = info.shift()) {
current = info.shift();
if (current) {
return loadPlugin(_this7, loader, current).then(next);
}

Expand Down
4 changes: 2 additions & 2 deletions dist/system/index.js
Expand Up @@ -8,11 +8,11 @@ System.register(['./aurelia-framework'], function (_export, _context) {
var _exportObj = {};

for (var _key in _aureliaFramework) {
if (_key !== "default") _exportObj[_key] = _aureliaFramework[_key];
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _aureliaFramework[_key];
}

_export(_exportObj);
}],
execute: function () {}
};
});
});
2 changes: 1 addition & 1 deletion doc/api.json

Large diffs are not rendered by default.

0 comments on commit fef4e67

Please sign in to comment.