ts-npx-parcel-template
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i ts-npx-parcel-template

Weekly Downloads

2

Version

0.1.3

License

ISC

Unpacked Size

20.8 kB

Total Files

11

Last publish

Collaborators

  • huakunshen