Skip to content
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

Commit 388090d

Browse files
committed
chore(scripts): no need for specific watch script, use yarn build --watch
1 parent 788ac68 commit 388090d

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,17 @@ The template is still pretty new (March 2020) and was done to author JavaScript
7777
- https://github.com/apps/semantic-pull-requests
7878

7979
If you'd like to participate, if you have bugs or new ideas, [open an issue](https://github.com/vvo/javascript-library-template/issues/new) or a pull request.
80+
81+
## Recipes
82+
83+
### Using `yarn link`
84+
85+
To use `yarn link` efficiently, do this:
86+
87+
```bash
88+
> cd my-library
89+
> yarn link
90+
> yarn build --watch
91+
> cd ../my-other-library
92+
> yarn link my-library
93+
```

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"main": "dist/",
1919
"scripts": {
2020
"build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
21-
"build:watch": "yarn build --watch",
2221
"check-formatting": "prettier --check './**/*.?(json|js|md|css)' && eslint .",
2322
"prepublishOnly": "yarn build",
2423
"semantic-release": "semantic-release",

0 commit comments

Comments
 (0)