Skip to content

refactor: restructure WebviewJS as a Bun monorepo with new docs and scaffolder - #58

Merged
twlite merged 15 commits into
mainfrom
ts-monorepo
Oct 2, 2026
Merged

twlite merged 15 commits into
mainfrom
ts-monorepo

Conversation

@twlite

@twlite twlite commented Oct 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Restructure the repository into Bun workspaces for the WebviewJS package, examples, documentation, and project scaffolder.
  • Add a typed TypeScript public API layer that augments native NAPI classes with lifecycle, events, IPC, protocol, and notification behavior.
  • Add typed multi-runtime executable builds for Node.js, Bun, and Deno.
  • Add the create-webview scaffolder with release publishing support and package mirroring for create-webview-app.
  • Redesign the documentation site and homepage with static GitHub Pages deployment, search, guides, and landing-page components.
  • Update CI, linting, formatting, native builds, package publishing, and documentation workflows for the new monorepo layout.

Testing

  • bun install --frozen-lockfile
  • bun run lint
  • bun run format:check
  • cargo clippy --manifest-path packages/webview/Cargo.toml -- -D warnings
  • cargo check --manifest-path packages/webview/Cargo.toml
  • Build the native addon and run the Node.js test suite.
  • Build the static documentation site with bun run build --filter=@webviewjs/docs.
  • Not run locally for this change request; validation is expected through the updated CI workflows.

twlite added 10 commits October 1, 2026 19:02
- Add handwritten lib/ wrappers, event bridges, disposal handling, and serialization utilities
- Compile the public API into dist/ while keeping generated NAPI bindings isolated
- Expand bridge tests and update build/docs configuration
- Preserve native NAPI classes as public runtime objects
- Move lifecycle, events, protocol, IPC, and disposal into augmentations
- Update bridge tests for native prototype integration
- Add static Fumadocs site with GitHub Pages deployment
- Move package, examples, and documentation into workspace apps and packages
- Update CI, tooling, documentation, and repository metadata
- Replace the legacy CLI implementation with a TypeScript build pipeline
- Support Node SEA, Bun, and Deno runtimes with assets and native addon resolution
- Add CLI unit and integration coverage plus updated documentation
- Add custom homepage sections, visuals, metadata, and branding
- Update docs routing, navigation styling, and project READMEs
- Refresh CLI guidance in AGENTS.md
- Replace the homepage visuals with a dark, native-focused layout
- Add the initial create-webview package scaffold
- Add TypeScript/JavaScript project generation with CLI options and tests
- Publish create-webview and create-webview-app aliases with version validation
- Document scaffolding workflow and add creator package metadata
- Document the official project scaffolder, templates, options, and generated project behavior
- Link existing WebviewJS guidance to the new scaffolder skill
- Add responsive homepage sections, interactive demos, and installation UI
- Add hero and CTA imagery with refreshed navigation and styling
- Add responsive desktop API feature highlights
- Update hero messaging and typography
- Add GitHub funding link
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
webview Ignored Ignored Preview Oct 2, 2026 11:41am UTC

@twlite twlite changed the title Restructure WebviewJS as a Bun monorepo with new docs and scaffolder refactor: restructure WebviewJS as a Bun monorepo with new docs and scaffolder Oct 2, 2026
- Replace run-s build orchestration with a Node-based native and TypeScript build
- Preserve flag forwarding such as --target while cleaning and compiling the library
twlite added 3 commits October 2, 2026 17:00
- Skip the JS typecheck for FreeBSD native-stub builds
- Add the tray event handler to the unsupported stub API
- Ensure ESM imports resolve correctly in Bun’s isolated install layout
- Keep build flags scoped to the native NAPI build
- Avoid cached isolated dependency trees that cause NAPI CLI EPERM failures
- Install Windows dependencies with the hoisted linker
@twlite
twlite merged commit ed70dcc into main Oct 2, 2026
15 checks passed
@twlite
twlite deleted the ts-monorepo branch October 2, 2026 12:15
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