make build no run tests; edit example docs

This commit is contained in:
tabcat 2022-06-24 12:36:26 -05:00
parent 82bbc8bdbb
commit 208c94989a
2 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,7 @@ test: deps
npm run test:all -- --exit
npx validate-maintainers orbit-db --match --ci
build: test
build:
mkdir -p examples/browser/lib/
npm run build
cp dist/orbitdb.min.js examples/browser/lib/orbitdb.min.js

View File

@ -160,13 +160,15 @@ to redo the local package-lock.json with working native dependencies.
### Browser example
```
make
npm install # if not yet installed
make build
npm run examples:browser # if browser isn't opening, open examples/browser/browser.html in your browser
```
Using Webpack:
```
make
npm install # if not yet installed
make build
npm run examples:browser-webpack # if browser isn't opening, open examples/browser/browser-webpack-example/index.html in your browser
```