lib/plugins/console/generate.ts
Function writeFile
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
writeFile(path: string, force?: boolean): Promise<any> {
const { route, log } = this.context;
const publicDir = this.context.public_dir;
const Cache = this.context.model('Cache');
const dataStream = this.wrapDataStream(route.get(path));
Function firstGenerate
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
firstGenerate(): Promise<void> {
const { concurrency } = this;
const { route, log } = this.context;
const publicDir = this.context.public_dir;
const Cache = this.context.model('Cache');