Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created January 6, 2018 14:09
Show Gist options
  • Save ccapndave/57e8a5743fba32d48f98b1b900a8976b to your computer and use it in GitHub Desktop.
Save ccapndave/57e8a5743fba32d48f98b1b900a8976b to your computer and use it in GitHub Desktop.
function copyMisc(): Task {
return () =>
startIn(homeDir)
.then(addFiles("assets/**"))
.then(addFiles("vendor/**"))
.then(addFiles("index.html"))
.then(writeTo(destDir))
}
function copyConfig(configFile: string): Task {
return () =>
startIn("config")
.then(addFiles(configFile))
.then(forEachFile(rename(originalFilename => "config.json")))
.then(writeTo(destDir))
}
Sparky.task("dev", series([
parallel([
copyConfig("config-dev-online.json"),
copyMisc()
]),
() => new App().dev().run()
]));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment