feat(desktop): embed BoosAPI Desktop client as a subproject
Vendor the rebranded BoosAPI Desktop client (Tauri + Vue) into metapi as a monorepo subdirectory under desktop/. Source only — node_modules, dist, Cargo target and the upstream .git history are excluded. desktop/ keeps its own independent Cargo workspace (desktop/src-tauri with crates/*); it is not part of the backend boosapi crate, so a `cargo check` at the metapi root still compiles only the backend. Build the desktop app from desktop/src-tauri per desktop/README.md. Note: app icons are still placeholder assets pending the final BoosAPI logo. The updater signing keys live outside the repo and are not included.
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
import { resolve } from 'node:path'
|
||||
import process from 'node:process'
|
||||
import autoprefixer from 'autoprefixer'
|
||||
import { visualizer } from 'rollup-plugin-visualizer'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
const pluginsArr: any[] = []
|
||||
|
||||
if (process.env.ANALYZE === 'true')
|
||||
pluginsArr.push(visualizer({ filename: 'bundle-visualizer-tailwind.html', gzipSize: true }) as any)
|
||||
|
||||
export default defineConfig({
|
||||
plugins: pluginsArr,
|
||||
build: {
|
||||
target: 'es2019',
|
||||
cssTarget: 'chrome80',
|
||||
copyPublicDir: false,
|
||||
outDir: 'dist-tw',
|
||||
emptyOutDir: true,
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'src/tailwind-entry.ts'),
|
||||
formats: ['es'],
|
||||
name: 'markstream-react',
|
||||
fileName: 'index',
|
||||
},
|
||||
rollupOptions: {
|
||||
output: {
|
||||
entryFileNames: 'index.js',
|
||||
chunkFileNames: 'chunks/[name].js',
|
||||
assetFileNames: (assetInfo: any) => {
|
||||
try {
|
||||
const fname = (assetInfo && ((assetInfo as any).name || (assetInfo as any).fileName || '')) as string
|
||||
if (fname && fname.endsWith('.css'))
|
||||
return 'index.tailwind.css'
|
||||
}
|
||||
catch {}
|
||||
return '[name][extname]'
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: [
|
||||
// Do not run Tailwind here; this build produces the Tailwind-ready CSS.
|
||||
autoprefixer,
|
||||
],
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user