From c251993e2b1987bf47c61d626e74f085f85cf189 Mon Sep 17 00:00:00 2001 From: Ben Holmes Date: Thu, 12 Mar 2015 17:06:46 -0700 Subject: [PATCH] Import Bugsnag through bower --- blueprints/ember-cli-bugsnag/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/blueprints/ember-cli-bugsnag/index.js b/blueprints/ember-cli-bugsnag/index.js index a4a469d..b7b3b20 100644 --- a/blueprints/ember-cli-bugsnag/index.js +++ b/blueprints/ember-cli-bugsnag/index.js @@ -10,10 +10,18 @@ module.exports = { }, afterInstall: function() { + + this.addBowerPackageToProject('bugsnag', '~2.4.7'); + this.insertIntoFile('.jshintrc', ' "Bugsnag",', { after: '"predef": [\n' }); return this.insertIntoFile('.gitignore', '.bugsnag'); - } + }, + + included: function(app) { + this._super.included(app); + app.import(app.bowerDirectory + '/bugsnag/src/bugsnag.js'); + }, };