2023-11-22 23:43:36 -06:00
|
|
|
switch("backend","js")
|
2023-11-12 18:25:29 -06:00
|
|
|
|
|
|
|
task build, "build":
|
2023-11-22 23:43:36 -06:00
|
|
|
selfExec "js -o:site/app.js -d:release src/app.nim"
|
2023-11-12 18:25:29 -06:00
|
|
|
exec "pnpm run build"
|
|
|
|
|
|
|
|
task watch, "rebuild on change":
|
2024-02-07 15:02:55 -06:00
|
|
|
exec (
|
|
|
|
"watchexec " &
|
|
|
|
"--project-origin . -w src " &
|
2024-09-14 17:59:12 -05:00
|
|
|
"nim js -d:debug -d:packagesHash:master -o:site/app.js src/app.nim"
|
2024-02-07 15:02:55 -06:00
|
|
|
)
|
|
|
|
|
2024-08-17 09:13:27 -05:00
|
|
|
# begin Nimble config (version 2)
|
|
|
|
--noNimblePath
|
|
|
|
when withDir(thisDir(), system.fileExists("nimble.paths")):
|
|
|
|
include "nimble.paths"
|
|
|
|
# end Nimble config
|