Skip to content

feat(craft): import craft game engine into monorepo via git subtree#73617

Draft
stephenliang wants to merge 1816 commits into
stagingfrom
stephen/craft-subtree-import
Draft

feat(craft): import craft game engine into monorepo via git subtree#73617
stephenliang wants to merge 1816 commits into
stagingfrom
stephen/craft-subtree-import

Conversation

@stephenliang

Copy link
Copy Markdown
Member

Summary

  • Import the standalone code-dot-org/craft repository into frontend/packages/labs/craft/ using git subtree add, preserving full commit history
  • Add .gitattributes for LFS tracking of binary assets (PNG, MP3, OGG, WAV, GIF, atlas JSON)
  • This is a mechanical import with no code changes — the source is brought in verbatim

Context

First of 3 stacked PRs for the craft-lab migration:

  1. This PR — subtree import
  2. Package buildout (Vite/vitest/TypeScript conversion)
  3. Wire up apps/ to the workspace package

Test plan

  • git log --follow -- frontend/packages/labs/craft/src/js/game/GameController.js shows history from original repo
  • git lfs ls-files includes binary assets under frontend/packages/labs/craft/
  • No functional changes — existing craft levels unaffected

🤖 Generated with Claude Code

Josh Lory added 30 commits September 25, 2018 17:58
"blueCoralFan" in existing levels should be the full-sized plant. For true coral fans, use "coralFan{Color}{Direction}".
…tory

Allows Phaser and jQuery to be excluded from full-project search.
Fix `getForwardBlockType()` at edges of the world
islemaster and others added 27 commits October 31, 2018 22:23
Fixes #537

Adds two new textures to the fog-of-war atlas for "diagonal" illumination, tiles illuminated from opposite corners.

Just now realizing that this may not solve the issue as described by Josh's additional comment on that issue, but it does look better.
…vels

Optimize aquatic level 1-4 preload asset lists
Avoid collisions in emissive cache
- This allows W, A, S, D, and Space to be used in project names
… jquery dependency

To avoid having the craft repo depend on specifics of the project page, change the logic to ignore keyboard input when the document.body is not the active element
Allow WASD keys and Spacebar to be used in project names
Make editableElementSelected more specific
[Minecraft] Check for walkable space above water and lava
…ba056f97ea6eb69ee6e7'

git-subtree-dir: frontend/packages/labs/craft
git-subtree-mainline: 3713202
git-subtree-split: 65ccc4e
The subtree import brought some image files as raw binary blobs
rather than LFS pointers. Convert them to match the .gitattributes
LFS tracking rules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stephenliang stephenliang marked this pull request as draft July 2, 2026 21:46
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.

7 participants