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

taro create component xx 无效? #4097

Closed
nyrf opened this issue Aug 7, 2019 · 7 comments
Closed

taro create component xx 无效? #4097

nyrf opened this issue Aug 7, 2019 · 7 comments
Labels
question Further information is requested

Comments

@nyrf
Copy link

nyrf commented Aug 7, 2019

问题描述
使用taro create page index 这个命令可以生成页面,使用taro create component xxx 这样,没有任何页面生成,也没输出任何错误

❯ taro create component wx
👽 Taro v1.3.11

系统信息
❯ taro info
👽 Taro v1.3.11

Taro CLI 1.3.11 environment info:
System:
OS: macOS 10.14.4
Shell: 3.0.2 - /usr/local/bin/fish
Binaries:
Node: 12.6.0 - ~/.config/nvm/12.6.0/bin/node
Yarn: 1.12.1 - /usr/local/bin/yarn
npm: 6.9.0 - ~/.config/nvm/12.6.0/bin/npm

@taro-bot
Copy link

taro-bot bot commented Aug 7, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@Chen-jj
Copy link
Contributor

Chen-jj commented Aug 8, 2019

@nyrf
image

@Chen-jj Chen-jj added answered question Further information is requested labels Aug 8, 2019
@taro-bot taro-bot bot added the to be closed label Aug 8, 2019
@taro-bot
Copy link

taro-bot bot commented Aug 8, 2019

Hello~

您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

@nyrf
Copy link
Author

nyrf commented Aug 8, 2019

@Chen-jj

❯ taro --help
👽 Taro v1.3.11

Usage: taro <command> [options]

Options:
  -V, --version       output the version number
  -h, --help          output usage information

Commands:
  init [projectName]  Init a project with default templete
  config <cmd>        Taro config
  create [type]       Create page or component for project
  build               Build a project with options
  update              Update packages of taro
  convert             Convert weapp to taro
  info                Diagnostics Taro env info
  doctor              Diagnose taro project
  help [cmd]          display help for [cmd]

意思是现在不能create component? create [type] Create page or component for project

@Chen-jj
Copy link
Contributor

Chen-jj commented Aug 9, 2019

@nyrf 不能,还不支持创建组件,创建页面按 taro create --name=<page_name> 用。CLI 的用法提示下个版本会改正过来。

@archywillhe
Copy link

相关自己做个模版加个command是哪篇代码?

@archywillhe
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants