0.0.2 • Published 3 years ago
webapp-react-content-template-builder v0.0.2
webapp-react-content-template-builder
Usage
- Install lerna first:
yarn global add lerna
- Run
yarn bootstrap
to install all dependencies and setup monorepo symlinks using lerna. - Run
yarn start
to start development server with all packages included, by default you'll run@flybits/webapp-content-template-builder-test-app
. - Run
yarn test
to test all packages simultaneously.
Tooling
Monorepo is done using npm and lerna.
- Packages are automatically linked together, meaning you can do cross-package work within the repo with hot module reloading and without any building.
- Commonly used dependencies are hoisted from root, and only appear in the root
package.json
. - All shared dependencies appear only as
peerDependecies
in each package. - Running
yarn build
makes production-ready builds of all packages. - Running
yarn test
runs tests for all packages at once. - Each package has its own
scripts
anddependencies
keys. They are being installed in the rootnode_modules
and you can still run standalone commands within each package from itsscripts
.
Scripts
The project root's package.json
contains the scripts needed to perform common
application actions.
Script | Description |
---|---|
yarn run start | Runs the packages in a dev mode |
yarn run build | Builds all packages |