This is a template for NHM CKAN extensions.
Other relevant tools:
To create a new extension using this template:
git clone
this repo somewhere sensible (e.g.~/.biscuits
)cd
to the directory you'd like to make the new extension in (e.g./path/to/ckan/src/
)cookiecutter ~/.biscuits/cookiecutter-ckanext
You might also be able to use cookiecutter gh:NaturalHistoryMuseum/cookiecutter-ckanext
(without having to clone anything).
Once created, init the git repo and install the pre-commit hooks:
git init
pre-commit install
To run all the pre-commit hooks manually:
pre-commit run --all-files
To make a commit:
git add . # or whatever
cz c
Don't forget to add the secrets: PERSONAL_ACCESS_TOKEN
(create one here) and COVERALLS_REPO_TOKEN
(get it from the individual coveralls repo page - here's all the NHM repos).