elm.json
for elm packagespackage.json
for node packagesyarn.lock
current versions of node packageswebpack.config.js
- build and compile configsrc
- the app source files
- You will need
elm@0.19
,node
andyarn
. Follow the official install instructions. - You will need some files from the
github.com/neontribe/contemplating-action
project. Get them by runningbash build.sh
. The build script will copy and install the necessary files for the project. 
yarn
to installyarn dev
to watch files and serve tolocalhost:3000
- Only brand specific files will be commited to this repo when edited. (see
.gitignore
)
We're using elm-test for testing.
yarn test
from root of site to run tests
We're using elm-format to standardise formatting.
The output of different versions of elm-format varies significantly, so please use version 0.8.1
.
- e.g.
yarn format src
from the root of site to format all files insrc
We're using Travis.
- On every push to the repo, Travis will build and run tests
- To trigger a deploy to gh-pages, create and push a tag (e.g.
git tag v1.0.0 && git push origin --tags
Encrypted vars can be added to.travis.yml
using the travis cli tools as decribed in the travis docs. Currently configured with GITHUB_TOKEN value.
The production is hosted using now.sh.
The process is manual and requires deploying two now apps. You can do that by installing now
and deploying the separate now.json
files.
To speed this up you can make sure now
is installed globally before running npx yarn global add now
.
This will deploy what is currently in your dist folder, so make sure you have a build in dist/
that you want to deploy.
Quickstart:
./build.sh
yarn build
npx now --prod
npx now --prod -A now.redirect.json
This will require access to the Advocacy People now account: https://zeit.co/ca-advocacy-people.