mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-23 16:32:11 +03:00
lint and promote elm.js
This commit is contained in:
parent
bfd9606fc5
commit
ddc9b83de9
18
Shakefile.hs
18
Shakefile.hs
@ -9,7 +9,12 @@ main =
|
||||
shakeArgs
|
||||
shakeOptions
|
||||
{ shakeFiles = "_build",
|
||||
shakeLintIgnore = ["node_modules/**/*", ".git/**/*", "elm-stuff/**/*"],
|
||||
shakeLintIgnore =
|
||||
[ "node_modules/**/*",
|
||||
".git/**/*",
|
||||
"elm-stuff/**/*",
|
||||
"styleguide-app/elm-stuff/**/*"
|
||||
],
|
||||
shakeThreads = 0,
|
||||
shakeChange = ChangeModtimeAndDigest
|
||||
}
|
||||
@ -76,6 +81,11 @@ main =
|
||||
need (["package.json", "lib/index.js", "styleguide-app/manifest.js", "log/npm-install.txt"] ++ libJsFiles)
|
||||
cmd_ "./node_modules/.bin/browserify" "--entry" "styleguide-app/manifest.js" "--outfile" out
|
||||
|
||||
"_build/elm.js" %> \out -> do
|
||||
elmSources <- getDirectoryFiles "." ["styleguide-app/**/*.elm", "src/**/*.elm"]
|
||||
need elmSources
|
||||
cmd_ (Cwd "styleguide-app") "elm" "make" "Main.elm" "--output" (".." </> out)
|
||||
|
||||
-- dev deps we get dynamically instead of from Nix (frowny face)
|
||||
"log/npm-install.txt" %> \out -> do
|
||||
-- npm looks in some unrelated files for whatever reason. We mark
|
||||
@ -112,12 +122,6 @@ main =
|
||||
phony "ci" $ do
|
||||
need ["log/check-exposed.txt", "test", "log/format.txt", "log/documentation.json", "public"]
|
||||
|
||||
"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)
|
||||
|
||||
-- public folder for styleguide
|
||||
"public/**/*" %> \out ->
|
||||
copyFileChanged (replaceDirectory1 out "styleguide-app") out
|
||||
|
Loading…
Reference in New Issue
Block a user