shake-elm 0.1.0.0 → 0.2.0.0
raw patch · 3 files changed
+5/−5 lines, 3 filessetup-changedPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Development.Shake.Elm: elmMake :: [FilePath] -> [FilePath] -> FilePattern -> Rules ()
+ Development.Shake.Elm: elmMake :: [FilePath] -> [FilePath] -> Bool -> FilePattern -> Rules ()
Files
- Setup.hs +0/−2
- shake-elm.cabal +1/−1
- src/Development/Shake/Elm.hs +4/−2
− Setup.hs
@@ -1,2 +0,0 @@-import Distribution.Simple-main = defaultMain
shake-elm.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: shake-elm-version: 0.1.0.0+version: 0.2.0.0 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2018 Vanessa McHale
src/Development/Shake/Elm.hs view
@@ -6,9 +6,11 @@ -- | Rules for calling @elm-make@. elmMake :: [FilePath] -- ^ Elm source files -> [FilePath] -- ^ Extra source files to be tracked+ -> Bool -- ^ Toggle optimized build product -> FilePattern -- ^ Build output -> Rules ()-elmMake sources extras fp =+elmMake sources extras opt fp = fp %> \out -> do need (sources ++ extras)- command [] "elm-make" ("--yes" : "--output" : out : "--warn" : sources)+ let go = if opt then ("--optimize":) else id+ command [] "elm-make" (go ("--yes" : "--output" : out : "--warn" : sources))