Skip to content

Commit de207f0

Browse files
committed
chore: add revolt.js as a submodule
1 parent 02eb7d8 commit de207f0

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "external/components"]
55
path = external/components
66
url = https://github.com/revoltchat/components
7+
[submodule "external/revolt.js"]
8+
path = external/revolt.js
9+
url = https://github.com/revoltchat/revolt.js

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Get revite up and running locally.
4343
git clone --recursive https://github.com/revoltchat/revite
4444
cd revite
4545
yarn
46-
yarn build:components
46+
yarn build:deps
4747
yarn dev
4848
```
4949

@@ -56,7 +56,7 @@ You can now access the client at http://local.revolt.chat:3000.
5656
| `yarn pull` | Setup assets required for Revite. |
5757
| `yarn dev` | Start the Revolt client in development mode. |
5858
| `yarn build` | Build the Revolt client. |
59-
| `yarn build:components` | Build the Revolt components library. |
59+
| `yarn build:deps` | Build external dependencies. |
6060
| `yarn preview` | Start a local server with the built client. |
6161
| `yarn lint` | Run ESLint on the client. |
6262
| `yarn fmt` | Run Prettier on the client. |

external/revolt.js

Submodule revolt.js added at 044b1b9

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"scripts": {
44
"dev": "node scripts/setup_assets.js --check && vite",
55
"pull": "node scripts/setup_assets.js",
6-
"build:components": "cd external && cd components && yarn && yarn build:esm",
7-
"build": "yarn && rimraf build && node scripts/setup_assets.js --check && yarn build:components && vite build",
6+
"build:deps": "cd external && cd components && yarn && yarn build:esm && cd .. && cd revolt.js && yarn && yarn build",
7+
"build": "yarn && rimraf build && node scripts/setup_assets.js --check && yarn build:deps && vite build",
88
"build:highmem": "NODE_OPTIONS='--max-old-space-size=4096' yarn build",
99
"preview": "vite preview",
1010
"lint": "eslint src/**/*.{js,jsx,ts,tsx}",
@@ -44,7 +44,6 @@
4444
}
4545
},
4646
"dependencies": {
47-
"@revoltchat/ui": "^1.0.77",
4847
"fs-extra": "^10.0.0",
4948
"klaw": "^3.0.0",
5049
"sirv-cli": "^1.0.14",
@@ -77,6 +76,7 @@
7776
"@hcaptcha/react-hcaptcha": "^0.3.6",
7877
"@insertish/vite-plugin-babel-macros": "^1.0.5",
7978
"@preact/preset-vite": "^2.0.0",
79+
"@revoltchat/ui": "^1.0.77",
8080
"@rollup/plugin-replace": "^2.4.2",
8181
"@styled-icons/boxicons-logos": "^10.38.0",
8282
"@styled-icons/boxicons-regular": "^10.38.0",
@@ -169,6 +169,7 @@
169169
"license": "MIT",
170170
"packageManager": "[email protected]",
171171
"resolutions": {
172-
"@revoltchat/ui": "portal:external/components"
172+
"@revoltchat/ui": "portal:external/components",
173+
"revolt.js": "portal:external/revolt.js"
173174
}
174175
}

yarn.lock

+4-5
Original file line numberDiff line numberDiff line change
@@ -8023,9 +8023,9 @@ __metadata:
80238023
languageName: node
80248024
linkType: hard
80258025

8026-
"revolt.js@npm:6.0.17":
8027-
version: 6.0.17
8028-
resolution: "revolt.js@npm:6.0.17"
8026+
"revolt.js@portal:external/revolt.js::locator=client%40workspace%3A.":
8027+
version: 0.0.0-use.local
8028+
resolution: "revolt.js@portal:external/revolt.js::locator=client%40workspace%3A."
80298029
dependencies:
80308030
"@insertish/exponential-backoff": 3.1.0-patch.2
80318031
"@insertish/isomorphic-ws": ^4.0.1
@@ -8039,9 +8039,8 @@ __metadata:
80398039
revolt-api: 0.5.5-3
80408040
ulid: ^2.3.0
80418041
ws: ^8.2.2
8042-
checksum: 2879483d0a3035dbca67da52ff9d74e9f2cc7e7e5421f95605ae99c38f501180e74b95b3482577c0256431b11ba867687da678a6be2bbdb672c39baebe69c13a
80438042
languageName: node
8044-
linkType: hard
8043+
linkType: soft
80458044

80468045
"rimraf@npm:^3.0.2":
80478046
version: 3.0.2

0 commit comments

Comments
 (0)