{"_id":"@boyan-chengdu/root","_rev":"4-86639761fe271500fcb9724d59e908dc","name":"@boyan-chengdu/root","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"@boyan-chengdu/root","version":"0.0.1","description":"项目工程架构通用部分：package.json,webpack配置，lerna配置","author":{"name":"wuyurui","email":"mianbier@163.com"},"homepage":"","license":"ISC","main":"index.js","directories":{"lib":"lib","test":"__tests__"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"publishConfig":{"access":"public"},"gitHead":"1633d06c4229275cf3f4acebfcc78bb137cb6faf","_id":"@boyan-chengdu/root@0.0.1","_nodeVersion":"15.14.0","_npmVersion":"lerna/4.0.0/node@v15.14.0+x64 (win32)","dist":{"integrity":"sha512-wv0em9688+trPL5jj4bQh4vldP8ydsRc6x62TIo0FUqWl1NIK5u7AKUtKXC+nqTJyioh4yz5j5BIRyn9Qyhx6g==","shasum":"61f39a941ba87c9f52aa776f2cf7e6551097d769","tarball":"https://registry.npmjs.org/@boyan-chengdu/root/-/root-0.0.1.tgz","fileCount":28,"unpackedSize":1685677,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCbHcdSPICx7cmJ7d/9pbypTMQ1N1FZ7c1wC0FomWpzQIhAPmk64wNnetzQSZ7IYoYlRcz6seIv1lKpMZqMjNW9viA"}]},"_npmUser":{"name":"yurui.wu","email":"mianbier@163.com"},"maintainers":[{"name":"yurui.wu","email":"mianbier@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/root_0.0.1_1713164283673_0.6630328572891202"},"_hasShrinkwrap":false},"0.0.3":{"name":"@boyan-chengdu/root","version":"0.0.3","description":"项目工程架构通用部分：package.json,webpack配置，lerna配置","author":{"name":"wuyurui","email":"mianbier@163.com"},"homepage":"","license":"ISC","main":"index.js","directories":{"lib":"lib","test":"__tests__"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"publishConfig":{"access":"public"},"gitHead":"f1896e85a6a4f0645f4d6863c0c0b11cf5ac44f6","_id":"@boyan-chengdu/root@0.0.3","_nodeVersion":"20.5.0","_npmVersion":"lerna/4.0.0/node@v20.5.0+x64 (win32)","dist":{"integrity":"sha512-LmHPlZCraZf2wDLCoSH+2aeXK2ZivT3Rrf2XCGUtdG7X7S+0FYBLBqFwfYbNVzMTdxnuy1Tkkxkx7lzqPHz6tA==","shasum":"564d82a7900059677b3869031b69d4edcd8a1dce","tarball":"https://registry.npmjs.org/@boyan-chengdu/root/-/root-0.0.3.tgz","fileCount":29,"unpackedSize":1643583,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHzAJgK+v2fBtq72bgCyQ4NbV4w8eu7F4kIRE9Z7LxGaAiAJLjVLugLmnvQmHOyLidFzIm1Fyv60mAIpD+vCldmsjQ=="}]},"_npmUser":{"name":"yurui.wu","email":"mianbier@163.com"},"maintainers":[{"name":"yurui.wu","email":"mianbier@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/root_0.0.3_1714225199435_0.834652825215199"},"_hasShrinkwrap":false},"0.0.4":{"name":"@boyan-chengdu/root","version":"0.0.4","description":"项目工程架构通用部分：package.json,webpack配置，lerna配置","author":{"name":"wuyurui","email":"mianbier@163.com"},"homepage":"","license":"ISC","main":"index.js","directories":{"lib":"lib","test":"__tests__"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"publishConfig":{"access":"public"},"gitHead":"0724a3cca8b07f9557796c46efc6ee93ec5f3bcc","_id":"@boyan-chengdu/root@0.0.4","_nodeVersion":"20.5.0","_npmVersion":"lerna/4.0.0/node@v20.5.0+x64 (win32)","dist":{"integrity":"sha512-4vP6tkwue6NUiLloRgcZsG1Wz+gQQSG5Le6ZVpmtIpmbJfqopTYEnONZ+2ZrHGjLWRWs5+frsVJURwvTwaM/Pg==","shasum":"d42c0cf1bc2dfbd4ce9769f3f5fc22a80aa7888e","tarball":"https://registry.npmjs.org/@boyan-chengdu/root/-/root-0.0.4.tgz","fileCount":29,"unpackedSize":1643583,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSRMC3WOLno1hmHTAdv+MQbSL0H23gdQ1YLS29VZWjIwIhAN5kRqc+rkNgN3o6t1O+5h+QoLRfRbgUboHy3TK2GsgF"}]},"_npmUser":{"name":"yurui.wu","email":"mianbier@163.com"},"maintainers":[{"name":"yurui.wu","email":"mianbier@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/root_0.0.4_1714227089893_0.8317769592063327"},"_hasShrinkwrap":false},"0.0.5":{"name":"@boyan-chengdu/root","version":"0.0.5","description":"项目工程架构通用部分：package.json,webpack配置，lerna配置","author":{"name":"wuyurui","email":"mianbier@163.com"},"homepage":"","license":"ISC","main":"index.js","directories":{"lib":"lib","test":"__tests__"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"publishConfig":{"access":"public"},"gitHead":"961a564b1ed55c8897d1dd31c1612f04a65e90e2","_id":"@boyan-chengdu/root@0.0.5","_nodeVersion":"20.5.0","_npmVersion":"lerna/4.0.0/node@v20.5.0+x64 (win32)","dist":{"integrity":"sha512-DHe/2iV6Wu9Onu199FZaMP9Tceis53xfH3vFU4eLDKGLkhznWrmS/b6tK8ySU/6eLtqYLhpSxNPEce71vhEvjw==","shasum":"74b67bcabdee1272e907106e8afba2d2af8c6b87","tarball":"https://registry.npmjs.org/@boyan-chengdu/root/-/root-0.0.5.tgz","fileCount":29,"unpackedSize":1643583,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6QomrWajo5PgJ456LJ5FlpbhyYTfnZlkPLeTdDBLDxgIhAIHcKl2MSm9t5BRGEqz3FGBFjrhBQul5SD7zTBRy54bc"}]},"_npmUser":{"name":"yurui.wu","email":"mianbier@163.com"},"maintainers":[{"name":"yurui.wu","email":"mianbier@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/root_0.0.5_1714227305329_0.5005562616703871"},"_hasShrinkwrap":false},"0.0.6":{"name":"@boyan-chengdu/root","version":"0.0.6","description":"项目工程架构通用部分：package.json,webpack配置，lerna配置","author":{"name":"wuyurui","email":"mianbier@163.com"},"homepage":"","license":"ISC","main":"index.js","directories":{"lib":"lib","test":"__tests__"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"publishConfig":{"access":"public"},"gitHead":"78d8a91331e42410e424a59456b2f1213dea35b2","_id":"@boyan-chengdu/root@0.0.6","_nodeVersion":"20.5.0","_npmVersion":"lerna/4.0.0/node@v20.5.0+x64 (win32)","dist":{"integrity":"sha512-lxiCNgQCZ4+TyGHFbLGP7RAU1kUHkZQgXX5mclr35cCrOCtmSrUYmxQjGLY7d5kzqn6HDu/l+L4Av5UkG8/XUA==","shasum":"4b90bef6cf27a373e1737fc5be241289e5a14610","tarball":"https://registry.npmjs.org/@boyan-chengdu/root/-/root-0.0.6.tgz","fileCount":29,"unpackedSize":1643583,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxJitjHLtMGqaNwasJHaeRp7afS52Dq3yqv/Hhy2/X8QIhANNPoxcy4hRMPznRD+/yIV9ZhOr9LOl5flesRJo4MUDY"}]},"_npmUser":{"name":"yurui.wu","email":"mianbier@163.com"},"maintainers":[{"name":"yurui.wu","email":"mianbier@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/root_0.0.6_1714227622270_0.4140432413250832"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-15T06:58:03.559Z","0.0.1":"2024-04-15T06:58:03.897Z","modified":"2024-04-27T14:20:22.689Z","0.0.3":"2024-04-27T13:39:59.676Z","0.0.4":"2024-04-27T14:11:30.087Z","0.0.5":"2024-04-27T14:15:05.560Z","0.0.6":"2024-04-27T14:20:22.482Z"},"maintainers":[{"name":"yurui.wu","email":"mianbier@163.com"}],"description":"项目工程架构通用部分：package.json,webpack配置，lerna配置","author":{"name":"wuyurui","email":"mianbier@163.com"},"license":"ISC","readme":"### 成都市道路交通信号控制系统管理平台\r\n\r\n### 环境需求\r\nnodejs 15.14.0\r\nnpm 7.7.6\r\nyarn 1.22.19\r\nlerna 4.0.0\r\nverdaccio v5.30.3\r\n\r\n### workspace + lerna + 本地npm环境verdaccio\r\n```bash\r\n// 配置基础运行环境\r\nnpm install -g npm@7.24.2 --force\r\nnpm i -g verdaccio\r\nnpm i -g lerna@4.0.0\r\nlerna bootstrap 或 npm install 安装项目依赖\r\n\r\n// 运行verdaccio，包服务器的相关配置\r\nverdaccio\r\nnpm set registry http://localhost:4873/\r\nnpm adduser --registry http://localhost:4873/\r\nnpm profile set password --registry http://localhost:4873/ // 修改密码\r\nnpm publish --registry http://localhost:4873/\r\n// 修改verdaccio包的体积的限制\r\nnvm which 15.14.0\r\n运行verdaccio的时候，可以看到console中的目录：C:\\Users\\by\\.config\\verdaccio\\config.yaml,修改max_body_size: 1000mb\r\n\r\n\r\n\r\n// 把某个组件发包的过程\r\n在组件目录下新建package.json文件\r\n在外层package.json目录下配置对应的wqirkspace\r\ngit提交修改后的代码\r\nlerna publish 发布包，lerna自动管理包的版本和依赖关系，自动打tag\r\n```\r\n\r\n\r\n```bash\r\n// lerna常用指令汇总\r\nlerna init # 初始化\r\nlerna create @templatejs/parser # 创建一个package\r\nlerna add @types/node --scope=@templatejs/node # 给package安装依赖\r\nlerna list # 列出所有的包\r\nlerna bootstrap # 安装全部依赖\r\nlerna link # 建立全部软连接\r\nlerna changed # 列出下次发版lerna publish 要更新的包\r\nlerna publish # 会打tag，上传git,上传npm\r\n```\r\n\r\n# install\r\n\r\n    npm install | yarn\r\n\r\n# dev\r\n\r\n    npm start | yarn\r\n\r\n# build\r\n\r\n    mpm run build\r\n\r\n# globalStore.js\r\n\r\n    全局状态\r\n    参考 ##https://github.com/pmndrs/zustand\r\n\r\n# light | dark  -theme\r\n\r\n    全局样式变量，默认引入light\r\n\r\n#### 公司npm源地址\r\n\r\n  username: beyondnpm\r\n  password: beyondnpm\r\n  <http://192.168.0.199:8081/nexus/repository/npm-group/>\r\n  <http://192.168.0.199:8081/nexus/repository/npm-hosted/>\r\n  <http://192.168.0.199:8081/nexus/repository/npm-proxy/>\r\n\r\n#### 同时lerna发包时需要设置相关的npm源以及提前登录\r\n\r\n```bash\r\n  npm login --registry=http://192.168.0.199:8081/nexus/repository/npm-hosted/\r\n  lerna publish --registry=http://192.168.0.199:8081/nexus/repository/npm-hosted/\r\n```\r\n","readmeFilename":"README.md"}