1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-23 04:42:24 +03:00

Switch to post build for JS build (speeds up build cycle)

This commit is contained in:
Aaron Friel 2017-07-03 09:50:54 -05:00
parent 7436696a49
commit b80271622b

View File

@ -6,11 +6,11 @@ main = do
defaultMainWithHooks hooks defaultMainWithHooks hooks
buildJS hooks = do buildJS hooks = do
let originalpreBuild = preBuild hooks let originalPostBuild = postBuild hooks
return $ hooks { return $ hooks {
preBuild = \args flags -> do postBuild = \args flags pkgDesc localBuildInfo -> do
let npmbuild = proc "sh" ["./scripts/buildjs.sh"] let npmbuild = proc "sh" ["./scripts/buildjs.sh"]
(_, _, _, buildHandle) <- createProcess npmbuild (_, _, _, buildHandle) <- createProcess npmbuild
waitForProcess buildHandle waitForProcess buildHandle
originalpreBuild args flags originalPostBuild args flags pkgDesc localBuildInfo
} }