1-- This file compiles all Elm code then concatenates all JS code
2-- into elm-runtime.js. Use the following command to run it:
14 contents <- map (dir </>) `fmap` getDirectoryContents dir
15 let files = filter (\f -> takeExtension f == ext) contents
16 dirs = filter (not . hasExtension) contents
17 filess <- mapM (getFiles ext) dirs
18 return (files ++ concat filess)
21 putStrLn (dropExtension file)
23 length str `seq` return ()
24 appendFile "elm-runtime.js" str
27 system ("elm --only-js " ++ file)
28 let jsFile = replaceExtension file ".js"
33 writeFile "elm-runtime.js" "Elm = {}; Elm.Native = {};\n"
34 mapM_ appendJS =<< getFiles ".js" "libraries"
35 mapM_ appendElm =<< getFiles ".elm" "libraries"
36 mapM_ appendJS =<< getFiles ".js" "runtime"
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