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
8 changes: 6 additions & 2 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ experimental = true
pin = true



[tasks."web:dev"]
alias = ["web:up"]
description = "Start frontend development server. Save file(s) to see changes"
Expand All @@ -26,14 +25,19 @@ run = "pnpm install"
description = "Builds the frontend for distribution/preview"
env._.path = "./node_modules/.bin"
dir = "{{ config_root }}"
run = "tsc && vite build"
run = "tsc -b && vite build"

[tasks."web:preview"]
description = "Previews frontend"
env._.path = "./node_modules/.bin"
dir = "{{ config_root }}"
run = "vite preview"

[tasks."web:clean-preview"]
description = "Cleans out dist and then previews frontend"
env._.path = "./node_modules/.bin"
dir = "{{ config_root }}"
run = ["rm -r dist", "tsc -b && vite build", "vite preview"]

[tasks."web:lint"]
description = "Lints the react codebase"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc -b && vite build",
"preview": "vite preview"
},
"dependencies": {
Expand Down