update: use bun for package manager

This commit is contained in:
Roardom
2024-02-18 10:39:56 +00:00
parent 08e6f8b575
commit 6be7352068
7 changed files with 21 additions and 12136 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.lockb binary diff=lockb

View File

@@ -10,7 +10,11 @@ jobs:
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v1
- name: Install NPM Dependencies
run: npm install
- name: Configure Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install JS Dependencies
run: bun install
- name: Compile Assets (Vite)
run: npm run build
run: bun run build

View File

@@ -46,18 +46,18 @@ jobs:
REDIS_CONFIGURE_OPTS: --enable-redis
- name: Prepare The Laravel Environment
run: cp .env.example .env
- name: Configure NPM
uses: actions/setup-node@v1
- name: Configure Bun
uses: oven-sh/setup-bun@v1
with:
node-version: '18.x'
bun-version: latest
- name: Install Composer Dependencies
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader
- name: Install NPM Dependencies
run: npm install
- name: Install JS Dependencies
run: bun install
- name: Compile Assets (Vite)
run: npm run build
run: bun run build
- name: Generate Application Key
run: php artisan key:generate
- name: Clear Application Cache

View File

@@ -13,14 +13,14 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Configure NPM
uses: actions/setup-node@v2
- name: Configure Bun
uses: oven-sh/setup-bun@v1
with:
node-version: '18.x'
- name: Install NPM Dependencies
run: npm install
bun-version: latest
- name: Install JS Dependencies
run: bun install
- name: Run Prettier
run: ./node_modules/.bin/prettier -w *
run: bunx prettier -w *
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:

View File

@@ -246,7 +246,7 @@ class GitUpdater extends Command
$this->commands([
'git add .',
'git checkout origin/master -- package-lock.json',
'git checkout origin/master -- bun.lockb',
'git checkout origin/master -- composer.lock',
]);
}

BIN
bun.lockb Normal file

Binary file not shown.

12120
package-lock.json generated

File diff suppressed because it is too large Load Diff