diff --git a/config.js b/config.js index e91d66d..7f3623f 100644 --- a/config.js +++ b/config.js @@ -18,71 +18,93 @@ System.config({ System.config({ "map": { - "aurelia-framework": "github:aurelia/framework@0.13.4", - "aurelia-templating-binding": "github:aurelia/templating-binding@0.13.2", + "aurelia-framework": "github:aurelia/framework@0.17.0", + "aurelia-templating-binding": "github:aurelia/templating-binding@0.16.1", "babel": "npm:babel-core@5.8.21", "babel-runtime": "npm:babel-runtime@5.8.20", "core-js": "npm:core-js@0.9.18", "traceur": "github:jmcriffey/bower-traceur@0.0.88", "traceur-runtime": "github:jmcriffey/bower-traceur-runtime@0.0.88", - "github:aurelia/binding@0.8.5": { - "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.1", - "aurelia-metadata": "github:aurelia/metadata@0.7.2", - "aurelia-task-queue": "github:aurelia/task-queue@0.6.1", + "github:aurelia/binding@0.10.2": { + "aurelia-metadata": "github:aurelia/metadata@0.9.0", + "aurelia-pal": "github:aurelia/pal@0.2.0", + "aurelia-task-queue": "github:aurelia/task-queue@0.8.0", "core-js": "npm:core-js@0.9.18" }, - "github:aurelia/dependency-injection@0.9.1": { - "aurelia-logging": "github:aurelia/logging@0.6.2", - "aurelia-metadata": "github:aurelia/metadata@0.7.2", + "github:aurelia/dependency-injection@0.11.2": { + "aurelia-logging": "github:aurelia/logging@0.8.0", + "aurelia-metadata": "github:aurelia/metadata@0.9.0", + "aurelia-pal": "github:aurelia/pal@0.2.0", "core-js": "npm:core-js@0.9.18" }, - "github:aurelia/framework@0.13.4": { - "aurelia-binding": "github:aurelia/binding@0.8.5", - "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.1", - "aurelia-loader": "github:aurelia/loader@0.8.3", - "aurelia-logging": "github:aurelia/logging@0.6.2", - "aurelia-metadata": "github:aurelia/metadata@0.7.2", - "aurelia-path": "github:aurelia/path@0.8.1", - "aurelia-task-queue": "github:aurelia/task-queue@0.6.1", - "aurelia-templating": "github:aurelia/templating@0.13.16", + "github:aurelia/framework@0.17.0": { + "aurelia-binding": "github:aurelia/binding@0.10.2", + "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.11.2", + "aurelia-loader": "github:aurelia/loader@0.10.0", + "aurelia-logging": "github:aurelia/logging@0.8.0", + "aurelia-metadata": "github:aurelia/metadata@0.9.0", + "aurelia-pal": "github:aurelia/pal@0.2.0", + "aurelia-path": "github:aurelia/path@0.10.0", + "aurelia-task-queue": "github:aurelia/task-queue@0.8.0", + "aurelia-templating": "github:aurelia/templating@0.16.0", "core-js": "npm:core-js@0.9.18" }, - "github:aurelia/loader@0.8.3": { - "aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0", - "aurelia-metadata": "github:aurelia/metadata@0.7.2", - "aurelia-path": "github:aurelia/path@0.8.1", - "core-js": "npm:core-js@0.9.18", - "webcomponentsjs": "github:webcomponents/webcomponentsjs@0.6.3" + "github:aurelia/loader@0.10.0": { + "aurelia-metadata": "github:aurelia/metadata@0.9.0", + "aurelia-path": "github:aurelia/path@0.10.0" }, - "github:aurelia/metadata@0.7.2": { + "github:aurelia/metadata@0.9.0": { + "aurelia-pal": "github:aurelia/pal@0.2.0", "core-js": "npm:core-js@0.9.18" }, - "github:aurelia/templating-binding@0.13.2": { - "aurelia-binding": "github:aurelia/binding@0.8.5", - "aurelia-logging": "github:aurelia/logging@0.6.2", - "aurelia-templating": "github:aurelia/templating@0.13.16" - }, - "github:aurelia/templating@0.13.16": { - "aurelia-binding": "github:aurelia/binding@0.8.5", - "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.1", - "aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0", - "aurelia-loader": "github:aurelia/loader@0.8.3", - "aurelia-logging": "github:aurelia/logging@0.6.2", - "aurelia-metadata": "github:aurelia/metadata@0.7.2", - "aurelia-path": "github:aurelia/path@0.8.1", - "aurelia-task-queue": "github:aurelia/task-queue@0.6.1", + "github:aurelia/task-queue@0.8.0": { + "aurelia-pal": "github:aurelia/pal@0.2.0" + }, + "github:aurelia/templating-binding@0.16.1": { + "aurelia-binding": "github:aurelia/binding@0.10.2", + "aurelia-logging": "github:aurelia/logging@0.8.0", + "aurelia-templating": "github:aurelia/templating@0.16.0" + }, + "github:aurelia/templating@0.16.0": { + "aurelia-binding": "github:aurelia/binding@0.10.2", + "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.11.2", + "aurelia-loader": "github:aurelia/loader@0.10.0", + "aurelia-logging": "github:aurelia/logging@0.8.0", + "aurelia-metadata": "github:aurelia/metadata@0.9.0", + "aurelia-pal": "github:aurelia/pal@0.2.0", + "aurelia-path": "github:aurelia/path@0.10.0", + "aurelia-task-queue": "github:aurelia/task-queue@0.8.0", "core-js": "npm:core-js@0.9.18" }, - "github:jspm/nodelibs-process@0.1.1": { - "process": "npm:process@0.10.1" + "github:jspm/nodelibs-assert@0.1.0": { + "assert": "npm:assert@1.3.0" + }, + "github:jspm/nodelibs-process@0.1.2": { + "process": "npm:process@0.11.2" + }, + "github:jspm/nodelibs-util@0.1.0": { + "util": "npm:util@0.10.3" + }, + "npm:assert@1.3.0": { + "util": "npm:util@0.10.3" }, "npm:babel-runtime@5.8.20": { - "process": "github:jspm/nodelibs-process@0.1.1" + "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:core-js@0.9.18": { "fs": "github:jspm/nodelibs-fs@0.1.2", - "process": "github:jspm/nodelibs-process@0.1.1", + "process": "github:jspm/nodelibs-process@0.1.2", "systemjs-json": "github:systemjs/plugin-json@0.1.0" + }, + "npm:inherits@2.0.1": { + "util": "github:jspm/nodelibs-util@0.1.0" + }, + "npm:process@0.11.2": { + "assert": "github:jspm/nodelibs-assert@0.1.0" + }, + "npm:util@0.10.3": { + "inherits": "npm:inherits@2.0.1", + "process": "github:jspm/nodelibs-process@0.1.2" } } }); diff --git a/dist/amd/index.js b/dist/amd/index.js index a1e166b..0654559 100644 --- a/dist/amd/index.js +++ b/dist/amd/index.js @@ -1,4 +1,4 @@ -define(['exports', 'aurelia-framework', 'aurelia-templating-binding'], function (exports, _aureliaFramework, _aureliaTemplatingBinding) { +define(['exports', 'aurelia-framework', 'aurelia-templating-binding', 'aurelia-logging'], function (exports, _aureliaFramework, _aureliaTemplatingBinding, _aureliaLogging) { 'use strict'; Object.defineProperty(exports, '__esModule', { @@ -6,6 +6,8 @@ define(['exports', 'aurelia-framework', 'aurelia-templating-binding'], function }); exports.configure = configure; + var logger = _aureliaLogging.getLogger('polymer'); + function registerElement(eventManager, bindingLanguage, prototype) { var propertyConfig = { 'bind-value': ['change'] }; @@ -27,6 +29,8 @@ define(['exports', 'aurelia-framework', 'aurelia-templating-binding'], function } }); + logger.debug("Registering configuration for " + prototype.is + ": " + propertyConfig); + eventManager.registerElementConfig({ tagName: prototype.is, properties: propertyConfig diff --git a/dist/commonjs/index.js b/dist/commonjs/index.js index cb1aa7b..65c5a20 100644 --- a/dist/commonjs/index.js +++ b/dist/commonjs/index.js @@ -5,10 +5,18 @@ Object.defineProperty(exports, '__esModule', { }); exports.configure = configure; +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + var _aureliaFramework = require('aurelia-framework'); var _aureliaTemplatingBinding = require('aurelia-templating-binding'); +var _aureliaLogging = require('aurelia-logging'); + +var LogManager = _interopRequireWildcard(_aureliaLogging); + +var logger = LogManager.getLogger('polymer'); + function registerElement(eventManager, bindingLanguage, prototype) { var propertyConfig = { 'bind-value': ['change'] }; @@ -30,6 +38,8 @@ function registerElement(eventManager, bindingLanguage, prototype) { } }); + logger.debug("Registering configuration for " + prototype.is + ": " + propertyConfig); + eventManager.registerElementConfig({ tagName: prototype.is, properties: propertyConfig diff --git a/dist/es6/index.js b/dist/es6/index.js index c35f0db..8c427c8 100644 --- a/dist/es6/index.js +++ b/dist/es6/index.js @@ -1,5 +1,8 @@ import {EventManager, ObserverLocator} from 'aurelia-framework'; import {TemplatingBindingLanguage} from 'aurelia-templating-binding'; +import * as LogManager from 'aurelia-logging'; + +const logger = LogManager.getLogger('polymer'); function registerElement(eventManager, bindingLanguage, prototype) { var propertyConfig = {'bind-value': ['change']}; // Not explicitly listed for all elements that use it @@ -20,6 +23,8 @@ function registerElement(eventManager, bindingLanguage, prototype) { } }); + logger.debug("Registering configuration for " + prototype.is + ": " + propertyConfig); + eventManager.registerElementConfig({ tagName: prototype.is, properties: propertyConfig diff --git a/dist/system/index.js b/dist/system/index.js index b9a2e0a..a83b217 100644 --- a/dist/system/index.js +++ b/dist/system/index.js @@ -1,7 +1,7 @@ -System.register(['aurelia-framework', 'aurelia-templating-binding'], function (_export) { +System.register(['aurelia-framework', 'aurelia-templating-binding', 'aurelia-logging'], function (_export) { 'use strict'; - var EventManager, ObserverLocator, TemplatingBindingLanguage; + var EventManager, ObserverLocator, TemplatingBindingLanguage, LogManager, logger; _export('configure', configure); @@ -26,6 +26,8 @@ System.register(['aurelia-framework', 'aurelia-templating-binding'], function (_ } }); + logger.debug("Registering configuration for " + prototype.is + ": " + propertyConfig); + eventManager.registerElementConfig({ tagName: prototype.is, properties: propertyConfig @@ -61,7 +63,11 @@ System.register(['aurelia-framework', 'aurelia-templating-binding'], function (_ ObserverLocator = _aureliaFramework.ObserverLocator; }, function (_aureliaTemplatingBinding) { TemplatingBindingLanguage = _aureliaTemplatingBinding.TemplatingBindingLanguage; + }, function (_aureliaLogging) { + LogManager = _aureliaLogging; }], - execute: function () {} + execute: function () { + logger = LogManager.getLogger('polymer'); + } }; }); \ No newline at end of file diff --git a/package.json b/package.json index bac92a6..824ab52 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-polymer", - "version": "0.1.1", + "version": "1.0.0-beta", "description": "An Aurelia plugin for Polymer support.", "keywords": [ "aurelia", @@ -48,15 +48,14 @@ "lib": "dist/amd" }, "dependencies": { - "aurelia-framework": "github:aurelia/framework@^0.13.3", - "aurelia-templating-binding": "github:aurelia/templating-binding@^0.13.2" + "aurelia-framework": "npm:aurelia-framework@^1.0.0-beta.1", + "aurelia-logging": "npm:aurelia-logging@^1.0.0-beta.1", + "aurelia-templating-binding": "npm:aurelia-templating-binding@^1.0.0-beta.1" }, "devDependencies": { - "babel": "npm:babel-core@^5.1.13", - "babel-runtime": "npm:babel-runtime@^5.1.13", - "core-js": "npm:core-js@^0.9.4", - "traceur": "github:jmcriffey/bower-traceur@0.0.88", - "traceur-runtime": "github:jmcriffey/bower-traceur-runtime@0.0.88" + "babel": "npm:babel-core@^5.6.4", + "babel-runtime": "npm:babel-runtime@^5.6.4", + "core-js": "npm:core-js@^1.2.6" } } } diff --git a/src/index.js b/src/index.js index c35f0db..8c427c8 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,8 @@ import {EventManager, ObserverLocator} from 'aurelia-framework'; import {TemplatingBindingLanguage} from 'aurelia-templating-binding'; +import * as LogManager from 'aurelia-logging'; + +const logger = LogManager.getLogger('polymer'); function registerElement(eventManager, bindingLanguage, prototype) { var propertyConfig = {'bind-value': ['change']}; // Not explicitly listed for all elements that use it @@ -20,6 +23,8 @@ function registerElement(eventManager, bindingLanguage, prototype) { } }); + logger.debug("Registering configuration for " + prototype.is + ": " + propertyConfig); + eventManager.registerElementConfig({ tagName: prototype.is, properties: propertyConfig