-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
295 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Developer notes | ||
|
||
## Testing in a local app | ||
|
||
Using [`yalc`](https://github.com/wclr/yalc) is the best way to test this library in another local package. | ||
|
||
First, compile and build this package: | ||
|
||
```zsh | ||
% yarn dbuild | ||
``` | ||
|
||
And publish to `yalc`: | ||
|
||
```zsh | ||
% yalc publish | ||
``` | ||
|
||
The `yalc:publish` script will also achieve the above. | ||
|
||
Then in your app, link to this package: | ||
|
||
```zsh | ||
other-app % yalc link @dolthub/react-hooks | ||
``` | ||
|
||
And you will see and up-to-date version of this package. When you make a change to this package, you can push the change by running `yarn yalc:push`. | ||
|
||
To remove the yalc package in your app, run `yalc remove --all`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.