Skip to content

Commit

Permalink
docs: update http client examples (#3172)
Browse files Browse the repository at this point in the history
Moves http client examples to the examples folder and adds tests to prevent regressions.
  • Loading branch information
achingbrain authored Jul 15, 2020
1 parent c4a787b commit ba3389e
Show file tree
Hide file tree
Showing 58 changed files with 3 additions and 1,115 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ const list = await bitswap.wantlist()

Same as in Node.js, you just have to [browserify](http://browserify.org) the code before serving it. See the browserify repo for how to do that.

See the example in the [examples folder](/examples/browser-browserify) to get a boilerplate.
See the example in the [examples folder](/examples/http-client-browser-browserify) to get a boilerplate.

**through webpack**

See the example in the [examples folder](examples/bundle-webpack) to get an idea on how to use `js-ipfs-http-client` with webpack.
See the example in the [examples folder](/examples/http-client-bundle-webpack) to get an idea on how to use `js-ipfs-http-client` with webpack.

**from CDN**

Expand Down
94 changes: 0 additions & 94 deletions examples/browser-pubsub/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions examples/browser-pubsub/index.html

This file was deleted.

135 changes: 0 additions & 135 deletions examples/browser-pubsub/index.js

This file was deleted.

21 changes: 0 additions & 21 deletions examples/browser-pubsub/package.json

This file was deleted.

31 changes: 0 additions & 31 deletions examples/browser-pubsub/util.js

This file was deleted.

11 changes: 0 additions & 11 deletions examples/bundle-webpack/.eslintrc

This file was deleted.

Binary file removed examples/bundle-webpack/1.png
Binary file not shown.
35 changes: 0 additions & 35 deletions examples/bundle-webpack/README.md

This file was deleted.

Loading

0 comments on commit ba3389e

Please sign in to comment.