Support customizable variables in templates

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

expo/create-react-native-app 的其他 Issue

查看 expo/create-react-native-app 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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