1{-# LANGUAGE DeriveDataTypeable #-}
2module Build.Flags where
4import qualified Elm.Internal.Version as Version
5import System.Console.CmdArgs
10 , set_runtime :: Maybe FilePath
12 , bundle_runtime :: Bool
15 , scripts :: [FilePath]
17 , cache_dir :: FilePath
18 , build_dir :: FilePath
19 , src_dir :: [FilePath]
21 deriving (Data,Typeable,Show,Eq)
25 { files = def &= args &= typ "FILES"
28 &= help "automatically compile dependencies."
31 &= help "Compile only to JavaScript."
34 &= help "Do not import Prelude by default, used only when compiling standard libraries."
36 , scripts = [] &= typFile
37 &= help "Load JavaScript files in generated HTML. Files will be included in the given order."
39 , set_runtime = Nothing &= typFile
40 &= help "Specify a custom location for Elm's runtime system."
43 &= help "Print the absolute path to the default Elm runtime."
45 , bundle_runtime = False
46 &= help "Bundle the runtime with the generated html or js to create a standalone file."
48 , cache_dir = "cache" &= typFile
49 &= help "Directory for files cached to make builds faster. Defaults to cache/ directory."
51 , build_dir = "build" &= typFile
52 &= help "Directory for generated HTML and JS files. Defaults to build/ directory."
54 , src_dir = ["."] &= typFile
55 &= help "Additional source directories besides project root. Searched when using --make"
58 &= help "Print out inferred types of top-level definitions."
60 } &= help "Compile Elm programs to HTML, CSS, and JavaScript."
61 &= helpArg [explicit, name "help", name "h"]
62 &= versionArg [explicit, name "version", name "v", summary (show Version.elmVersion)]
63 &= summary ("The Elm Compiler " ++ show Version.elmVersion ++ ", (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