ModusCreateOrg / ModusCreateOrg/modus-cli

CLI could initialize the scaffolding for releasing React libs

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

还没有人认领这个 Issue。

enhancement
主要语言
JavaScript
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Description

Releasing open source React components requires heavy scaffolding. Once we are done with tests, CI, and examples for react-idle, we could use that setup for other similar projects

React Idle setup is somewhat opinionated but to a reasonable degree. For instance:

  • Flow is set up. Not all projects require flow, but having type safety in an open source project is extremely helpful
  • code formatting with eslint and prettier should stay there, but tweaks are possible
  • rollup is used over webpack, which may introduce a learning curve. Still, rollup has certain advantages for libraries, which was also heavily researched by React team
  • testing suite may prove to be too specific, but we'll see that it's reasonable enough
  • we like to work with different CIs and will need to pick one

This may require a separate repo. It would be interesting to create something like create-react-app so it can be maintained from one place

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先审查现有的 react-idle 设置,包括其测试、CI 配置、示例、Flow 的使用,以及 ESLint 和 Rollup 配置。将该设置与提议的 create-react-app-style CLI 进行比较,并决定 scaffold 应属于此 repository 还是单独的 repository。明确支持的 scaffold、CI 选择以及可复用默认值的范围,即表示完成。

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

评估

技术栈
eslint, javascript, react, rollup, webpack
领域
build-system, ci-cd, cli, frontend, testing, tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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