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.
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
.
The following scripts are available for use:
-
create_lerna
: creates a new package underpackages
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 thedist
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 packagesbuild
: 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 thenode_modules
directories for all packages and the root package -
docker
: starts thebackend_dev
service using Docker Compose and builds the Docker image
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/*
.