1.0.3 • Published 4 months ago

vehicle-widget v1.0.3

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

vite-vanilla-ts-template-extended (AKA vite-vanilla-ts-module)

A starter vanilla-ts (extended) template that began with Vite 3.x, prepared for writing node utility libraries in typescript. This starter is meant to provide rapid node package development and 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:5174.

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

yarn dev

Build your package

Run yarn build, and check the dist folder for the final build output.

If there are issues with the package, check package.json (props main, module, typings, files and etc), tsconfig.json (such as allowJs) and dependency versions (especially vite) to narrow down the build or typings errors you're experiencing.

Publishing

And when ready to publish to npm:

npm login
npm publish
1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago

2.0.1

4 months ago