From 102d27d0b99852657dc1aba5e39c670d5013ff41 Mon Sep 17 00:00:00 2001 From: Vasilii Mikhailovskii Date: Mon, 2 Dec 2024 14:38:25 +0200 Subject: [PATCH] add ci dev build --- .gitea/workflows/deploy.yaml | 5 ++++- apps/frontend/.env | 3 ++- apps/frontend/.env.production | 2 -- apps/frontend/.gitignore | 2 +- apps/frontend/components.d.ts | 5 ----- 5 files changed, 7 insertions(+), 10 deletions(-) delete mode 100644 apps/frontend/.env.production diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 96a792f..69cb124 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -25,6 +25,9 @@ jobs: run: | corepack enable pnpm deploy --filter frontend --frozen-lockfile build/frontend - cd build/frontend + cd build/frontend && pnpm run build-only --emptyOutDir --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}/ + pnpm run build-only --emptyOutDir --mode development --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-dev/ mv /www/hereconnect.condev.ru/current /www/hereconnect.condev.ru/old && mv /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}} /www/hereconnect.condev.ru/current && rm -rf /www/hereconnect.condev.ru/old + mv /www/hereconnect.condev.ru/current-dev /www/hereconnect.condev.ru/old-dev && mv /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-dev /www/hereconnect.condev.ru/current-dev && rm -rf /www/hereconnect.condev.ru/old-dev + diff --git a/apps/frontend/.env b/apps/frontend/.env index 8dd3fa6..8eefb18 100644 --- a/apps/frontend/.env +++ b/apps/frontend/.env @@ -1 +1,2 @@ -VITE_API_URL=https://hereconnect.condev.ru/api \ No newline at end of file +VITE_API_URL=https://hereconnect.condev.ru/api +VITE_READ_BASE_URL=https://r.condev.ru \ No newline at end of file diff --git a/apps/frontend/.env.production b/apps/frontend/.env.production deleted file mode 100644 index 8eefb18..0000000 --- a/apps/frontend/.env.production +++ /dev/null @@ -1,2 +0,0 @@ -VITE_API_URL=https://hereconnect.condev.ru/api -VITE_READ_BASE_URL=https://r.condev.ru \ No newline at end of file diff --git a/apps/frontend/.gitignore b/apps/frontend/.gitignore index aef72d0..c1f5067 100644 --- a/apps/frontend/.gitignore +++ b/apps/frontend/.gitignore @@ -12,7 +12,7 @@ node_modules dist dist-ssr coverage -*.local +.env.local /cypress/videos/ /cypress/screenshots/ diff --git a/apps/frontend/components.d.ts b/apps/frontend/components.d.ts index 814b592..2689b14 100644 --- a/apps/frontend/components.d.ts +++ b/apps/frontend/components.d.ts @@ -8,10 +8,8 @@ export {} declare module 'vue' { export interface GlobalComponents { Button: typeof import('primevue/button')['default'] - Card: typeof import('primevue/card')['default'] ChatComponent: typeof import('./src/components/ChatComponent.vue')['default'] ChatSubscribeWebPush: typeof import('./src/components/ChatSubscribeWebPush.vue')['default'] - Checkbox: typeof import('primevue/checkbox')['default'] CreateActionsSection: typeof import('./src/components/create/CreateActionsSection.vue')['default'] CreateMessageDeliveryMethodSection: typeof import('./src/components/create/CreateMessageDeliveryMethodSection.vue')['default'] CreateMessageDeliveryOption: typeof import('./src/components/create/CreateMessageDeliveryOption.vue')['default'] @@ -25,11 +23,8 @@ declare module 'vue' { CreateSummarySection: typeof import('./src/components/create/CreateSummarySection.vue')['default'] DownloadImageButton: typeof import('./src/components/manage/DownloadImageButton.vue')['default'] ExamplesSection: typeof import('./src/components/TheWelcome/ExamplesSection.vue')['default'] - InputText: typeof import('primevue/inputtext')['default'] ManagePlacementInstructions: typeof import('./src/components/manage/ManagePlacementInstructions.vue')['default'] - ProgressSpinner: typeof import('primevue/progressspinner')['default'] QueryRender: typeof import('./src/components/QueryRender.vue')['default'] - RadioButton: typeof import('primevue/radiobutton')['default'] ReadContactInfo: typeof import('./src/components/read/ReadContactInfo.vue')['default'] ReadMessageSender: typeof import('./src/components/read/ReadMessageSender.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink']