nimpkgs/config.nims
2024-08-17 09:13:27 -05:00

22 lines
550 B
Nim

switch("backend","js")
task setup, "run atlas init":
exec "atlas init --deps=.workspace"
exec "atlas install"
task build, "build":
selfExec "js -o:site/app.js -d:release src/app.nim"
exec "pnpm run build"
task watch, "rebuild on change":
exec (
"watchexec " &
"--project-origin . -w src " &
"nim js -d:packagesHash:master -o:site/app.js src/app.nim"
)
# begin Nimble config (version 2)
--noNimblePath
when withDir(thisDir(), system.fileExists("nimble.paths")):
include "nimble.paths"
# end Nimble config