Cueframe monorepo (uses Lerna).
Assumes lates Node LTS (10.x Dubnium)
Globally install the lerna package:
npm i -g lerna
Install dependencies, linking any cross-dependencies:
lerna bootstrap
Lerna allows us to build / serve all packages at once
Build all packages:
lerna run build
Start all prod servers in parallel, streaming output of children processes (assumes build step has completed):
lerna run start --parallel
The web application will be running on http://localhost:9000/
The build
step can be skipped, because the dev server will compile the application in-memory when starting
Start all dev servers in parallel, streaming output of children processes:
lerna run dev --parallel
Your default browser will automatically open the web application at http://localhost:3000/
Run all test suites across all packages:
lerna run test
Lerna is very powerful and has a number of features for maintaining version changes, publishing packages, running scripts across all packages, etc.
Adding a dependency:
lerna add [pkg] [matcher]
// lerna add some-package packages/cueframe-web
// lerna add some-package packages/cueframe-*
See the lerna command docs for more info on the available commands and what they do.