git clone git@github.com:TGlas/tscript.git- install nodejs and npm
- run
npm ci
- To build run
npm run build - To run the unittest
npm test - To watch for changes and compile run
npm run dev
This project uses Prettier for code formatting. Many editors have plugins for Prettier (listed under "Editor Support"), which ensure that the editor automatically applies the correct style when reformatting files. If you need to do so manually, there are two commands that can help you:
npm run test:fmtchecks that the project is properly formattednpm run prettierreformats the project
If the check-format check fails on your pull request, it's most likely enough to run npm run prettier and commit the changes.
If there's something that Prettier complains about that you absolutely need to be formatted in a specific way, you can use prettier-ignore comments to tell prettier to ignore a part of a file (see documentation).
Various resources like icons are created by code. To generate the corresponding data, which is included in the website, special scripts need to be executed.
npm run gen-iconsgenerates the icon resources, you might need to callnpm run gen-icons && npm run prettier