kirbyup 4.0.0-alpha.1 → 4.0.0-alpha.2
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/{cli.mjs → bin/kirbyup.mjs} +1 -1
- package/dist/node/cli.d.mts +1 -1
- package/dist/node/cli.d.ts +1 -1
- package/dist/node/cli.mjs +15 -14
- package/dist/node/index.mjs +13 -10
- package/dist/shared/kirbyup.ij1WTPTc.mjs +888 -0
- package/package.json +44 -45
- package/dist/shared/kirbyup.-18Bpk2m.mjs +0 -485
package/dist/node/cli.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export { };
|
package/dist/node/cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export { };
|
package/dist/node/cli.mjs
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
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.ij1WTPTc.mjs';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
|
-
import '
|
|
5
|
+
import '@vitejs/plugin-vue';
|
|
6
|
+
import '@vitejs/plugin-vue-jsx';
|
|
6
7
|
import 'consola';
|
|
7
8
|
import 'consola/utils';
|
|
9
|
+
import 'pathe';
|
|
8
10
|
import 'perfect-debounce';
|
|
9
11
|
import 'vite';
|
|
10
|
-
import 'vue/compiler-sfc';
|
|
11
|
-
import '@vitejs/plugin-vue';
|
|
12
|
-
import '@vitejs/plugin-vue-jsx';
|
|
13
12
|
import 'vite-plugin-full-reload';
|
|
14
|
-
import '
|
|
15
|
-
import 'node:util';
|
|
16
|
-
import 'node:buffer';
|
|
13
|
+
import 'vue/compiler-sfc';
|
|
17
14
|
import 'c12';
|
|
18
15
|
import 'postcss-load-config';
|
|
19
|
-
import 'postcss-logical';
|
|
20
|
-
import 'postcss-dir-pseudo-class';
|
|
21
16
|
import 'node:module';
|
|
17
|
+
import 'child_process';
|
|
18
|
+
import 'path';
|
|
19
|
+
import 'process';
|
|
20
|
+
import 'stream';
|
|
21
|
+
import 'readline';
|
|
22
|
+
import 'node:buffer';
|
|
23
|
+
import 'node:util';
|
|
24
|
+
import 'node:zlib';
|
|
22
25
|
|
|
23
26
|
async function startCli(cwd = process.cwd(), argv = process.argv) {
|
|
24
27
|
const cli = cac(name);
|
|
@@ -27,13 +30,11 @@ async function startCli(cwd = process.cwd(), argv = process.argv) {
|
|
|
27
30
|
"Watch for file changes. If no path is specified, the folder of the input file will be watched",
|
|
28
31
|
{ default: false }
|
|
29
32
|
).example("kirbyup src/index.js").example("kirbyup src/index.js --out-dir ~/kirby-site/site/plugins/demo").example("kirbyup src/index.js --watch src/**/*.{js,css} --watch assets/*\n").action(async (file, options) => {
|
|
30
|
-
|
|
31
|
-
process.env.NODE_ENV = options.watch ? "development" : "production";
|
|
33
|
+
process.env.NODE_ENV ||= options.watch ? "development" : "production";
|
|
32
34
|
await build({ cwd, entry: file, ...options });
|
|
33
35
|
});
|
|
34
36
|
cli.command("serve <file>", "Start development server with live reload").option("--no-watch", "Don't watch .php files for changes", { default: "\0" }).option("-w, --watch <path>", "Watch additional files", { default: "./**/*.php" }).option("-p, --port <number>", "Port for the development server", { default: 5177 }).option("-d, --out-dir <dir>", "Output directory").example("kirbyup serve src/index.js").example("kirbyup serve src/index.js --no-watch --port 3003").example("kirbyup serve src/index.js --watch snippets/*.php --watch templates/*.php\n").action(async (file, options) => {
|
|
35
|
-
|
|
36
|
-
process.env.NODE_ENV = "development";
|
|
37
|
+
process.env.NODE_ENV ||= "development";
|
|
37
38
|
const server = await serve({ cwd, entry: file, ...options });
|
|
38
39
|
const exitProcess = async () => {
|
|
39
40
|
try {
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import 'node:fs';
|
|
2
2
|
import 'node:fs/promises';
|
|
3
|
-
import '
|
|
3
|
+
import '@vitejs/plugin-vue';
|
|
4
|
+
import '@vitejs/plugin-vue-jsx';
|
|
4
5
|
import 'consola';
|
|
5
6
|
import 'consola/utils';
|
|
7
|
+
import 'pathe';
|
|
6
8
|
import 'perfect-debounce';
|
|
7
9
|
import 'vite';
|
|
8
|
-
import 'vue/compiler-sfc';
|
|
9
|
-
import '@vitejs/plugin-vue';
|
|
10
|
-
import '@vitejs/plugin-vue-jsx';
|
|
11
10
|
import 'vite-plugin-full-reload';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import 'node:util';
|
|
15
|
-
import 'node:buffer';
|
|
11
|
+
import 'vue/compiler-sfc';
|
|
12
|
+
export { b as build, s as serve } from '../shared/kirbyup.ij1WTPTc.mjs';
|
|
16
13
|
import 'c12';
|
|
17
14
|
import 'postcss-load-config';
|
|
18
|
-
import 'postcss-logical';
|
|
19
|
-
import 'postcss-dir-pseudo-class';
|
|
20
15
|
import 'node:module';
|
|
16
|
+
import 'child_process';
|
|
17
|
+
import 'path';
|
|
18
|
+
import 'process';
|
|
19
|
+
import 'stream';
|
|
20
|
+
import 'readline';
|
|
21
|
+
import 'node:buffer';
|
|
22
|
+
import 'node:util';
|
|
23
|
+
import 'node:zlib';
|