Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 2.24 KB

DEVSETUP.md

File metadata and controls

19 lines (17 loc) · 2.24 KB

Development Environment Setup Steps

  1. Install Recent Version of Nodejs by downloading and running the installer found at https://nodejs.org/en/ or use the Node Version Manager found at https://github.com/creationix/nvm
  2. Install Elm by keying the command npm install -g elm
  3. Install the atom editor located at https://atom.io/
  4. Install the language-elm using the atom package manager (apm), by keying the command apm install language-elm
  5. Install elm-oracle by keying npm install -g elm-oracle
  6. Determine the path where the elm-oracle command was installed by keying which elm-oracle on mac and unix or where.exe elm-oracle on windows. Copy the entire path and file name to the clipboard, for use in the next step
  7. Open up Atom, then open up the preferences/settings by pressing CMD + , or via the menu. Click packages then filter by elm. Find the language-elm package and click the settings button. Set the elm-oracle setting, by pasting the value we copied in the prior step.
  8. Download the current version of elm-format found at https://github.com/avh4/elm-format
  9. Unzip the downloaded file and move the elm-format executable to a location in your PATH variable, such as mv ~/Downloads/elm-format /usr/local/bin/elm-format
  10. Install the elm-format Atom Package (Note: different from elm-format command), by keying apm install elm-format
  11. Start Atom, Open up Settings CMD + ,, click Packages, filter by elm, then click on the elm-format package's settings button. Set the elm-format command path setting and veryify the format on save checkbox is checked.
  12. Install atom linter by keying apm install linter.
  13. Install the elm linter by keying apm install linter-elm-make
  14. Locate and copy the path and file for the elm-make command by keying the command which elm-make for mac or where.exe elm-make on windows. (You may need to close atom and reopen it first. Say yes when it asks to install dependencies.)
  15. Open the linter-elm-make settings page in atom as you did in steps 7 and 13, then click the settings button next to linter-elm-make and then set the elm-make setting to the copied value from the prior step.

Your atom / elm dev environment should be good to go!