Skip to content

Commit

Permalink
rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Sep 1, 2023
1 parent 74fb340 commit 65122d0
Show file tree
Hide file tree
Showing 16 changed files with 3,287 additions and 2,934 deletions.
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dist/*.js
dist/*.map
dist/
build/
2 changes: 1 addition & 1 deletion make-proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
wget https://raw.githubusercontent.com/centrifugal/protocol/master/definitions/client.proto -O /tmp/client.proto
./node_modules/.bin/pbjs -t json --keep-case /tmp/client.proto > ./src/protobuf/client.proto.json
./node_modules/.bin/pbjs -t json --keep-case /tmp/client.proto > ./src/client.proto.json
215 changes: 215 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"version": "4.1.0",
"description": "JavaScript client SDK for bidirectional communication with Centrifugo and Centrifuge-based server from browser, NodeJS and React Native",
"main": "build/index.js",
"type": "module",
"types": "intermediate/index.d.ts",
"types": "build/index.d.ts",
"module": "build/index.mjs",
"files": [
"dist/**",
Expand All @@ -24,8 +23,8 @@
"build-all": "yarn clean && yarn build && yarn build-browser && yarn build-browser-protobuf",
"build-browser": "esbuild src/browser.ts --bundle --minify --sourcemap --outfile=dist/centrifuge.js",
"dev": "esbuild src/browser.ts --bundle --outfile=dist/centrifuge.js --servedir=dist/ --serve=2000",
"build-browser-protobuf": "esbuild src/centrifuge-protobuf/browser.ts --bundle --minify --sourcemap --outfile=dist/centrifuge.protobuf.js",
"dev-protobuf": "esbuild src/centrifuge-protobuf/browser.ts --bundle --outfile=dist/centrifuge.protobuf.js --servedir=dist/ --serve=2000",
"build-browser-protobuf": "esbuild src/browser.protobuf.ts --bundle --minify --sourcemap --outfile=dist/centrifuge.protobuf.js",
"dev-protobuf": "esbuild src/browser.protobuf.ts --bundle --outfile=dist/centrifuge.protobuf.js --servedir=dist/ --serve=2000",
"proto": "./make-proto"
},
"devDependencies": {
Expand All @@ -42,6 +41,7 @@
"jest": "^28.1.0",
"protobufjs-cli": "^1.1.1",
"rollup": "^3.28.1",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-typescript2": "^0.35.0",
"ts-jest": "^28.0.2",
"ts-node": "^10.7.0",
Expand Down
Loading

0 comments on commit 65122d0

Please sign in to comment.