Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 89d58d5

Browse files
Noelbb111189
Noel
andauthored
Use Verdaccio (#370)
* chore: script for simulating a publish * docs: simulating a publish with Verdaccio * chore: add new lines Co-authored-by: Jun Hao Tan <[email protected]>
1 parent b19f163 commit 89d58d5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,12 @@ yarn build:ts -w
357357
Tests for each package reside in `packages/src/*/tests`, and are run using
358358
`jest`.
359359

360+
### Simulating a Publish with Verdaccio
361+
362+
We can easily simulate a publish using [Verdaccio](https://verdaccio.org/) which is a private npm proxy registry. For installation check [this link](https://verdaccio.org/docs/installation).
363+
364+
Once it has been installed and executed, you can run `yarn release:local` to simulate a publish.
365+
360366
### Bundling
361367

362368
#### rollup

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"clean": "lerna clean --yes && lerna run clean && rimraf includes",
2222
"test": "jest --verbose -c jest.config.js --rootDir=.",
2323
"release": "yarn bootstrap && yarn bundle && lerna publish --exact",
24+
"release:local": "yarn bootstrap && yarn bundle && lerna exec 'npm publish --registry http://localhost:4873'",
2425
"prettier": "prettier '**/*.{ts,tsx,js}' --config .prettierrc",
2526
"format": "yarn prettier -- --write",
2627
"lint": "eslint . --ext .ts -c .eslintrc.js",

0 commit comments

Comments
 (0)