Skip to content
Snippets Groups Projects
Commit bd56280b authored by Kai Oliver Meister's avatar Kai Oliver Meister :cow2:
Browse files

testing

parent b83085a9
No related branches found
No related tags found
No related merge requests found
Pipeline #587090 failed
...@@ -22,8 +22,8 @@ cache: &global_cache ...@@ -22,8 +22,8 @@ cache: &global_cache
key: "build_files_cache" key: "build_files_cache"
paths: paths:
- build/ - build/
- .svelte-kit/
- node_modules/ - node_modules/
# - .svelte-kit/
.install_docker-compose: &install_docker-compose .install_docker-compose: &install_docker-compose
......
...@@ -14,17 +14,24 @@ WORKDIR /app/ ...@@ -14,17 +14,24 @@ WORKDIR /app/
COPY package.json . COPY package.json .
COPY package-lock.json . COPY package-lock.json .
# this builds node_modules/ and .svelte-kit/ in WORKDIR
RUN npm install RUN npm install
COPY . .
# this builds build/ in /
RUN npm run build
# now we clean up the node_modules, and install only dev deps
# into the root directory (as those may be needed)
RUN rm -rf node_modules/
RUN npm install --only=dev --prefix /
# if packages are auto-updated with open dependencies, we should at least # if packages are auto-updated with open dependencies, we should at least
# track which packages are installed per pipeline run, to be able to restore # track which packages are installed per pipeline run, to be able to restore
# the last working package state when something eventually breaks # the last working package state when something eventually breaks
RUN node --version RUN node --version
RUN npm list RUN npm list
COPY . .
RUN npm run build
# reconfigure the CMD default to launch the server # reconfigure the CMD default to launch the server
......
...@@ -7,8 +7,8 @@ export default defineConfig({ ...@@ -7,8 +7,8 @@ export default defineConfig({
test: { test: {
include: ['tests/**/*.{test,spec}.{js,ts}'] include: ['tests/**/*.{test,spec}.{js,ts}']
}, },
// Node chokes if we don't exclude these from being watched since it reaches the system limit for file watchers on Linux
server: { server: {
// Node chokes if we don't exclude these from being watched since it reaches the system limit for file watchers on Linux
// watch: null // watch: null
watch: { watch: {
// ignored: ["*/**", "**/**"] // ignored: ["*/**", "**/**"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment