NativeScript / NativeScript/nativescript-cli
Use constants instead of hardcoded `android` and `ios` strings
オープン
まだ誰も着手していません。
technical debt
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
Is your feature request related to a problem? Please describe.
We have "android", "Android", "ANDROID" and "ios", "iOS", "IOS" hardcoded in many places in the CLI. In most of the places, we are also using platform.toLower() in order to workaround this.
Describe the solution you'd like
We should just use the same constants everywhere (e.g. DevicePlatformsConstants)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
NativeScript CLI から始め、android、Android、ANDROID、ios、iOS、IOS のハードコードされたバリエーションと、既存の DevicePlatformsConstants の使用箇所を検索します。散在しているプラットフォーム文字列を共有定数に置き換え、関連するすべての CLI パスが platform.toLower() を必要とせずに同じ値を使用していることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, ios, javascript
- 領域
- cli, mobile-dev
- issue の種類
- リファクタリング
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100