[Question] Ability to run CSS modules type generation separately from the main project build

Abierto
#70 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
38/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
typescript
Área
build-system

Línea de trabajo

No file or test is named. Start by examining the plugin's current Rsbuild integration and CSS Modules type-generation flow, then determine the scope of a standalone CLI or programmatic entry point. Done means types can be generated without a full project build and the CI or pre-commit use case is documented.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hello!

Thank you for this useful library. We are using rsbuild-plugin-typed-css-modules in our project, and the plugin works perfectly for generating .d.ts declaration files during the Rsbuild process (dev server or full build).

However, we have the following requirement: to run the compilation and type generation process for CSS modules separately, without triggering a full project build.

Use case:
This is necessary for our CI/CD pipelines and pre-commit hooks. We need to ensure that the TypeScript definitions for styles are up-to-date before running static analysis (e.g., tsc --noEmit) or linting, without spending time on a full application build via Rsbuild.

Questions:

  1. Does the current version of the plugin provide a CLI interface, programmatic API, or a standalone script to generate types exclusively for CSS?
  2. If this is not currently possible, could you recommend a workaround or consider adding this feature in future releases?

Environment:

  • rsbuild-plugin-typed-css-modules version: 1.2.0
  • Rsbuild version: 1.5.4

Thank you in advance for your time and assistance!

Lenguaje dominante
TypeScript
Estrellas
11
Forks
5
Merge medio
3 d 18 h
PR fusionados (30 d)
3

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rstackjs/rsbuild-plugin-typed-css-modules

Todos los issues de rstackjs/rsbuild-plugin-typed-css-modules

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.