yalc:像老板一样在本地使用yarnnpm软件包-源码

上传者: 42097914 | 上传时间: 2021-08-18 16:10:59 | 文件大小: 87KB | 文件类型: ZIP
Yalc 比npm更好的工作流程| 纱包作者的链接。 为什么 在开发和创作多个程序包(私有程序包或公共程序包)时,通常会发现自己需要在本地环境中正在使用的其他项目中使用最新的/ WIP版本,而无需将这些程序包发布到远程注册表中。 NPM和Yarn通过类似的( npm/yarn link )解决了这个问题。 尽管这可能在许多情况下可行,但它经常带来讨厌的相关性解析,文件系统之间符号链接互操作性等问题。 什么 对于要在本地环境中共享的本地开发软件包, yalc充当非常简单的本地存储库。 在程序包目录中运行yalc publish时,它仅yalc publish应发布到NPM的文件,并将它们放在特殊的全局存储中(例如,位于~/.yalc )。 当您运行yalc add my-package在你的project它拉包内容到.yalc在当前文件夹并注入一个file: / link:依赖到package.json 。 或者,您可以使用yalc link my-package ,它将在node_modules创建到包内容的符号链接,并且不会触摸package.json (就像npm/yarn

文件下载

资源详情

[{"title":"( 58 个子文件 87KB ) yalc:像老板一样在本地使用yarnnpm软件包-源码","children":[{"title":"yalc-master","children":[{"title":".gitignore <span style='color:#111;'> 100B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 437B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 10.79KB </span>","children":null,"spread":false},{"title":".yalcrc <span style='color:#111;'> 46B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"fixture","children":[{"title":"dep-package","children":[{"title":".gitignore <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":"LICENCE <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"test.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test-src.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE","children":[{"title":"some.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":".yalc","children":[{"title":"yalc.txt <span style='color:#111;'> 4B </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"dist","children":[{"title":"file.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":".dot","children":[{"title":"dot.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"node_modules","children":[{"title":"ws-package","children":[{"title":"package.json <span style='color:#111;'> 49B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"src","children":[{"title":"src-file.txt <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"file-npm-ignored.txt <span style='color:#111;'> 20B </span>","children":null,"spread":false}],"spread":false},{"title":"folder","children":[{"title":"file2.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"file.md <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"file.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"root-file.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":".npmignore <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"extra-file.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 86B </span>","children":null,"spread":false},{"title":"folder2","children":[{"title":"nested","children":[{"title":"file2.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"file.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"file.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"dep-package2","children":[{"title":".gitignore <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 115B </span>","children":null,"spread":false},{"title":"file.txt <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 86B </span>","children":null,"spread":false}],"spread":true},{"title":"project","children":[{"title":"nested","children":[{"title":"package.json <span style='color:#111;'> 157B </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 150B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"index.ts <span style='color:#111;'> 13.90KB </span>","children":null,"spread":false}],"spread":true},{"title":".vscode","children":[{"title":"settings.json <span style='color:#111;'> 394B </span>","children":null,"spread":false},{"title":"tasks.json <span style='color:#111;'> 639B </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"tslint.json <span style='color:#111;'> 129B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"pkg.ts <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"lockfile.ts <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"yalc.ts <span style='color:#111;'> 6.88KB </span>","children":null,"spread":false},{"title":"copy.ts <span style='color:#111;'> 5.02KB </span>","children":null,"spread":false},{"title":"rc.ts <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":"console.ts <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"update.ts <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"installations.ts <span style='color:#111;'> 4.20KB </span>","children":null,"spread":false},{"title":"publish.ts <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"remove.ts <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"add.ts <span style='color:#111;'> 7.86KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"sync-dir.ts <span style='color:#111;'> 3.78KB </span>","children":null,"spread":false},{"title":"pm.ts <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"check.ts <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":false},{"title":".yalcignore <span style='color:#111;'> 4B </span>","children":null,"spread":false},{"title":".npmignore <span style='color:#111;'> 40B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 130B </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 117.53KB </span>","children":null,"spread":false},{"title":"LICENCE.md <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明