diff --git a/dist/app.js b/dist/app.js index 16eefdd8a..9b3c5fa61 100644 --- a/dist/app.js +++ b/dist/app.js @@ -1,22 +1,25 @@ -define(["exports", "aurelia-router"], function (exports, _aureliaRouter) { +System.register(["aurelia-router"], function (_export) { "use strict"; - var Router = _aureliaRouter.Router; - var App = (function () { - var 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" }]); - }); - }; + var Router, 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" }]); + }); + }; - App.inject = function () { - return [Router]; - }; + App.inject = function () { + return [Router]; + }; - return App; - })(); - - exports.App = App; + _export("App", App); + } + }; }); \ No newline at end of file diff --git a/dist/child-router.js b/dist/child-router.js index 8830e7783..606a87b4b 100644 --- a/dist/child-router.js +++ b/dist/child-router.js @@ -1,22 +1,25 @@ -define(["exports", "aurelia-router"], function (exports, _aureliaRouter) { +System.register(["aurelia-router"], function (_export) { "use strict"; - var Router = _aureliaRouter.Router; - var Welcome = (function () { - var 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" }]); - }); - }; + var Router, 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" }]); + }); + }; - Welcome.inject = function () { - return [Router]; - }; + Welcome.inject = function () { + return [Router]; + }; - return Welcome; - })(); - - exports.Welcome = Welcome; + _export("Welcome", Welcome); + } + }; }); \ No newline at end of file diff --git a/dist/flickr.js b/dist/flickr.js index fc35057e4..bab63d16e 100644 --- a/dist/flickr.js +++ b/dist/flickr.js @@ -1,35 +1,35 @@ -define(["exports", "aurelia-http-client"], function (exports, _aureliaHttpClient) { +System.register(["aurelia-http-client"], function (_export) { "use strict"; - var HttpClient = _aureliaHttpClient.HttpClient; - - - var url = "http://api.flickr.com/services/feeds/photos_public.gne?tags=rainier&tagmode=any&format=json"; - - var Flickr = (function () { - var Flickr = function Flickr(http) { - this.heading = "Flickr"; - this.images = []; - this.http = http; - }; - - Flickr.inject = function () { - return [HttpClient]; - }; - - Flickr.prototype.activate = function () { - var _this = this; - return this.http.jsonp(url).then(function (response) { - _this.images = response.content.items; - }); - }; - - Flickr.prototype.canDeactivate = function () { - return confirm("Are you sure you want to leave?"); - }; - - return Flickr; - })(); - - exports.Flickr = Flickr; + var HttpClient, 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; + }; + + Flickr.inject = function () { + return [HttpClient]; + }; + + Flickr.prototype.activate = function () { + var _this = this; + return this.http.jsonp(url).then(function (response) { + _this.images = response.content.items; + }); + }; + + Flickr.prototype.canDeactivate = function () { + return confirm("Are you sure you want to leave?"); + }; + + _export("Flickr", Flickr); + } + }; }); \ No newline at end of file diff --git a/dist/nav-bar.js b/dist/nav-bar.js index 89978fefd..3a4a8aa73 100644 --- a/dist/nav-bar.js +++ b/dist/nav-bar.js @@ -1,16 +1,19 @@ -define(["exports", "aurelia-framework"], function (exports, _aureliaFramework) { +System.register(["aurelia-framework"], function (_export) { "use strict"; - var Property = _aureliaFramework.Property; - var NavBar = (function () { - var NavBar = function NavBar() {}; + var Property, NavBar; + return { + setters: [function (_aureliaFramework) { + Property = _aureliaFramework.Property; + }], + execute: function () { + NavBar = function NavBar() {}; - NavBar.annotations = function () { - return [new Property("router")]; - }; + NavBar.annotations = function () { + return [new Property("router")]; + }; - return NavBar; - })(); - - exports.NavBar = NavBar; + _export("NavBar", NavBar); + } + }; }); \ No newline at end of file diff --git a/dist/welcome.js b/dist/welcome.js index 42f1d857c..c9ddc0123 100644 --- a/dist/welcome.js +++ b/dist/welcome.js @@ -1,32 +1,35 @@ -define(["exports"], function (exports) { +System.register([], function (_export) { "use strict"; - var _classProps = function (child, staticProps, instanceProps) { - if (staticProps) Object.defineProperties(child, staticProps); - if (instanceProps) Object.defineProperties(child.prototype, instanceProps); - }; + var _prototypeProperties, Welcome; + return { + setters: [], + execute: function () { + _prototypeProperties = function (child, staticProps, instanceProps) { + if (staticProps) Object.defineProperties(child, staticProps); + if (instanceProps) Object.defineProperties(child.prototype, instanceProps); + }; - var Welcome = (function () { - var Welcome = function Welcome() { - this.heading = "Welcome to the Aurelia Navigation App!"; - this.firstName = "John"; - this.lastName = "Doe"; - }; + 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.prototype.welcome = function () { + alert("Welcome, " + this.fullName + "!"); + }; - _classProps(Welcome, null, { - fullName: { - get: function () { - return "" + this.firstName + " " + this.lastName; + _prototypeProperties(Welcome, null, { + fullName: { + get: function () { + return "" + this.firstName + " " + this.lastName; + }, + enumerable: true } - } - }); - - return Welcome; - })(); + }); - exports.Welcome = Welcome; + _export("Welcome", Welcome); + } + }; }); \ No newline at end of file diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 782a335a4..a7ba39257 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.6.0 (2015-01-06) + + +#### Features + +* **build:** update compiler and switch to register module format ([921d6ab8](http://github.com/aurelia/skeleton-navigation/commit/921d6ab8a523fce6a410f7333650eef9dc5e8abc)) + + ## 0.5.0 (2014-12-22) diff --git a/doc/api.json b/doc/api.json index b6489574e..6de3c0a92 100644 --- a/doc/api.json +++ b/doc/api.json @@ -1 +1 @@ -{"project":{},"files":{},"modules":{},"classes":{},"classitems":[],"warnings":[]} \ No newline at end of file +{"classes":[],"methods":[],"properties":[],"events":[]} \ No newline at end of file diff --git a/package.json b/package.json index 50259333f..d0c5129d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-skeleton-navigation", - "version": "0.5.0", + "version": "0.6.0", "description": "A starter kit for building a standard navigation-style app with Aurelia.", "keywords": [ "aurelia",