Starting new Haskell is a hassle. You have to:
- Create a new project directory
- Populate it with source and build infrastructure files
- Create a git repository
- Commit the boilerplate you just created
- Install dependencies (e.g. run »stack build«)
- Create a new github repository
- Link the github repository
This package automates these steps.
User configuration files are expected in either of
~/.make-package.conf
~/.make-package/make-package.conf
$XDG_CONFIG_HOME/make-package/make-package.conf.
(where$XDG_CONFIG_HOME
defaults to~/.config
if unset)
Template can come from 4 source:
- Git templates:
git:<git repository>
(accepts any url git accepts) - Templates on github:
github:<username>/<repo>
(Must be publicly visible) - Directories:
file:<path to directory>
Named templates in the template directory :
- Named templates are expected in
$XDG_DATA_HOME/make-package/templates
(where$XDG_DATA_HOME
defaults to~/.local/share
if unset). - The directory will be copied, files ending in
.mustache
are treated as mustache templates
The following variables are set for template expansion:
name
: Name of the packagedesc
: Description of the packageemail
: Author's email addressauthor
: Author's full nameyear
: Current yearlicense
: Name of the selected licensestack-resolver
: Configured stack resolvercategory
: Chosen category (if set)
License files can be stored in $XDG_DATA_HOME/macke-package/licenses
. If this directory does not exist, the licenses provided