Load config from NPM package
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
Start by reading the current config-loading entry point and how the --config option is handled. Compare the proposed package-name and package.json forms, including scoped packages and nested config paths. Done means shared configurations can be resolved through the requested CLI and package.json syntax with behavior consistent with module resolution.
由索引模型根据 Issue 内容生成。
描述
Sharing a preset across teams or packages is a great way to reduce complexity. It surprises me that PostCSS forces me to use a postcss.config.js file rather than giving me the option to point to a shared package.
Passing a package name instead of a simple path is easy to integrate with existing options. An intuitive command line syntax might look like this:
postcss --config myPackage
postcss --config myPackage/path/to/config.js
postcss --config @myOrg/myPackage/...
Although, the preferred option would clearly be referencing it in package.json:
"postcss": "myPackage"
"postcss": "@myOrg/myPackage/path/to/config.js"
"postcss": {
"config": "@myOrg/myPackage/path/to/config.js"
}
Prettier implements sharing configs quite beautifully with its package.json option.
To minimize friction for the user, the path string should optimally be resolved in the same way module paths are resolved in Parcel or Webpack.
- 主要语言
- JavaScript
- 星标
- 661
- 派生
- 76
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
postcss/postcss-load-config 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 25/100
postcss/postcss-load-config#266 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
postcss/postcss-load-config#248 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
postcss/postcss-load-config#225 · 13 条评论 ·
-
难度 3/5 1-2 天 新手友好度 38/100
postcss/postcss-load-config#221 · 4 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
postcss/postcss-load-config#212 · 7 条评论 ·
查看 postcss/postcss-load-config 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
Forrest-Technologies/drover#1040 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
good first issue help wanted
难度 1/5 1 小时以内 新手友好度 90/100
erkamyaman/rust-anything#702 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 85/100
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
erkamyaman/unslop-anything#231 ·
维护者通常 1 天内回复