From d033fd46505e34afdc52de244c6ba7a35478c38c Mon Sep 17 00:00:00 2001 From: Zeffon Wu Date: Wed, 12 Apr 2023 09:44:00 +0800 Subject: [PATCH] chore: add generator option in install --- packages/create-koa-web/src/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/create-koa-web/src/index.ts b/packages/create-koa-web/src/index.ts index 56ba8b3..a57d1ce 100644 --- a/packages/create-koa-web/src/index.ts +++ b/packages/create-koa-web/src/index.ts @@ -3,7 +3,7 @@ import path from 'node:path' import { fileURLToPath } from 'node:url' import minimist from 'minimist' import prompts from 'prompts' -import { green, magenta, red, reset, yellow } from 'kolorist' +import { blue, green, magenta, red, reset, yellow } from 'kolorist' // Avoids autoconversion to number of the project name by defining that the args // non associated with an option ( _ ) needs to be parsed as a string. See #4606 @@ -41,6 +41,11 @@ const FRAMEWORKS: Framework[] = [ display: 'Full', color: red, }, + { + name: 'generator', + display: 'Generator', + color: blue, + }, ] const TEMPLATES = FRAMEWORKS.map((f) => [f.name]).reduce(