A template project that make create a typescript library easily.
If you wanna known about more detail about build and publish, you can read in here.
Use degit clone template to your local machine.
npx degit git@github.com:wangkaiwd/typescript-library-template.git my-libStart project:
cd my-lib
pnpm install
pnpm devIf you want to test your code in browser environment, you can try your code in playground directory
cd playground/vue-demo
pnpm dev- out of the box
- Automatic linting and formatting use
eslintandprettier - Build source code with
rollup - Tests use
vitestto make sure code quality - Automatic generate
changelog.mdandGitHub Release, usingconventional-changelog - Intercept commit that have problems, using
simple-git-hooks,lint-stagedcombine withgit hook - Support auto publish script, you can run
npm run releasewhen publish - Using
vitepresswrite document GitHub Actioncontinuous integration
