开箱即用的Web SDK/Library 工程模板
will add a tag to your page center
# npm
npm i tpl-web-lib
# yarn
yarn add tpl-web-lib
# pnpm
pnpm add tpl-web-lib
import libName from 'tpl-web-lib'
new libName()
add script in html template
<script src="https://unpkg.com/tpl-web-lib@latest/dist/index.min.js"></script>
<script>
new LibName()
</script>
- fork
- clone
- use this template
{
"scripts": {
"serve": "vite",
"build": "run-s build:*",
"build:source": "vite build",
"build:type": "tsup src/index.ts --dts-only",
"lint": "eslint src --fix --ext .ts"
}
}
- pnpm
- eslint
- typescript
- vite/rollup
- tsup
- build
- build:dev
- css/scss/less
- serve
- docs
- ...