Skip to content

Commit

Permalink
Import Bugsnag through bower
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Holmes committed Mar 13, 2015
1 parent 79baa95 commit c251993
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion blueprints/ember-cli-bugsnag/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
},
};

0 comments on commit c251993

Please sign in to comment.