This repository contains:
mc3d- the MC3D React app;mc2d- the MC2D React app; andshared- a package that contains the shared code. Is imported directly from source in the apps, so does not need to be built.
npm workspaces are used to manage this project, so one should just directly run at the repo root:
# Install all dependencies
npm install
# Develop either app
npm run dev:mc3d
npm run dev:mc2d
# Build for production (prod backend)
npm run build:mc3d
npm run build:mc2d
# Build for Cloudflare (picks prod/dev backend based on branch)
npm run build:cf:mc3d
npm run build:cf:mc2d
# Preview the built distribution
npm run preview:mc3d
npm run preview:mc2dCloudflare is used to automatically deploy:
- Production (
mainbranch) to - Development (
developbranch) to
And any other branch will be deployed as (note that symbols like _ and / get replaced by -):
- e.g.
branch_name/1->https://branch-name-1.discover-mcxd.pages.dev