nimpkgs/config.nims

23 lines
550 B
Text
Raw Normal View History

2023-11-22 23:43:36 -06:00
switch("backend","js")
2023-11-12 18:25:29 -06:00
task setup, "run atlas init":
exec "atlas init --deps=.workspace"
exec "atlas install"
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 " &
"nim js -d:packagesHash:master -o:site/app.js src/app.nim"
)
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