Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(R7-592): исправляет билд проекта #2

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
21 changes: 21 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 80,
"tabWidth": 2,
"overrides": [
{
"files": "*.vue",
"options": {
"parser": "vue"
}
},
{
"files": "*.{js,ts}",
"options": {
"parser": "babel-ts"
}
}
]
}
58 changes: 53 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,54 @@
{
"cSpell.words": [
"einarlyn",
"Preact"
]
}
"cSpell.words": [
"Автоматическое",
"библиотек",
"блоба",
"временного",
"всех",
"вызова",
"глобальную",
"дождаться",
"доступа",
"загружен",
"загружена",
"Загрузите",
"исключаем",
"использование",
"использовать",
"минификации",
"минификацию",
"можно",
"нажатие",
"обновлен",
"обновления",
"объекта",
"Освобождение",
"Отключаем",
"Ошибка",
"памяти",
"переименование",
"переменным",
"переменных",
"Преобразование",
"просмотра",
"пуста",
"следующего",
"Создание",
"ссылки",
"ссылку",
"строку",
"Схема",
"схему",
"Теперь",
"Указываем",
"успешно",
"файла",
"формы",
"функций",
"чтении",
"элемента",
"einarlyn",
"fnames",
"Preact"
]
}
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Stage 1: Build the application
FROM node:20.12.0 as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# Stage 2: Serve the application
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
16 changes: 16 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* eslint-disable */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}

/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
AFloatButton: typeof import('ant-design-vue/es')['FloatButton']
AFloatButtonGroup: typeof import('ant-design-vue/es')['FloatButtonGroup']
AMenu: typeof import('ant-design-vue/es')['Menu']
FormEditor: typeof import('./src/components/FormEditor.vue')['default']
FormViewer: typeof import('./src/components/FormViewer.vue')['default']
}
}
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3.8'

services:
vue-app:
build:
context: .
dockerfile: Dockerfile
ports:
- '80:80'
networks:
- vue-network

networks:
vue-network:
driver: bridge
Loading