1.0.8 • Published 24 days ago
cti-web v1.0.8
CTI-WEB
本地调试
yarn link // 在cti-web项目内
yarn unlink // 卸载cti-web包
yarn link cti-web // 在需要使用cti-web的项目内
yarn unlink cti-web // 在需要使用cti-web的项目内,卸载cti-web包
npm发布
.npmignore // 配置需要忽略的npm包文件(package.json的files字段,为需要上传的文件)
npm adduser // 添加用户
npm whoami // 查看当前用户
npm pack // 本地模拟打包测试
npm publish // 发布npm包
npm unpublish xxx --force // 强制撤销xxx包
npm unpublish xxx@1.0.2 // 撤销xxx包的1.0.2版本
// 注:重新发布,每次发布都必须修改package.json里面的version版本号,否则无法发布
// 注:发布前 package.json 文件中的依赖项需要删除
依赖
项目依赖
"@shoelace-style/shoelace": "^2.0.0-beta.81",
"events": "^3.3.0",
"js-md5": "^0.7.3",
"lit": "^2.3.0",
"qs": "^6.11.0"
开发依赖
"@babel/core": "^7.18.10",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"eslint": "^8.22.0",
"rollup": "^2.78.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-css-only": "^3.1.0",
"rollup-plugin-lit-css": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"tslib": "^2.4.0", // 解决 Error: @rollup/plugin-typescript: Could not find module 'tslib'
"typescript": "^4.7.4"