Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 955 Bytes

DEVELOPMENT.md

File metadata and controls

30 lines (23 loc) · 955 Bytes

Development

This project uses Turborepo, for dependency-aware builds and linting. Please read up!

Setup

 git clone [email protected]:segmentio/analytics-next.git && cd analytics-next
 nvm use  # install version of node defined in .nvmrc.
 yarn && yarn build
 yarn lint && yarn test

Build a specific package and all dependencies

You have a couple options:

  1. you can cd into a single package and run yarn . build build a package and all its dependencies (most convenient!).

  2. You can use turborepo directly to build a package and all dependencies. See: Turborepo https://turbo.build/repo/docs/core-concepts/monorepos/filtering#filter-syntax.

For example:

yarn run -T turbo run build --filter=@segment/analytics-next

or

yarn run -T turbo run build --filter='./packages/node*'

^ Note, the following applies to not only build, but other tasks such as test, lint, etc.