- node v18.4.0
- npm v8.12.1
I bet you you can definitely find also some other working versions, but the original solution has been tested on these versions.
- Build the project by
npm i
- Run all task solutions
npm test
- Run only one specific task solution (e.g.: 04)
npm test -- --grep '04'
There is ./vscode/launch.json
file prepared for easy debuggin in VSCode editor.
Just click magic "Start Debugging" green triangle button in the section "Run and Debug".
Do not forget to place your breakpoint wisely.
Also you must launch your debuggin session from the related *.spec.js
file,
because the current shown file is pasted into the debugging command and is passed as a argument to mocha
framework.
Change 00
to your desired task number in the command below and run it.
Note: You must change it on two places.
TASK=00 docker run \
--env TASK --rm -v ${PWD}:/var/www -w /var/www \
-u $(id -u ${USER}):$(id -g ${USER}) \
-v $PWD:/repo \
hairyhenderson/gomplate:v3.11.3-alpine \
--input-dir /repo/test/template --output-dir /repo/test/00