This is used in the SugarCoat pipeline to generate privacy-preserving versions of tracking scripts.
pnpm is recommended for managing a JavaScript development environment for SugarCoat.
To initialize an isolated JavaScript development environment:
pnpm install
Code formatting for JavaScript is handled by prettierx, with a few options tweaked.
To check that the code is correctly formatted:
pnpm run check
To auto-format the code:
pnpm run fmt