yarn bootstrap
If you need to do a clean the existing node_modules and take latest changes from the remote head
yarn clean:install
yarn lint <relative folder>
yarn format <relative folder>
yarn build
yarn watch
Note: It only run packages
and packages-modules
only in watch mode. Servers should be run seperately.
Also check out yarn watch-packages
to run watch on required packages.
For auto reloading changes into the server to be productive during development.
yarn watch-packages
If you also need to watch along with it, you can as many scopes as required like below.
yarn watch-packages -- --scope=@sample-stack/counter-module* --scope=@packageb
lerna exec --scope=<package name> yarn watch
More details on how to use lerna exec
To run any command on a package <package_name>
lerna exec --scope=<package_name> <command>
To start the frontend-server
lerna exec --scope=*frontend-server yarn watch
To just start the backend-server
lerna exec --scope=*backend-server yarn watch
yarn start
yarn start:envSSR
build the package
lerna exec --scope=*frontend-server yarn build
start the server with dev
environment file
lerna exec --scope=*frontend-server yarn start:dev
Make sure backend is also running in seperate terminal
lerna exec --scope=*backend-server yarn watch