Skip to content

Bayes, reworked for production, all together as one monorepo

Notifications You must be signed in to change notification settings

bayestechnologies/bayes

Repository files navigation

Bayes Monorepo

Runbook:

  1. yarn bootstrap cleans up old build artifacts, installs all dependencies, then builds all non-private packages
  2. yarn watch builds and watches all non-private packages

Dependencies

Add a workspace dependency: yarn workspace @bayes/[workspace-name] add [dependency] (plus optional --D or --P flag to add as a dev or peer dep.)

Remove a workspace dependency: yarn workspace @bayes/[workspace-name] remove [dependency]

Add a (dev) dependency to the root: yarn add [dependency] --W

Remove a (dev) dependency from the root: yarn remove [dependency] --W

Update all root dependencies: yarn upgrade --latest

Update workspace dependencies (interactively): yarn upgrade-interactive --latest

Notes:

  • The only dependencies that should be in the root are dev dependencies like Typescript, Rollup, ESLint, etc., which are required by the whole monorepo. Everything else should be a dependency in the appropriate workspace.
  • Any dependencies of packages in lib/ui/brand etc., which are also dependencies of the apps/servers/tools that import those libraries should be peer dependencies (e.g. React, RxJS, Lodash, etc.).

About

Bayes, reworked for production, all together as one monorepo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •