mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-08 23:45:24 +02:00
- move each template's metadata to blueprints/<id>/meta.json (442 files, byte-identical roundtrip with the old root meta.json) - generate the served meta.json at build time into app/public/meta.json (gitignored); pnpm dev/build run the generator first - CI validates every blueprints/<id>/meta.json via generate-meta.js --check (required fields, id/folder match, logo exists, folder<->meta bidirectionality) and rejects any committed root meta.json - remove root meta.json, dedupe-and-sort-meta.js and build-scripts/process-meta.js (obsolete) - update CONTRIBUTING.md, AGENTS.md and README.md Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
27 lines
671 B
TypeScript
27 lines
671 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { viteStaticCopy } from 'vite-plugin-static-copy'
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss(),
|
|
viteStaticCopy({
|
|
targets: [
|
|
{
|
|
src: '../blueprints/*',
|
|
dest: 'blueprints' // raíz de dist (public root)
|
|
}
|
|
// meta.json is no longer copied from the repo root: it is
|
|
// generated into app/public/meta.json by build-scripts/generate-meta.js
|
|
]
|
|
})
|
|
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
})
|