Link script#42
Open
Tainan404 wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a TypeScript dev script (
scripts/tldraw-dev.ts) that automates the full build-and-link workflow for developing tldraw inside BigBlueButton: it builds the package, publishesto a local yalc store, relinks it into the BBB HTML5 client via
yalc remove/yalc add/npm install, and touches the webpack entry point to trigger a hot rebuild. The scriptexposes
setup,rebuild,watch, andshowcommands via Commander, uses Ora for terminal feedback, and resolves the BBB HTML5 path from a CLI flag, env var, config file, ordefault sibling directory (in that priority order). A companion
buildInfo.tsfile stamped with a unique build ID on every run lets the browser console confirm which build isloaded. Also adds a
dev-bbbscript topackage.jsonfor convenience.Usage
Path resolution priority (highest → lowest):
Change Type
patch— Bug fixminor— New featuremajor— Breaking changedependencies— Changes to package dependencies1documentation— Changes to the documentation only2tests— Changes to any test code only2internal— Any other changes that don't affect the published package2Test Plan
yarn dev-bbb setup(oryarn dev-bbb setup --bbb-html5 <path>if BBB HTML5 is not at the default sibling path).[tldraw] build_id: build-<timestamp>.packages/tldraw/src/, then runyarn dev-bbb rebuild. Confirm the console logs a different build ID after webpack finishes.yarn dev-bbb watch, edit a source file, and confirm the rebuild happens automatically.yarn dev-bbb showand verify the printed paths match your environment.Release Notes
scripts/tldraw-dev.ts: a dev-only CLI tool to build tldraw and hot-link it into a local BigBlueButton instance using yalc, with file-watch mode for automatic rebuilds.Depends on
bigbluebutton/bigbluebutton#25077
Footnotes
publishes a
patchrelease, for devDependencies useinternal↩will not publish a new version ↩ ↩2 ↩3