This is my take on the Gilded Rose kata in TypeScript.
You'll need a recent version of Node.js installed.
Clone this repo and cd into it
git clone https://github.com/NicoToff/gilded-rose.git
cd gilded-rose
Install dependencies
npm install
To compile and run the app
npm run start:prod
Or with number of days as args:
npm run start:prod
Output folder
The compiled JS files will be in the dist
folder.
All tests are written with Jest. To run then, simply run:
npm run test
Feel free to edit the files in this repository. When developping, use this script to run the app instead of start:prod
:
npm run dev
Browse the code, and check out the README about the AbstractItem
class in src/utils/classes/items/.
Also feel free to get in touch with me if you have any questions or suggestions!