This is part of the Wildlife Trusts larger TeamWilder projects.
Release https://nextdoornaturehub.org.uk
- elm 0.19
- node
- nvm for macOS & Linux or nvm for Windows
- After cloning the repo and running
npm install
you will also need tonpm run prepare
to install husky - Image Magick (for image size fixing)
We recommend integrating [email protected]
and prettier
into your code editor. A pre-commit hook is configured to take care of this if not.
npm run dev
for a hot reload server which defaults to http://localhost:5173npm run build
to generate a production build indist
We are using elm test. We don't have all the time in the world, so tests will be light. We aim to cover any exposed API in our modules and things with potential to fail and go unnoticed.
npm test
to runelm-test
You can run elm-review on your code with npm run lint
We use rules provided by jfmengels/elm-review-config/application to improve code quality.
Rules live in review/src/ReviewConfig.elm
and can be modified if needed.
- When a pull request is created against
main
, cloudflare builds a preview site - When code is merged into
main
it is deployed to https://team-wilder-proto.pages.dev/
- The CMS can be accessed at https://team-wilder-content.netlify.app/admin
- To log in you'll need to use your github account and have write permission to this repo to make changes.
- Any changes drafted will generate a preview site which can be accessed by opening the pull request linked to the change
- Any changes marked ready and then published will be released to the public site at https://nextdoornaturehub.org.uk
elm.json
for elm packagespackage.json
for node scripts and packagespackage-lock.json
for current versions of node packagessrc/*
contains app source files./formstackTheme.css
styles our formstack iframe, it can be applied by following these instructionsnetlify.toml
for Netlify deploy configuration
- Pages are in
Page/
- Assets to be copied to deploy bundle root are in
public/
- Markdown content is in
content/
- Markdown content is compiled to
.json
files withgenerate
script - Copy not in
content/
(e.g. UI copy) is in language files likeI18n/En.elm
- We use
[cCc] to denote placeholder copy
- We are using elm-css for styling
- add effort & value labels (if you know enough about it)
- put the issue in a milestone (if it is part of a current epic)
- assign it to yourself before starting work
- make a branch that includes the issue type (fix/feat/chore etc & number)
- make sure you understand the acceptance criteria
- don't forget to include tests if it's a new feature
- ask questions & make plan
- check the acceptance criteria have been met (with tests if appropriate)
- add comments & questions
- once approved, leave for the author to squash and merge
There is no hard limit on image size that can be uploaded. We want to keep this reasonable to make loading time as fast as possible for end users. So to bulk resize all images greater than '2000x2000' run:
mogrify -resize '2000x2000>' ./public/images/uploads/*.jpg
Source code is released under the Hippocratic License.