-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
使用preset在本地调试创建项目,generator.js不起作用 #2172
Labels
needs reproduction
This issue is missing a minimal runnable reproduction, provided by the author
Comments
preset.json配置的选项是有效的,但是generator.js和prompts.js无效
prompts.js 内容如下
|
无法复现……能否提供下另外两个文件的内容? |
haoqunjiang
added
the
needs reproduction
This issue is missing a minimal runnable reproduction, provided by the author
label
Aug 13, 2018
preset.json
generator.js
|
😂还是没办法复现……录了个屏 |
确定你用的是正式的 3.0.0 版本。 |
@sodatea @yyx990803 3.0版本仅支持在同级目录下的generator.js,并不支持使用在generator文件夹下的文件进行创建
这样的写法是读取不到的,插件的写法是可以支持这样的写法的,是否可以支持呢 |
……这跟你昨天提供的目录结构不一样啊 |
@sodatea 因为在本地测试时,运行的是rc版本,当时没有注意切换node环境导致没有效果,sorry. |
haoqunjiang
added a commit
to haoqunjiang/vue-cli
that referenced
this issue
Aug 17, 2018
haoqunjiang
added a commit
to haoqunjiang/vue-cli
that referenced
this issue
Aug 17, 2018
yyx990803
pushed a commit
that referenced
this issue
Aug 20, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
needs reproduction
This issue is missing a minimal runnable reproduction, provided by the author
Version
3.0.0
Node and OS info
node 8.11.1 / yarn 1.9.2 / mac 10.13.5
Steps to reproduce
1.根据文档要求,在preset.json同级目录创建Prompts.js 和generator.js
2.使用命令 vue create --preset ./my-preset xxxxx
What is expected?
prompts.js 内容如下:
module.exports = [
{
name: "wechartEnv",
type: "confirm",
message:
xxxx
},
{
name: "needLinkme",
type: "confirm",
message:
xxxxx
}
];
What is actually happening?
并未出现任何选项,generator.js无设置无效果
The text was updated successfully, but these errors were encountered: