Make sure the following are installed:
- NodeJs (and npm)
- Elm (e.g.
npm install -g elm@~0.18.0
) - Compass (for SASS) (
gem update --system && gem install compass
) - Elm Format (
npm install -g [email protected]
), not strictly required for the development, but the standard must be followed, as Travis checks that. Therefore it's highly suggested to run Elm Format upon save at your IDE (https://github.com/avh4/elm-format#editor-integration).
npm install
elm-package install -y
cp src/elm/LocalConfig.Example.elm src/elm/LocalConfig.elm
You may need to update src/elm/LocalConfig.elm
if your local URLs are different from the default setting.
- Serve locally, and watch file changes:
gulp
- Prepare file for publishing (e.g. minify, and rev file names):
gulp publish
- Deploy to GitHub's pages (
gh-pages
branch of your repository):gulp deploy
The unit tests are written in Elm via Elm Test and it's invoked at the Travis builds.
npm test
- Run
gulp
- Follow steps 2-4
cp wdio.local.conf.js.example wdio.local.conf.js
and set your local configurations.- Execute tests with
./node_modules/.bin/wdio wdio.local.conf.js
Beware that you do not need to (should not) execute a standalone Selenium Server alongside WDIO to run the tests.
To simulate Travis test execution, see ../ci-scripts/README.md