Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #165 from FormidableLabs/lank-workflow
Browse files Browse the repository at this point in the history
lank workflow
  • Loading branch information
boygirl authored Jan 16, 2018
2 parents 45acc72 + 6074e8e commit 2b0114f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,33 @@ $ open http://localhost:3000
# Run tests
$ npm test
```
### Multi-repo development

Victory uses [`lank`](https://github.com/FormidableLabs/lank) for multi-repo development. Use a lank workflow to test changes in victory dependencies. Here's an example of setting up lank to test changes in `victory-core` from `victory-pie`

**First, make sure that all of your Victory repos are _siblings_ in the same directory**

```sh
# Install lank globally
$ npm install -g lank
```
Victory repos are already configured with appropriate `.lankrc` and lank scripts. To test changes in `victory-core` from `victory-pie`:

```sh
# Run all commands from the root of `victory-pie`
$ cd victory-pie

# Run `lank link` to remove `victory-core` from node_modules
$ lank link

# Watch for changes to lanked repos. Leave this process running in its own terminal window
$ npm run lank-watch

# Run a dev server with your lanked repos. In a new terminal window...
$ npm run lank-run
```

Refresh your browser to pick up changes.

For more on the development environment, see [DEVELOPMENT](https://github.com/FormidableLabs/builder-victory-component-dev/blob/master/DEVELOPMENT.md) in the project builder archetype.

Expand Down

0 comments on commit 2b0114f

Please sign in to comment.