ember-cli
Version:
Command line tool for developing ambitious ember.js apps
22 lines (16 loc) • 409 B
JavaScript
;
module.exports = {
description: 'Generates a blueprint and definition.',
files() {
let files = this._super.files.apply(this, arguments);
if (!this.hasJSHint()) {
files = files.filter(file => file !== 'blueprints/.jshintrc');
}
return files;
},
hasJSHint() {
if (this.project) {
return 'ember-cli-jshint' in this.project.dependencies();
}
},
};