Skip to content

Commit

Permalink
frontend: Use workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
pbzweihander committed May 15, 2024
1 parent 8c88c8f commit 717ee4c
Show file tree
Hide file tree
Showing 5 changed files with 890 additions and 694 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ target/

# End of https://www.toptal.com/developers/gitignore/api/rust

node_modules/

.env
files/
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ chamsae is for a single user who wants to join the fediverse, but not want to ru

### Backend

First, due to static-serving, you have to build frontend first.
First, due to static-serving, you have to build frontend.

```shell
cd frontend
yarn build
```

Expand Down Expand Up @@ -71,7 +70,6 @@ You may need to run `sudo setcap cap_net_bind_service=+ep $(which caddy)` first.
### Frontend

```
cd frontend
yarn dev
```

Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "chamsae",
"name": "chamsae-frontend",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "chamsae",
"workspaces": [
"frontend"
],
"private": true,
"scripts": {
"dev": "cd frontend && yarn dev",
"build": "cd frontend && yarn build"
}
}
Loading

0 comments on commit 717ee4c

Please sign in to comment.