0.0.2 • Published 3 years ago

webapp-react-content-template-builder v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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 and dependencies keys. They are being installed in the root node_modules and you can still run standalone commands within each package from its scripts.

Scripts

The project root's package.json contains the scripts needed to perform common application actions.

ScriptDescription
yarn run startRuns the packages in a dev mode
yarn run buildBuilds all packages