aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-15 01:23:50 +0800
committerFabio Berger <me@fabioberger.com>2018-05-15 01:23:50 +0800
commit478f6ed011185b66ac87323c6d9ad1f598060760 (patch)
tree09c4619287e0fc874c0258f722f543b7c6ce7f5e /README.md
parentc94d1b22754c1d1bf10f0dd2b9c13eea91e17cb6 (diff)
downloaddexon-sol-tools-478f6ed011185b66ac87323c6d9ad1f598060760.tar
dexon-sol-tools-478f6ed011185b66ac87323c6d9ad1f598060760.tar.gz
dexon-sol-tools-478f6ed011185b66ac87323c6d9ad1f598060760.tar.bz2
dexon-sol-tools-478f6ed011185b66ac87323c6d9ad1f598060760.tar.lz
dexon-sol-tools-478f6ed011185b66ac87323c6d9ad1f598060760.tar.xz
dexon-sol-tools-478f6ed011185b66ac87323c6d9ad1f598060760.tar.zst
dexon-sol-tools-478f6ed011185b66ac87323c6d9ad1f598060760.zip
Move from using lerna multi-package commands to wsrun, update README's accordingly
Diffstat (limited to 'README.md')
-rw-r--r--README.md67
1 files changed, 54 insertions, 13 deletions
diff --git a/README.md b/README.md
index de77e980e..cd7fd44b1 100644
--- a/README.md
+++ b/README.md
@@ -78,45 +78,86 @@ We strongly recommend that the community help us make improvements and determine
### Install dependencies
If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:
-
```bash
yarn config set workspaces-experimental true
```
Then install dependencies
-
```bash
yarn install
```
### Build
-Build all packages. You need to do this before working on any given package. Although these packages
-as independent, when run from within the monorepo, they are internally symlinked, to make development
-easier. You can change several packages and run the changes without publishing them first to NPM. When
-running `rebuild`, Lerna will figure out the dependency order of all the packages, and build them in
-this order.
+To build all packages:
+```bash
+yarn build
+```
+
+To build a specific package:
+```bash
+PKG=@0xproject/web3-wrapper yarn build
+```
+
+### Watch
+To re-build all packages on change:
```bash
-yarn lerna:rebuild
+yarn watch
```
-Or continuously rebuild on change:
+To watch a specific package and all it's dependent packages:
+```bash
+PKG=[NPM_PACKAGE_NAME] yarn watch
+
+e.g
+PKG=@0xproject/web3-wrapper yarn watch
+```
+### Clean
+
+Clean all packages:
```bash
-yarn dev
+yarn clean
+```
+
+Clean a specific package
+```bash
+PKG=0x.js yarn clean
+```
+
+### Rebuild
+
+To re-build (clean & build) all packages:
+```bash
+yarn rebuild
+```
+
+To re-build (clean & build) a specific package & it's deps:
+```bash
+PKG=0x.js yarn rebuild
```
### Lint
-Lint all packages
+Lint all packages:
+```bash
+yarn lint
+```
+Lint a specific package:
```bash
-yarn lerna:run lint
+PKG=0x.js yarn lint
```
### Run Tests
+Run all tests:
+```bash
+yarn test
+```
+
+Run a specific package's test:
```bash
-yarn lerna:test
+PKG=@0xproject/web3-wrapper yarn test
```