This commit is contained in:
tree 2023-02-13 13:37:29 +01:00
rodič 2f2f5b7b09
revize c015250750
3 změnil soubory, kde provedl 5 přidání a 0 odebrání

Zobrazit soubor

@ -25,6 +25,9 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Generate static JSON file with data
run: npm run static-data
- name: Build - name: Build
run: npm run build run: npm run build

1
.gitignore vendorováno
Zobrazit soubor

@ -8,3 +8,4 @@ node_modules
!.env.example !.env.example
vite.config.js.timestamp-* vite.config.js.timestamp-*
vite.config.ts.timestamp-* vite.config.ts.timestamp-*
static/data.json

Zobrazit soubor

@ -6,6 +6,7 @@
"dev": "vite dev", "dev": "vite dev",
"build": "vite build", "build": "vite build",
"preview": "vite preview", "preview": "vite preview",
"static-data": "node -e \"(async function () { const data=await import('./src/lib/config.js');console.log(JSON.stringify(data.default, null, 2)); })()\" > static/data.json",
"lint": "prettier --plugin-search-dir . --check . && eslint .", "lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ." "format": "prettier --plugin-search-dir . --write ."
}, },