Skip to content

Commit

Permalink
Improve checks.sh to run built (quietly)
Browse files Browse the repository at this point in the history
Fix build issues (static adapter pre-render setting global in layout)

make VSCode autoformat
  • Loading branch information
scosman committed Sep 30, 2024
1 parent 757ee00 commit eb3ddc9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
},
"editor.tabSize": 4,
},
"eslint.validate": ["javascript", "javascriptreact", "svelte"],
// Svelte, JS, TS files
"[javascript, typescript, svelte, json]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
},
"python.testing.pytestArgs": [
".",
"-s",
Expand All @@ -26,4 +21,15 @@
"**/dist": true,
"**/node_modules": true
},
// Svelte, JS, TS files
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"eslint.validate": ["javascript", "javascriptreact", "typescript", "svelte"],
}
1 change: 1 addition & 0 deletions app/web_ui/src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const prerender = true
2 changes: 2 additions & 0 deletions checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ if [[ "$changed_files" == *"app/web_ui/"* ]]; then
npm run format_check
npm run lint
npm run check
echo "Running vite build"
npm run build > /dev/null
cd ../..
else
echo "Skipping Web UI: no files changed"
Expand Down

0 comments on commit eb3ddc9

Please sign in to comment.