Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 869 Bytes

DEVELOPMENT.md

File metadata and controls

45 lines (29 loc) · 869 Bytes

Local Development

First time setup

  1. Install the following dependencies:
brew install protobuf
brew install bazel
  1. From the project directory root:
nvm use
pnpm install
pnpm package:build
# second time to link protoscript bin commands now available after package:build in packages
pnpm install
pnpm examples:regen
pnpm build:wellknowntypes
pnpm test

The source code for the package is in src/.

There are examples that use the locally built package in examples/.

There are e2e tests in packages/e2e/.

Testing

Tests are run with jest.

From the project directory root:

pnpm test

Linting

As part of installation, husky pre-commit hooks are installed to run linters against the repo.

Publishing

There are CI and publishing GitHub workflows in ./github/workflows. These are named ci.yml and publish.yml.