This is part of the Wildlife Trusts larger TeamWilder projects.
Release https://nextdoornaturehub.org.uk
npm install
you will also need to npm run prepare
to install huskyWe recommend integrating elm-format@0.8.6
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 in dist
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 run elm-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.
main
, cloudflare builds a preview sitemain
it is deployed to https://team-wilder-proto.pages.dev/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 configurationPage/
public/
content/
.json
files with generate
scriptcontent/
(e.g. UI copy) is in language files like I18n/En.elm
[cCc] to denote placeholder copy
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.