File tree Expand file tree Collapse file tree 6 files changed +18
-10266
lines changed Expand file tree Collapse file tree 6 files changed +18
-10266
lines changed Original file line number Diff line number Diff line change 1
- name : Code check
1
+ name : Code check 2
2
2
3
3
on :
4
4
pull_request :
@@ -32,30 +32,17 @@ jobs:
32
32
with :
33
33
node-version : 18
34
34
35
- - name : Setup pnpm
36
- uses : pnpm/action- setup@v2.2.4
35
+ - name : Setup bun
36
+ uses : oven-sh/ setup-bun@v1
37
37
with :
38
- version : 8.6.1
38
+ bun- version : latest
39
39
40
- - name : Get pnpm store directory
41
- id : pnpm-cache
42
- run : |
43
- echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
44
-
45
- - name : Setup pnpm cache
46
- uses : actions/cache@v3
47
- with :
48
- path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
49
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
50
- restore-keys : |
51
- ${{ runner.os }}-pnpm-store-
52
-
53
- - name : Install deps (with cache)
54
- run : pnpm install
40
+ - name : Install deps
41
+ run : bun install
55
42
56
43
# TODO: Linting is failing because of contentlayer types, need to fix that
57
44
# - name: Run lint
58
- # run: pnpm run lint
45
+ # run: bun run lint
59
46
60
47
- name : Run typecheck
61
- run : pnpm run typecheck
48
+ run : bun run typecheck
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ cd skateshop
36
36
Install the project dependencies:
37
37
38
38
``` shell
39
- pnpm install
39
+ bun install
40
40
```
41
41
42
42
### Create a branch
Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ This is an open source e-commerce skateshop build with everything new in Next.js
44
44
git clone https://github.com/sadmann7/skateshop.git
45
45
```
46
46
47
- 2 . Install dependencies using pnpm
47
+ 2 . Install dependencies using bun
48
48
49
49
``` bash
50
- pnpm install
50
+ bun install
51
51
```
52
52
53
53
3 . Copy the ` .env.example ` to ` .env ` and update the variables.
@@ -59,19 +59,19 @@ cp .env.example .env
59
59
4 . Start the development server
60
60
61
61
``` bash
62
- pnpm run dev
62
+ bun run dev
63
63
```
64
64
65
65
5 . Push the database schema
66
66
67
67
``` bash
68
- pnpm run db:push
68
+ bun run db:push
69
69
```
70
70
71
71
6 . Start the Stripe webhook listener
72
72
73
73
``` bash
74
- pnpm run stripe:listen
74
+ bun run stripe:listen
75
75
```
76
76
77
77
## How do I deploy this?
Original file line number Diff line number Diff line change 15
15
"db:push" : " drizzle-kit push:mysql" ,
16
16
"db:introspect" : " drizzle-kit introspect:mysql" ,
17
17
"db:studio" : " drizzle-kit studio --port 5000 --verbose" ,
18
- "shadcn:add" : " pnpm dlx shadcn-ui@latest add" ,
18
+ "shadcn:add" : " bunx shadcn-ui@latest add" ,
19
19
"email:dev" : " email dev --dir src/components/emails -p 3001" ,
20
20
"stripe:listen" : " stripe listen --forward-to localhost:3000/api/webhooks/stripe --latest" ,
21
- "unlighthouse" : " pnpm dlx unlighthouse --site https://skateshop.sadmn.com"
21
+ "unlighthouse" : " bunx unlighthouse --site https://skateshop.sadmn.com"
22
22
},
23
23
"dependencies" : {
24
24
"@clerk/nextjs" : " ^4.23.5" ,
102
102
"autoprefixer" : " ^10.4.15" ,
103
103
"dotenv" : " ^16.3.1" ,
104
104
"drizzle-kit" : " ^0.19.13" ,
105
+ "encoding" : " ^0.1.13" ,
105
106
"eslint" : " ^8.48.0" ,
106
107
"eslint-config-next" : " ^13.4.19" ,
107
108
"eslint-config-prettier" : " ^9.0.0" ,
112
113
"rehype-pretty-code" : " ^0.10.1" ,
113
114
"rehype-slug" : " ^6.0.0" ,
114
115
"remark-gfm" : " ^3.0.1" ,
116
+ "shiki" : " ^0.14.4" ,
115
117
"tailwindcss" : " ^3.3.3" ,
116
118
"typescript" : " ^5.2.2" ,
117
119
"unist-util-visit" : " ^5.0.0"
You can’t perform that action at this time.
0 commit comments