Skip to content

Commit

Permalink
* update feature added
Browse files Browse the repository at this point in the history
  • Loading branch information
zewa666 committed Aug 26, 2015
1 parent 1bb7c7e commit ca7720a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": {
Expand Down
26 changes: 26 additions & 0 deletions update/index.js
Original file line number Diff line number Diff line change
@@ -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));
}
});

0 comments on commit ca7720a

Please sign in to comment.