kimlimjustin / frontend-1

Monorepo for Revolt's frontend.

Home Page:https://revolt.chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solid App (name TBD)

This is still a work in progress, please do not create any issues and clear any PRs with me ahead of time.

See code style guidelines here!

Setup locally

# clone the repository
git clone --recursive https://github.com/revoltchat/revoltchat-solid-client-monorepo client
cd client

# update submodules if you pull new changes
# git submodule init && git submodule update

# install all packages
pnpm i

# build deps
pnpm build:deps

# or build a specific dep: (i.e. revolt.js updates)
# pnpm --filter revolt.js run build

# run dev server
pnpm dev

Finally, navigate to http://local.revolt.chat:5173.

Build client

# install packages
pnpm i

# build everything
pnpm build:all

Pulling in Revolt's assets

If you want to pull in Revolt brand assets after pulling, run the following:

# update the assets
git -c submodule."packages/client/assets".update=checkout submodule update --init packages/client/assets

You can switch back to fallback assets by running deinit and continuing as normal:

# deinit submodule which clears directory
git submodule deinit packages/client/assets

Faster iteration with Revolt.js

To make it easier to work with revolt.js, you may want to temporarily make this change:

# packages/revolt.js/package.json
-  "module": "lib/esm/index.js",
+  "module": "src/index.ts",

Any edits to the revolt.js codebase will immediately reflect while developing.

Using pnpm

Add a new package to a workspace:

pnpm add solid-hcaptcha --filter @revolt/auth

Deployment Information

The app currently needs the following routes:

  • /server
  • /channel
  • /friends
  • /admin
  • /app
  • /pwa

About

Monorepo for Revolt's frontend.

https://revolt.chat


Languages

Language:TypeScript 98.1%Language:JavaScript 1.4%Language:HTML 0.4%Language:CSS 0.1%