Load config from NPM package
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- javascript
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 661
- Forks
- 76
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus postcss/postcss-load-config
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
postcss/postcss-load-config#266 · 3 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
postcss/postcss-load-config#248 · 1 Kommentar ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
postcss/postcss-load-config#225 · 13 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 38/100
postcss/postcss-load-config#221 · 4 Kommentare ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
postcss/postcss-load-config#212 · 7 Kommentare ·
Alle Issues in postcss/postcss-load-config
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Forrest-Technologies/drover#1040 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue help wanted
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
erkamyaman/rust-anything#702 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
-
good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
erkamyaman/unslop-anything#231 ·
Maintainer antworten meist innerhalb von 1 Tag