Load config from NPM package
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 661
- Fork
- 76
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của postcss/postcss-load-config
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
postcss/postcss-load-config#266 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
postcss/postcss-load-config#248 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
postcss/postcss-load-config#225 · 13 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
postcss/postcss-load-config#221 · 4 bình luận ·
-
How to use async function?Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
postcss/postcss-load-config#212 · 7 bình luận ·
Tất cả issue của postcss/postcss-load-config
Issue tương tự
-
fix: the live capture mode of check-native-browser.mjs ignores PLAYWRIGHT_CHROMIUM_EXECUTABLEĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Forrest-Technologies/drover#1040 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
erkamyaman/rust-anything#702 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
erkamyaman/unslop-anything#231 ·
Maintainer thường phản hồi trong vòng 1 ngày