Add core packes to README
This commit is contained in:
parent
5bd8e172c9
commit
87f8e93e12
28
README.md
28
README.md
@ -17,25 +17,11 @@ This repository contains all the 0x developer tools written in TypeScript. Our h
|
|||||||
[](https://opensource.org/licenses/Apache-2.0)
|
[](https://opensource.org/licenses/Apache-2.0)
|
||||||
[](https://greenkeeper.io/)
|
[](https://greenkeeper.io/)
|
||||||
|
|
||||||
Instructions
|
### Core Packages
|
||||||
------------
|
|
||||||
|
|
||||||
Make sure you have `yarn@1.x` installed locally.
|
| Package | Version | Description |
|
||||||
|
|--------|-------|------------|
|
||||||
### Creating a new sub-package
|
| [`0x.js`](/packages/0x.js) | [](https://www.npmjs.com/package/0x.js) | A Javascript library for interacting with the 0x protocol |
|
||||||
|
| [`@0xproject/assert`](/packages/assert) | [](https://www.npmjs.com/package/@0xproject/assert) | Standard type and schema assertions |
|
||||||
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`).
|
| [`@0xproject/json-schemas`](/packages/json-schemas) | [](https://www.npmjs.com/package/@0xproject/json-schemas) | 0x-related json schemas |
|
||||||
|
| [`@0xproject/tslint-config`](/packages/tslint-config) | [](https://www.npmjs.com/package/@0xproject/tslint-config) | Custom 0x project TSLint rules |
|
||||||
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