From 0cf38542e4d19cbd4ff28a42bf5753effeea5ef5 Mon Sep 17 00:00:00 2001 From: Dummy Tester 123 Date: Tue, 9 Feb 2021 19:55:01 -0600 Subject: [PATCH] Added start cmd --- README.md | 25 +++++-------------------- package.json | 1 + 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 11c7d17..b62c710 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,14 @@ ## Setup -This is a yarn 2 monorepository. It works off of a yarn 2 cjs dump version-controlled in the repo so that everybody -has the same version. Each folder is it's own workspace, and the workspaces can link together via package.json additions. -Each workspace can in addition be published and version controlled ultimately, so that one workspace can depend on a static -version on another instead of the current setup, which is more of a symlinking, similar to the way Lerna used to allow it. +`lerna bootstrap` -""" -yarn install -""" +Sometimes lerna doesn't install sub package node_modules, do: -## Running an app +`lerna exec node install` -""" -yarn workspace lending start -""" +Then: -In general, to run a package.json script in a project, just do """yarn workspace project script-name""" - -## Clearing the cache in yarn 2 - -DO NOT DELETE THE .YARN FOLDER. It is not like the old node_modules, which has been deprecated. Use """yarn cache clean""". - -## Adding a new package - -Note that in addition to adding a new package to the packages folder, one also needs to add a new entry to the top level tsconfig.json to let the TS transpiler know that it is fair game. +`npm run start --app=lending` ## ⚠️ Warning diff --git a/package.json b/package.json index 6324bd7..a2b4c06 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "scripts": { "build": "lerna run build", + "start": "CI=true lerna run start --scope $npm_config_app --scope common --stream --parallel", "lint": "eslint 'packages/*/{src,test}/**/*.ts' && prettier -c 'packages/*/{src,test}/**/*.ts'", "lint:fix": "eslint --fix 'packages/*/{src,test}/**/*.ts' && prettier --write 'packages/*/{src,test}/**/*.ts'", "deploy": "run-s deploy:docs build deploy:apps && gh-pages -d docs",