Skip to content

Commit

Permalink
chore: add generator option in install
Browse files Browse the repository at this point in the history
  • Loading branch information
zeffon committed Apr 12, 2023
1 parent 6a2c302 commit d033fd4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/create-koa-web/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit d033fd4

Please sign in to comment.