3import Control.Monad (unless)
4import Data.List (isInfixOf)
10import Elm.Internal.Paths as Elm
14 top <- getCurrentDirectory
15 let ioScript s = top</>"IO"</>s
16 runCmd "git submodule update --init"
17 out <- readProcess "npm" ["ls", "--parseable"] ""
18 unless ("jsdom" `isInfixOf` out) $ runCmd "npm install jsdom"
19 setCurrentDirectory $ top</>"tests"</>"elm"
20 runCmd $ concat [top</>"dist"</>"build"</>"elm"</>"elm --make --only-js --src-dir=" , top</>"automaton", " --src-dir=", top</>"IO", " --src-dir=", top</>"Elm-Test", " Test.elm"]
21 runCmd $ unwords ["cat ", ioScript "prescript.js", Elm.runtime, "build"</>"Test.js", ioScript "handler.js", "> exe.js"]
22 exitWith =<< waitForProcess =<< (runCommand "node exe.js")
25 exitCode <- waitForProcess =<< runCommand cmd
27 ExitSuccess -> return ()
28 ExitFailure _ -> error "something went wrong"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list