kirbyup 2.0.1 → 2.0.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +8 -9
- package/dist/index.mjs +8 -9
- package/dist/shared/kirbyup.d1711aad.mjs +385 -0
- package/package.json +17 -22
- package/dist/shared/kirbyup.3c5fa7eb.mjs +0 -3633
package/dist/cli.mjs
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { cac } from 'cac';
|
|
2
|
-
import { n as name, b as build, s as serve, v as version, h as handleError } from './shared/kirbyup.
|
|
2
|
+
import { n as name, b as build, s as serve, v as version, h as handleError } from './shared/kirbyup.d1711aad.mjs';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'pathe';
|
|
6
|
+
import 'consola';
|
|
7
|
+
import 'picocolors';
|
|
8
|
+
import 'perfect-debounce';
|
|
6
9
|
import 'vite';
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import 'crypto';
|
|
10
|
+
import 'vue/compiler-sfc';
|
|
11
|
+
import '@vitejs/plugin-vue2';
|
|
12
|
+
import 'vite-plugin-full-reload';
|
|
11
13
|
import 'postcss-load-config';
|
|
12
14
|
import 'postcss-logical';
|
|
13
15
|
import 'postcss-dir-pseudo-class';
|
|
14
|
-
import 'consola';
|
|
15
|
-
import 'perfect-debounce';
|
|
16
|
-
import 'picocolors';
|
|
17
|
-
import 'vite-plugin-full-reload';
|
|
18
16
|
import 'zlib';
|
|
19
17
|
import 'util';
|
|
18
|
+
import 'fs';
|
|
20
19
|
import 'unconfig';
|
|
21
20
|
import 'magic-string';
|
|
22
21
|
import 'detect-package-manager';
|
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import 'node:fs';
|
|
2
2
|
import 'node:fs/promises';
|
|
3
3
|
import 'pathe';
|
|
4
|
+
import 'consola';
|
|
5
|
+
import 'picocolors';
|
|
6
|
+
import 'perfect-debounce';
|
|
4
7
|
import 'vite';
|
|
5
|
-
|
|
8
|
+
import 'vue/compiler-sfc';
|
|
9
|
+
import '@vitejs/plugin-vue2';
|
|
10
|
+
import 'vite-plugin-full-reload';
|
|
6
11
|
import 'postcss-load-config';
|
|
7
12
|
import 'postcss-logical';
|
|
8
13
|
import 'postcss-dir-pseudo-class';
|
|
9
|
-
|
|
10
|
-
import 'perfect-debounce';
|
|
11
|
-
import 'picocolors';
|
|
12
|
-
import 'vite-plugin-full-reload';
|
|
13
|
-
import 'fs';
|
|
14
|
-
import 'path';
|
|
15
|
-
import 'module';
|
|
16
|
-
import 'crypto';
|
|
14
|
+
export { b as build, s as serve } from './shared/kirbyup.d1711aad.mjs';
|
|
17
15
|
import 'zlib';
|
|
18
16
|
import 'util';
|
|
17
|
+
import 'fs';
|
|
19
18
|
import 'unconfig';
|
|
20
19
|
import 'magic-string';
|
|
21
20
|
import 'detect-package-manager';
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import { existsSync as existsSync$1, unlinkSync } from 'node:fs';
|
|
2
|
+
import { writeFile, readFile } from 'node:fs/promises';
|
|
3
|
+
import { normalize, relative, resolve, dirname, basename } from 'pathe';
|
|
4
|
+
import consola from 'consola';
|
|
5
|
+
import colors from 'picocolors';
|
|
6
|
+
import { debounce } from 'perfect-debounce';
|
|
7
|
+
import { createServer, mergeConfig, build as build$1 } from 'vite';
|
|
8
|
+
import * as vueCompilerSfc from 'vue/compiler-sfc';
|
|
9
|
+
import vuePlugin, { parseVueRequest } from '@vitejs/plugin-vue2';
|
|
10
|
+
import fullReloadPlugin from 'vite-plugin-full-reload';
|
|
11
|
+
import postcssrc from 'postcss-load-config';
|
|
12
|
+
import postcssLogical from 'postcss-logical';
|
|
13
|
+
import postcssDirPseudoClass from 'postcss-dir-pseudo-class';
|
|
14
|
+
import { gzip } from 'zlib';
|
|
15
|
+
import { promisify } from 'util';
|
|
16
|
+
import { existsSync, statSync } from 'fs';
|
|
17
|
+
import { createConfigLoader } from 'unconfig';
|
|
18
|
+
import MagicString from 'magic-string';
|
|
19
|
+
import { detect } from 'detect-package-manager';
|
|
20
|
+
|
|
21
|
+
const name = "kirbyup";
|
|
22
|
+
const version = "2.0.2-beta.0";
|
|
23
|
+
|
|
24
|
+
class PrettyError extends Error {
|
|
25
|
+
constructor(message) {
|
|
26
|
+
super(message);
|
|
27
|
+
this.name = this.constructor.name;
|
|
28
|
+
if (typeof Error.captureStackTrace === "function")
|
|
29
|
+
Error.captureStackTrace(this, this.constructor);
|
|
30
|
+
else
|
|
31
|
+
this.stack = new Error(message).stack;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function handleError(error) {
|
|
35
|
+
consola.error(error.message);
|
|
36
|
+
process.exitCode = 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function toArray(array) {
|
|
40
|
+
array = array || [];
|
|
41
|
+
if (Array.isArray(array))
|
|
42
|
+
return array;
|
|
43
|
+
return [array];
|
|
44
|
+
}
|
|
45
|
+
const compress = promisify(gzip);
|
|
46
|
+
async function getCompressedSize(code) {
|
|
47
|
+
const size = (await compress(typeof code === "string" ? code : Buffer.from(code))).length / 1024;
|
|
48
|
+
return ` / gzip: ${size.toFixed(2)} KiB`;
|
|
49
|
+
}
|
|
50
|
+
async function printFileInfo(root, outDir, filePath, content, type, maxLength) {
|
|
51
|
+
const prettyOutDir = `${normalize(relative(root, resolve(root, outDir)))}/`;
|
|
52
|
+
const kibs = content.length / 1024;
|
|
53
|
+
const compressedSize = await getCompressedSize(content);
|
|
54
|
+
const writeColor = type === "chunk" ? colors.cyan : colors.magenta;
|
|
55
|
+
consola.log(
|
|
56
|
+
colors.white(colors.dim(prettyOutDir)) + writeColor(filePath.padEnd(maxLength + 2)) + colors.dim(`${kibs.toFixed(2)} KiB${compressedSize}`)
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function loadConfig(cwd = process.cwd(), configOrPath = cwd, extraConfigSources = []) {
|
|
61
|
+
let inlineConfig = {};
|
|
62
|
+
if (typeof configOrPath !== "string") {
|
|
63
|
+
inlineConfig = configOrPath;
|
|
64
|
+
if (inlineConfig.configFile === false) {
|
|
65
|
+
return {
|
|
66
|
+
config: inlineConfig,
|
|
67
|
+
sources: []
|
|
68
|
+
};
|
|
69
|
+
} else {
|
|
70
|
+
configOrPath = inlineConfig.configFile || process.cwd();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const resolved = resolve(configOrPath);
|
|
74
|
+
let isFile = false;
|
|
75
|
+
if (existsSync(resolved) && statSync(resolved).isFile()) {
|
|
76
|
+
isFile = true;
|
|
77
|
+
cwd = dirname(resolved);
|
|
78
|
+
}
|
|
79
|
+
const loader = createConfigLoader({
|
|
80
|
+
sources: isFile ? [
|
|
81
|
+
{
|
|
82
|
+
files: resolved,
|
|
83
|
+
extensions: []
|
|
84
|
+
}
|
|
85
|
+
] : [
|
|
86
|
+
{
|
|
87
|
+
files: ["kirbyup.config"]
|
|
88
|
+
},
|
|
89
|
+
...extraConfigSources
|
|
90
|
+
],
|
|
91
|
+
cwd,
|
|
92
|
+
defaults: inlineConfig
|
|
93
|
+
});
|
|
94
|
+
const result = await loader.load();
|
|
95
|
+
result.config = result.config || inlineConfig;
|
|
96
|
+
return result;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const multilineCommentsRE = /\/\*(.|[\r\n])*?\*\//gm;
|
|
100
|
+
const singlelineCommentsRE = /\/\/.*/g;
|
|
101
|
+
|
|
102
|
+
function kirbyupAutoImportPlugin() {
|
|
103
|
+
let config;
|
|
104
|
+
return {
|
|
105
|
+
name: "kirbyup:auto-import",
|
|
106
|
+
configResolved(resolvedConfig) {
|
|
107
|
+
config = resolvedConfig;
|
|
108
|
+
},
|
|
109
|
+
async transform(code) {
|
|
110
|
+
if (code.includes("kirbyup.import")) {
|
|
111
|
+
const kirbyupImportRE = /\bkirbyup\.import\s*\(\s*('[^']+'|"[^"]+"|`[^`]+`)\s*\)/g;
|
|
112
|
+
const noCommentsCode = code.replace(multilineCommentsRE, (m) => " ".repeat(m.length)).replace(singlelineCommentsRE, (m) => " ".repeat(m.length));
|
|
113
|
+
let s = null;
|
|
114
|
+
let match;
|
|
115
|
+
while (match = kirbyupImportRE.exec(noCommentsCode)) {
|
|
116
|
+
const { 0: exp, 1: rawPath, index } = match;
|
|
117
|
+
if (!s)
|
|
118
|
+
s = new MagicString(code);
|
|
119
|
+
s.overwrite(
|
|
120
|
+
index,
|
|
121
|
+
index + exp.length,
|
|
122
|
+
`kirbyup.import(import.meta.glob(${rawPath}, { eager: true }))`
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
if (s) {
|
|
126
|
+
return {
|
|
127
|
+
code: s.toString(),
|
|
128
|
+
map: config.build.sourcemap ? s.generateMap({ hires: true }) : null
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const __HMR_CODE__ = `
|
|
138
|
+
if (typeof __VUE_HMR_RUNTIME__ !== 'undefined' && import.meta.hot) {
|
|
139
|
+
__VUE_HMR_RUNTIME__.reload = () => import.meta.hot.invalidate();
|
|
140
|
+
}`.trim();
|
|
141
|
+
const getViteProxyModule = (entryUrl, pm) => `
|
|
142
|
+
try {
|
|
143
|
+
await import("${entryUrl}");
|
|
144
|
+
} catch (err) {
|
|
145
|
+
console.error(
|
|
146
|
+
"[kirbyup] Couldn't connect to the development server. Run \`${pm} run serve\` to start Vite or build the plugin with \`${pm} run build\` so Kirby uses the production version."
|
|
147
|
+
);
|
|
148
|
+
throw err;
|
|
149
|
+
}`.trim();
|
|
150
|
+
function kirbyupHmrPlugin(options) {
|
|
151
|
+
let config;
|
|
152
|
+
let entry;
|
|
153
|
+
let indexMjs;
|
|
154
|
+
return {
|
|
155
|
+
name: "kirbyup:hmr",
|
|
156
|
+
apply: "serve",
|
|
157
|
+
configResolved(resolvedConfig) {
|
|
158
|
+
config = resolvedConfig;
|
|
159
|
+
entry = resolve(config.root, options.entry);
|
|
160
|
+
indexMjs = resolve(config.root, options.outDir || "", "index.dev.mjs");
|
|
161
|
+
},
|
|
162
|
+
transform(code, id) {
|
|
163
|
+
const { query } = parseVueRequest(id);
|
|
164
|
+
if (query.raw)
|
|
165
|
+
return;
|
|
166
|
+
if ((typeof id !== "string" || /\0/.test(id)) && !query.vue)
|
|
167
|
+
return;
|
|
168
|
+
if (/\.vue$/.test(id) && !query.vue)
|
|
169
|
+
return `${code};${__HMR_CODE__}`;
|
|
170
|
+
},
|
|
171
|
+
configureServer(server) {
|
|
172
|
+
if (!server.httpServer)
|
|
173
|
+
return;
|
|
174
|
+
server.httpServer.once("listening", async () => {
|
|
175
|
+
const entryPath = entry.replace(`${config.root}/`, "");
|
|
176
|
+
const { address, family, port } = server.httpServer.address();
|
|
177
|
+
const hostname = family === "IPv6" ? `[${address}]` : address;
|
|
178
|
+
const baseUrl = `http://${hostname}:${port}${config.base}`;
|
|
179
|
+
const entryUrl = new URL(entryPath, baseUrl).href;
|
|
180
|
+
const pm = await detect().catch(() => "npm");
|
|
181
|
+
await writeFile(indexMjs, getViteProxyModule(entryUrl, pm));
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
closeBundle() {
|
|
185
|
+
if (existsSync$1(indexMjs))
|
|
186
|
+
unlinkSync(indexMjs);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function kirbyupBuildCleanupPlugin(options) {
|
|
192
|
+
let config;
|
|
193
|
+
let indexMjs;
|
|
194
|
+
return {
|
|
195
|
+
name: "kirbyup:build-cleanup",
|
|
196
|
+
configResolved(resolvedConfig) {
|
|
197
|
+
config = resolvedConfig;
|
|
198
|
+
indexMjs = resolve(config.root, options.outDir, "index.dev.mjs");
|
|
199
|
+
},
|
|
200
|
+
writeBundle() {
|
|
201
|
+
if (existsSync$1(indexMjs))
|
|
202
|
+
unlinkSync(indexMjs);
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
let resolvedKirbyupConfig;
|
|
208
|
+
let resolvedPostCssConfig;
|
|
209
|
+
function getViteConfig(command, options) {
|
|
210
|
+
const aliasDir = resolve(options.cwd, dirname(options.entry));
|
|
211
|
+
const { alias = {}, extendViteConfig = {} } = resolvedKirbyupConfig;
|
|
212
|
+
const baseConfig = {
|
|
213
|
+
resolve: {
|
|
214
|
+
alias: { "~/": `${aliasDir}/`, "@/": `${aliasDir}/`, ...alias }
|
|
215
|
+
},
|
|
216
|
+
plugins: [
|
|
217
|
+
vuePlugin({ compiler: vueCompilerSfc }),
|
|
218
|
+
kirbyupAutoImportPlugin()
|
|
219
|
+
],
|
|
220
|
+
css: { postcss: resolvedPostCssConfig },
|
|
221
|
+
envPrefix: ["VITE_", "KIRBYUP_"],
|
|
222
|
+
logLevel: "warn"
|
|
223
|
+
};
|
|
224
|
+
if (command === "serve") {
|
|
225
|
+
const { port, watch } = options;
|
|
226
|
+
const serveConfig = mergeConfig(baseConfig, {
|
|
227
|
+
plugins: [
|
|
228
|
+
kirbyupHmrPlugin(options),
|
|
229
|
+
watch && fullReloadPlugin(watch)
|
|
230
|
+
],
|
|
231
|
+
build: { rollupOptions: { input: resolve(options.cwd, options.entry) } },
|
|
232
|
+
server: { port, strictPort: true, origin: `http://localhost:${port}` }
|
|
233
|
+
});
|
|
234
|
+
return mergeConfig(serveConfig, extendViteConfig);
|
|
235
|
+
}
|
|
236
|
+
const mode = options.watch ? "development" : "production";
|
|
237
|
+
const buildConfig = mergeConfig(baseConfig, {
|
|
238
|
+
plugins: [kirbyupBuildCleanupPlugin(options)],
|
|
239
|
+
mode,
|
|
240
|
+
build: {
|
|
241
|
+
lib: {
|
|
242
|
+
entry: resolve(options.cwd, options.entry),
|
|
243
|
+
formats: ["iife"],
|
|
244
|
+
name: "kirbyupExport",
|
|
245
|
+
fileName: () => "index.js"
|
|
246
|
+
},
|
|
247
|
+
minify: mode === "production",
|
|
248
|
+
outDir: options.outDir,
|
|
249
|
+
emptyOutDir: false,
|
|
250
|
+
rollupOptions: {
|
|
251
|
+
external: ["vue"],
|
|
252
|
+
output: {
|
|
253
|
+
assetFileNames: "index.[ext]",
|
|
254
|
+
globals: { vue: "Vue" }
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
return mergeConfig(buildConfig, extendViteConfig);
|
|
260
|
+
}
|
|
261
|
+
async function generate(options) {
|
|
262
|
+
const config = getViteConfig("build", options);
|
|
263
|
+
let result;
|
|
264
|
+
try {
|
|
265
|
+
result = await build$1(config);
|
|
266
|
+
} catch (error) {
|
|
267
|
+
consola.error("Build failed");
|
|
268
|
+
if (config.mode === "production")
|
|
269
|
+
throw error;
|
|
270
|
+
}
|
|
271
|
+
if (result && !options.watch) {
|
|
272
|
+
const { output } = toArray(result)[0];
|
|
273
|
+
let longest = 0;
|
|
274
|
+
for (const file in output) {
|
|
275
|
+
const l = output[file].fileName.length;
|
|
276
|
+
if (l > longest)
|
|
277
|
+
longest = l;
|
|
278
|
+
}
|
|
279
|
+
for (const {
|
|
280
|
+
fileName,
|
|
281
|
+
type,
|
|
282
|
+
code
|
|
283
|
+
} of output) {
|
|
284
|
+
await printFileInfo(
|
|
285
|
+
options.cwd,
|
|
286
|
+
options.outDir,
|
|
287
|
+
fileName,
|
|
288
|
+
code ?? await readFile(resolve(options.outDir, fileName), "utf8"),
|
|
289
|
+
type,
|
|
290
|
+
longest
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return result;
|
|
295
|
+
}
|
|
296
|
+
async function build(options) {
|
|
297
|
+
ensureEntry(options);
|
|
298
|
+
const { cwd } = options;
|
|
299
|
+
const { config, sources: configSources } = await loadConfig(cwd);
|
|
300
|
+
resolvedKirbyupConfig = config;
|
|
301
|
+
try {
|
|
302
|
+
resolvedPostCssConfig = await postcssrc({});
|
|
303
|
+
} catch (err) {
|
|
304
|
+
if (!/No PostCSS Config found/.test(err.message))
|
|
305
|
+
throw err;
|
|
306
|
+
resolvedPostCssConfig = {
|
|
307
|
+
plugins: [postcssLogical(), postcssDirPseudoClass()]
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
{
|
|
311
|
+
consola.log(colors.green(`${name} v${version}`));
|
|
312
|
+
consola.start(`Building ${colors.cyan(options.entry)}`);
|
|
313
|
+
}
|
|
314
|
+
if (options.watch)
|
|
315
|
+
consola.info("Running in watch mode");
|
|
316
|
+
const debouncedBuild = debounce(async () => {
|
|
317
|
+
generate(options).catch(handleError);
|
|
318
|
+
}, 100);
|
|
319
|
+
const startWatcher = async () => {
|
|
320
|
+
if (!options.watch)
|
|
321
|
+
return;
|
|
322
|
+
const { watch } = await import('chokidar');
|
|
323
|
+
const ignored = [
|
|
324
|
+
"**/{.git,node_modules}/**",
|
|
325
|
+
"index.{css,js}"
|
|
326
|
+
];
|
|
327
|
+
const watchPaths = typeof options.watch === "boolean" ? dirname(options.entry) : Array.isArray(options.watch) ? options.watch.filter(
|
|
328
|
+
(path) => typeof path === "string"
|
|
329
|
+
) : options.watch;
|
|
330
|
+
consola.info(
|
|
331
|
+
`Watching for changes in ${toArray(watchPaths).map((i) => colors.cyan(i)).join(", ")}`
|
|
332
|
+
);
|
|
333
|
+
const watcher = watch(watchPaths, {
|
|
334
|
+
ignoreInitial: true,
|
|
335
|
+
ignorePermissionErrors: true,
|
|
336
|
+
ignored,
|
|
337
|
+
cwd
|
|
338
|
+
});
|
|
339
|
+
if (configSources.length)
|
|
340
|
+
watcher.add(configSources);
|
|
341
|
+
watcher.on("all", async (type, file) => {
|
|
342
|
+
if (configSources.includes(file)) {
|
|
343
|
+
resolvedKirbyupConfig = (await loadConfig()).config;
|
|
344
|
+
consola.info(
|
|
345
|
+
`${colors.cyan(basename(file))} changed, setting new config`
|
|
346
|
+
);
|
|
347
|
+
} else {
|
|
348
|
+
consola.log(`${colors.green(type)} ${colors.white(colors.dim(file))}`);
|
|
349
|
+
}
|
|
350
|
+
debouncedBuild();
|
|
351
|
+
});
|
|
352
|
+
};
|
|
353
|
+
await generate(options);
|
|
354
|
+
consola.success("Build successful");
|
|
355
|
+
startWatcher();
|
|
356
|
+
}
|
|
357
|
+
async function serve(options) {
|
|
358
|
+
ensureEntry(options);
|
|
359
|
+
const { cwd } = options;
|
|
360
|
+
const { config } = await loadConfig(cwd);
|
|
361
|
+
resolvedKirbyupConfig = config;
|
|
362
|
+
try {
|
|
363
|
+
resolvedPostCssConfig = await postcssrc({});
|
|
364
|
+
} catch (err) {
|
|
365
|
+
if (!/No PostCSS Config found/.test(err.message))
|
|
366
|
+
throw err;
|
|
367
|
+
resolvedPostCssConfig = {
|
|
368
|
+
plugins: [postcssLogical(), postcssDirPseudoClass()]
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
{
|
|
372
|
+
consola.log(colors.green(`${name} v${version}`));
|
|
373
|
+
consola.info("Starting development server...");
|
|
374
|
+
}
|
|
375
|
+
const server = await createServer(getViteConfig("serve", options));
|
|
376
|
+
await server.listen();
|
|
377
|
+
consola.success(`Server is listening on :${server.config.server.port}`);
|
|
378
|
+
return server;
|
|
379
|
+
}
|
|
380
|
+
function ensureEntry(options) {
|
|
381
|
+
if (!existsSync$1(resolve(options.cwd, options.entry)))
|
|
382
|
+
throw new PrettyError(`Cannot find "${options.entry}"`);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export { build as b, handleError as h, name as n, serve as s, version as v };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kirbyup",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"packageManager": "pnpm@7.
|
|
3
|
+
"version": "2.0.2-beta.0",
|
|
4
|
+
"packageManager": "pnpm@7.12.1",
|
|
5
5
|
"description": "Zero-config bundler for Kirby Panel plugins",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Johann Schopplich",
|
|
@@ -70,44 +70,39 @@
|
|
|
70
70
|
"prepare": "simple-git-hooks"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
+
"@vitejs/plugin-vue2": "^2.0.0",
|
|
73
74
|
"@vue/compiler-sfc": "^2.7.10",
|
|
74
|
-
"cac": "^6.7.
|
|
75
|
+
"cac": "^6.7.14",
|
|
75
76
|
"chokidar": "^3.5.3",
|
|
76
77
|
"consola": "^2.15.3",
|
|
77
78
|
"detect-package-manager": "^2.0.1",
|
|
78
|
-
"magic-string": "^0.26.
|
|
79
|
-
"pathe": "^0.3.
|
|
79
|
+
"magic-string": "^0.26.5",
|
|
80
|
+
"pathe": "^0.3.8",
|
|
80
81
|
"perfect-debounce": "^0.1.3",
|
|
81
82
|
"picocolors": "^1.0.0",
|
|
82
|
-
"postcss": "^8.4.
|
|
83
|
+
"postcss": "^8.4.17",
|
|
83
84
|
"postcss-dir-pseudo-class": "^6.0.5",
|
|
84
85
|
"postcss-load-config": "^4.0.1",
|
|
85
86
|
"postcss-logical": "^5.0.4",
|
|
86
|
-
"sass": "^1.
|
|
87
|
-
"unconfig": "^0.3.
|
|
88
|
-
"vite": "^3.
|
|
87
|
+
"sass": "^1.55.0",
|
|
88
|
+
"unconfig": "^0.3.6",
|
|
89
|
+
"vite": "^3.1.4",
|
|
89
90
|
"vite-plugin-full-reload": "^1.0.4",
|
|
90
91
|
"vue": "^2.7.10"
|
|
91
92
|
},
|
|
92
93
|
"devDependencies": {
|
|
93
|
-
"@antfu/eslint-config": "^0.
|
|
94
|
+
"@antfu/eslint-config": "^0.27.0",
|
|
94
95
|
"@types/fs-extra": "^9.0.13",
|
|
95
|
-
"@types/node": "^18.7.
|
|
96
|
+
"@types/node": "^18.7.23",
|
|
96
97
|
"@types/prompts": "^2.4.0",
|
|
97
|
-
"@vitejs/plugin-vue2": "^1.1.2",
|
|
98
98
|
"bumpp": "^8.2.1",
|
|
99
|
-
"eslint": "^8.
|
|
100
|
-
"fast-glob": "^3.2.
|
|
99
|
+
"eslint": "^8.24.0",
|
|
100
|
+
"fast-glob": "^3.2.12",
|
|
101
101
|
"fs-extra": "^10.1.0",
|
|
102
102
|
"simple-git-hooks": "^2.8.0",
|
|
103
|
-
"typescript": "^4.
|
|
104
|
-
"unbuild": "^0.8.
|
|
105
|
-
"vitest": "^0.
|
|
106
|
-
},
|
|
107
|
-
"pnpm": {
|
|
108
|
-
"patchedDependencies": {
|
|
109
|
-
"@vitejs/plugin-vue2@1.1.2": "patches/@vitejs__plugin-vue2@1.1.2.patch"
|
|
110
|
-
}
|
|
103
|
+
"typescript": "^4.8.4",
|
|
104
|
+
"unbuild": "^0.8.11",
|
|
105
|
+
"vitest": "^0.23.4"
|
|
111
106
|
},
|
|
112
107
|
"simple-git-hooks": {
|
|
113
108
|
"commit-msg": "node scripts/verifyCommit.mjs $1"
|