Created
January 6, 2018 14:09
-
-
Save ccapndave/57e8a5743fba32d48f98b1b900a8976b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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