UNPKG

ember-material-icons

Version:

Google Material icons for your ember-cli app

25 lines (18 loc) 497 B
'use strict'; const fs = require('fs-extra'); module.exports = { description: 'Generates a lib directory for in-repo addons.', normalizeEntityName(name) { return name; }, beforeInstall() { // make sure to create `lib` directory even if .jshintrc is not created fs.mkdirsSync('lib'); }, files() { return this.hasJSHint() ? ['lib/.jshintrc'] : []; }, hasJSHint() { if (this.project) { return 'ember-cli-jshint' in this.project.dependencies(); } }, };