# Installs all dependencies
yarn install
# Starts the first exercise
yarn exercise 01
# Runs linting and tests on the solution
yarn solution 01
You'll notice that the tutorial is split into exercises. Each exercise is split into a *.problem.ts
and a *.solution.ts
.
To take an exercise:
- Go into
*.problem.ts
- Run
yarn exercise 01
, where01
is the number of the exercise you're on.
The exercise
script will run TypeScript typechecks and a test suite on the exercise.!
You can run yarn solution 01
to run the tests and typechecking on the solution.
Alias: yarn e 01
Run the corresponding *.problem.ts
file.
Alias: yarn s 01
Run the corresponding *.solution.ts
file. If there are multiple, it runs only the first one.