mirror of
https://github.com/HDInnovations/UNIT3D.git
synced 2026-01-31 01:35:31 +01:00
update: use bun for package manager
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.lockb binary diff=lockb
|
||||
10
.github/workflows/compile-assets-test.yml
vendored
10
.github/workflows/compile-assets-test.yml
vendored
@@ -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
|
||||
|
||||
12
.github/workflows/phpunit-test.yml
vendored
12
.github/workflows/phpunit-test.yml
vendored
@@ -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
|
||||
|
||||
12
.github/workflows/prettier-blade.yml
vendored
12
.github/workflows/prettier-blade.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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',
|
||||
]);
|
||||
}
|
||||
|
||||
12120
package-lock.json
generated
12120
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user