DBZ Sparking Zero Match Builder - A monorepo containing multiple applications
This repository contains two applications:
- Match Builder (
apps/matchbuilder/
) - Main SZ Match Builder application - Analyzer (
apps/analyzer/
) - Battle Result Analyzer application
This repository uses a dev-branch
for ongoing development work. The main
branch contains stable releases.
Install dependencies for all workspace apps:
npm install
Main Match Builder app:
npm run dev # Start development server
Analyzer app:
npm run dev:analyzer # Start analyzer development server
Build commands:
npm run build # Build main app only
npm run build:analyzer # Build analyzer app only
npm run build:all # Build both applications
Both applications are automatically deployed to GitHub Pages when changes are pushed to the main
or dev-branch
branches.
- Main app: https://ge0m.github.io/SZMatchBuilder/
- Analyzer app: https://ge0m.github.io/SZMatchBuilder/analyzer/
The GitHub Actions workflow (.github/workflows/deploy.yml
) will:
- Install dependencies for both applications
- Build both applications using their respective build processes
- Deploy the combined
dist
folder to GitHub Pages
You can also trigger a deployment manually:
- Go to the Actions tab in the GitHub repository
- Select the "Deploy to GitHub Pages" workflow
- Click "Run workflow" and select the branch to deploy
To build both applications locally:
npm install
npm run build:all
The built files will be in the dist
directory with the following structure:
dist/
├── index.html # Main app
├── assets/ # Main app assets
└── analyzer/ # Analyzer app
├── index.html
└── assets/
The main application is configured to be served from the /SZMatchBuilder/
base path (see apps/matchbuilder/vite.config.js
).
The analyzer application is built to the /analyzer/
subdirectory.