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