NativeScript / NativeScript/nativescript-cli

Request: Support environments other than release and debug

未关闭
#3,156 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

build feature publish run
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Currently, there are two supported environments, release and debug. The default is debug and "--release" can be used to build a release version of the app. It would be useful to have other environments, so I was wondering if it would be possible to add an "--environment" flag be allowed to specify these.

For example, "tns run android --environment=test" would use the file app.component.test.ts.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

tns run android 的 CLI 处理以及现有的 --release 和调试环境选择开始。跟踪 app.component.ts 的选择方式,然后定义 --environment=test 必须选择什么,并通过使用 app.component.test.ts 的示例命令展示完成情况。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, javascript, typescript
领域
cli, mobile-dev
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。