Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Latest commit

 

History

History
44 lines (28 loc) · 1.49 KB

CONTRIBUTING.md

File metadata and controls

44 lines (28 loc) · 1.49 KB

Jitsu SDK Contributors handbook

Prerequisites and Build Stack

Please make sure you have the following installed before starting:

  • pnpm (>3)
  • node (>14)

Internally, Jitsu SDK uses:

Commands

Develop and build

  • pnpm install - to install all dependencies
  • pnpm clean - to clean all artifacts
  • pnpm factory-reset - to do a "factory reset": remove all installed dependencies, etc
  • pnpm build - build all packages
  • pnpm test - test all packages
  • pnpm format:check - check code style (with prettier)
  • pnpm format - fix code style (with prettier)

Release

Obtain an automation npm token. Use jitsuhq account, not an individual one.

  • NPN_TOKEN=XXX pnpm release --stable X.Y.Z --publish - to make a stable release
  • NPN_TOKEN=XXX pnpm release:canary --publish - to make a canary release. The version will be X.Y.Z.alpha.N. See the current value for X.Y.Z in package.json

Run without --publish to dry run.

Integrations

  • Husky runs pnpm pre-commit before each commit. Currently pre-commit only checks code format with prettier. Run it separately to with pnpm format:check
  • Dagger runs pnpm ci. This command:
    • Runs build and test
    • Publishes canary version to npm