create-tsc
v1.0.4
Published
A simple CLI tool to create TypeScript projects
Downloads
70
Maintainers
Readme
crate-tsc
A simple CLI tool to create TypeScript projects with zero configuration.
Installation
You don't need to install this package globally. Use it directly with npm/npx:
npm create tsc my-project
# or
npx crate-tsc my-projectUsage
Run the command:
npm create tscFollow the interactive prompts to configure your project:
- Project name
- Description
- Author
- License
- TypeScript compiler options
- Additional tools (ts-node, etc.)
Confirm your choices and the tool will create a fully configured TypeScript project.
What's Included
When you create a project with crate-tsc, you'll get:
- A ready-to-use package.json with TypeScript build scripts
- Preconfigured tsconfig.json based on your preferences
- Basic project structure with
src/anddist/directories - Sample
index.tsfile to get you started - Optional
ts-nodesetup for development
Project Structure
my-project/
├── package.json
├── tsconfig.json
├── src/
│ └── index.ts
└── dist/Available Scripts
After creating your project, you can use these npm scripts:
npm run build- Compile TypeScript to JavaScriptnpm start- Run the compiled JavaScriptnpm run dev- Run TypeScript directly with ts-node (if selected)
Requirements
- Node.js 12.0.0 or higher
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
