Thank you for expressing interest in contributing to The Odin Project (TOP) JavaScript exercises! Before continuing through this guide, be sure you've read our general contributing guide, as it contains information that is important for all of our repos.
This contributing guide assumes you have followed the instructions in our general contributing guide to fork and clone our JavaScript exercises repo.
- Node v18.0.0 or higher
- npm v8.5.5 or higher
Important
Please do not open a pull request with a new exercise unless you have opened an issue in this repo with your proposal and it has been approved by a maintainer.
If a maintainer has approved a new exercise to be added, the new exercise(s) must follow the same format as existing exercises.
To generate a new exercise template, do the following:
- Be sure to run
npm install
at the root of thejavascript-exercises
directory to install the necessary dependencies. - Run the command
npm run generate
. - When prompted, enter the name of the new exercise in "camelCase" syntax. This will create a new directory with the necessary files included.
- Update the
README.md
and.spec.js
file, as well as the files inside thesolution
directory of the new exercise. - Open a pull request with the new exercise.