Support customizable variables in templates

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, react-native
領域
cli

調査の方向性

ファイル、テスト、エントリポイントは指定されていません。まず、CLI のテンプレート処理とプロンプト表示のコードを探し、次にテンプレートのメタデータがどこで読み込まれるかを特定します。テンプレートが JSON でカスタマイズに関する質問を定義でき、CLI がそれらを尋ねて回答を適用し、JSON がないテンプレートは変更されない状態になれば完了です。

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

説明

enhancement

Hey, this is a feature request and I would possibly want to work on it as I'm looking for simple stuff to do on my free time.

Basically what I'm suggesting is adding to the cli the ability to ask some questions defined by the template maker to customize the template. The questions would be defined in a json that would live inside the template's folder.

Here are few examples :

  • A firebase template could ask for apiKey, authDomain, databaseURL, ...
  • Another template could ask for a primaryColor, secondaryColor, ...
  • Many more applications

No json would mean no customization.

Let me know if you think something like this would be useful

主要言語
JavaScript
スター
13.2k
フォーク
1.3k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

expo/create-react-native-app のほかの issue

expo/create-react-native-app の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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