1-- This file compiles all library and runtime code
2-- into elm-runtime.js. Use the following command to run it:
6-- Note: This does NOT compile the compiler! Run `cabal install`
7-- from the compiler/ directory to do that.
10import System.Directory
16 contents <- map (dir </>) `fmap` getDirectoryContents dir
17 let files = filter (\f -> takeExtension f == ext) contents
18 dirs = filter (not . hasExtension) contents
19 filess <- mapM (getFiles ext) dirs
20 return (files ++ concat filess)
23 putStrLn (dropExtension file)
25 length str `seq` return ()
26 appendFile "elm-runtime.js" str
29 system ("elm --only-js " ++ file)
30 let jsFile = replaceExtension file ".js"
35 writeFile "elm-runtime.js" "Elm = {}; Elm.Native = {};\n"
36 mapM_ appendJS =<< getFiles ".js" "libraries"
37 mapM_ appendElm =<< getFiles ".elm" "libraries"
38 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