Template
A generic template for my personal projects.
How to use
Setup
- Add as a git submodule to another project
git submodule add ...
. - Fetch submodule updates by either going into the submodule
directory and running
git pull origin master
or you could rungit submodule update --remote icidasset-template
in the root directory.
Haskell
- Add
./icidasset-template
topackages
in thestack.yaml
file. - Use the Haskell modules as normal.
Elm
- Add
icidasset-template/Elm
tosource-directories
in theelm.json
file. - Use the Elm modules as normal.
Css
- Add the
"icidasset-template": "file:./icidasset-template"
dependency topackage.json
in the root directory. - Import the template-css file (e.g.
@import "PATH_TO_ROOT/icidasset-template/Css/Core"
). - Use
postcss-cli
to compile your css file.
@./node_modules/.bin/postcss \
"src/Css/Main.css" \
--output "build/application.css" \
--config "icidasset-template/Css/"
Notes
Haskell
- Uses dot syntax for records (see https://hackage.haskell.org/package/record-dot-preprocessor for more info)