Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates bos-workspace and uses urbit web component #25

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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