mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-29 02:10:59 -05:00
chore: add @revoltchat/ui as a submodule
This commit is contained in:
parent
7cf7402cea
commit
3ca2b12dfc
7 changed files with 21 additions and 24 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +1,6 @@
|
||||||
[submodule "external/lang"]
|
[submodule "external/lang"]
|
||||||
path = external/lang
|
path = external/lang
|
||||||
url = https://github.com/revoltchat/translations
|
url = https://github.com/revoltchat/translations
|
||||||
|
[submodule "external/components"]
|
||||||
|
path = external/components
|
||||||
|
url = https://github.com/revoltchat/components
|
||||||
|
|
|
@ -43,6 +43,7 @@ Get revite up and running locally.
|
||||||
git clone --recursive https://github.com/revoltchat/revite
|
git clone --recursive https://github.com/revoltchat/revite
|
||||||
cd revite
|
cd revite
|
||||||
yarn
|
yarn
|
||||||
|
yarn build:components
|
||||||
yarn dev
|
yarn dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -55,6 +56,7 @@ You can now access the client at http://local.revolt.chat:3000.
|
||||||
| `yarn pull` | Setup assets required for Revite. |
|
| `yarn pull` | Setup assets required for Revite. |
|
||||||
| `yarn dev` | Start the Revolt client in development mode. |
|
| `yarn dev` | Start the Revolt client in development mode. |
|
||||||
| `yarn build` | Build the Revolt client. |
|
| `yarn build` | Build the Revolt client. |
|
||||||
|
| `yarn build:components` | Build the Revolt components library. |
|
||||||
| `yarn preview` | Start a local server with the built client. |
|
| `yarn preview` | Start a local server with the built client. |
|
||||||
| `yarn lint` | Run ESLint on the client. |
|
| `yarn lint` | Run ESLint on the client. |
|
||||||
| `yarn fmt` | Run Prettier on the client. |
|
| `yarn fmt` | Run Prettier on the client. |
|
||||||
|
|
1
external/components
vendored
Submodule
1
external/components
vendored
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 8cdba8ded56d3c1a84d50330b58d71f74ea698bf
|
2
external/lang
vendored
2
external/lang
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 81526bc70e39a90d6e64a60c34d7d4478b95b05a
|
Subproject commit bec6b0be505fdf89f15d0174391914cd73e14dc1
|
|
@ -3,6 +3,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node scripts/setup_assets.js --check && vite",
|
"dev": "node scripts/setup_assets.js --check && vite",
|
||||||
"pull": "node scripts/setup_assets.js",
|
"pull": "node scripts/setup_assets.js",
|
||||||
|
"build:components": "cd external && cd components && yarn && yarn build",
|
||||||
"build": "rimraf build && node scripts/setup_assets.js --check && vite build",
|
"build": "rimraf build && node scripts/setup_assets.js --check && vite build",
|
||||||
"build:highmem": "NODE_OPTIONS='--max-old-space-size=4096' yarn build",
|
"build:highmem": "NODE_OPTIONS='--max-old-space-size=4096' yarn build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
|
@ -75,7 +76,7 @@
|
||||||
"@hcaptcha/react-hcaptcha": "^0.3.6",
|
"@hcaptcha/react-hcaptcha": "^0.3.6",
|
||||||
"@insertish/vite-plugin-babel-macros": "^1.0.5",
|
"@insertish/vite-plugin-babel-macros": "^1.0.5",
|
||||||
"@preact/preset-vite": "^2.0.0",
|
"@preact/preset-vite": "^2.0.0",
|
||||||
"@revoltchat/ui": "1.0.77",
|
"@revoltchat/ui": "link:./external/components",
|
||||||
"@rollup/plugin-replace": "^2.4.2",
|
"@rollup/plugin-replace": "^2.4.2",
|
||||||
"@styled-icons/boxicons-logos": "^10.38.0",
|
"@styled-icons/boxicons-logos": "^10.38.0",
|
||||||
"@styled-icons/boxicons-regular": "^10.38.0",
|
"@styled-icons/boxicons-regular": "^10.38.0",
|
||||||
|
|
|
@ -14,8 +14,12 @@ POST_INSTALL="pm2 restart revite"
|
||||||
export REVOLT_SAAS=https://github.com/revoltchat/assets
|
export REVOLT_SAAS=https://github.com/revoltchat/assets
|
||||||
|
|
||||||
|
|
||||||
|
# Exit when any command fails
|
||||||
|
set -e
|
||||||
|
|
||||||
# 1. Build Revite
|
# 1. Build Revite
|
||||||
yarn
|
yarn
|
||||||
|
yarn build:components
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
# 2. Archive built files
|
# 2. Archive built files
|
||||||
|
|
30
yarn.lock
30
yarn.lock
|
@ -2281,25 +2281,11 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@revoltchat/ui@npm:1.0.77":
|
"@revoltchat/ui@link:./external/components::locator=client%40workspace%3A.":
|
||||||
version: 1.0.77
|
version: 0.0.0-use.local
|
||||||
resolution: "@revoltchat/ui@npm:1.0.77"
|
resolution: "@revoltchat/ui@link:./external/components::locator=client%40workspace%3A."
|
||||||
dependencies:
|
|
||||||
"@styled-icons/boxicons-logos": ^10.38.0
|
|
||||||
"@styled-icons/boxicons-regular": ^10.38.0
|
|
||||||
"@styled-icons/boxicons-solid": ^10.38.0
|
|
||||||
"@tippyjs/react": ^4.2.6
|
|
||||||
mobx: ^6.6.0
|
|
||||||
mobx-react-lite: ^3.4.0
|
|
||||||
prismjs: ^1.28.0
|
|
||||||
react-beautiful-dnd: ^13.1.0
|
|
||||||
react-device-detect: ^2.2.2
|
|
||||||
react-virtuoso: ^2.12.0
|
|
||||||
peerDependencies:
|
|
||||||
revolt.js: "*"
|
|
||||||
checksum: ac3cf9787ff11df2156db0e871e48072013d0827b14b5dbcb54e9fe7f8f97daa19325d0fda93ded7487c642df57d6aee998bbe0ccf20bb095b1027f247e47e64
|
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: soft
|
||||||
|
|
||||||
"@rollup/plugin-babel@npm:^5.2.0":
|
"@rollup/plugin-babel@npm:^5.2.0":
|
||||||
version: 5.3.0
|
version: 5.3.0
|
||||||
|
@ -2446,7 +2432,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@tippyjs/react@npm:4.2.6, @tippyjs/react@npm:^4.2.6":
|
"@tippyjs/react@npm:4.2.6":
|
||||||
version: 4.2.6
|
version: 4.2.6
|
||||||
resolution: "@tippyjs/react@npm:4.2.6"
|
resolution: "@tippyjs/react@npm:4.2.6"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -3678,7 +3664,7 @@ __metadata:
|
||||||
"@hcaptcha/react-hcaptcha": ^0.3.6
|
"@hcaptcha/react-hcaptcha": ^0.3.6
|
||||||
"@insertish/vite-plugin-babel-macros": ^1.0.5
|
"@insertish/vite-plugin-babel-macros": ^1.0.5
|
||||||
"@preact/preset-vite": ^2.0.0
|
"@preact/preset-vite": ^2.0.0
|
||||||
"@revoltchat/ui": 1.0.77
|
"@revoltchat/ui": "link:./external/components"
|
||||||
"@rollup/plugin-replace": ^2.4.2
|
"@rollup/plugin-replace": ^2.4.2
|
||||||
"@styled-icons/boxicons-logos": ^10.38.0
|
"@styled-icons/boxicons-logos": ^10.38.0
|
||||||
"@styled-icons/boxicons-regular": ^10.38.0
|
"@styled-icons/boxicons-regular": ^10.38.0
|
||||||
|
@ -6909,7 +6895,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"mobx-react-lite@npm:3.4.0, mobx-react-lite@npm:^3.4.0":
|
"mobx-react-lite@npm:3.4.0":
|
||||||
version: 3.4.0
|
version: 3.4.0
|
||||||
resolution: "mobx-react-lite@npm:3.4.0"
|
resolution: "mobx-react-lite@npm:3.4.0"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -7467,7 +7453,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"react-device-detect@npm:2.2.2, react-device-detect@npm:^2.2.2":
|
"react-device-detect@npm:2.2.2":
|
||||||
version: 2.2.2
|
version: 2.2.2
|
||||||
resolution: "react-device-detect@npm:2.2.2"
|
resolution: "react-device-detect@npm:2.2.2"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in a new issue