@ubean/cli 0.6.4 → 0.6.6
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.js +10 -10
- package/package.json +11 -11
package/dist/cli.js
CHANGED
|
@@ -381,13 +381,11 @@ const buildCommand = {
|
|
|
381
381
|
},
|
|
382
382
|
minify: {
|
|
383
383
|
type: "boolean",
|
|
384
|
-
description: "Minify output"
|
|
385
|
-
default: true
|
|
384
|
+
description: "Minify output (overrides ubean.config.ts build.minify)"
|
|
386
385
|
},
|
|
387
386
|
sourcemap: {
|
|
388
387
|
type: "boolean",
|
|
389
|
-
description: "Generate sourcemaps"
|
|
390
|
-
default: false
|
|
388
|
+
description: "Generate sourcemaps (overrides ubean.config.ts build.sourcemap)"
|
|
391
389
|
},
|
|
392
390
|
prerender: {
|
|
393
391
|
type: "boolean",
|
|
@@ -590,7 +588,8 @@ async function createDevViteServer(options) {
|
|
|
590
588
|
server: {
|
|
591
589
|
host,
|
|
592
590
|
port: options.port,
|
|
593
|
-
strictPort
|
|
591
|
+
strictPort,
|
|
592
|
+
open: options.open ?? false
|
|
594
593
|
},
|
|
595
594
|
appType: "custom",
|
|
596
595
|
plugins,
|
|
@@ -716,8 +715,7 @@ const devCommand = {
|
|
|
716
715
|
},
|
|
717
716
|
strictPort: {
|
|
718
717
|
type: "boolean",
|
|
719
|
-
description: "Exit if the port is already in use, instead of auto-incrementing"
|
|
720
|
-
default: false
|
|
718
|
+
description: "Exit if the port is already in use, instead of auto-incrementing"
|
|
721
719
|
},
|
|
722
720
|
verbose: {
|
|
723
721
|
type: "boolean",
|
|
@@ -763,6 +761,8 @@ const devCommand = {
|
|
|
763
761
|
if (logging.lifecycle) logger$6.info("Starting ubean dev server...");
|
|
764
762
|
const port = Number(args.port) || config.dev.port;
|
|
765
763
|
const host = args.host || config.dev.host;
|
|
764
|
+
const strictPort = args.strictPort ?? config.dev.strictPort;
|
|
765
|
+
const open = args.open ?? config.dev.open;
|
|
766
766
|
const preset = resolvePresetByName(config.build.preset);
|
|
767
767
|
if (logging.scan) {
|
|
768
768
|
logger$6.info(`Root directory: ${config.rootDir}`);
|
|
@@ -808,7 +808,8 @@ const devCommand = {
|
|
|
808
808
|
cwd,
|
|
809
809
|
port,
|
|
810
810
|
host,
|
|
811
|
-
strictPort
|
|
811
|
+
strictPort,
|
|
812
|
+
open,
|
|
812
813
|
config,
|
|
813
814
|
onScan,
|
|
814
815
|
devtools: {
|
|
@@ -1527,8 +1528,7 @@ const previewCommand = {
|
|
|
1527
1528
|
},
|
|
1528
1529
|
strictPort: {
|
|
1529
1530
|
type: "boolean",
|
|
1530
|
-
description: "Exit if the port is already in use, instead of auto-incrementing"
|
|
1531
|
-
default: false
|
|
1531
|
+
description: "Exit if the port is already in use, instead of auto-incrementing"
|
|
1532
1532
|
},
|
|
1533
1533
|
cwd: {
|
|
1534
1534
|
type: "string",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ubean/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "CLI for ubean (ubean-next binary: dev, build, prepare, init, preview, page, env, config, devtools, api/layout/middleware/cron/plugin scaffolds) plus the Vite dev server runner",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ubean-next": "./bin/ubean-next.mjs"
|
|
@@ -24,27 +24,27 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ubean/build": "0.6.
|
|
28
|
-
"@ubean/config": "0.6.
|
|
29
|
-
"@ubean/i18n": "0.6.
|
|
30
|
-
"@ubean/islands": "0.6.
|
|
31
|
-
"@ubean/preset": "0.6.
|
|
32
|
-
"@ubean/scan": "0.6.
|
|
33
|
-
"@ubean/shared": "0.6.
|
|
27
|
+
"@ubean/build": "0.6.6",
|
|
28
|
+
"@ubean/config": "0.6.6",
|
|
29
|
+
"@ubean/i18n": "0.6.6",
|
|
30
|
+
"@ubean/islands": "0.6.6",
|
|
31
|
+
"@ubean/preset": "0.6.6",
|
|
32
|
+
"@ubean/scan": "0.6.6",
|
|
33
|
+
"@ubean/shared": "0.6.6",
|
|
34
34
|
"citty": "^0.2.2",
|
|
35
35
|
"kolorist": "^1.8.0",
|
|
36
36
|
"pathe": "^2.0.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^26.6.5",
|
|
40
|
-
"env-runner": "0.3.
|
|
40
|
+
"env-runner": "0.3.5",
|
|
41
41
|
"typescript": "npm:typescript-native-bridge@latest",
|
|
42
42
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.3.0",
|
|
43
43
|
"vite-plus": "1.3.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@ubean/content": "0.6.
|
|
47
|
-
"@ubean/devtools": "0.6.
|
|
46
|
+
"@ubean/content": "0.6.6",
|
|
47
|
+
"@ubean/devtools": "0.6.6",
|
|
48
48
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
49
49
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.3.0"
|
|
50
50
|
},
|