https://github.com/drxc00/ts-init
Yet another typescript CLI tool.
https://github.com/drxc00/ts-init
cli tool typescript
Last synced: about 2 months ago
JSON representation
Yet another typescript CLI tool.
- Host: GitHub
- URL: https://github.com/drxc00/ts-init
- Owner: drxc00
- License: mit
- Created: 2025-04-13T14:44:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-13T14:52:03.000Z (about 1 year ago)
- Last Synced: 2025-04-13T15:38:24.491Z (about 1 year ago)
- Topics: cli, tool, typescript
- Language: JavaScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-init
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.
## Installation
```bash
npm install -g @drxc00/ts-init
```
## Usage
```bash
npx ts-init || npx ts-init [options]
```
## Options
| Option | Description |
| --------------------------------- | ------------------------------------------------------- |
| `-n, --name ` | Project name (default: "ts-app") |
| `-d, --description ` | Project description |
| `-t, --transpile ` | Enable TypeScript transpilation (default: true) |
| `-o, --output-dir ` | Output directory for transpiled files (default: "dist") |
| `-l, --library ` | Configure as a library project (default: false) |
| `-m, --monorepo ` | Configure for monorepo usage (default: false) |
| `-b, --dom ` | Configure for browser/DOM usage (default: false) |
| `-i, --init ` | Initialize the project (default: true) |
## Example
```bash
ts-init --name my-project --description "My awesome project" --transpile true --output-dir build
```
## Development
To contribute or modify:
1. Clone the repository
2. Install dependencies:
```bash
npm install
```
3. Make your changes
4. Build the project:
```bash
npm run build
```
## Acknowledgement
- [Matt Pocock' Cheet Sheet](https://www.totaltypescript.com/tsconfig-cheat-sheet)