From 965c2f85177469b59e27a1a2511bd7f4da9e73b6 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Wed, 28 Oct 2020 06:05:05 -0500 Subject: [PATCH] port styleguide-app rules --- Shakefile.hs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Shakefile.hs b/Shakefile.hs index 757ec204..2eec0cb6 100644 --- a/Shakefile.hs +++ b/Shakefile.hs @@ -65,3 +65,13 @@ main = "logs/documentation.json" %> \out -> do need ["log/node_modules.txt"] cmd_ "elm" "make" "--docs" out + + "styleguide-app/bundle.js" %> \out -> do + need ["lib/index.js", "styleguide-app/manifest.js", "log/node_modules.txt"] + cmd_ "npx" "browserify" "--entry" "styleguide-app/manifest.js" "--outfile" out + + "styleguide-app/elm.js" %> \out -> do + need ["styleguide-app/bundle.js"] -- ported directly from Make... why is this needed? + elmSources <- getDirectoryFiles "." ["styleguide/**/*.elm", "src/**/*.elm"] + need elmSources + cmd_ (Cwd "styleguide-app") "npx" "elm" "make" "Main.elm" "--output" (takeFileName out)