Skip to content

Latest commit

 

History

History
104 lines (104 loc) · 3.43 KB

lerna-README.md

File metadata and controls

104 lines (104 loc) · 3.43 KB

Lerna Monorepo

This is a Lerna project with a root package and multiple packages under the packages directory. The project is configured to use Yarn Workspaces and Lerna to manage dependencies and scripts across the packages.

Installation and Setup

To get started with the project, clone the repository and run:

yarn bootstrap

This will install all the dependencies for the root package as well as all the packages under packages.

Scripts

The following scripts are available for use:

  • create_lerna: creates a new package under packages using Lerna
  • bootstrap: installs all the dependencies for the packages and links any cross-dependencies
  • preclean: runs a prebuild script for all packages and removes the dist directory
  • prebuild: runs a prebuild script for all packages
  • export: runs an export script for the @wallet/frontend package in parallel
  • start: starts the application for all packages
  • build: builds all packages
  • start:dev: starts the application in development mode for all packages
  • start:debug: starts the application in debug mode for all packages
  • start:prod: starts the application in production mode for all packages
  • build:backend: builds the @wallet/backend package in parallel
  • build:frontend: builds the @wallet/frontend package in parallel
  • start:frontend: starts the @wallet/frontend package
  • start:dev:frontend: starts the @wallet/frontend package in development mode
  • start:debug:frontend: starts the @wallet/frontend package in debug mode
  • start:backend: starts the @wallet/backend package
  • start:dev:backend: starts the @wallet/backend package in development mode
  • start:debug:backend: starts the @wallet/backend package in debug mode
  • start:prod:backend: starts the @wallet/backend package in production mode
  • release:patch: bumps the patch version number for all packages and creates a git commit and tag
  • clean: removes the node_modules directories for all packages and the root package
  • docker: starts the backend_dev service using Docker Compose and builds the Docker image

Workspaces

The workspaces field in the package.json file lists all the packages that are part of the project. Currently, there is only one directory listed: packages/*.