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