// The name `constructor` is important here constructor(args, opts) { // Calling the super constructor is important so our generator is correctly set up super(args, opts) this.argument('duckName', { type: String, required: false }) if (this.options.duckName) { this.duckName = _.camelCase(this.options.duckName) } }
this.destinationPath(`src/store/${this.duckName}/duck.js`), duckName: this.duckName, projectActionPrefix: this.projectActionPrefix this.destinationPath(`src/store/${this.duckName}/__tests__/duck.test.js`), duckName: this.duckName this.destinationPath(`src/store/${this.duckName}/api.js`), duckName: this.duckName this.destinationPath(`src/store/${this.duckName}/__tests__/api.test.js`), duckName: this.duckName