ht-create-tsapp
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

TypeScript create-my-ts-app

Generate TypeScript projects with a clean structure in seconds

npm version License: MIT TypeScript ESM Ready

✨ Features

🚀 Modern Setup

  • Latest TypeScript configuration
  • ES Modules by default
  • Type-safe throughout

🛠️ Developer Experience

  • Prettier pre-configured
  • Optimized tsconfig.json
  • Git repository initialized

📦 Package Manager Choice

  • Support for npm, yarn, pnpm or bun
  • Automatic dependency installation

📁 Flexible Structure

  • Optional utils directory
  • Optional lib directory
  • Clean, organized layout

🚀 Installation

# Install globally
npm install -g ht-create-tsapp

# Or use directly with npx
npx ht-create-tsapp

📋 Usage

Simply run the command and follow the interactive prompts:

ht-create-tsapp
🔍 Interactive prompts guide

The CLI will guide you through the setup process:

  1. Project name - Name for your TypeScript project
  2. Utils directory - Whether to include utility functions
  3. Lib directory - Whether to include library modules
  4. Package manager - Choose from npm, yarn, pnpm, or bun

📂 Project Structure

Your generated project will have the following structure:

your-project-name/
├── dist/               # Compiled JavaScript files
├── scripts/            # Script files
├── lib/                # (Optional) Library modules
├── utils/              # (Optional) Utility functions
├── main.ts             # Entry point
├── package.json        # Project dependencies and scripts
├── tsconfig.json       # TypeScript configuration
├── prettier.config.mjs # Prettier configuration
└── .gitignore          # Git ignore rules

📜 Available Scripts

Your generated project includes these npm scripts:

Script Description
dev Runs TypeScript compiler in watch mode
build Compiles TypeScript to JavaScript
format Formats code with Prettier
start Builds and runs the compiled application

Note: The script commands will automatically use your selected package manager.

🌱 Getting Started After Installation

# Navigate to your project directory
cd your-project-name

# Start development (with your chosen package manager)
npm run dev  # or yarn dev, pnpm dev, bun dev

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -am 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Submit a pull request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

👤 Author

Harsh Thakur

🙏 Acknowledgements


Built with ❤️ for TypeScript developers

Readme

Keywords

none

Package Sidebar

Install

npm i ht-create-tsapp

Weekly Downloads

6

Version

1.2.0

License

MIT

Unpacked Size

48 kB

Total Files

33

Last publish

Collaborators

  • devharshthakur