Safe Haskell | None |
---|---|
Language | Haskell2010 |
Spago.Build
Synopsis
- build :: HasBuildEnv env => Maybe (RIO env ()) -> RIO env ()
- test :: HasBuildEnv env => Maybe ModuleName -> [BackendArg] -> RIO env ()
- run :: HasBuildEnv env => Maybe ModuleName -> [BackendArg] -> RIO env ()
- repl :: HasEnv env => [PackageName] -> [SourcePath] -> [PursArg] -> DepsOnly -> PackageName -> RIO env ()
- bundleModule :: (HasEnv env, HasPurs env) => WithMain -> BundleOptions -> BuildOptions -> UsePsa -> RIO env ()
- docs :: HasBuildEnv env => Maybe DocsFormat -> NoSearch -> OpenDocs -> RIO env ()
- search :: HasBuildEnv env => RIO env ()
- script :: HasEnv env => Text -> Maybe Text -> [PackageName] -> ScriptBuildOptions -> RIO env ()
Documentation
test :: HasBuildEnv env => Maybe ModuleName -> [BackendArg] -> RIO env () #
Test the project: compile and run Test.Main (or the provided module name) with node
run :: HasBuildEnv env => Maybe ModuleName -> [BackendArg] -> RIO env () #
Run the project: compile and run Main (or the provided module name) with node
repl :: HasEnv env => [PackageName] -> [SourcePath] -> [PursArg] -> DepsOnly -> PackageName -> RIO env () #
Start a repl
bundleModule :: (HasEnv env, HasPurs env) => WithMain -> BundleOptions -> BuildOptions -> UsePsa -> RIO env () #
Bundle the project to a CommonJs module/app or an ES module
docs :: HasBuildEnv env => Maybe DocsFormat -> NoSearch -> OpenDocs -> RIO env () #
Generate docs for the sourcePaths
and run `purescript-docs-search build-index` to patch them.
search :: HasBuildEnv env => RIO env () #
Start a search REPL.
script :: HasEnv env => Text -> Maybe Text -> [PackageName] -> ScriptBuildOptions -> RIO env () #
Run the select module as a script: init, compile, and run the provided module