0.0.3 • Published 6 months ago

create-defts v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

create-defts

šŸš€ Create a project using TypeScript as the default language.

English | 简体中文

It is evident that this is a Nodejs-based scaffolding tool designed to help you quickly create a project developed using the TypeScript language.

  • All projects default to using TypeScript instead of JavaScript.

  • Multiple project types are available, such as: CLI(command-line tool)态Library(tool library)

  • Based on @hacxy/eslint-config and uses a unified coding style.

  • Default to validating git commit messages, use npm run commit to generate fixed-format commit messages.

  • Default to providing a release script and automatically creating a GitHub release, execute npm run release to complete the release process.

Prerequisites

  • nodejs >= 18

Usage

Using npm:

npm create defts@latest

Using yarn:

yarn create defts

Using pnpm:

pnpm create defts

Using bun:

bun create defts

Please follow the prompts after execution.


You can also specify the project name and required project template directly through additional command-line options. For example, to build a CLI project, run:

# npm 7+, an additional double dash is required:

npm create defts@latest my-cli-app -- --template cli-tsup

# yarn:

yarn create defts my-cli-app --template cli-tsup

# pnpm:

pnpm create defts my-cli-app --template cli-tsup

# bun:

bun create defts my-cli-app --template cli-tsup

License

MIT License Ā© 2023-PRESENT Hacxy