0.0.1 • Published 9 months ago

rocket-builder v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

vite-vanilla-ts-module

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