Skip to content

Commit

Permalink
docs: explain how to use monorepo for your own apps
Browse files Browse the repository at this point in the history
  • Loading branch information
henri-hulski committed Nov 8, 2016
1 parent 361c51c commit a5bcf77
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,21 @@ A state controller with its own debugger
## Contribute
The entire Cerebral codebase has been rewritten to encourage contributions. The code is cleaned up, commented and all code is in a "monorepo". That means you can run tests across projects and general management of the code is simplified a lot.

1. Clone the monorepo
1. Clone the monorepo: `git clone https://github.com/cerebral/cerebral.git`
2. In root: `npm install`
3. Run `npm run setup` which will build code and bootstrap it together

The packages are located under `packages` folder and there is **no need** to run `npm install` for each package.

### Using monorepo for your own apps
If you want to use Cerebral 2 directly from your cloned repo, you can create a symlink
to the `packages/cerebral` directory into the `node_modules` directory of your app.

Similar you can link other packages from the `packages` directory into your app's
`node_modules` folder.

Just remember to unlink it before installing the package from npm.

### Running demos
Go to the respective `packages/some-demo-folder` and run `npm start`

Expand Down

0 comments on commit a5bcf77

Please sign in to comment.