Skip to content

Commit 64b8698

Browse files
committed
Big polish, refactor, restructure, style sweep, new ci/cd, etc.)
1 parent 1872dec commit 64b8698

51 files changed

Lines changed: 2897 additions & 4815 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 2
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.github/workflows/web-ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Web CI
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "web/**"
7+
- ".github/workflows/web-ci.yml"
8+
push:
9+
branches: [main]
10+
paths:
11+
- "web/**"
12+
- ".github/workflows/web-ci.yml"
13+
14+
defaults:
15+
run:
16+
working-directory: web
17+
18+
jobs:
19+
check:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version-file: web/.nvmrc
27+
cache: npm
28+
cache-dependency-path: |
29+
web/package-lock.json
30+
web/frontend/package-lock.json
31+
32+
- name: Install worker deps
33+
run: npm ci
34+
35+
- name: Install frontend deps
36+
run: npm ci --prefix frontend
37+
38+
- name: Lint
39+
run: npm run lint
40+
41+
- name: Typecheck frontend
42+
run: npm run check --prefix frontend
43+
44+
- name: Build frontend
45+
run: npm run build --prefix frontend
46+
47+
- name: Build worker (dry-run)
48+
run: npx wrangler deploy --dry-run

web/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

web/biome.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0/schema.json",
3+
"formatter": {
4+
"indentStyle": "space",
5+
"indentWidth": 2,
6+
"lineWidth": 120
7+
},
8+
"linter": {
9+
"enabled": true,
10+
"rules": {
11+
"recommended": true,
12+
"correctness": {
13+
"noUnusedImports": "warn",
14+
"noUnusedVariables": "warn"
15+
},
16+
"suspicious": {
17+
"noExplicitAny": "warn"
18+
}
19+
}
20+
},
21+
"javascript": {
22+
"formatter": {
23+
"quoteStyle": "double"
24+
}
25+
}
26+
}

web/frontend/index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,19 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/png" href="/favicon.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>glua.dev - REPL for GLua</title>
7+
<title>glua.dev — a REPL for GLua</title>
8+
<meta name="description" content="Spin up a real Garry's Mod environment in seconds and run GLua straight from your browser" />
9+
<meta name="theme-color" content="#6366F1" />
10+
11+
<meta property="og:type" content="website" />
12+
<meta property="og:site_name" content="glua.dev" />
13+
<meta property="og:title" content="glua.dev — a REPL for GLua" />
14+
<meta property="og:description" content="Spin up a real Garry's Mod environment in seconds and run GLua straight from your browser" />
15+
<meta property="og:url" content="https://glua.dev" />
16+
17+
<meta name="twitter:card" content="summary" />
18+
<meta name="twitter:title" content="glua.dev — a REPL for GLua" />
19+
<meta name="twitter:description" content="Spin up a real Garry's Mod environment in seconds and run GLua straight from your browser" />
820
</head>
921
<body class="text-gray-300">
1022
<div id="app"></div>

0 commit comments

Comments
 (0)