0.0.2 • Published 4 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 bootstrapto install all dependencies and setup monorepo symlinks using lerna. - Run
yarn startto start development server with all packages included, by default you'll run@flybits/webapp-content-template-builder-test-app. - Run
yarn testto 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
peerDependeciesin each package. - Running
yarn buildmakes production-ready builds of all packages. - Running
yarn testruns tests for all packages at once. - Each package has its own
scriptsanddependencieskeys. They are being installed in the rootnode_modulesand 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 |