Skip to content

Latest commit

 

History

History
124 lines (65 loc) · 4.19 KB

README.md

File metadata and controls

124 lines (65 loc) · 4.19 KB

Sgoettschkes/exercism

A repository to solve exercism exercises.

Check out my profile page!

Local setup

In order to solve exercism exercises, test the code and run the linter used for the particular language, make sure you follow the steps below.

We'll be using asdf if not indicated otherwise.

Clojure

Install rlwrap and java runtime:

brew install java rlwrap

Add the clojure plugin: asdf plugin add clojure https://github.com/asdf-community/asdf-clojure.git.

Run asdf install clojure in the root folder.

C++

Add the cmake plugin: asdf plugin add cmake https://github.com/asdf-community/asdf-cmake.git.

Run asdf install cmake in the root folder.

Dart

Add the dart plugin: asdf plugin-add dart https://github.com/patoconnor43/asdf-dart.git.

Run asdf install dart in the root folder.

Elixir

Install Erlang.

Add the elixir plugin: asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git.

Run asdf install elixir in the root folder.

Erlang

Add the erlang plugin: asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git.

Run asdf install erlang in the root folder.

Gleam

Add the erlang plugin: asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git.

Add the rebar plugin: asdf plugin-add rebar https://github.com/Stratus3D/asdf-rebar.git.

Add the Gleam plugin: asdf plugin-add gleam https://github.com/asdf-community/asdf-gleam.git.

Run asdf install erlang && asdf install rebar && asdf install gleam in the root folder.

Haskell

Add the Haskell plugin: asdf plugin-add haskell https://github.com/vic/asdf-haskell.git.

Run asdf install haskell in the root folder.

For linting, you'll also need hlint: stack install hlint. Don't forget to reshim: asdf reshim haskell.

jq

Add the jq plugin: asdf plugin-add jq https://github.com/lsanwick/asdf-jq.git.

For testing, the track uses bats. Add the bats plugin: asdf plugin-add bats https://github.com/timgluz/asdf-bats.git.

Run asdf install jq && asdf install bats in the root folder.

Lua

Add the lua plugin, install lua, and install busted for testing and luacheck for linting, using luarocks.

asdf plugin-add lua https://github.com/Stratus3D/asdf-lua.git
asdf install lua
luarocks install busted && luarocks install luacheck
asdf reshim lua

NodeJS (for Javascript)

Add the nodejs plugin: asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git.

Run asdf install nodejs in the root folder.

Python

Add the Pthon plugin: asdf plugin add pthon https://github.com/asdf-community/asdf-python.

Run asdf install python in the root folder.

Install pytest and pylint: pip install pylint pytest

Ruby

Add the ruby plugin: asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git.

Run asdf install ruby in the root folder. You also need the minitest gem: gem install minitest.

Rust

Add the rust plugin: asdf plugin-add rust https://github.com/asdf-community/asdf-rust.git.

Run asdf install rust in the root folder.

NodeJS (for WASM)

Add the nodejs plugin: asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git.

Run asdf install nodejs in the root folder.

Zig

Add the zig plugin: asdf plugin-add zig https://github.com/asdf-community/asdf-zig.git.

Run asdf install zig in the root folder.