diff --git a/README.md b/README.md index 2653780..2ad5552 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,13 @@ For more info please visit the official site: http://www.aurelia.io/ ``` 8. Browse to [http://localhost:9000](http://localhost:9000) to see the app. You can make changes in the code found under `src` and the browser should auto-refresh itself as you save files. +## Update the skeleton jspm dependencies +If you're inside your skeleton folder you can run the following command to update your installation and get the latest versions of the dependencies used: + + ```shell + yo aurelia:update + ``` + ## Command line options yo aurelia --skip-install will skip the npm and jspm install. diff --git a/package.json b/package.json index 491ed82..5efb30a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-aurelia", - "version": "0.5.0", + "version": "0.6.0", "description": "Yeoman generator for the JavaScript Framework Aurelia", "keywords": [ "yeoman-generator", @@ -9,8 +9,10 @@ "durandal" ], "dependencies": { + "bluebird": "^2.9.34", "download-github-repo": "^0.1.3", "github": "^0.2.4", + "jspm": "^0.16.0-beta.7", "yeoman-generator": "^0.18.0" }, "repository": { diff --git a/update/index.js b/update/index.js new file mode 100644 index 0000000..8378e6b --- /dev/null +++ b/update/index.js @@ -0,0 +1,26 @@ +var generators = require('yeoman-generator'); +var Promise = require('bluebird'); +var jspm = require('jspm'); + +module.exports = generators.Base.extend({ + + runJSPMUpdate: function() { + var done = this.async(); + var reps = ['aurelia-animator-css', 'aurelia-bootstrapper', 'aurelia-framework', 'aurelia-dependency-injection', + 'aurelia-binding', 'aurelia-http-client', 'aurelia-router', 'aurelia-event-aggregator', 'aurelia-history-browser', + 'aurelia-loader-default', 'aurelia-loader', 'aurelia-metadata', 'aurelia-route-recognizer', + 'aurelia-templating-binding', 'aurelia-templating-resources', 'aurelia-templating-router', 'aurelia-templating', + 'aurelia-logging', 'aurelia-task-queue', 'aurelia-history', 'aurelia-path']; + + var allDone = []; + + reps.forEach( function(repo) { + allDone.push(jspm.install(repo)); + }.bind(this)); + + Promise.all(allDone).then( function() { + this.log('Update done, enjoy!'); + done(); + }.bind(this)); + } +});