Skip to content

Commit d34b9f5

Browse files
authored
Merge pull request #95 from JJ-Cro/webpack
feat: add Webpack configuration and update README for browser usage
2 parents 48503bc + aacbdae commit d34b9f5

File tree

5 files changed

+1249
-78
lines changed

5 files changed

+1249
-78
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ dist
2525
coverage
2626
localtest.sh
2727
repomix.sh
28+
doc
2829

2930
ws-private-spot-wsapi-performance.ts
3031
ws-private-perp-futures-wsapi-readonly.ts
@@ -33,4 +34,4 @@ privatetest.ts
3334
privaterepotracker
3435
restClientRegex.ts
3536

36-
testfile.ts
37+
testfile.ts

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ Updated & performant JavaScript & Node.js SDK for the Gate.com (gate.io) REST AP
6363
- [Event Driven API](#event-driven-api)
6464
- [REST-like API](#rest-like-api)
6565
- [Customise Logging](#customise-logging)
66+
- [Browser/Frontend Usage](#browserfrontend-usage)
67+
- [Webpack](#webpack)
6668
- [LLMs & AI](#use-with-llms--ai)
6769
- [Used By](#used-by)
6870
- [Contributions & Thanks](#contributions--thanks)
@@ -433,6 +435,18 @@ DefaultLogger.silly = () => {};
433435
const ws = new WebsocketClient({ key: 'xxx', secret: 'yyy' }, DefaultLogger);
434436
```
435437

438+
## Browser/Frontend Usage
439+
440+
### Webpack
441+
442+
Build a bundle using webpack:
443+
444+
- `npm install`
445+
- `npm run build`
446+
- `npm run pack`
447+
448+
The bundle can be found in `dist/`. Altough usage should be largely consistent, smaller differences will exist. Documentation is still TODO.
449+
436450
## Use with LLMs & AI
437451

438452
This SDK includes a bundled `llms.txt` file in the root of the repository. If you're developing with LLMs, use the included `llms.txt` with your LLM - it will significantly improve the LLMs understanding of how to correctly use this SDK.

0 commit comments

Comments
 (0)