mirror of
https://github.com/aelve/guide.git
synced 2024-12-22 20:31:31 +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
|
||||
|
||||
buildJS hooks = do
|
||||
let originalpreBuild = preBuild hooks
|
||||
let originalPostBuild = postBuild hooks
|
||||
return $ hooks {
|
||||
preBuild = \args flags -> do
|
||||
postBuild = \args flags pkgDesc localBuildInfo -> do
|
||||
let npmbuild = proc "sh" ["./scripts/buildjs.sh"]
|
||||
(_, _, _, buildHandle) <- createProcess npmbuild
|
||||
waitForProcess buildHandle
|
||||
originalpreBuild args flags
|
||||
originalPostBuild args flags pkgDesc localBuildInfo
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user