mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-27 13:02:42 +03:00
write public folder
This commit is contained in:
parent
965c2f8517
commit
810fde38b7
12
Shakefile.hs
12
Shakefile.hs
@ -75,3 +75,15 @@ main =
|
||||
elmSources <- getDirectoryFiles "." ["styleguide/**/*.elm", "src/**/*.elm"]
|
||||
need elmSources
|
||||
cmd_ (Cwd "styleguide-app") "npx" "elm" "make" "Main.elm" "--output" (takeFileName out)
|
||||
|
||||
-- public folder for styleguide
|
||||
"public/**/*" %> \out ->
|
||||
copyFileChanged (replaceDirectory1 out "styleguide-app") out
|
||||
|
||||
"log/public.txt" %> \out -> do
|
||||
styleguideAssets <- getDirectoryFiles ("styleguide-app" </> "assets") ["**/*"]
|
||||
need
|
||||
( ["public/index.html", "public/elm.js", "public/bundle.js"]
|
||||
++ map (("public" </> "assets") </>) styleguideAssets
|
||||
)
|
||||
writeFileChanged out "done"
|
||||
|
Loading…
Reference in New Issue
Block a user