tpl-web-lib
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Web SDK/Library Template Project

开箱即用的Web SDK/Library 工程模板

搭建文章链接

Usage

will add a tag to your page center

图片

NPM

# 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()

CDN

add script in html template

<script src="https://unpkg.com/tpl-web-lib@0.0.2/dist/index.min.js"></script>
<script>
    new LibName()
</script>

Get Source

  1. fork
  2. clone
  3. use this template

Command

{
  "scripts": {
    "serve": "vite",
    "build:dev": "vite build -w",
    "build": "rimraf dist && vite build && npm run roll-types",
    "roll-types": "api-extractor run && npm run rm-temp-types",
    "rm-temp-types": "rimraf dist/lib dist/types dist/constants",
    "lint": "eslint src --fix --ext .ts"
  }
}

TODO/Feature

  • [x] pnpm
  • [x] eslint
  • [x] typescript
  • [x] vite/rollup
  • [x] api-extractor
  • [x] build
  • [x] build:dev
  • [x] css/scss/less
  • [x] serve
  • [x] docs
  • [ ] ...

Dependents (0)

Package Sidebar

Install

npm i tpl-web-lib

Weekly Downloads

3

Version

0.0.3

License

ISC

Unpacked Size

148 kB

Total Files

29

Last publish

Collaborators

  • atqq