generators/app/index.js
Function prompting
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prompting() {
this.options.needRootFolder = true
if (!this.options.id) {
this.options.needRootFolder = false
this.options.id = this.env.cwd.split(path.sep).pop()
Function writing
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
writing() {
const root = this.options.needRootFolder ? this.options.id + '/' : ''
this.fs.copy(
this.templatePath('app.js'),
this.destinationPath(root + 'app.js')