vite-vanilla-ts-module
TypeScript icon, indicating that this package has built-in type declarations

1.3.5 • Public • Published

vite-vanilla-ts-module

license release github-actions-develop-ci documentation visits

bundlephobia vulnerabilities

This is a vite boilerplate project, created via vanilla-ts template. Primarily, for rapid ts supported modules for publishing onto npm.

yarn build

Getting Started

yarn
yarn prepare
npx husky add .husky/pre-commit "yarn build"
npx husky add .husky/pre-commit "yarn prettier"

Lastly, your file .husky/pre-commit should look like below:

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn build
yarn prettier

Testing with Vitest

Run yarn test:run or yarn test:coverage to produce code coverage report.

yarn test:run

The code coverage report will indicate, if all test cases are 100% covered, flawed logic and so on.

Running vite

Run yarn dev to open index.html via http://localhost:3000.

It contains some quick links, to the stats.html and coverage index.html files.

yarn dev

Publishing

And when ready to publish to npm:

npm login
npm publish

Dependencies (3)

Dev Dependencies (14)

Package Sidebar

Install

npm i vite-vanilla-ts-module

Weekly Downloads

1

Version

1.3.5

License

MIT

Unpacked Size

192 kB

Total Files

10

Last publish

Collaborators

  • lixingjun