Use stack to run gencss (clay pre-processed css)
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
This commit is contained in:
parent
1f7c01b31f
commit
c053c6a3ed
|
@ -140,12 +140,12 @@ main = do
|
||||||
rulesExtraDependencies [clayDeps] $ create ["default.css"] $ do
|
rulesExtraDependencies [clayDeps] $ create ["default.css"] $ do
|
||||||
route idRoute
|
route idRoute
|
||||||
compile $ makeItem =<< (unsafeCompiler $ do
|
compile $ makeItem =<< (unsafeCompiler $ do
|
||||||
(_, hout, _, ph) <- createProcess $ shell "cabal build gencss"
|
(_, hout, _, ph) <- createProcess $ shell "stack build blog-rekahsoft-ca:gencss"
|
||||||
exitCode <- waitForProcess ph
|
exitCode <- waitForProcess ph
|
||||||
if exitCode == ExitSuccess
|
if exitCode == ExitSuccess
|
||||||
then readProcess "cabal" ["run", "--verbose=0", "gencss", "compact"] ""
|
then readProcess "stack" ["exec", "gencss", "--", "compact"] ""
|
||||||
else case hout of
|
else case hout of
|
||||||
Nothing -> fail "Error running 'cabal build gencss'"
|
Nothing -> fail "Error running 'stack build blog-rekahsoft-ca:gencss'"
|
||||||
Just hout' -> hGetContents hout' >>= fail)
|
Just hout' -> hGetContents hout' >>= fail)
|
||||||
|
|
||||||
rulesExtraDependencies [manifestDeps] $ create ["manifest.appcache"] $ do
|
rulesExtraDependencies [manifestDeps] $ create ["manifest.appcache"] $ do
|
||||||
|
|
Loading…
Reference in New Issue