Skip to content

Updates bos-workspace and uses urbit web component#25

Open
elliotBraem wants to merge 6 commits intourbit:masterfrom
NEARBuilders:feat/update-bw
Open

Updates bos-workspace and uses urbit web component#25
elliotBraem wants to merge 6 commits intourbit:masterfrom
NEARBuilders:feat/update-bw

Conversation

@elliotBraem
Copy link

@elliotBraem elliotBraem commented May 26, 2024

This pull request uses latest bos-workspace, upgrades the gateway, and organizes the widget-gateway relationship to be more typical + familiar, removing:

  • no bundling local widget code in final /dist
  • using src instead of code, and using the dev tool
  • no need for an "ExamplePage", the entire app should exist within the root widget, using a near account rather than "local.components")

Check out the pull request and follow the getting started -- either use yarn or pnpm:

pnpm install
pnpm run dev

It will automatically open the default gateway, defaulting to your local root widget (urbitlabs.near/widget/app), and is already hooked up to dev server.

I did a run through of the documentation and everything works up until "deploying the gateway" because I can't find the "Silo" app. Left comments in the documentation

  • Hot reload for both components and the gateway for easy development of each
  • Gateway is configured as near-bos-webcomponent <-- this is an important pivot in BOS ecosystem, see the Build Report from Peter
  • bos-workspace uses custom gateway for easy integration, defaults to the index defined in bos.config.json (urbitlabs.near/widget/app)
  • Organizes code using hooks
  • Updates README and guide

Possible next steps for a better dev experience

  • In "deploying gateway", remove the manual step of setting the src in <near-social-viewer />
  • Replace urbit VM with default near-social-vm, and instead, create a <Urbit /> custom VM element; see "Configuring custom VM elements"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant