@acidev/sails-generate-vue-component 中文文档教程
@acidev/sails-generate-vue-component
用于 Sails 命令行界面的 vue-component
生成器。
Installation
$ npm install @acidev/sails-generate-vue-component --save
然后将以下内容合并到您的 .sailsrc
文件中:
{
"modules": {
"vue-component": "@acidev/sails-generate-vue-component"
}
}
请注意,代替
"@acidev/sails-generate-vue-component"
,您还可以选择提供本地生成器(例如“./generators/vue-component”)。 例如,如果您对组织内的特定项目或团队有特定的最佳实践,并且您希望能够将生成器签入代码存储库,这将很有用。某些生成器默认安装在 Sails 中,但可以覆盖它们。 其他生成器增加了对生成全新事物的支持。 查看 概念 > 加长风帆 > 生成器 有关安装生成器覆盖/自定义生成器的信息以及有关构建您自己的生成器的信息。
Usage
$ sails generate vue-component
Need help?
请参阅扩展帆 > 发电机 > Sails 文档中的自定义生成器,或查看 推荐的支持选项。
Bugs
To report a bug, click这里。
Contributing
在打开问题或提交拉取请求时,请遵守 Sails 项目贡献指南 中规定的准则和约定。
License
这个 vue 组件生成器在 MIT 许可证 下可用。
@acidev/sails-generate-vue-component
A vue-component
generator for use with the Sails command-line interface.
Installation
$ npm install @acidev/sails-generate-vue-component --save
Then merge the following into your .sailsrc
file:
{
"modules": {
"vue-component": "@acidev/sails-generate-vue-component"
}
}
Note that instead of
"@acidev/sails-generate-vue-component"
, you can also choose to provide the path to the generator locally (e.g. "./generators/vue-component"). This is useful if, for example, you have specific best practices for particular projects or teams within your organization, and you want to be able to check in generators to your code repository.Certain generators are installed by default in Sails, but they can be overridden. Other generators add support for generating entirely new kinds of things. Check out Concepts > Extending Sails > Generators for information on installing generator overrides / custom generators and information on building your own generators.
Usage
$ sails generate vue-component
Need help?
See Extending Sails > Generators > Custom Generators in the Sails documentation, or check out recommended support options.
Bugs
To report a bug, click here.
Contributing
Please observe the guidelines and conventions laid out in the Sails project contribution guide when opening issues or submitting pull requests.
License
This vue-component generator is available under the MIT license.
The Sails framework is free and open-source under the MIT License.