Minimal TypeScript kit: strict typing, clean setup, ready to code.
ts-minimal-kit/
├── src/
│ └── app.ts # Main application file
├── dist/ # Compiled files (created automatically)
├── .gitignore # Git ignored files
├── .npmignore # npm ignored files
├── .prettierrc # Prettier configuration
├── package.json # Project settings and dependencies
├── tsconfig.json # TypeScript configuration
└── README.md # This file
⚡ Method 1: CLI Installer (Recommended)
npm install -g ts-minimal-kit-cli
ts-minimal-kit my-projectAutomatically clones template, removes git history, initializes new repository, installs dependencies.
- Click the "Use this template" button on the repository page
- Create a new repository based on the kit
- Clone your new repository:
git clone https://github.com/your-username/your-project.git cd your-project
npx degit k1de/ts-minimal-kit my-project
cd my-projectgit clone https://github.com/k1de/ts-minimal-kit.git my-project
cd my-project
npm run degit # Remove git history
git init # Initialize new repository- Download ZIP archive from GitHub
- Extract to desired folder
- Rename folder to your project name
Setup:
- Install dependencies:
npm installDevelopment:
- Watch and compile:
npm run dev - Build:
npm run build - Run:
npm run start - Build and run:
npm run build:start
Utilities:
- Clean:
npm run clean - Remove git history:
npm run degit
Recommendation: Update TypeScript to the latest version:
npm install -D typescript@latest @types/node@latestThis will install the current stable version of TypeScript in your project and write it to package.json.
Check current version:
npx tsc --version- Strict typing enabled
- Source maps for debugging
- Declaration files for libraries
- Modern ESNext features
- CommonJS modules support
ISC © tish