- Clone this repo
- Install dependencies
yarn install
- Build all packages except main package (
@base/app)
yarn build:packages
- Run brunch watch
yarn start
- Everytime there is a change in
@base/uipackage, it needs to be rebuilt and brunch must be restarted to get updated package. This because:- Brunch doesn't understand module naming in each package (i.e
@components). Even though a module resolver can be added, we have to maintain on both ends. - If
@base/uipackage being built by brunch, the output will be joined inapp.js. It results in@base/apppackage unable to import it from package.json, contrary with workspace idea. Unless we can tell brunch to to compile all files from@base/uiand output the result to/package/ui/libwhile at the same time compiling@base/appand output to/dist.
- Brunch doesn't understand module naming in each package (i.e
- Each package has their own build tools so that it can be built by running
yarn buildon its own. This makes each package being modular and testable.