0.0.6 • Published 10 months ago

npm-starter-kit v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

šŸš€ Npm Package Stack

A minimal starter kit designed to build and publish a npm package with ease.

The Stack includes

Installation

  1. Fork the repository
  2. Clone the repository git clone https://github.com/<your_github_username>/npm-package-stack.git
  3. Navigate to the directory cd npm-package-stack
  4. Make sure you edit the below properties in the package.json file
    • name
    • version
    • description
    • homepage
    • repository
    • keywords
    • author
    • license
  5. Install dependencies pnpm install
  6. For more scripts refer to package.json file

Make sure you have Node.js and pnpm installed in your machine

Scripts and Commands

  1. pnpm build - compiles the typescript code using tsup with tsup.config.ts file as configuration
  2. pnpm lint - lints the project using tsc
  3. pnpm check-exports - checks if all exports from the package are correct
  4. pnpm format - formats the project using biome
  5. pnpm check-format - check if all files in the project are formatted correctly
  6. pnpm test - test the project using vitest
  7. pnpm dev - test the project using vitest in watch mode
  8. pnpm prepublishOnly - run the ci script before running local-release script
  9. pnpm local-release - run changeset version and publish to npm using changeset publish
  10. pnpm ci - runs the CI process for GitHub actions

Project Structure

# GitHub
.
ā”œā”€ā”€ src
│   ā”œā”€ā”€ functions.ts
│   ā”œā”€ā”€ index.ts
│   └── types.ts
ā”œā”€ā”€ .gitignore
ā”œā”€ā”€ .npmignore
ā”œā”€ā”€ biome.json
ā”œā”€ā”€ package.json
ā”œā”€ā”€ pnpm-lock.yaml
ā”œā”€ā”€ README.md
ā”œā”€ā”€ tsconfig.json
└── tsup.config.ts
# Npm
.
ā”œā”€ā”€ dist
│   ā”œā”€ā”€ index.d.mts
│   ā”œā”€ā”€ index.d.ts
│   ā”œā”€ā”€ index.js
│   └── index.mjs
ā”œā”€ā”€ package.json
└── README.md

Support & Contribute

If you found this project helpful or enjoyed using it, please consider giving it a ā­ļø on GitHub! It helps others find the project and motivates us to keep improving.

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago