Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI
on:
push:
branches:
- main
pull_request:

jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
with:
run_install: false

- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version-file: package.json
cache: pnpm

- run: pnpm install

- run: pnpm lint

- run: pnpm build
2 changes: 1 addition & 1 deletion app/assets/building-geometries.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion app/assets/venue-geometry.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion content/zh/transportation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
1. 搭乘 :icon{name="local:green-line"} 松山新店線至公館站
2. 從 2 號出口「銘傳國小」出站
3. 左轉舟山路
4. 鹿鳴堂右轉
4. 鹿鳴堂右轉
5. 過基隆路左行
6. 抵達國立臺灣科技大學

Expand Down
5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ export default withNuxt(
'vue/attributes-order': ['error', { alphabetical: true }],
},
},
{
ignores: [
'.pnpm-store/', // Generated by CI workflow
],
},
)
4 changes: 4 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export default defineNuxtConfig({
scan: false,
},

typescript: {
typeCheck: true,
},

modules: [
'@unocss/nuxt',
'@nuxt/content',
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
"name": "coscup-2026",
"type": "module",
"private": true,
"packageManager": "pnpm@10.26.2",
"engines": {
"node": ">=24.0.0"
},
"scripts": {
"build": "nuxt generate",
"dev": "nuxt dev",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
"postinstall": "nuxt prepare",
"lint": "eslint",
"typecheck": "nuxt typecheck"
},
"dependencies": {
"@nuxt/content": "3.9.0",
Expand All @@ -28,12 +34,14 @@
"@types/geojson": "7946.0.16",
"@types/leaflet": "1.9.21",
"@unocss/eslint-plugin": "66.5.10",
"@unocss/extractor-mdc": "^66.5.10",
"@unocss/extractor-mdc": "66.5.10",
"@unocss/nuxt": "66.5.10",
"@unocss/preset-wind4": "66.5.10",
"@unocss/transformer-directives": "66.5.10",
"eslint-plugin-format": "1.1.0",
"typescript": "5.9.3",
"unocss": "66.5.10",
"unocss-preset-theme": "0.14.1"
"unocss-preset-theme": "0.14.1",
"vue-tsc": "3.2.0"
}
}
Loading