2.5k
GitHub Stars
3
Bundled Files
3 weeks ago
Catalog Refreshed
1 month ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstart where the catalogue uses aiagentskills.
npx veilstart add skill openclaw/skills --skill typescript-config-generator- _meta.json315 B
- SKILL.md1.3 KB
- typescript-config-generator.sh372 B
Overview
This skill generates professional TypeScript configuration files tailored to different project needs. It offers presets for strict mode, React, Node.js, libraries, minimal prototypes, and produces commented, best-practice tsconfig.json files with one command. Use it to quickly get a correct compilerOptions baseline and reduce manual setup time.
How this skill works
Select a preset or provide custom flags and the tool constructs a tsconfig.json that matches common patterns for that environment. It injects strict type-checking options when requested, configures JSX and module/target settings for React or Node, and can output to a specified file path. Comments and sensible defaults help teams adopt consistent TypeScript settings.
When to use it
- Starting a new TypeScript project and you need a solid tsconfig baseline.
- Converting a JavaScript repo to TypeScript and you want safe defaults.
- Setting up CI or build pipelines that require strict compiler guarantees.
- Creating libraries that must support multiple module targets and consumers.
- Generating a minimal config for quick prototypes or experiments.
Best practices
- Use the strict preset for production code to catch type issues early.
- Choose the node or react preset to automatically set module/JSX targets.
- Keep a shared base tsconfig for monorepos and extend per-package overrides.
- Commit the generated tsconfig.json to source control to ensure consistency.
- Customize target and module settings to match your runtime (Node version, browser support).
Example use cases
- Generate a strict tsconfig for a backend service: typescript-config-generator --preset strict
- Create a React-ready config with JSX support for a frontend app: typescript-config-generator --preset react
- Produce a minimal prototype config to speed up experimentation: typescript-config-generator --preset minimal
- Build a library-ready config that sets declaration output and module targets: typescript-config-generator --preset library
- Export the config to a custom path for CI: typescript-config-generator --preset node --output ./config/tsconfig.json
FAQ
Yes. You can pass flags like --target and provide an output path; generated files are editable so you can further tune compilerOptions.
Is the generated config safe for production?
The strict preset enables strict type checks and common quality flags intended for production projects; review and adjust runtime-specific targets as needed.