Setting up a tsconfig.json
can be confusing and time-consuming — TS-INIT simplifies the process. It's a lightweight CLI tool that helps you quickly scaffold a clean, minimal TypeScript project. Perfect for starting small projects or experimenting with TypeScript without the hassle.
npm install -g @drxc00/ts-init
npx ts-init || npx ts-init [options]
Option | Description |
---|---|
-n, --name <name> |
Project name (default: "ts-app") |
-d, --description <description> |
Project description |
-t, --transpile <transpile> |
Enable TypeScript transpilation (default: true) |
-o, --output-dir <outputDir> |
Output directory for transpiled files (default: "dist") |
-l, --library <library> |
Configure as a library project (default: false) |
-m, --monorepo <monorepo> |
Configure for monorepo usage (default: false) |
-b, --dom <dom> |
Configure for browser/DOM usage (default: false) |
-i, --init <init> |
Initialize the project (default: true) |
ts-init --name my-project --description "My awesome project" --transpile true --output-dir build
To contribute or modify:
- Clone the repository
- Install dependencies:
npm install
- Make your changes
- Build the project:
npm run build