From 508692f71414ba59e9c9e31ea756b7f45545a345 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Mon, 12 Jan 2015 10:33:41 -0500 Subject: [PATCH] chore(all): prepare release 0.8.0 --- dist/app.js | 35 ++++++++++++++++++-------- dist/child-router.js | 35 ++++++++++++++++++-------- dist/flickr.js | 60 +++++++++++++++++++++++++++++++------------- dist/nav-bar.js | 25 ++++++++++++++---- dist/welcome.js | 40 +++++++++++++++++------------ doc/CHANGELOG.md | 13 ++++++++++ package.json | 2 +- 7 files changed, 150 insertions(+), 60 deletions(-) diff --git a/dist/app.js b/dist/app.js index 9b3c5fa61..38d5cb952 100644 --- a/dist/app.js +++ b/dist/app.js @@ -1,24 +1,39 @@ System.register(["aurelia-router"], function (_export) { "use strict"; - var Router, App; + var Router, _prototypeProperties, App; return { setters: [function (_aureliaRouter) { Router = _aureliaRouter.Router; }], execute: function () { - App = function App(router) { - this.router = router; - this.router.configure(function (config) { - config.title = "Aurelia"; - config.map([{ route: ["", "welcome"], moduleId: "welcome", nav: true, title: "Welcome" }, { route: "flickr", moduleId: "flickr", nav: true }, { route: "child-router", moduleId: "child-router", nav: true, title: "Child Router" }]); - }); + _prototypeProperties = function (child, staticProps, instanceProps) { + if (staticProps) Object.defineProperties(child, staticProps); + if (instanceProps) Object.defineProperties(child.prototype, instanceProps); }; - App.inject = function () { - return [Router]; - }; + App = (function () { + function App(router) { + this.router = router; + this.router.configure(function (config) { + config.title = "Aurelia"; + config.map([{ route: ["", "welcome"], moduleId: "welcome", nav: true, title: "Welcome" }, { route: "flickr", moduleId: "flickr", nav: true }, { route: "child-router", moduleId: "child-router", nav: true, title: "Child Router" }]); + }); + } + + _prototypeProperties(App, { + inject: { + value: function () { + return [Router]; + }, + writable: true, + enumerable: true, + configurable: true + } + }); + return App; + })(); _export("App", App); } }; diff --git a/dist/child-router.js b/dist/child-router.js index 606a87b4b..81e0eea95 100644 --- a/dist/child-router.js +++ b/dist/child-router.js @@ -1,24 +1,39 @@ System.register(["aurelia-router"], function (_export) { "use strict"; - var Router, Welcome; + var Router, _prototypeProperties, Welcome; return { setters: [function (_aureliaRouter) { Router = _aureliaRouter.Router; }], execute: function () { - Welcome = function Welcome(router) { - this.heading = "Child Router"; - this.router = router; - router.configure(function (config) { - config.map([{ route: ["", "welcome"], moduleId: "welcome", nav: true, title: "Welcome" }, { route: "flickr", moduleId: "flickr", nav: true }, { route: "child-router", moduleId: "child-router", nav: true, title: "Child Router" }]); - }); + _prototypeProperties = function (child, staticProps, instanceProps) { + if (staticProps) Object.defineProperties(child, staticProps); + if (instanceProps) Object.defineProperties(child.prototype, instanceProps); }; - Welcome.inject = function () { - return [Router]; - }; + Welcome = (function () { + function Welcome(router) { + this.heading = "Child Router"; + this.router = router; + router.configure(function (config) { + config.map([{ route: ["", "welcome"], moduleId: "welcome", nav: true, title: "Welcome" }, { route: "flickr", moduleId: "flickr", nav: true }, { route: "child-router", moduleId: "child-router", nav: true, title: "Child Router" }]); + }); + } + + _prototypeProperties(Welcome, { + inject: { + value: function () { + return [Router]; + }, + writable: true, + enumerable: true, + configurable: true + } + }); + return Welcome; + })(); _export("Welcome", Welcome); } }; diff --git a/dist/flickr.js b/dist/flickr.js index bab63d16e..aba0fd5fb 100644 --- a/dist/flickr.js +++ b/dist/flickr.js @@ -1,34 +1,58 @@ System.register(["aurelia-http-client"], function (_export) { "use strict"; - var HttpClient, url, Flickr; + var HttpClient, _prototypeProperties, url, Flickr; return { setters: [function (_aureliaHttpClient) { HttpClient = _aureliaHttpClient.HttpClient; }], execute: function () { - url = "http://api.flickr.com/services/feeds/photos_public.gne?tags=rainier&tagmode=any&format=json"; - Flickr = function Flickr(http) { - this.heading = "Flickr"; - this.images = []; - this.http = http; + _prototypeProperties = function (child, staticProps, instanceProps) { + if (staticProps) Object.defineProperties(child, staticProps); + if (instanceProps) Object.defineProperties(child.prototype, instanceProps); }; - Flickr.inject = function () { - return [HttpClient]; - }; + url = "http://api.flickr.com/services/feeds/photos_public.gne?tags=rainier&tagmode=any&format=json"; + Flickr = (function () { + function Flickr(http) { + this.heading = "Flickr"; + this.images = []; + this.http = http; + } - Flickr.prototype.activate = function () { - var _this = this; - return this.http.jsonp(url).then(function (response) { - _this.images = response.content.items; + _prototypeProperties(Flickr, { + inject: { + value: function () { + return [HttpClient]; + }, + writable: true, + enumerable: true, + configurable: true + } + }, { + activate: { + value: function () { + var _this = this; + return this.http.jsonp(url).then(function (response) { + _this.images = response.content.items; + }); + }, + writable: true, + enumerable: true, + configurable: true + }, + canDeactivate: { + value: function () { + return confirm("Are you sure you want to leave?"); + }, + writable: true, + enumerable: true, + configurable: true + } }); - }; - - Flickr.prototype.canDeactivate = function () { - return confirm("Are you sure you want to leave?"); - }; + return Flickr; + })(); _export("Flickr", Flickr); } }; diff --git a/dist/nav-bar.js b/dist/nav-bar.js index 3a4a8aa73..8e7f347c1 100644 --- a/dist/nav-bar.js +++ b/dist/nav-bar.js @@ -1,18 +1,33 @@ System.register(["aurelia-framework"], function (_export) { "use strict"; - var Property, NavBar; + var Property, _prototypeProperties, NavBar; return { setters: [function (_aureliaFramework) { Property = _aureliaFramework.Property; }], execute: function () { - NavBar = function NavBar() {}; - - NavBar.annotations = function () { - return [new Property("router")]; + _prototypeProperties = function (child, staticProps, instanceProps) { + if (staticProps) Object.defineProperties(child, staticProps); + if (instanceProps) Object.defineProperties(child.prototype, instanceProps); }; + NavBar = (function () { + function NavBar() {} + + _prototypeProperties(NavBar, { + annotations: { + value: function () { + return [new Property("router")]; + }, + writable: true, + enumerable: true, + configurable: true + } + }); + + return NavBar; + })(); _export("NavBar", NavBar); } }; diff --git a/dist/welcome.js b/dist/welcome.js index c9ddc0123..084353941 100644 --- a/dist/welcome.js +++ b/dist/welcome.js @@ -10,25 +10,33 @@ System.register([], function (_export) { if (instanceProps) Object.defineProperties(child.prototype, instanceProps); }; - Welcome = function Welcome() { - this.heading = "Welcome to the Aurelia Navigation App!"; - this.firstName = "John"; - this.lastName = "Doe"; - }; - - Welcome.prototype.welcome = function () { - alert("Welcome, " + this.fullName + "!"); - }; + Welcome = (function () { + function Welcome() { + this.heading = "Welcome to the Aurelia Navigation App!"; + this.firstName = "John"; + this.lastName = "Doe"; + } - _prototypeProperties(Welcome, null, { - fullName: { - get: function () { - return "" + this.firstName + " " + this.lastName; + _prototypeProperties(Welcome, null, { + fullName: { + get: function () { + return "" + this.firstName + " " + this.lastName; + }, + enumerable: true, + configurable: true }, - enumerable: true - } - }); + welcome: { + value: function () { + alert("Welcome, " + this.fullName + "!"); + }, + writable: true, + enumerable: true, + configurable: true + } + }); + return Welcome; + })(); _export("Welcome", Welcome); } }; diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 474edca6c..311343007 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,16 @@ +## 0.8.0 (2015-01-12) + + +#### Bug Fixes + +* **package:** update Aurelia dependencies ([44083541](http://github.com/aurelia/skeleton-navigation/commit/440835418d78b5d99278ec4f2fbc04beb79ff98f)) + + +#### Features + +* **build:** update watch task to include style files ([ddf6c789](http://github.com/aurelia/skeleton-navigation/commit/ddf6c789c84ac267bdf4865f19a3339d7ee66253)) + + ### 0.7.2 (2015-01-07) diff --git a/package.json b/package.json index 33bf7e51e..54b682a88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-skeleton-navigation", - "version": "0.7.2", + "version": "0.8.0", "description": "A starter kit for building a standard navigation-style app with Aurelia.", "keywords": [ "aurelia",