refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов
This commit is contained in:
1 parent
f868a3f989
commit
d3edc62c0b
4 files changed
+8
-8
No files matched your search
@@ -15,4 +15,5 @@ easynpm
|
||||
easypip
|
||||
easyrestore
|
||||
**/node_modules
|
||||
*/**/node_modules
|
||||
documentation/node_modules
|
||||
@@ -19,8 +19,8 @@ services:
|
||||
|
||||
ports:
|
||||
- 5173:5173
|
||||
# - node_modules:/app/node_modules
|
||||
# command: ["npm", "run", "lint-staged"]
|
||||
|
||||
command: ["sh", "-c", "npx vue-md-parser && npx jest && npx vitepress dev docs --host 0.0.0.0"]
|
||||
networks:
|
||||
- dev
|
||||
|
||||
|
||||
@@ -4,14 +4,13 @@ FROM node:lts-alpine
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
RUN npm install @babel/plugin-proposal-unicode-property-regex \
|
||||
RUN npm cache clean --force && npm install @babel/plugin-proposal-unicode-property-regex \
|
||||
@babel/preset-env @babel/preset-modules \
|
||||
babel-jest @babel/runtime @babel/plugin-transform-runtime
|
||||
WORKDIR /app/documentation/
|
||||
|
||||
WORKDIR /app/documentation
|
||||
# Очистить кэш npm и установить необходимые пакеты
|
||||
|
||||
RUN npm install vitepress vue-md-parser @vue/vue3-jest \
|
||||
RUN npm cache clean --force && npm install --prefix ./ vitepress vue-md-parser @vue/vue3-jest \
|
||||
@babel/plugin-proposal-unicode-property-regex \
|
||||
@babel/preset-env @babel/preset-modules babel-jest @babel/runtime \
|
||||
axios @babel/plugin-transform-runtime \
|
||||
@@ -31,4 +30,4 @@ WORKDIR /app/documentation/
|
||||
# Держать контейнер запущенным
|
||||
# CMD ["tail", "-f", "/dev/null"]
|
||||
# Раскомментируйте следующую строку, чтобы запустить приложение
|
||||
CMD ["sh", "-c", "npx vue-md-parser && npx jest && npx vitepress dev docs --host 0.0.0.0"]
|
||||
# CMD ["sh", "-c", "npx vue-md-parser && npx jest && npx vitepress dev docs --host 0.0.0.0"]
|
||||
@@ -1,4 +1,4 @@
|
||||
import { mount } from '../../../../documentation/node_modules/@vue/test-utils';
|
||||
import { mount } from '/app/documentation/node_modules/@vue/test-utils';
|
||||
import CarouselList from '@/components/carousel-list.vue';
|
||||
|
||||
// Мок axios
|
||||
|
||||
Reference in new issue
Block a user