Use constants instead of hardcoded `android` and `ios` strings

オープン
#4,388 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android, ios, javascript
領域
cli, mobile-dev

調査の方向性

NativeScript CLI から始め、android、Android、ANDROID、ios、iOS、IOS のハードコードされたバリエーションと、既存の DevicePlatformsConstants の使用箇所を検索します。散在しているプラットフォーム文字列を共有定数に置き換え、関連するすべての CLI パスが platform.toLower() を必要とせずに同じ値を使用していることを確認します。

索引モデルが issue の本文から書いたものです。

説明

technical debt

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)

主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NativeScript/nativescript-cli のほかの issue

NativeScript/nativescript-cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。