migrated to bun and also updated the gh actions
This commit is contained in:
37
.github/workflows/main.yml
vendored
37
.github/workflows/main.yml
vendored
@@ -5,31 +5,34 @@ on:
|
|||||||
branches: ["main"] # Replace with your default branch if different
|
branches: ["main"] # Replace with your default branch if different
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: oven-sh/setup-bun@v2
|
||||||
- name: Set up Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: "lts/*" # Uses the latest LTS version
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: bun install
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npx vite build
|
run: bun run build
|
||||||
|
|
||||||
- name: Move dist to public
|
- name: Upload Artifact
|
||||||
run: |
|
uses: actions/upload-pages-artifact@v3
|
||||||
rm -rf public
|
with:
|
||||||
mv dist public
|
path: dist
|
||||||
|
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|||||||
89
package.json
89
package.json
@@ -1,47 +1,46 @@
|
|||||||
{
|
{
|
||||||
"name": "dwa",
|
"name": "dwa",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build:app": "vue-tsc && vite build",
|
"build": "vite build",
|
||||||
"build": "pnpm build:app && pnpm build:sw",
|
"preview": "vite preview",
|
||||||
"preview": "vite preview",
|
"build:sw": "workbox generateSW workbox-config.js"
|
||||||
"build:sw": "workbox generateSW workbox-config.js"
|
},
|
||||||
},
|
"dependencies": {
|
||||||
"dependencies": {
|
"@faker-js/faker": "^8.4.1",
|
||||||
"@faker-js/faker": "^8.4.1",
|
"@vee-validate/zod": "^4.12.5",
|
||||||
"@vee-validate/zod": "^4.12.5",
|
"@vue/test-utils": "^2.4.4",
|
||||||
"@vue/test-utils": "^2.4.4",
|
"@vueuse/core": "^10.9.0",
|
||||||
"@vueuse/core": "^10.9.0",
|
"class-variance-authority": "^0.7.0",
|
||||||
"class-variance-authority": "^0.7.0",
|
"clsx": "^2.1.0",
|
||||||
"clsx": "^2.1.0",
|
"lucide-vue-next": "^0.344.0",
|
||||||
"lucide-vue-next": "^0.344.0",
|
"moment": "^2.30.1",
|
||||||
"moment": "^2.30.1",
|
"radix-vue": "^1.4.9",
|
||||||
"radix-vue": "^1.4.9",
|
"tailwind-merge": "^2.2.1",
|
||||||
"tailwind-merge": "^2.2.1",
|
"tailwindcss-animate": "^1.0.7",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"vaul-vue": "^0.1.0",
|
||||||
"vaul-vue": "^0.1.0",
|
"vee-validate": "^4.12.5",
|
||||||
"vee-validate": "^4.12.5",
|
"vue": "^3.4.19",
|
||||||
"vue": "^3.4.19",
|
"vue-router": "^4.3.0",
|
||||||
"vue-router": "^4.3.0",
|
"vue-sonner": "^1.1.2",
|
||||||
"vue-sonner": "^1.1.2",
|
"zod": "^3.22.4"
|
||||||
"zod": "^3.22.4"
|
},
|
||||||
},
|
"devDependencies": {
|
||||||
"devDependencies": {
|
"@types/node": "^20.11.24",
|
||||||
"@types/node": "^20.11.24",
|
"@vitejs/plugin-vue": "^5.0.4",
|
||||||
"@vitejs/plugin-vue": "^5.0.4",
|
"@vitest/coverage-istanbul": "^1.3.1",
|
||||||
"@vitest/coverage-istanbul": "^1.3.1",
|
"@vitest/ui": "^1.3.1",
|
||||||
"@vitest/ui": "^1.3.1",
|
"autoprefixer": "^10.4.18",
|
||||||
"autoprefixer": "^10.4.18",
|
"jsdom": "^24.0.0",
|
||||||
"jsdom": "^24.0.0",
|
"shadcn-vue": "^0.9.0",
|
||||||
"shadcn-vue": "^0.9.0",
|
"tailwindcss": "^3.4.1",
|
||||||
"tailwindcss": "^3.4.1",
|
"typescript": "^5.2.2",
|
||||||
"typescript": "^5.2.2",
|
"vite": "^5.1.4",
|
||||||
"vite": "^5.1.4",
|
"vite-plugin-pwa": "^0.19.0",
|
||||||
"vite-plugin-pwa": "^0.19.0",
|
"vitest": "^1.3.1",
|
||||||
"vitest": "^1.3.1",
|
"vue-tsc": "^1.8.27"
|
||||||
"vue-tsc": "^1.8.27"
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
5598
pnpm-lock.yaml
generated
5598
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user