Add preliminary instructions to top-level README
This commit is contained in:
parent
5b70383ce6
commit
ee1a44ebeb
23
README.md
23
README.md
@ -13,3 +13,26 @@ This repository contains all the 0x developer tools written in TypeScript. Our h
|
||||
[](https://gitter.im/0xProject/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
[](https://opensource.org/licenses/Apache-2.0)
|
||||
[](https://greenkeeper.io/)
|
||||
|
||||
Instructions
|
||||
------------
|
||||
|
||||
Make sure you have `yarn@1.x` installed locally.
|
||||
|
||||
### Creating a new sub-package
|
||||
|
||||
1. Make sure the `name` field in the sub-package's `package.json` starts with `@0xproject/` and has a unique name (e.g `0xproject/assert`).
|
||||
|
||||
2. Run `yarn install` to install all it's dependencies.
|
||||
|
||||
### How to add a sub-package as a dependency to another sub-package:
|
||||
|
||||
1. Add the sub-packages name (declared in it's `package.json`) to your sub-packages `package.json` under `dependencies` or `devDependencies`.
|
||||
|
||||
2. Run `yarn install` from anywhere in the mono repo.
|
||||
|
||||
3. Import the sub-package as:
|
||||
|
||||
```
|
||||
import {myPkg} from '0xproject/myPkg';
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user