@modern-js/create
provides the --config parameter, which is used to specify the answers to interactive questions in advance during the execution process.
Here, we will introduce the fields and field values that can be configured in the config
under different scenario.
Question: Please select the type of project you want to create.
Options:
Web App -- mwa
Npm Module -- module
Doc Site -- doc
Question: Please select the project scenario.
Options:
List of plugin keywords when using custom generator plugins.
Question: Please select the programming language.
Options:
TS -- ts
ES6+ -- js
Question: Please select the package manager.
Options:
pnpm -- pnpm
Yarn -- yarn
npm -- npm
Question: Please fill in the project name.
The value of the name
field in the package.json
file of the Npm module, which is a string type.
Question: Please select the programming language.
Options:
TS -- ts
ES6+ -- js
Question: Please select the package manager.
Options:
pnpm -- pnpm
Yarn -- yarn
npm -- npm
Question: Please select the package manager.
Options:
pnpm -- pnpm
Yarn -- yarn
npm -- npm