https://github.com/mysteryven/nodejs-cmd-template
https://github.com/mysteryven/nodejs-cmd-template
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mysteryven/nodejs-cmd-template
- Owner: mysteryven
- License: mit
- Created: 2022-11-13T08:06:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-13T09:06:36.000Z (over 2 years ago)
- Last Synced: 2025-03-28T17:19:51.008Z (3 months ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nodejs cmd template
## Use this template
```bash
npm i -g degit
degit https://github.com/mysteryven/nodejs-cmd-template projectName
```## Preview
```bash
pnpm i
pnpm build
node dist/index.js my name is mysteryzzz
```## Test
I only add `vitest`, but not found a straightforward way to test command.
```bash
// TODO
pnpm test
```## Tools
1. [cac](https://www.npmjs.com/package/cac)
2. [tsup](https://www.npmjs.com/package/tsup)
3. [vitest](https://www.npmjs.com/package/vitest)