diff --git a/blueprints/ember-cli-materialize/index.js b/blueprints/ember-cli-materialize/index.js index 3ee654e2..bd8eddc8 100644 --- a/blueprints/ember-cli-materialize/index.js +++ b/blueprints/ember-cli-materialize/index.js @@ -1,3 +1,5 @@ +var RSVP = require('rsvp'); + module.exports = { normalizeEntityName: function() {}, @@ -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') + ]); } -}; +} diff --git a/package.json b/package.json index c77e4203..5226edbd 100644 --- a/package.json +++ b/package.json @@ -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"