File tree Expand file tree Collapse file tree 10 files changed +6408
-29
lines changed Expand file tree Collapse file tree 10 files changed +6408
-29
lines changed Original file line number Diff line number Diff line change 26
26
contents : read
27
27
steps :
28
28
- uses : actions/checkout@v4
29
- - uses : ./.github/actions/prepare-nodemodules
29
+
30
+ # Corepack enable をしておけば package.json の packageManager を読んで適切なバージョンの yarn を使ってくれる。
31
+ # ただし非公式な方法であり、あくまでワークアラウンド。
32
+ # https://github.com/actions/setup-node/issues/480#issuecomment-1820622085
33
+ # > enable corepack **before** setup-node.
34
+ - name : Enable Corepack
35
+ run : corepack enable
36
+
37
+ - uses : actions/setup-node@v4
30
38
with :
31
- root : ${{ github.workspace }}/typing-app
39
+ node-version : ' 20'
40
+ cache : ' yarn'
41
+ cache-dependency-path : typing-app/yarn.lock
42
+
43
+ - name : Install Dependencies
44
+ run : yarn
45
+
32
46
- name : Build Next.js Project
33
- run : npm run build
47
+ run : yarn build
Original file line number Diff line number Diff line change
1
+ /.yarn /** linguist-vendored
2
+ /.yarn /releases /* binary
3
+ /.yarn /plugins /** /* binary
4
+ /.pnp. * binary linguist-generated
Original file line number Diff line number Diff line change 2
2
3
3
# dependencies
4
4
/node_modules
5
+ .yarn /*
6
+ ! .yarn /patches
7
+ ! .yarn /plugins
8
+ ! .yarn /releases
9
+ ! .yarn /sdks
10
+ ! .yarn /versions
5
11
/.pnp
6
12
.pnp.js
7
13
.yarn /install-state.gz
Original file line number Diff line number Diff line change
1
+ engine-strict = true
Original file line number Diff line number Diff line change
1
+ nodeLinker : node-modules
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,18 +7,13 @@ $ git clone https://github.com/su-its/typing.git
7
7
$ cd typing/typing-app
8
8
```
9
9
10
- ## 2. パッケージのインストール(npm ではなく bun を採用しています)
11
-
12
- ### Bun をインストールする (まだインストールしていない場合)
13
-
14
- ``` bash
15
- $ curl -fsSL https://bun.sh/install | bash
16
- ```
10
+ ## 2. パッケージのインストール(npm ではなく yarn を採用しています)
17
11
18
12
### プロジェクトの依存パッケージをインストール(typing-app ディレクトリで実行)
19
13
20
14
``` bash
21
- $ bun install
15
+ $ corepack enable yarn
16
+ $ yarn
22
17
```
23
18
24
19
## 3. API & DB の起動(typing-server ディレクトリで実行)
@@ -30,5 +25,5 @@ $ docker-compose --file docker-compose.dev.yml up --build
30
25
## 4. フロントエンドの起動(typing-app ディレクトリで実行)
31
26
32
27
``` bash
33
- $ bun dev
28
+ $ yarn dev
34
29
```
Original file line number Diff line number Diff line change 12
12
},
13
13
"dependencies" : {
14
14
"@chakra-ui/react" : " ^2.8.2" ,
15
+ "@emotion/react" : " ^11.11.4" ,
16
+ "@emotion/styled" : " ^11.11.0" ,
15
17
"@radix-ui/react-slot" : " ^1.0.2" ,
16
18
"@radix-ui/react-toast" : " ^1.1.5" ,
17
19
"class-variance-authority" : " ^0.7.0" ,
18
20
"clsx" : " ^2.1.0" ,
21
+ "framer-motion" : " ^11.0.20" ,
19
22
"lucide-react" : " ^0.343.0" ,
20
23
"next" : " 14.1.0" ,
21
24
"react" : " ^18" ,
34
37
"postcss" : " ^8" ,
35
38
"tailwindcss" : " ^3.3.0" ,
36
39
"typescript" : " ^5"
40
+ },
41
+ "repository" : " https://github.com/su-its/typing" ,
42
+ "author" : " su-its" ,
43
+ "packageManager" :
" [email protected] " ,
44
+ "engines" : {
45
+ "npm" : " use yarn instead"
37
46
}
38
47
}
You can’t perform that action at this time.
0 commit comments