1.0.1 • Published 3 years ago
@peterroe/rename v1.0.1
cli-starter
A command line tool template.
Try it now!
Create repo from this template on Github
Or:
$ npx degit peterroe/cli-starter my-cli
$ cd my-cli
$ pnpm i # npm install -g pnpmDevelopment
$ npx esno src/index.tsExample
$ npx esno src/index.ts -h
$ npx esno src/index.ts -v
$ npx esno src/index.ts lint one twoBuild
$ pnpm buildPublish
Update the name:
{
- "name": "cli-starter",
+ "name": "xxx",
"bin": {
- "cli-starter": "./dist/index.mjs"
+ "xxx": "./dist/index.mjs"
},Publish to npm:
$ pnpm release # or npm publish directlyInstall your own command line tool:
$ npm install -g xxxThen use it...