0.0.3 • Published 4 years ago

tpl-web-lib v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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

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

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago