0.1.3 • Published 2 years ago

ts-npx-parcel-template v0.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

TypeScript npx Template with Parcel

Package Publish

Test Building

npm version

Number of Downloads

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 version

Setup

npm i

Development

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
0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago