- src/index.ts 每次加新接口,都import 新接口。解决:自动导入
- 已解决:通过webpack的api: require.context. 需要先安装声明包:@types/webpack-env
- doc说明文档 美化生成?
- 已解决:typedoc
- 推包
- 已解决 output.libraryExport属性。src目录以文件名为函数Key,导出为 value
"scripts": {
"start": "webpack serve --mode=development --config ./example/webpack.config.js",
"build:types": "tsc --emitDeclarationOnly",
"type-check": "tsc --noEmit",
"build": "tsc --noEmit && webpack --mode=production --config ./build/webpack.config.js",
"docs": "typedoc",
"lint": "eslint src/**/* --ext .js,.ts",
"jest": "jest --coverage",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"next": "npm run build && npm set registry http://verdaccio.61info.com && npm version prerelease --preid=next && npm publish --tag=next && git push",
"patch": "npm run build && npm set registry http://verdaccio.61info.com && npm version patch && npm publish && git push",
"minor": "npm run build && npm set registry http://verdaccio.61info.com && npm version minor && npm publish && git push",
"major": "npm run build && npm set registry http://verdaccio.61info.com && npm version major && npm publish && git push"
}