Update Kirby and Composer dependencies
This commit is contained in:
parent
f5d3ea5e84
commit
ec74d78ba9
382 changed files with 25077 additions and 4955 deletions
|
@ -1,3 +1,4 @@
|
|||
/* eslint-env node */
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { defineConfig } from "vite";
|
||||
|
@ -24,7 +25,7 @@ export default defineConfig(({ command }) => {
|
|||
|
||||
// Delete the flag file on any kind of exit
|
||||
for (const eventType of ["exit", "SIGINT", "uncaughtException"]) {
|
||||
process.on(eventType, function(err) {
|
||||
process.on(eventType, function (err) {
|
||||
if (fs.existsSync(runningPath) === true) {
|
||||
fs.unlinkSync(runningPath);
|
||||
}
|
||||
|
@ -54,7 +55,7 @@ export default defineConfig(({ command }) => {
|
|||
minify: "terser",
|
||||
cssCodeSplit: false,
|
||||
rollupOptions: {
|
||||
input: "/src/index.js",
|
||||
input: "./src/index.js",
|
||||
output: {
|
||||
entryFileNames: "js/[name].js",
|
||||
chunkFileNames: "js/[name].js",
|
||||
|
@ -63,7 +64,10 @@ export default defineConfig(({ command }) => {
|
|||
}
|
||||
},
|
||||
optimizeDeps: {
|
||||
entries: "src/**/*.{js,vue}"
|
||||
entries: "src/**/*.{js,vue}",
|
||||
exclude: [
|
||||
"vitest"
|
||||
]
|
||||
},
|
||||
css: {
|
||||
postcss: {
|
||||
|
@ -94,6 +98,18 @@ export default defineConfig(({ command }) => {
|
|||
"/media": proxy
|
||||
},
|
||||
...custom
|
||||
},
|
||||
test: {
|
||||
environment: "jsdom",
|
||||
include: ["**/*.test.js"],
|
||||
coverage: {
|
||||
all: true,
|
||||
exclude: ["**/*.e2e.js", "**/*.test.js"],
|
||||
extension: ["js", "vue"],
|
||||
src: "src",
|
||||
reporter: ["text", "lcov"]
|
||||
},
|
||||
setupFiles: ["vitest.setup.js"]
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue