utilsofweb

bit utils of web

Usage no npm install needed!

<script type="module">
  import utilsofweb from 'https://cdn.skypack.dev/utilsofweb';
</script>

README

utilsofweb

$ npm i utilsofweb

usage: see document

support three build script

"scripts": {
  "build": "rollup -c",
  "build:all": "node scripts/build.js",
  "build:litcomp": "node scripts/buildLitcomp.js",
  ...
},
  • build: 入口 index.ts
  • build:all: 对 packages 下子项目 逐个打包
  • build:litcomp: 对 packages 下 litcomp(web components) 打包

dir: pr - some proposal that will not compile to dist

external third libs by install @types

issue

  • 不支持在 node 环境使用 (document is undefined)

TODO

  • 迁移出