document what's up with the remaining ignores

This commit is contained in:
Brian Hicks 2020-10-29 09:09:03 -05:00
parent 3cf9d9d68a
commit 3cb927594d

View File

@ -5,17 +5,24 @@ import Development.Shake.Util
main :: IO () main :: IO ()
main = main =
-- TODO: better shake options. Parallelism, hash changes.
shakeArgs shakeArgs
shakeOptions shakeOptions
{ shakeFiles = "_build", { shakeFiles = "_build",
shakeThreads = 0,
shakeChange = ChangeModtimeAndDigest,
-- we ignore a lot of generated/downloaded dependency files so
-- that the output of `shake --lint-fsatrace` is usable. There
-- are probably a few untracked dependencies due to these ignores
-- (in particular relying on scripts in `node_modules`) but the
-- additional benefits are marginal compared to the effort required
-- to get everything 100% buttoned down. Long term, it'd be better to
-- move node dependencies into nix (either by using proper packages
-- where available or npm2nix where not.)
shakeLintIgnore = shakeLintIgnore =
[ "node_modules/**/*", [ "node_modules/**/*",
"elm-stuff/**/*", "elm-stuff/**/*",
"styleguide-app/elm-stuff/**/*" "styleguide-app/elm-stuff/**/*"
], ]
shakeThreads = 0,
shakeChange = ChangeModtimeAndDigest
} }
$ do $ do
-- phonies. These provide a nice public API for using shake (`shake -- phonies. These provide a nice public API for using shake (`shake