UNPKG

blocklet-development-guide

Version:

Blocklet development guide, a help documentation for quickly get started to develop a blocklet.

1 lines 8.26 kB
{"componentChunkName":"component---node-modules-arcblock-gatsby-theme-docs-src-templates-documentation-js","path":"/en/developer/publish-blocklet","result":{"data":{"file":{"changeTime":"5 minutes ago","childMarkdownRemark":{"frontmatter":{"author":"wangshijun","category":"","date":null,"description":"Publish Blocklet","draft":null,"keywords":"abtnode, blocklet","language":"en","layout":"documentation","path":"/en/developer/publish-blocklet","tags":["abtnode"],"title":"Publish Blocklet"},"htmlAst":{"type":"root","children":[{"type":"element","tagName":"h2","properties":{"id":"publish-steps","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#publish-steps","ariaLabel":"publish steps permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Publish Steps"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ol","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Make sure your blocklet can be bundled and deployed to your local ABT Node"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Publish your blocklet to npm registry with npm publish"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Fork our "},{"type":"element","tagName":"a","properties":{"href":"https://github.com/arcblock/blocklets"},"children":[{"type":"text","value":"blocklets registry repo"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Update registry.yml to list your blocklet, and then create Pull Request for this change"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Your pull request get approved and blocklet is then published"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Verify in the registry: "},{"type":"element","tagName":"a","properties":{"href":"https://blocklet.arcblock.io/blocklets.json"},"children":[{"type":"text","value":"https://blocklet.arcblock.io/blocklets.json"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Verify in marketplace: install your blocklet to your ABT Node from marketplace"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"publish-config","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#publish-config","ariaLabel":"publish config permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Publish Config"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-wrapper"],"style":"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1000px; "},"children":[{"type":"text","value":"\n "},{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-background-image"],"style":"padding-bottom: 70%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAOCAYAAAAvxDzwAAAACXBIWXMAAAsTAAALEwEAmpwYAAABmElEQVQ4y5VUa0+DMBSFtYMOjY9MY6Ix8YuJbgMqIG82nJn6///Q8ZQ5xVfCPpzc9paee+6jWNIv4OqUSCCDFFZYww4rjMJyi4cao6CAdc+z2T/onznm0iLDee0TIby0gCqfoJYvcPM15OMKkqQ2A9vBB7p1+YWw/PRbkg7hZzjJQ0wLHydZgIkuMNI1BIlEVHcqjRVRAxE323W87IJ1e653fsvVFex5BpXmmG7WUEkFsSj/T++vdPspS0oVixwiaGBFLbGCxf2viww6CIrpKNbwNvFxk81wnc1xlQZQVC51s63NLsAQwonp4jzHWGc4jTQuHjSmQQzBQstkW5uu2EMJPRZaUuFlEuMsjuHpJQ/y3+NgPh6Svkl5xI+OdYnzcs0OV39fGqrwkC23ZxnsaImxmb16gzHHwe6T7NMYU0NDKDh3qtnAKZ/hpC331X7KvitMIWknq9eOUDUv3esYPIt9HLApRqFD67VvcEnYpWxGZR9lO7hUcsSfwR1TFOkaXv4MN2mh4hVfTQuX1uGwG+v2fDs7+WHfAaPKi71HXFsTAAAAAElFTkSuQmCC'); background-size: cover; display: block;"},"children":[]},{"type":"text","value":"\n "},{"type":"element","tagName":"img","properties":{"className":["gatsby-resp-image-image"],"alt":"publish blocklets 1","title":"publish blocklets 1","src":"/blocklet/static/dfcd8b48c72477b01b062bbabf7119be/ea415/publish-blocklets-1.png","srcSet":["/blocklet/static/dfcd8b48c72477b01b062bbabf7119be/41b2e/publish-blocklets-1.png 250w","/blocklet/static/dfcd8b48c72477b01b062bbabf7119be/36a81/publish-blocklets-1.png 500w","/blocklet/static/dfcd8b48c72477b01b062bbabf7119be/ea415/publish-blocklets-1.png 1000w","/blocklet/static/dfcd8b48c72477b01b062bbabf7119be/3fb0d/publish-blocklets-1.png 1019w"],"sizes":["(max-width:","1000px)","100vw,","1000px"],"style":"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;","loading":"lazy"},"children":[]},{"type":"text","value":"\n "}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"publishConfig"}]},{"type":"text","value":": define the directory which will be published."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"files"}]},{"type":"text","value":": define the files which will be published."}]},{"type":"text","value":"\n"}]}],"data":{"quirksMode":false}}}}},"pageContext":{"site":{"title":"Development Guide","description":"Blocklet Development Guide","siteUrl":"https://docs.arcblock.io","logoUrl":"/","sidebarWidth":360,"disableI18n":false,"showGetStarted":false,"defaultBanner":""},"id":"16b6931e-96ba-5412-a141-aa8ce406f6ee","language":"en","locale":"en","languages":[{"value":"en","text":"English"},{"value":"zh","text":"简体中文"}],"headings":[{"value":"Publish Steps","depth":2},{"value":"Publish Config","depth":2}],"navItems":[{"group":"/home/runner/work/development-guide/development-guide/src","title":"Development Guide","priority":999,"link":"/"}],"version":"v0.0.4","official":true,"originalPath":"/en/developer/publish-blocklet","sidebarContent":[{"url":"/en/developer","title":"Developer Guide","pages":[{"title":"Blocklet Specification","path":"/en/developer/blocklet-spec"},{"title":"Create Static Blocklets","path":"/en/developer/static-blocklet"},{"title":"Create DApp Blocklet","path":"/en/developer/dapp-blocklet"},{"title":"Blocklet Hooks","path":"/en/developer/blocklet-hooks"},{"title":"Bundle Blocklet","path":"/en/developer/bundle-blocklet"},{"title":"Publish Blocklet","path":"/en/developer/publish-blocklet"}]}],"communityPath":"https://community.arcblockio.cn","githubUrl":"https://github.com/blocklet/development-guide/tree/master/src/developer/publish-blocklet/index.md"}},"staticQueryHashes":["1358860651","1619896071","1812186216","2194038815"]}