1{-# LANGUAGE DeriveDataTypeable #-}
2module Build.Flags where
4import qualified Elm.Compiler.Version as Compiler
5import System.Console.CmdArgs
11 , set_runtime :: Maybe FilePath
13 , bundle_runtime :: Bool
16 , scripts :: [FilePath]
18 , cache_dir :: FilePath
19 , build_dir :: FilePath
20 , src_dir :: [FilePath]
22 deriving (Data,Typeable,Show,Eq)
26 { files = def &= args &= typ "FILES"
29 &= help "automatically compile dependencies."
32 &= help "Compile only to JavaScript."
35 &= help "Do not import Prelude by default, used only when compiling standard libraries."
37 , scripts = [] &= typFile
38 &= help "Load JavaScript files in generated HTML. Files will be included in the given order."
40 , set_runtime = Nothing &= typFile
41 &= help "Specify a custom location for Elm's runtime system."
44 &= help "Print the absolute path to the default Elm runtime."
46 , bundle_runtime = False
47 &= help "Bundle the runtime with the generated html or js to create a standalone file."
49 , cache_dir = "cache" &= typFile
50 &= help "Directory for files cached to make builds faster. Defaults to cache/ directory."
52 , build_dir = "build" &= typFile
53 &= help "Directory for generated HTML and JS files. Defaults to build/ directory."
55 , src_dir = ["."] &= typFile
56 &= help "Additional source directories besides project root. Searched when using --make"
59 &= help "Print out inferred types of top-level definitions."
61 } &= help "Compile Elm programs to HTML, CSS, and JavaScript."
62 &= helpArg [explicit, name "help", name "h"]
63 &= versionArg [explicit, name "version", name "v", summary Compiler.version]
64 &= summary ("The Elm Compiler " ++ Compiler.version ++ ", (c) Evan Czaplicki 2011-2014")
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