-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs__myblog__engineering__06_writecli.md.js
More file actions
1 lines (1 loc) · 2.22 KB
/
docs__myblog__engineering__06_writecli.md.js
File metadata and controls
1 lines (1 loc) · 2.22 KB
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[55],{gz95:function(e,l,n){e.exports=n.p+"static/cli.9f7903b5.png"},"p+/N":function(e,l,n){"use strict";n.r(l);var a=n("q1tI"),t=n.n(a),c=n("dEAq"),o=n("H1Ra"),r=t.a.memo((e=>{e.demos;return t.a.createElement(t.a.Fragment,null,t.a.createElement("div",{className:"markdown"},t.a.createElement("p",null,"\u5e02\u9762\u4e0a\u6709\u5f88\u591a\u811a\u624b\u67b6\u5de5\u5177\uff0c\u4e00\u53e5\u547d\u4ee4\u884c\u5c31\u80fd\u751f\u6210\u4e00\u4e2a\u521d\u59cb\u9879\u76ee\uff0c\u6bd4\u5982 vue-cli,react-cli\uff0c\u4f46\u662f\u8fd9\u5199\u811a\u624b\u67b6\u662f\u4ec0\u4e48\u521b\u5efa\u51fa\u6765\u7684\u5462\uff1f \u4e0b\u9762\u6211\u4eec\u6765\u63a2\u7d22"),t.a.createElement("p",null,"\u65b0\u5efa\u4e00\u4e2a\u9879\u76ee yd_cli\uff0c\u91cc\u9762\u521b\u5efa\u4e00\u4e2a bin \u6587\u4ef6\u5939\uff0c\u6267\u884c",t.a.createElement("code",null,"npm init -y"),"\uff0c\u751f\u6210 package.json \u7136\u540e\u5728 bin \u6587\u4ef6\u5939\u91cc\u9762\u65b0\u5efa\u4e00\u4e2a ydcli(\u4e0d\u52a0\u4efb\u4f55\u540e\u7f00)\uff0c",t.a.createElement("code",null,"package.json"),"\u91cc\u9762\u65b0\u589e"),t.a.createElement(o["a"],{code:'"bin": {\n "ydcli": "bin/ydcli"\n},',lang:"json"}),t.a.createElement("p",null,"\u7ed3\u6784\u5982\u4e0b\uff1a"),t.a.createElement("img",{src:n("gz95")}),t.a.createElement("p",null,"\u6267\u884c",t.a.createElement("code",null,"npm link"),",\u518d\u6267\u884c",t.a.createElement("code",null,"ydcli"),"\u5c31\u53ef\u4ee5\u5728\u6253\u5370\u51fa\u91cc\u9762\u7684\u4ee3\u7801"),t.a.createElement("p",null,"\u4e0b\u9762\u5c31\u5f00\u59cb\u6b63\u5f0f\u5199\u4ee3\u7801\u4e86,\u4e3b\u8981\u7528\u5230\u4e86\u4ee5\u4e0b\u4e00\u4e9b\u63d2\u4ef6\uff1a"),t.a.createElement("ul",null,t.a.createElement("li",null,"figlet \u751f\u6210"),t.a.createElement("li",null,"@darkobits/lolcatjs \u751f\u6210\u968f\u673a\u989c\u8272"),t.a.createElement("li",null,"commander \u547d\u4ee4\u884c\u4e2d\u53c2\u6570\u7684\u5904\u7406"))))}));l["default"]=e=>{var l=t.a.useContext(c["context"]),n=l.demos;return t.a.useEffect((()=>{var l;null!==e&&void 0!==e&&null!==(l=e.location)&&void 0!==l&&l.hash&&c["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),t.a.createElement(r,{demos:n})}}}]);