Project scaffold for managing synchronization rules between Galacean-related repositories. It already understands how to mirror the cloneEngine/runtime, engine-toolkit, engine-lottie, and engine-spine workspaces so you can keep their sources and declarations up to date in this repo.
- Centralize knowledge of where Galacean projects live on disk.
- Describe how to mirror TypeScript sources and declaration files.
- Provide a light entry-point that future tooling can invoke.
npm install
npm run buildnpm run sync- Execute the build/cleanup pipeline for every supported project.
- Copy the latest
srcandtypesartifacts into this repo undersource-code/*anddeclare/*.
- engine (
cloneEngine/runtime)- Runs
pnpm run b:all. - Copies every
packages/*/srcfolder intosource-code/enginewhile retaining thepackages/...structure. - Copies every
packages/*/typesfolder intodeclare/engine, also retaining thepackages/...structure.
- Runs
- engine-toolkit
- Runs
pnpm run b:all. - Mirrors the
packages/*/srcfolders intosource-code/engine-toolkit. - Mirrors the
packages/*/typesfolders intodeclare/engine-toolkit.
- Runs
- engine-lottie
- Runs
pnpm run build. - Copies the whole
srctree intosource-code/engine-lottie/src. - Copies the whole
typestree intodeclare/engine-lottie/types.
- Runs
- engine-spine
- Runs
pnpm run build. - Copies the whole
srctree intosource-code/engine-spine/src. - Copies the whole
typestree intodeclare/engine-spine/types.
- Runs
npm run sync:engine
npm run sync:toolkit
npm run sync:lottie
npm run sync:spine- Override project locations with the following environment variables (or CLI flags):
GALACEAN_ENGINE_ROOT/--engine-rootGALACEAN_TOOLKIT_ROOT/--toolkit-rootGALACEAN_ENGINE_LOTTIE_ROOT/--lottie-rootGALACEAN_ENGINE_SPINE_ROOT/--spine-root
- Append
-- --skip-buildto skip every build step (when you already ran them manually).
Add new synchronization targets under src/ as you expand the knowledge base.