Project environment and command launcher.
Query for a project and command:
nixon
Simply run a command from the current directory:
nixon run
The build
sub-command allows building nixon with a custom configuration:
{-# LANGUAGE OverloadedStrings #-}
import Nixon
import Nixon.Config as Config
import Nixon.Projects.Defaults
import Nixon.Projects.Types
main :: IO ()
main = nixon_with_config config
where config = default_config { Config.project_types = projects }
projects = default_projects ++
[proj ["package.json"] "My JavaScript projects"
["prettier" ! desc "Run prettier"]
["tslint" ! desc "Run tslint"]
]
# nixon build INFLIE OUTFILE
nixon build custom_nixon.hs custom_nixon
NB: build
requires a working ghc
.