packages feed

shake-ext 2.6.0.0 → 2.6.0.1

raw patch · 5 files changed

+35/−2 lines, 5 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Development.Shake.CCJS: ccjs :: [FilePath] -> FilePattern -> Rules ()
+ Development.Shake.Clean: cleanElm :: Action ()
+ Development.Shake.Elm: elmMake :: [FilePath] -> FilePattern -> Rules ()
+ Development.Shake.FileDetect: getElm :: Action [FilePath]

Files

shake-ext.cabal view
@@ -1,5 +1,5 @@ name:                shake-ext-version:             2.6.0.0+version:             2.6.0.1 synopsis:            Helper functions for linting with shake  description:         This package provides several linters out of the box, for use with [shake](http://shakebuild.com/). homepage:            https://hub.darcs.net/vmchale/shake-ext@@ -29,6 +29,8 @@                      , Development.Shake.Cabal                      , Development.Shake.Version                      , Development.Shake.C+                     , Development.Shake.CCJS+                     , Development.Shake.Elm   other-modules:       Development.Shake.TH   build-depends:       base >= 4.10 && < 5                      , shake
+ src/Development/Shake/CCJS.hs view
@@ -0,0 +1,12 @@+module Development.Shake.CCJS ( ccjs+                              ) where++import           Data.Semigroup+import           Development.Shake++ccjs :: [FilePath] -> FilePattern -> Rules ()+ccjs sources fp =+    fp %> \out -> do+        need sources+        (Stdout sout) <- command mempty "ccjs" (sources <> ["--externs=node"])+        liftIO $ writeFile out sout
src/Development/Shake/Clean.hs view
@@ -1,6 +1,12 @@-module Development.Shake.Clean where+module Development.Shake.Clean ( cleanElm+                               , cleanProducts+                               , cleanHaskell+                               ) where  import           Development.Shake++cleanElm :: Action ()+cleanElm = removeFilesAfter "elm-stuff" ["//*"]  -- | Clean generic products (@.o@, @.so@, @.a@). cleanProducts :: Action ()
+ src/Development/Shake/Elm.hs view
@@ -0,0 +1,9 @@+module Development.Shake.Elm ( elmMake+                             ) where++import           Development.Shake++elmMake :: [FilePath] -> FilePattern -> Rules ()+elmMake sources fp =+    fp %> \out -> do+        command mempty "elm-make" ("--yes" : "--output" : out : "--warn" : sources)
src/Development/Shake/FileDetect.hs view
@@ -10,11 +10,15 @@     , getAlex     , getShell     , getDhall+    , getElm     ) where  import           Control.Monad import           Data.Semigroup    ((<>)) import           Development.Shake++getElm :: Action [FilePath]+getElm = getAll ["elm"]  getDhall :: Action [FilePath] getDhall = getAll ["dhall"]