Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .eslintrc.json

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/frontend.yaml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/static-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: frontend

on:
push:
branches:
- main
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run build
biome:
name: Biome Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run check
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ bun.lockb
/coverage

# next.js
/.next/
/out/
.next
out

# production
/build
/class_data/build
build

# misc
.DS_Store
Expand Down
8 changes: 0 additions & 8 deletions .prettier.js

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"files.associations": {
"*.css": "tailwindcss"
},
"editor.quickSuggestions": {
"strings": "on"
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## シ楽バス

開発者の方は[こちら](https://github.com/ut-code/syllabus-next/blob/main/readme/developer_readme.md)
開発者の方は[こちら](https://github.com/ut-code/syllabus/blob/main/docs/developer_readme.md)
4 changes: 4 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# TODOs

- setup elysia server and RPC
- implement build script
43 changes: 43 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": true,
"includes": [
"**/*",
"!packages/class_data/data/**",
"!packages/web/src/app/globals.css"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noArrayIndexKey": "off" // we are smarter than you
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
354 changes: 354 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions readme/developer_readme.md → docs/developer_readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@
リポジトリのルートディレクトリで以下のコマンドを実行してください。

```bash
npm install
bun install
```

## 開発

開発モードを実行するには、以下のコマンドを実行してください。

```bash
npm run dev
bun run dev
```

コードをプッシュする前に、コード品質をチェックするために以下のコマンドを実行してください。

```bash
npm run lint
bun run lint
```

もし `prettier` のエラーがある場合は、以下のコマンドを実行して修正してください。

```bash
npx prettier . --write
bunx prettier . --write
```

## モックモード

モックモードを実行するには、以下のコマンドを実行してください。

```bash
npm run dev:mock
bun dev:mock
```

このコマンドを実行すると、モックデータを使用してアプリケーションが実行されます。
Expand All @@ -43,9 +43,9 @@ npm run dev:mock

Userのデータは`User`クラスを使用して扱います。Userのデータは以下の場合があります。

- `npm run dev:mock`を実行した場合
- `bun dev:mock`を実行した場合
- Userはモックのデータが使用されます。
- `npm run dev`を実行した場合
- `bun dev`を実行した場合
- UserはlocalStorageに保存されたデータが使用されます。

ただ、まだユーザを登録する機能がないので、mockでユーザを作成する必要があります。
File renamed without changes.
Loading
Loading