Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Fix bower install #69

Merged
merged 2 commits into from
Aug 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions blueprints/ember-cli-mocha/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ module.exports = {
afterInstall: function() {
var addonContext = this;

return this.addBowerPackageToProject('ember-mocha', '~0.8.0')
.then(function() {
return addonContext.addBowerPackageToProject('ember-cli/ember-cli-test-loader', '0.1.3');
})
.then(function() {
return addonContext.addBowerPackageToProject('ember-cli/ember-cli-shims', '0.0.3');
})
.then(function() {
if ('removePackageFromProject' in addonContext) {
return addonContext.removePackageFromProject('ember-cli-qunit');
}
});
return this.addBowerPackagesToProject([
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was broken by this changeset in ember-cli.

{ name: 'ember-mocha', source: 'ember-mocha', target: '~0.8.0' },
{ name: 'ember-cli-test-loader', source: 'ember-cli/ember-cli-test-loader', target: '0.1.3' },
{ name: 'ember-cli-shims', source: 'ember-cli/ember-cli-shims', target: '0.0.3' }
]).then(function() {
if ('removePackageFromProject' in addonContext) {
return addonContext.removePackageFromProject('ember-cli-qunit');
}
});
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-mocha",
"version": "0.9.1",
"version": "0.9.2",
"description": "Mocha and Chai tests for ember-cli applications",
"main": "index.js",
"scripts": {
Expand Down