[Question] Ability to run CSS modules type generation separately from the main project build
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 38/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- typescript
- 领域
- build-system
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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:
- Does the current version of the plugin provide a CLI interface, programmatic API, or a standalone script to generate types exclusively for CSS?
- If this is not currently possible, could you recommend a workaround or consider adding this feature in future releases?
Environment:
rsbuild-plugin-typed-css-modulesversion: 1.2.0- Rsbuild version: 1.5.4
Thank you in advance for your time and assistance!
- 主要语言
- TypeScript
- 星标
- 11
- 派生
- 5
- 平均合并
- 3 天 18 小时
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rstackjs/rsbuild-plugin-typed-css-modules 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
rstackjs/rsbuild-plugin-typed-css-modules#41 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
rstackjs/rsbuild-plugin-typed-css-modules#17 · 6 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
查看 rstackjs/rsbuild-plugin-typed-css-modules 的全部 Issue
相似的 Issue
-
[Bug]: Manager UI logo fails to load — broken external URL可能已有人在做 @kavindu-udara 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 62/100
excalidraw/excalidraw#12743 ·
维护者通常 1 天内回复
-
area: cli priority: P2 type: bug
难度 2/5 1-3 小时 新手友好度 62/100
appandflow/stim#6381 · 1 条评论 ·
维护者通常 1 天内回复
-
area: ui-kit type: chore
难度 1/5 1 小时以内 新手友好度 82/100
schlessera/brain-kit#4598 ·
维护者通常 1 天内回复
-
good first issue spec
难度 2/5 1-3 小时 新手友好度 66/100