NativeScript / NativeScript/nativescript-cli
resources generate images support
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Is your feature request related to a problem? Please describe.
When adding a new image resource to your project, it would be handy to be able to add one without going through https://images.nativescript.rocks/ or manually creating your own and placing them in the right folders.
Describe the solution you'd like
An extension of the resources generate command could be used that would act almost identically to the generate icons command, however it would use the original file name instead of "icon" when creating the different image sizes.
Describe alternatives you've considered
Making the generate icons command take another (optional) argument which allows an output name to be specified would also solve this issue
Anything else?
No response
Please accept these terms
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- I agree to follow this project's Code of Conduct
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 resources generate 命令及其现有的图标生成实现。扩展该命令,以使用原始文件名生成图像尺寸,或支持可选的输出名称;当无需外部工具或手动放置到文件夹中即可生成新的图像资源时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100