Skip to content

Development ​

Clone or fork the repository.

shell
git clone git@github.com:milesstoetzner/stoetzms-work.git

Make 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.

shell
nvm use

For installing dependencies ...

shell
yarn

For running the current code ...

shell
yarn work

For linting ...

shell
yarn lint:check

For fixing lint errors ...

shell
yarn lint:fix

For checking types ...

shell
yarn types:check

For running the tests ...

shell
yarn test

The 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 ...

shell
yarn test:cli
STOETZMS_WORK_CLI=dist/stoetzms-work.js yarn test:cli

For checking the code style ...

shell
yarn style:check

For fixing code style errors ...

shell
yarn style:fix

Distribution ​

For transpiling the project ...

shell
yarn dist:build

For bundling the transpiled code as binaries ...

shell
yarn dist:package

For compressing the binaries ...

shell
yarn dist:compress

Licenses ​

For checking the licenses of dependencies ...

shell
yarn license:check

For generating a report containing the licenses of dependencies ...

shell
yarn license:generate

Documentation ​

We use Vitepress for our documentation. For locally starting the documentation ...

shell
yarn docs:dev

For building the documentation ...

shell
yarn docs:build

For previewing the build documentation ...

shell
yarn docs:preview