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:
parent
7436696a49
commit
b80271622b
6
Setup.hs
6
Setup.hs
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user