Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: 初始化时候 支持跳过默认的选择 #456

Closed
tao1991123 opened this issue Oct 20, 2020 · 2 comments
Closed

feature: 初始化时候 支持跳过默认的选择 #456

tao1991123 opened this issue Oct 20, 2020 · 2 comments
Labels
Enhance New feature or request
Milestone

Comments

@tao1991123
Copy link

因为我是用了 自定义模板初始化项目。npm init rax demo --template xxxxxx
初始化的时候, 会让用户选择两个选项。问题在于 我自定义模板中 这两个问题是的答案写死的。
无论我这些 web 还是 miniapp 或是其他的选项。初始化出来的项目都与该两个选项无关。给用户造成误解。

image
image
所以期望能增加参数, 在初始化项目的时候跳过对默认选项的选择

@tao1991123 tao1991123 changed the title 初始化时候 支持跳过默认的选择 feature: 初始化时候 支持跳过默认的选择 Oct 20, 2020
@SoloJiang SoloJiang added this to the 3.0.6 milestone Oct 23, 2020
@SoloJiang SoloJiang added the Enhance New feature or request label Oct 23, 2020
@SoloJiang
Copy link
Contributor

#470

@SoloJiang
Copy link
Contributor

可以通过 -s 或者 --skip-ask 跳过询问机制

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhance New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants