A lerna sandbox, inspired by this essay on a majestic monolith
- Clone this repository
$ git clone [email protected]:evenstephenr/hydra.git
- Run the bootstrap scripts
$ npm run bootstrap
The scripts here should be broken down by package, and for now are all written for developing on the Windows platform
Add a remote to a new package
$ git remote add {PACKAGE_NAME} [email protected]:{GIT_USERNAME}/{REPOSITORY_NAME}.git
$ git subtree add —-prefix={PACKAGE_DIR} {PACKAGE_NAME} corePush commits to a package
$ git subtree push --prefix=packages/{PACKAGE_NAME} {PACKAGE_NAME} {BRANCH}Push new commits
$ git subtree push --prefix=packages/components components coreBuild components in ~/src to ~/dist
$ lerna exec --scope components -- npm run buildInstalls deps from ~/dist to ~/app
$ lerna exec --scope components -- powershell.exe -Command "echo \"using ~/app\" && cd \"./app\" && echo \"installing deps ...\" && npm i"Runs sandbox app in ~/app
$ lerna exec --scope components -- powershell.exe -Command "echo \"using ~/app\" && cd \"./app\" && echo \"running sandbox ...\" && npm run start"