# lake build: refresh the copies this page needs; lake serve: open it through a local web server
default_task("build")

task("build", desc="Refresh suave.js, Keydown.js and the editor.wsv.js twin"):
    cp(lake_dir + "/../../dist/suave.js", "suave.js")
    cp(lake_dir + "/../../../Keydown.js", "Keydown.js")
    suave("twin", "editor.wsv")

task("serve", needs=["build"], desc="Serve it at http://localhost:8000"):
    suave("serve", ".", "8000")
