NativeScript / NativeScript/nativescript-cli
CLI command to generate new views
未关闭
还没有人认领这个 Issue。
epic
feature
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
This is an existing, but for some reason cancelled issue over here
https://github.com/NativeScript/nativescript-cli/issues/905
I groan every time I need to add a new view... it would be endlessly helpful to
"tns view add mypage" and have it generate the basic subs for a page, like the xml with the already in there, the ts\js (with navto wired, maybe a model) , css... all stubbed in
- tns view add mypage
- tns view add mypage --ts
- tns view add mypage --model myModel
Or whatever...
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看链接的已取消 issue #905 以及提议的 tns view add 命令形式。在定位 CLI 入口点之前,先定义该命令支持的选项。完成应意味着生成所请求的 XML、TypeScript 或 JavaScript 以及 CSS stub,并可选择接入 model 和 navigation。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- cli, mobile
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100