My personal solutions to code challenges on exercism.org.
Install and configure the Exercism CLI.
In the ./elixir
folder, download a challenge, for instance:
$ cd elixir
$ exercism download --exercise=hello-world --track=elixir
In the root folder of a challenge, run the tests to drive the development:
$ cd hello-world
$ mix test
Submit the working solution to Exercism:
$ exercism submit
In the ./typescript
folder, download a challenge, for instance:
$ cd typescript
$ exercism download --exercise=hello-world --track=typescript
In the root folder of a challenge, install the dependencies:
$ cd hello-world
$ yarn install
# Install @babel/core if there is a warning
$ yarn add --dev @babel/core
# Install with npm to solve @types/jest errors
$ npm install
# Make sure yarn enables node-modules linker
$ yarn install
Then run the tests to drive the development:
$ yarn test
Submit the working solution to Exercism:
$ exercism submit
Note: if running/testing an existing challenge on a fresh copy of this repository, you will need to
overwrite it first using the --force
flag in the corresponding exercism download
command.