Thanks to visit codestin.com
Credit goes to github.com

Skip to content

evenstephenr/hydra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hydra

A lerna sandbox, inspired by this essay on a majestic monolith

Initial setup

  1. Clone this repository
$ git clone [email protected]:evenstephenr/hydra.git
  1. Run the bootstrap scripts
$ npm run bootstrap

Useful scripts (windows)

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} core

Push commits to a package

$ git subtree push --prefix=packages/{PACKAGE_NAME} {PACKAGE_NAME} {BRANCH}

/packages/components

Push new commits

$ git subtree push --prefix=packages/components components core

Build components in ~/src to ~/dist

$ lerna exec --scope components -- npm run build

Installs 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"

About

A lerna sandbox / majestic monolith

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published