forijk / web-lib-template

Web SDK/Library Template Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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@latest/dist/index.min.js"></script>
<script>
    new LibName()
</script>

Get Source

  1. fork
  2. clone
  3. use this template

Command

{
  "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"
  }
}

TODO/Feature

  • pnpm
  • eslint
  • typescript
  • vite/rollup
  • tsup
  • build
  • build:dev
  • css/scss/less
  • serve
  • docs
  • ...

About

Web SDK/Library Template Project


Languages

Language:TypeScript 52.0%Language:JavaScript 25.5%Language:HTML 12.4%Language:SCSS 7.9%Language:CSS 1.1%Language:Less 1.1%