{"id":135409,"date":"2020-07-13T21:17:41","date_gmt":"2020-07-13T13:17:41","guid":{"rendered":"http:\/\/4563.org\/?p=135409"},"modified":"2020-07-13T21:17:41","modified_gmt":"2020-07-13T13:17:41","slug":"composer-%e4%be%9d%e8%b5%96%e5%86%b2%e7%aa%81%e6%80%8e%e4%b9%88%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=135409","title":{"rendered":"composer \u4f9d\u8d56\u51b2\u7a81\u600e\u4e48\u89e3\u51b3"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  composer \u4f9d\u8d56\u51b2\u7a81\u600e\u4e48\u89e3\u51b3               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rikka <\/span>  <span><i><\/i> 79<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u9879\u76ee\u4f9d\u8d56 packageA \u548c packageB \u4e24\u4e2a\u7b2c\u4e09\u65b9\u5305\uff0c\u7136\u540e\u8fd9\u4e24\u4e2a\u5305\u53c8\u4f9d\u8d56\u53e6\u5916\u4e00\u4e2a\u5305\u7684\u4e0d\u540c\u7248\u672c<br \/>packageA -&gt;packageC:1.x<br \/>packageB -&gt;packageC:2.x<br \/>\u7ed3\u679c\u81ea\u7136\u5b89\u88c5\u51b2\u7a81\u5931\u8d25      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1275122\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vigoss <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             fork \u4e00\u4efd A \u6216\u8005 B\uff0c\u4fee\u6539\u4f9d\u8d56\u3002\u66ff\u6362\u6210\u4f60 fork \u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275123\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : HanSonJ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u4e2d\u4e00\u4e2a package \u6362\u4e2a\u53ef\u4ee5\u517c\u5bb9\u7684\u7248\u672c\uff0c\u53ef\u4ee5\u662f A \u5347\u7ea7\u6216 B \u964d\u7ea7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275124\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : rikka <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vigoss #1 fork \u610f\u5473\u7740\u6211\u5f97\u81ea\u5df1\u7ef4\u62a4\u8fd9\u4e2a\u5305\u554a<\/p>\n<p>@HanSonJ #2 \u6ca1\u517c\u5bb9\u7684\u7248\u672c\u600e\u4e48\u529e                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275125\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zjsxwc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u548c golang \u90a3\u6837\u5904\u7406                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275126\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dobelee <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u89e3\u51b3 json \u7684\u51b2\u7a81\uff0c\u4fdd\u7559\u4f60\u60f3\u8981\u7684\u7248\u672c\uff0c\u5e72\u6389\u6587\u4ef6\uff0c\u91cd\u65b0\u5b89\u88c5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275127\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gouki <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             js \u53ef\u4ee5 declare \u65b9\u6cd5\uff0cPHP \u4e0d\u884c\u3002\u6240\u4ee5\u4f60\u7684\u60f3\u6cd5\u5728 PHP \u4e2d\u662f\u884c\u4e0d\u901a\u7684\u3002<br \/>\u4e0a\u7684\u65b9\u6cd5\u90fd\u4e0d\u9519\u3002\u8fd8\u6709\u4e00\u79cd\u5c31\u662f\uff0c\u53ef\u80fd\u4f60\u5f15\u7528\u7684\u7c7b\u5e93\u592a\u8001\u4e86\uff0c\u5c45\u7136\u4e0d\u66f4\u65b0\u4e86\uff0c\u90a3\u4f60\u6700\u597d\u4e5f\u522b\u5f15\u7528\u4e86\u3002\u5426\u5219\u540e\u9762\u7684\u5751\u53ef\u80fd\u4f1a\u66f4\u591a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275128\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jfcherng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u4e0d\u60f3\u7dad\u8b77\u90a3\u5c31\u7d66\u4f5c\u8005\u767c PR \u5427, \u4f5c\u8005\u4e0d\u7406\u4f60\u90a3\u5c31\u63db\u5176\u4ed6 lib                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275129\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : rikka <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @jfcherng #7 \u8fd9\u662f\u65e0\u5948\u4e4b\u4e3e\uff0c\u6839\u672c\u95ee\u9898\u662f composer \u5c45\u7136\u65e0\u6cd5\u89e3\u51b3\u8fd9\u79cd\u4f9d\u8d56\u95ee\u9898\uff0c\u6709\u70b9\u60ca\u8bb6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275130\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zjsxwc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             symfony \u7684\u505a\u6cd5\u662f\u5728\u9ad8\u7248\u672c\u91cc\u589e\u52a0 polyfill \u517c\u5bb9\u4ee3\u7801\uff0c\u6bd4\u5982\u4f60\u521b\u5efa\u4e2a packageC-polyfill \u4e09\u65b9\u9879\u76ee\uff0c<br \/>\u8fd9\u4e2a\u4e09\u65b9\u9879\u76ee\u7684\u4f5c\u7528\u5c31\u662f\u8ba9\u4f60\u7684 packageC:2.x \u517c\u5bb9 packageC:1.x\uff0c<br \/>\u7136\u540e\u8ba9 packageA \u4f9d\u8d56\u4e0b packageC:2.x\uff0c<br \/>\u4ee5\u53ca\u8ba9 packageC:2.x \u4f9d\u8d56\u4f60\u7684 packageC-polyfill                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275131\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : rikka <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zjsxwc #9 \u4f60\u5fd8\u4e86\u4e00\u70b9\uff0c\u6211\u9879\u76ee\u4f9d\u8d56 A,B \u8fd9\u4e24\u4e2a\u7b2c\u4e09\u65b9\u5305\uff0c\u7136\u540e A,B \u53c8\u4f9d\u8d56\u4e86 C\uff0c\u8fd9\u4e2a C \u663e\u7136\u4e5f\u662f\u7b2c\u4e09\u65b9\u7684\uff0c\u8fd9 3 \u4e2a\u5305\u6211\u6839\u672c\u65e0\u6cd5\u4fee\u6539\u4ed6\u4eec\u7684\u4f9d\u8d56\u5173\u7cfb<br \/>\u9664\u975e\u50cf 1L \u8bf4\u7684 fork \u4e00\u4efd\u51fa\u6765\u4fee\u6539                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275132\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zjsxwc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @rikka <br \/>\u53ef\u4ee5\u8bd5\u8bd5\u7528 replace \u5c5e\u6027\uff0c\u5199\u4e00\u4e2a\u4e09\u65b9\u5305\u540c\u65f6\u4ee3\u66ff packageC:1.x \u4e0e packageC:2.x<\/p>\n<p>http:\/\/blog.ifeeline.com\/2695.html<\/p>\n<p>&#8220;`<br \/>&#8220;replace&#8221;: {<br \/> &#8220;packageC&#8221;: &#8220;1.x|2.x&#8221;<br \/>}<br \/>&#8220;`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1275133\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : rikka <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zjsxwc #11 \u770b\u4e86\u8fd9\u4e2a replace \u5c5e\u6027\uff0c\u53ef\u4ee5\u5728 AB \u4e0d\u77e5\u89c9\u7684\u60c5\u51b5\u4e0b\u66ff\u6362\u6389 C\uff0c\u66ff\u6362\u4e3a\u6211\u81ea\u5df1\u5b9e\u73b0\u7684 packageC-polyfill\uff0c\u6700\u7ec8\u5c31\u662f\u4e3a\u4e86\u89e3\u51b3\u51b2\u7a81\uff0c\u6211\u81ea\u5df1\u5f97\u53bb\u7ef4\u62a4\u8fd9\u4e2a C,\u8fd8\u662f\u4e0d\u592a\u6ee1\u610f<br \/>\u4e0d\u8fc7\u5728\u67d0\u4e9b\u60c5\u51b5\u8fd9\u4e2a replace \u5c5e\u6027\u662f\u6709\u70b9\u7528\u5904\uff0c\u5b66\u4e60\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>composer \u4f9d\u8d56\u51b2\u7a81\u600e\u4e48\u89e3\u51b3&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/135409"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135409"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/135409\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135409"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}