Skip to content

kplattret/exercism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exercism

My personal solutions to code challenges on exercism.org.

First steps

Install and configure the Exercism CLI.

Elixir

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

TypeScript

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.