Skip to content

Commit 2837ce8

Browse files
committed
Add vite, json-schema-ref-parser, bundle complex schemas before jedison
1 parent 2c933f9 commit 2837ce8

9 files changed

Lines changed: 3205 additions & 15 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
cache: npm
26+
- run: npm ci
27+
- run: npm run build
28+
- uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: dist
31+
32+
deploy:
33+
needs: build
34+
runs-on: ubuntu-latest
35+
environment:
36+
name: github-pages
37+
url: ${{ steps.deployment.outputs.page_url }}
38+
steps:
39+
- id: deployment
40+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
4+
./claude

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,22 @@ A web-based GUI for generating configuration files for the [mlb-led-scoreboard](
1111
## Usage
1212

1313
Open the site and select a schema version. Fill out the form fields, then use the **Download** or **Copy** button to get your JSON file. Place the downloaded files in your mlb-led-scoreboard installation directory.
14+
15+
## Development
16+
17+
**Install dependencies:**
18+
```bash
19+
npm install
20+
```
21+
22+
**Run locally:**
23+
```bash
24+
npm run dev
25+
```
26+
Opens at `http://localhost:5173` with hot reload.
27+
28+
**Build for production:**
29+
```bash
30+
npm run build
31+
```
32+
Output goes to `dist/`. Deployed automatically to GitHub Pages on push to `main` via GitHub Actions.

index.html

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@
77
<link rel="icon" type="image/x-icon" href="favicon.ico">
88
<link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png">
99
<link rel="apple-touch-icon" href="apple-touch-icon.png">
10-
11-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
12-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
13-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/choices.js/public/assets/styles/choices.min.css">
14-
<link rel="stylesheet" href="src/styles.css">
15-
16-
<script src="https://cdn.jsdelivr.net/npm/dompurify@3.2.3/dist/purify.min.js"></script>
17-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
18-
<script src="https://cdn.jsdelivr.net/npm/sortablejs@1.4.2/Sortable.min.js"></script>
19-
<script src="https://cdn.jsdelivr.net/npm/choices.js/public/assets/scripts/choices.min.js"></script>
20-
<script src="https://cdn.jsdelivr.net/npm/jedison@latest/dist/umd/jedison.umd.js"></script>
2110
</head>
2211
<body>
2312
<div class="container py-4">
@@ -160,6 +149,6 @@ <h1 class="mb-1">MLB LED Scoreboard Config Editor</h1>
160149
</div>
161150
</div>
162151

163-
<script src="src/main.js"></script>
152+
<script type="module" src="/src/main.js"></script>
164153
</body>
165154
</html>

0 commit comments

Comments
 (0)