1.基于脚手架项目创建你的项目
git clone <https://github.com/alexjoverm/typescript-library-starter.git> ${yourProjectName}
cd ${yourProjectName}
2.安装依赖
npm install
3.启动开发指令
npm run start
4.在实例网页中引入构建的产物
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script src="./../dist/${yourProjectName}.umd.js"></script>
</body>
</html>