forked from external-repos/LifeTrinket
use bun
This commit is contained in:
3
.github/workflows/firebase-hosting-mege.yml
vendored
3
.github/workflows/firebase-hosting-mege.yml
vendored
@@ -10,7 +10,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: yarn && yarn build && yarn lint
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
- run: bun && bun build && bun lint
|
||||
- uses: FirebaseExtended/action-hosting-deploy@v0
|
||||
with:
|
||||
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
||||
|
||||
10
.github/workflows/lint_and_build.yml
vendored
10
.github/workflows/lint_and_build.yml
vendored
@@ -18,14 +18,18 @@ jobs:
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v2
|
||||
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Set up bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
run: bun install
|
||||
|
||||
- name: Run lint
|
||||
run: yarn lint
|
||||
run: bun lint
|
||||
|
||||
- name: Build project
|
||||
run: yarn build
|
||||
run: bun build
|
||||
|
||||
@@ -3,13 +3,18 @@
|
||||
"private": true,
|
||||
"version": "0.2.0",
|
||||
"type": "commonjs",
|
||||
"engines": {
|
||||
"node": ">=18",
|
||||
"yarn": "please use bun :)",
|
||||
"npm": "please use bun :) "
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||
"preview": "vite preview",
|
||||
"generate-icons": "npx @svgr/cli src/Icons/svgs",
|
||||
"deploy": "yarn build && firebase deploy --only hosting"
|
||||
"deploy": "bun build && firebase deploy --only hosting"
|
||||
},
|
||||
"dependencies": {
|
||||
"@mui/material": "^5.13.6",
|
||||
|
||||
Reference in New Issue
Block a user