diff --git a/Makefile b/Makefile index 1bf21e6..feb4aa8 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 7ba01ee..7c0aa70 100644 --- a/README.md +++ b/README.md @@ -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 ```