Load config from NPM package
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- JavaScript
- Estrellas
- 661
- Forks
- 76
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de postcss/postcss-load-config
-
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
postcss/postcss-load-config#266 · 3 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
postcss/postcss-load-config#248 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
postcss/postcss-load-config#225 · 13 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
postcss/postcss-load-config#221 · 4 comentarios ·
-
How to use async function?Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
postcss/postcss-load-config#212 · 7 comentarios ·
Todos los issues de postcss/postcss-load-config
Issues similares
-
fix: the live capture mode of check-native-browser.mjs ignores PLAYWRIGHT_CHROMIUM_EXECUTABLEAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Forrest-Technologies/drover#1040 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
erkamyaman/rust-anything#702 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
erkamyaman/unslop-anything#231 ·
Los mantenedores suelen responder en 1 día