ts-easy is your minimalist TypeScript starter for Node.js projects. No fluff, just the essentials to get you up and running with TypeScript, ESLint, Prettier, and more. Perfect for initiating any TypeScript project, whether it's a CLI tool, library, or something entirely different.
- TypeScript: Strongly typed JavaScript for the win.
- ESLint: Keep your code clean and consistent.
- Prettier: Automatic code formatting to keep everything looking sharp.
- VSCode Settings: Optimized workspace settings out of the box.
- pnpm: Fast, disk space-efficient package manager.
- ts-node-dev: Instant feedback with autoreload on save.
- tsup: Super fast TypeScript bundler.
- Zod: Type-safe schema validation made easy.
git clone https://github.com/yourusername/ts-easy.git
cd ts-easy
Make sure you have pnpm installed. Then, run:
pnpm install
Kickstart your development with autoreload on save:
pnpm dev
Ready to ship? Build your project with:
pnpm build
ts-easy/
βββ src/
β βββ main.ts # Entry point for your TypeScript project
βββ .vscode/
β βββ settings.json # VSCode workspace settings
β βββ extensions.json # Recommended VSCode extensions
βββ eslint.config.mjs # ESLint configuration
βββ build.ts # Build configurations for tsup
βββ .prettierrc # Prettier configuration
βββ tsconfig.json # TypeScript configuration
βββ package.json # Project metadata and scripts
βββ pnpm-lock.yaml # Dependency lockfile
- pnpm dev: Run your project with autoreload.
- pnpm start: Run your build.
- pnpm lint: Lint your TypeScript code using ESLint.
- pnpm lint:fix: Lint and fix your TypeScript code using ESLint.
- pnpm format: Format your code with Prettier.
- pnpm build: Bundle your project using tsup.
- Minimal: Just the essentials, no bloat.
- Flexible: Use it for any TypeScript-based project.
- Modern: Includes the latest and greatest tools like tsup and Zod.
This project is licensed under the MIT License.