Development
Clone or fork the repository.
git clone git@github.com:milesstoetzner/stoetzms-work.gitMake sure that your IDE is using Prettier and ESLint and their corresponding configurations.
Code
We use the Node.js version in .nvmrc, currently the LTS Node.js 24.
nvm useFor installing dependencies ...
yarnFor running the current code ...
yarn workFor linting ...
yarn lint:checkFor fixing lint errors ...
yarn lint:fixFor checking types ...
yarn types:checkFor running the tests ...
yarn testThe tests in tests/cli run the actual CLI as a separate process, each in its own temporary directory. For running only them, optionally against the built bundle instead of the sources ...
yarn test:cli
STOETZMS_WORK_CLI=dist/stoetzms-work.js yarn test:cliFor checking the code style ...
yarn style:checkFor fixing code style errors ...
yarn style:fixDistribution
For transpiling the project ...
yarn dist:buildFor bundling the transpiled code as binaries ...
yarn dist:packageFor compressing the binaries ...
yarn dist:compressLicenses
For checking the licenses of dependencies ...
yarn license:checkFor generating a report containing the licenses of dependencies ...
yarn license:generateDocumentation
We use Vitepress for our documentation. For locally starting the documentation ...
yarn docs:devFor building the documentation ...
yarn docs:buildFor previewing the build documentation ...
yarn docs:preview