Explanatory video: https://www.youtube.com/watch?v=SuXTF_rZZRA
- Pick an editor and install Elm plugin(s):
- Atom
- IntelliJ
- Sublime Text
- VS Code
-
Make sure npm is available:
npm --version
.. which should print something like 6.14 (or newer)
git clone [email protected]:remote-mob/cardboard.git
cd cardboard
npm install
npm run build
- open
cardboard/index.html
in a browser (it was created by build step)
Elm-live is nice to use to avoid having to click refresh when debugging with
a browser. To install it you need node >= 10.0.0
. If you have installed
node with a package manager this might not be the case and you will get this
warning:
$ npm install elm-live
WARN engine [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"8.10.0","npm":"3.5.2"})
...
Here are instructions how to get a newer version (using Node Version Manager to manage Node versions):
sudo apt remove npm
sudo apt autoremove # Cleans up packages not needed after npm removal
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
source ~/.bashrc # or restart shell
nvm install --lts
npm run elm-live # Open http://localhost:8000 and check that it works
- Make a funny sounding branch :)
- Make a change in
src/Main.elm
in your editor npm run run
and browse tolocalhost:8000/src/Main.elm
- Verify the change is visible
- Commit and push the branch