From 2ac9327a26a664282b3393e94909b516eff128ed Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Sat, 26 Nov 2016 16:37:12 +0100 Subject: [PATCH] Add "ember-cli-chai" to project instead of making it a dependency This lets users use different versions of "ember-cli-chai" if they choose to do so (e.g. chai 3.5.x vs. chai 4.x) --- blueprints/ember-cli-mocha/index.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/blueprints/ember-cli-mocha/index.js b/blueprints/ember-cli-mocha/index.js index 0e96310..0713a8e 100644 --- a/blueprints/ember-cli-mocha/index.js +++ b/blueprints/ember-cli-mocha/index.js @@ -14,7 +14,11 @@ module.exports = { return this.addBowerPackagesToProject([ { name: 'ember-mocha-adapter', source: 'ember-mocha-adapter', target: '~0.3.1' }, + ]).then(function() { + return addonContext.addPackageToProject('ember-cli-chai', '^0.2.0'); + + }).then(function() { if ('removePackageFromProject' in addonContext) { return addonContext.removePackageFromProject('ember-cli-qunit'); } diff --git a/package.json b/package.json index f7bafa8..0ebf210 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "broccoli-funnel": "^1.0.1", "broccoli-merge-trees": "^1.1.1", "ember-cli-babel": "^5.1.7", - "ember-cli-chai": "^0.1.0", "ember-cli-test-loader": "^1.1.0", "ember-cli-version-checker": "^1.1.6", "ember-mocha": "^0.9.1", @@ -43,6 +42,7 @@ }, "devDependencies": { "ember-cli": "2.9.1", + "ember-cli-chai": "^0.2.0", "ember-cli-dependency-checker": "^1.3.0", "ember-cli-htmlbars": "^1.0.10", "ember-cli-htmlbars-inline-precompile": "^0.3.3",