fix(front/hmr): ui from NPM + HMR default config
Co-Authored-By: upsiflu@gmail.com Co-Authored-By: arne@ecobasa.org
This commit is contained in:
parent
a7407d102e
commit
fe49c87e57
|
@ -48,10 +48,8 @@ services:
|
|||
ports:
|
||||
- "${VUE_PORT:-8080}:${VUE_PORT:-8080}"
|
||||
environment:
|
||||
- HOST
|
||||
- VUE_PORT
|
||||
volumes:
|
||||
- "../ui:/ui"
|
||||
- "./front:/app"
|
||||
- "/app/node_modules"
|
||||
networks:
|
||||
|
|
|
@ -1,9 +1,19 @@
|
|||
FROM node:22-alpine
|
||||
|
||||
# needed to compile translations
|
||||
RUN apk add --no-cache jq bash coreutils python3
|
||||
RUN apk add --no-cache jq bash coreutils git python3
|
||||
|
||||
EXPOSE 8080
|
||||
WORKDIR /app/
|
||||
|
||||
CMD yarn && yarn dev --host
|
||||
# Create node_modules directory to prevent it from being hidden by volume mounts
|
||||
RUN mkdir -p node_modules
|
||||
|
||||
ADD scripts/ ./scripts/
|
||||
ADD package.json yarn.lock ./
|
||||
RUN yarn
|
||||
|
||||
VOLUME /app
|
||||
VOLUME /app/node_modules
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["yarn", "dev", "--host"]
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
"postinstall": "yarn run fix-fomantic-css"
|
||||
},
|
||||
"dependencies": {
|
||||
"@funkwhale/ui": "^0.3.0",
|
||||
"@sentry/tracing": "7.47.0",
|
||||
"@sentry/vue": "7.47.0",
|
||||
"@tauri-apps/api": "2.0.0-beta.1",
|
||||
|
@ -66,7 +67,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@faker-js/faker": "8.4.1",
|
||||
"@funkwhale/ui": "file:/ui",
|
||||
"@iconify/vue": "4.1.1",
|
||||
"@intlify/eslint-plugin-vue-i18n": "2.0.0",
|
||||
"@intlify/unplugin-vue-i18n": "2.0.0",
|
||||
|
|
|
@ -59,9 +59,6 @@ export default defineConfig(({ mode }) => ({
|
|||
],
|
||||
server: {
|
||||
port: +(process.env.VUE_PORT ?? 8080),
|
||||
hmr: {
|
||||
clientPort: +(process.env.VUE_PORT ?? 8080)
|
||||
},
|
||||
watch: {
|
||||
usePolling: true,
|
||||
}
|
||||
|
|
|
@ -1855,8 +1855,10 @@
|
|||
resolved "https://registry.yarnpkg.com/@faker-js/faker/-/faker-8.4.1.tgz#5d5e8aee8fce48f5e189bf730ebd1f758f491451"
|
||||
integrity sha512-XQ3cU+Q8Uqmrbf2e0cIC/QN43sTBSC8KF12u29Mb47tWrt2hAgBXSgpZMj4Ao8Uk0iJcU99QsOCaIL8934obCg==
|
||||
|
||||
"@funkwhale/ui@file:../ui":
|
||||
"@funkwhale/ui@^0.3.0":
|
||||
version "0.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@funkwhale/ui/-/ui-0.3.0.tgz#d0f530d8ccb004e3d4b8c617e986136f4c3d723d"
|
||||
integrity sha512-44IPYq1Pj7rifqEWKtUj30PO4mrkdAo4k0xA7PspKCZJR2PcSEd0fZTDr2tvnBYQDblavHoYcZNvB1IZQMGhOw==
|
||||
dependencies:
|
||||
dompurify "^2.4.3 || ^3.0.0"
|
||||
showdown "^2.1.0"
|
||||
|
|
Loading…
Reference in New Issue