Skip to content

Commit b389eb3

Browse files
author
Minis
committed
Restructure: move webrpg-site to root, remove old static files
- Delete old static site files (app.js, styles.css, index.html, assets/) - Move webrpg-site/ content (React + Vite project) to repository root - Update .github/workflows/deploy.yml to remove webrpg-site/ prefix - Update .gitignore to remove webrpg-site/ path prefix - Merge .gitignore entries from both old and new gitignore files
1 parent 5fa1a21 commit b389eb3

43 files changed

Lines changed: 45 additions & 1089 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
paths:
8-
- ".github/workflows/deploy.yml"
9-
- "webrpg-site/**"
107

118
permissions:
129
contents: read
@@ -29,14 +26,12 @@ jobs:
2926
with:
3027
node-version: 24
3128
cache: npm
32-
cache-dependency-path: webrpg-site/package-lock.json
29+
cache-dependency-path: package-lock.json
3330

3431
- name: Install dependencies
35-
working-directory: webrpg-site
3632
run: npm ci
3733

3834
- name: Build
39-
working-directory: webrpg-site
4035
run: npm run build
4136

4237
- name: Configure Pages
@@ -45,7 +40,7 @@ jobs:
4540
- name: Upload artifact
4641
uses: actions/upload-pages-artifact@v3
4742
with:
48-
path: webrpg-site/dist
43+
path: dist
4944

5045
deploy:
5146
needs: build

.gitignore

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
*.log
2-
webrpg-site/node_modules/
3-
webrpg-site/dist/
4-
webrpg-site/dist-ssr/
5-
webrpg-site/*.local
2+
node_modules/
3+
dist/
4+
dist-ssr/
5+
*.local
6+
7+
# Editor directories and files
8+
.vscode/*
9+
!.vscode/extensions.json
10+
.idea
11+
.DS_Store
12+
*.suo
13+
*.ntvs*
14+
*.njsproj
15+
*.sln
16+
*.sw?
File renamed without changes.

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
# WebRPG.org
1+
# React + TypeScript + Vite + shadcn/ui
22

3-
Static catalog site for WebRPG.org.
3+
This is a template for a new Vite project with React, TypeScript, and shadcn/ui.
44

5-
The site fetches the public index from:
5+
## Adding components
66

7-
```text
8-
https://raw.githubusercontent.com/WebRPG-org/index/main/list.json
7+
To add components to your app, run the following command:
8+
9+
```bash
10+
npx shadcn@latest add button
911
```
1012

11-
Project pages are expected at:
13+
This will place the ui components in the `src/components` directory.
1214

13-
```text
14-
https://webrpg.org/<repository-name>/
15-
```
15+
## Using components
1616

17-
Entries marked `invalid_structure`, `deleted_invalid_structure`, or `duplicate_name` in `list.json` are hidden from the catalog.
17+
To use the components in your app, import them as follows:
18+
19+
```tsx
20+
import { Button } from "@/components/ui/button"
21+
```

0 commit comments

Comments
 (0)