mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-03-15 18:01:06 +00:00
refactor vite.config, gitea workflow
All checks were successful
Build and Push to Gitea Registry / build-and-push (push) Successful in 6m15s
All checks were successful
Build and Push to Gitea Registry / build-and-push (push) Successful in 6m15s
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry: gitea.bsws.in
|
registry: gitea.bsws.in
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
@@ -31,8 +31,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: gitea.bsws.in/${{ github.repository }}
|
images: gitea.bsws.in/${{ github.repository }}
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest
|
type=raw,value=tanstack-start,enable=${{ github.ref == 'refs/heads/start' }}
|
||||||
type=sha
|
type=sha,prefix=sha-
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { devtools } from "@tanstack/devtools-vite";
|
|||||||
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
||||||
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
|
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
|
||||||
import babel from '@rolldown/plugin-babel'
|
import babel from '@rolldown/plugin-babel'
|
||||||
import viteTsConfigPaths from "vite-tsconfig-paths";
|
|
||||||
import { fileURLToPath, URL } from "url";
|
import { fileURLToPath, URL } from "url";
|
||||||
import tailwindcss from "@tailwindcss/vite";
|
import tailwindcss from "@tailwindcss/vite";
|
||||||
import { nitro } from "nitro/vite";
|
import { nitro } from "nitro/vite";
|
||||||
@@ -13,14 +12,12 @@ const config = defineConfig({
|
|||||||
alias: {
|
alias: {
|
||||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||||
},
|
},
|
||||||
|
tsconfigPaths: true,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
nitro({ preset: "node-server" }),
|
nitro({ preset: "node-server" }),
|
||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
devtools(),
|
devtools(),
|
||||||
viteTsConfigPaths({
|
|
||||||
projects: ["./tsconfig.json"],
|
|
||||||
}),
|
|
||||||
tanstackStart(),
|
tanstackStart(),
|
||||||
react(),
|
react(),
|
||||||
babel({ presets: [reactCompilerPreset()] })
|
babel({ presets: [reactCompilerPreset()] })
|
||||||
|
|||||||
Reference in New Issue
Block a user