0.1.3 • Published 3 years ago
ts-npx-parcel-template v0.1.3
TypeScript npx Template with Parcel
This is a simple template of a TypeScript npx console app, built using parcel.
The entrypoint is index.ts.
The following packages are used to make the console app more interactive
- chalk
- inquirer
- figlet
- chalk-animation
How To Run?
npx ts-npx-parcel-template
npx ts-npx-parcel-template@latest # if you don't get the latest versionSetup
npm iDevelopment
Method 2 and 3 support auto-reload.
Method 1
npm start:ts: run index.ts directly using ts-node
Method 2
npm run dev: run index.ts with ts-node and nodemon
Method 3
npm run watch: build automatically
npm run start: run produced JS file
Production Build
npm run build
"bin": "dist/index.cjs" in package.json specifies where the npx executable is.
Publish
Update "version" in package.json.
npm login
npm publish