From 77912f2d8854ddcda5bd746932b658f2345b44a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B0=D0=BB=D0=B8=D0=BC=D0=BE=D0=B2=20=D0=A0=D1=83?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D0=BC?= Date: Thu, 19 Mar 2026 22:28:35 +0300 Subject: [PATCH] Configure vite-plugin-static-copy for shared assets --- client-web/vite.config.ts | 15 ++++++++++++++- package-lock.json | 35 +++++++++++++++++++++++++++++++++-- 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/client-web/vite.config.ts b/client-web/vite.config.ts index ae44c02..38484b7 100644 --- a/client-web/vite.config.ts +++ b/client-web/vite.config.ts @@ -1,10 +1,23 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; +import { viteStaticCopy } from 'vite-plugin-static-copy'; +import path from 'path'; export default defineConfig({ envDir: '../../', - plugins: [react(), tailwindcss()], + plugins: [ + react(), + tailwindcss(), + viteStaticCopy({ + targets: [ + { + src: path.resolve(__dirname, '../shared/sounds'), + dest: './' + } + ] + }) + ], server: { port: 5173, proxy: { diff --git a/package-lock.json b/package-lock.json index a5e0024..2225739 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,8 @@ "": { "name": "knot-messenger", "workspaces": [ - "apps/*" + "client-web", + "client-mobile" ], "devDependencies": { "concurrently": "^9.1.0" @@ -44,6 +45,36 @@ } }, "apps/web": { + "name": "@knot/web", + "version": "1.0.0", + "extraneous": true, + "dependencies": { + "@emoji-mart/data": "^1.2.1", + "@emoji-mart/react": "^1.1.1", + "@microsoft/signalr": "^10.0.0", + "@tanstack/react-query": "^5.62.0", + "clsx": "^2.1.1", + "date-fns": "^4.1.0", + "emoji-mart": "^5.6.0", + "framer-motion": "^11.15.0", + "lucide-react": "^0.468.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", + "react-easy-crop": "^5.5.6", + "socket.io-client": "^4.8.1", + "zustand": "^5.0.2" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.0.0", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", + "@vitejs/plugin-react": "^4.3.4", + "tailwindcss": "^4.0.0", + "typescript": "^5.7.3", + "vite": "^6.0.0" + } + }, + "client-web": { "name": "@knot/web", "version": "1.0.0", "dependencies": { @@ -889,7 +920,7 @@ } }, "node_modules/@knot/web": { - "resolved": "apps/web", + "resolved": "client-web", "link": true }, "node_modules/@microsoft/signalr": {