Skip to content

Commit

Permalink
⚙ Node.jsからBunに移行 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
3w36zj6 authored Nov 6, 2023
1 parent b295efc commit b8b45ce
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7,148 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,22 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
cache: npm
- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install
run: npm install
- name: Install Dependencies
run: bun install

- name: Fetch beatmap repository
run: npx degit RICORA/ricora-beats-beatmap ./dist/assets/beatmaps
run: bunx degit RICORA/ricora-beats-beatmap ./dist/assets/beatmaps

- name: Build
run: npm run build
run: bun run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: beats.tus-ricora.com
cname: beats.tus-ricora.com
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ Have a look through existing [Issues](https://github.com/RICORA/ricora-beats/iss

#### Development

This project requires the use of [Bun](https://bun.sh/) as the JavaScript runtime. Please make sure you have [Bun](https://bun.sh/) installed before proceeding with the setup.

##### Install

```sh
npm install
bun install
```

##### Set environment variable
Expand All @@ -114,20 +116,19 @@ export CREDITS="Alice\nBob, Carol\nDave, Ellen, Frank"
##### Fetch beatmap repository

```sh
npx degit RICORA/ricora-beats-beatmap ./dist/assets/beatmaps
bunx degit RICORA/ricora-beats-beatmap ./dist/assets/beatmaps
```

##### Run development server

```sh

npm run dev
bun run dev
```

##### Build

```sh
npm run build
bun run build
```

### Score ranking (Frontend)
Expand Down
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit b8b45ce

Please sign in to comment.