Skip to content

Commit 266e268

Browse files
committed
x
1 parent 02fd5ad commit 266e268

File tree

210 files changed

+13177
-4312
lines changed

Some content is hidden

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

210 files changed

+13177
-4312
lines changed

.editorconfig

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,15 @@
1-
root = true
2-
31
[*]
4-
end_of_line = lf
5-
insert_final_newline = true
6-
7-
[*.{g4, g}]
82
charset = utf-8
9-
indent_style = tab
10-
indent_size = 4
113

12-
[*.{java, scala}]
13-
charset = utf-8
14-
indent_style = tab
15-
indent_size = 4
164

17-
[*.{nyar, n}]
18-
charset = utf-8
5+
[*.{vue,tsx,jsx}]
196
indent_style = space
20-
indent_size = 4
7+
indent_size = 2
218

22-
[*.{ts, py}]
23-
charset = utf-8
9+
[*.{sass,scss,css}]
2410
indent_style = space
2511
indent_size = 4
2612

27-
[*.{json, yml}]
28-
charset = utf-8
13+
[*.{json,toml}]
2914
indent_style = space
30-
indent_size = 4
15+
indent_size = 4

.gitattributes

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/hugo.yml

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, dev]
6+
pull_request:
7+
branches: [master, dev]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
RUST_BACKTRACE: 1
12+
13+
jobs:
14+
rust-check:
15+
name: Rust Check
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Install Rust toolchain
22+
uses: dtolnay/rust-toolchain@nightly
23+
with:
24+
components: rustfmt, clippy
25+
26+
- name: Cache cargo registry
27+
uses: actions/cache@v4
28+
with:
29+
path: |
30+
~/.cargo/registry
31+
~/.cargo/git
32+
target
33+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-cargo-
36+
37+
- name: Check formatting
38+
run: cargo fmt --all -- --check
39+
40+
- name: Run clippy
41+
run: cargo clippy --all-targets --all-features -- -D warnings
42+
43+
- name: Check compilation
44+
run: cargo check --all-targets --all-features
45+
46+
rust-test:
47+
name: Rust Test
48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
os: [ubuntu-latest, windows-latest, macos-latest]
52+
runs-on: ${{ matrix.os }}
53+
steps:
54+
- name: Checkout repository
55+
uses: actions/checkout@v4
56+
57+
- name: Install Rust toolchain
58+
uses: dtolnay/rust-toolchain@nightly
59+
60+
- name: Cache cargo registry
61+
uses: actions/cache@v4
62+
with:
63+
path: |
64+
~/.cargo/registry
65+
~/.cargo/git
66+
target
67+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
68+
restore-keys: |
69+
${{ runner.os }}-cargo-
70+
71+
- name: Run tests (default features)
72+
run: cargo test --workspace
73+
74+
js-check:
75+
name: JavaScript/TypeScript Check
76+
runs-on: ubuntu-latest
77+
steps:
78+
- name: Checkout repository
79+
uses: actions/checkout@v4
80+
81+
- name: Setup Node.js
82+
uses: actions/setup-node@v4
83+
with:
84+
node-version: "20"
85+
86+
- name: Install pnpm
87+
uses: pnpm/action-setup@v4
88+
with:
89+
version: 9
90+
91+
- name: Get pnpm store directory
92+
shell: bash
93+
run: |
94+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
95+
id: pnpm-cache
96+
97+
- name: Setup pnpm cache
98+
uses: actions/cache@v4
99+
with:
100+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
101+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
102+
restore-keys: |
103+
${{ runner.os }}-pnpm-store-
104+
105+
- name: Install dependencies
106+
run: pnpm install --frozen-lockfile
107+
108+
- name: Run Biome CI (format + lint)
109+
run: npx biome ci .
110+
111+
- name: Run TypeScript type check
112+
run: pnpm run typecheck:frontend
113+
114+
- name: Build frontend packages
115+
run: pnpm run build:frontend
116+
117+
hugo-consistency-test:
118+
name: Hugo Consistency Test
119+
runs-on: ubuntu-latest
120+
steps:
121+
- name: Checkout repository
122+
uses: actions/checkout@v4
123+
with:
124+
submodules: true
125+
126+
- name: Install Rust toolchain
127+
uses: dtolnay/rust-toolchain@nightly
128+
129+
- name: Cache cargo registry
130+
uses: actions/cache@v4
131+
with:
132+
path: |
133+
~/.cargo/registry
134+
~/.cargo/git
135+
target
136+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
137+
restore-keys: |
138+
${{ runner.os }}-cargo-
139+
140+
- name: Build rusty-ssg hugo
141+
run: cargo build --package hugo
142+
143+
- name: Setup Node.js
144+
uses: actions/setup-node@v4
145+
with:
146+
node-version: "20"
147+
148+
- name: Install pnpm
149+
uses: pnpm/action-setup@v4
150+
with:
151+
version: 9
152+
153+
- name: Get pnpm store directory
154+
shell: bash
155+
run: |
156+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
157+
id: pnpm-cache
158+
159+
- name: Setup pnpm cache
160+
uses: actions/cache@v4
161+
with:
162+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
163+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
164+
restore-keys: |
165+
${{ runner.os }}-pnpm-store-
166+
167+
- name: Install dependencies
168+
run: pnpm install --frozen-lockfile
169+
170+
- name: Run Hugo consistency test for hugo-ananke
171+
run: |
172+
cd examples/hugo-ananke
173+
pnpm test
174+
175+
- name: Run Hugo consistency test for hugo-blowfish
176+
run: |
177+
cd examples/hugo-blowfish
178+
pnpm test
179+
180+
- name: Run Hugo consistency test for hugo-mvp
181+
run: |
182+
cd examples/hugo-mvp
183+
pnpm test

.gitignore

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
1+
# OS
2+
.DS_Store/
3+
thumbs.db
4+
time-travel.*
5+
16
# IDE
2-
.idea/
37
.vscode/
8+
.idea/
9+
.trae/
410
.vs/
511
*.iml
612

7-
# Java
13+
# Node
14+
node_modules/
15+
build/
16+
.wrangler/
17+
dist/
18+
static/**/*
19+
index.css
20+
pnpm-lock.yaml
21+
22+
# Rust
823
target/
9-
.antlr/
24+
Cargo.lock
25+
*.log
26+
*.txt
27+
.cargo/config.toml
28+
29+
# SQLite
30+
*.db
31+
*.db-wal

0 commit comments

Comments
 (0)