Skip to content

Commit 6197915

Browse files
jojohoooojojowhoooo
authored andcommitted
change pnpm to bun
1. script 2. md 3. workflow for check-code
1 parent 8887061 commit 6197915

File tree

6 files changed

+18
-10266
lines changed

6 files changed

+18
-10266
lines changed

.github/workflows/code-check.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Code check
1+
name: Code check 2
22

33
on:
44
pull_request:
@@ -32,30 +32,17 @@ jobs:
3232
with:
3333
node-version: 18
3434

35-
- name: Setup pnpm
36-
uses: pnpm/action-setup@v2.2.4
35+
- name: Setup bun
36+
uses: oven-sh/setup-bun@v1
3737
with:
38-
version: 8.6.1
38+
bun-version: latest
3939

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
5542

5643
# TODO: Linting is failing because of contentlayer types, need to fix that
5744
# - name: Run lint
58-
# run: pnpm run lint
45+
# run: bun run lint
5946

6047
- name: Run typecheck
61-
run: pnpm run typecheck
48+
run: bun run typecheck

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cd skateshop
3636
Install the project dependencies:
3737

3838
```shell
39-
pnpm install
39+
bun install
4040
```
4141

4242
### Create a branch

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ This is an open source e-commerce skateshop build with everything new in Next.js
4444
git clone https://github.com/sadmann7/skateshop.git
4545
```
4646

47-
2. Install dependencies using pnpm
47+
2. Install dependencies using bun
4848

4949
```bash
50-
pnpm install
50+
bun install
5151
```
5252

5353
3. Copy the `.env.example` to `.env` and update the variables.
@@ -59,19 +59,19 @@ cp .env.example .env
5959
4. Start the development server
6060

6161
```bash
62-
pnpm run dev
62+
bun run dev
6363
```
6464

6565
5. Push the database schema
6666

6767
```bash
68-
pnpm run db:push
68+
bun run db:push
6969
```
7070

7171
6. Start the Stripe webhook listener
7272

7373
```bash
74-
pnpm run stripe:listen
74+
bun run stripe:listen
7575
```
7676

7777
## How do I deploy this?

bun.lockb

479 KB
Binary file not shown.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"db:push": "drizzle-kit push:mysql",
1616
"db:introspect": "drizzle-kit introspect:mysql",
1717
"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",
1919
"email:dev": "email dev --dir src/components/emails -p 3001",
2020
"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"
2222
},
2323
"dependencies": {
2424
"@clerk/nextjs": "^4.23.5",
@@ -102,6 +102,7 @@
102102
"autoprefixer": "^10.4.15",
103103
"dotenv": "^16.3.1",
104104
"drizzle-kit": "^0.19.13",
105+
"encoding": "^0.1.13",
105106
"eslint": "^8.48.0",
106107
"eslint-config-next": "^13.4.19",
107108
"eslint-config-prettier": "^9.0.0",
@@ -112,6 +113,7 @@
112113
"rehype-pretty-code": "^0.10.1",
113114
"rehype-slug": "^6.0.0",
114115
"remark-gfm": "^3.0.1",
116+
"shiki": "^0.14.4",
115117
"tailwindcss": "^3.3.3",
116118
"typescript": "^5.2.2",
117119
"unist-util-visit": "^5.0.0"

0 commit comments

Comments
 (0)