Skip to content

chore: add build:watch script and document react-bwin dev workflow#115

Merged
ohxyz merged 1 commit into
mainfrom
chore/build-watch-react-bwin
Jun 30, 2026
Merged

chore: add build:watch script and document react-bwin dev workflow#115
ohxyz merged 1 commit into
mainfrom
chore/build-watch-react-bwin

Conversation

@ohxyz

@ohxyz ohxyz commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

What

  • Add a build:watch script (vite build --watch) that regenerates dist/bwin.js on save.
  • Document the react-bwin local-development workflow in CONTRIBUTING.md.

Why

react-bwin consumes bwin's built output (dist/bwin.js), not src/. To develop both together you link the repos (pnpm add bwin@link:../bwin in react-bwin) and keep bwin's build running in watch mode, so edits to bwin source flow through to react-bwin's dev server via HMR.

The new CONTRIBUTING section spells out the link + watch loop and notes the hand-maintained bwin.d.ts type shim caveat.

@ohxyz ohxyz requested a review from bhjsdev as a code owner June 30, 2026 02:00
@ohxyz ohxyz force-pushed the chore/build-watch-react-bwin branch from f6a51f3 to 1eab7e8 Compare June 30, 2026 02:03
build:watch (vite build --watch) regenerates dist/bwin.js on save so a
linked react-bwin picks up changes via HMR. Document the link + watch
loop in CONTRIBUTING.
@ohxyz ohxyz force-pushed the chore/build-watch-react-bwin branch from 1eab7e8 to 194e682 Compare June 30, 2026 02:04
@ohxyz ohxyz merged commit 1768a5e into main Jun 30, 2026
1 check passed
@ohxyz ohxyz deleted the chore/build-watch-react-bwin branch June 30, 2026 02:05
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