Skip to content

Commit

Permalink
Bugfix #110: replaced pyramid of doom with RSVP.all
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Gasser committed May 27, 2015
1 parent 7c2be48 commit a6d2021
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
20 changes: 10 additions & 10 deletions blueprints/ember-cli-materialize/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
var RSVP = require('rsvp');

module.exports = {
normalizeEntityName: function() {},

Expand All @@ -6,14 +8,12 @@ module.exports = {
},

afterInstall: function() {
return this.addPackageToProject('ember-radio-button', '1.0.4').then(function () {
return this.addPackageToProject('ember-new-computed', '~1.0.0').then(function () {
return this.addPackageToProject('ember-key-responder', '0.2.1').then(function () {
return this.addPackageToProject('ember-modal-dialog', '0.7.0').then(function () {
return this.addPackageToProject('ember-cli-sass', '^3.3.0');
}.bind(this));
}.bind(this));
}.bind(this));
}.bind(this));
return RSVP.all([
this.addPackageToProject('ember-radio-button', '1.0.4'),
this.addPackageToProject('ember-new-computed', '~1.0.0'),
this.addPackageToProject('ember-key-responder', '0.2.1'),
this.addPackageToProject('ember-modal-dialog', '0.7.0'),
this.addPackageToProject('ember-cli-sass', '^3.3.0')
]);
}
};
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@
"ember-addon"
],
"dependencies": {
"ember-cli-babel": "^5.0.0",
"ember-cli-htmlbars": "0.7.6",
"ember-cli-babel": "^5.0.0"
"rsvp": "^3.0.18"
},
"ember-addon": {
"configPath": "tests/dummy/config"
Expand Down

0 comments on commit a6d2021

Please sign in to comment.