@ubean/cli 0.2.1 → 0.2.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/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as createFsOps, S as renderTemplate, a as scaffold, c as scaffoldStarterTemplate, i as recoverScaffold, l as scaffoldUnifyTemplate, n as listScaffoldableFiles, o as scaffoldBlogTemplate, r as pageCommand, s as scaffoldMinimalTemplate, t as deleteScaffold } from "./page-D-LZUcPP.js";
1
+ import { E as createFsOps, S as renderTemplate, a as scaffold, c as scaffoldStarterTemplate, i as recoverScaffold, l as scaffoldUnifyTemplate, n as listScaffoldableFiles, o as scaffoldBlogTemplate, r as pageCommand, s as scaffoldMinimalTemplate, t as deleteScaffold } from "./page-DU64g_Lv.js";
2
2
  import { existsSync, mkdirSync, readFileSync } from "node:fs";
3
3
  import { extname, normalize } from "node:path";
4
4
  import { getLogger } from "@ubean/logger";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { C as toCamelCase, E as createFsOps, S as renderTemplate, T as toPascalCase, _ as renderCronTemplate, a as scaffold, b as renderPageTemplate, d as CRON_TEMPLATE, f as LAYOUT_TEMPLATE, g as renderApiTemplate, h as PLUGIN_TEMPLATE, i as recoverScaffold, m as PAGE_TEMPLATE, n as listScaffoldableFiles, p as MIDDLEWARE_TEMPLATE, t as deleteScaffold, u as API_TEMPLATE, v as renderLayoutTemplate, w as toKebabCase, x as renderPluginTemplate, y as renderMiddlewareTemplate } from "./page-D-LZUcPP.js";
1
+ import { C as toCamelCase, E as createFsOps, S as renderTemplate, T as toPascalCase, _ as renderCronTemplate, a as scaffold, b as renderPageTemplate, d as CRON_TEMPLATE, f as LAYOUT_TEMPLATE, g as renderApiTemplate, h as PLUGIN_TEMPLATE, i as recoverScaffold, m as PAGE_TEMPLATE, n as listScaffoldableFiles, p as MIDDLEWARE_TEMPLATE, t as deleteScaffold, u as API_TEMPLATE, v as renderLayoutTemplate, w as toKebabCase, x as renderPluginTemplate, y as renderMiddlewareTemplate } from "./page-DU64g_Lv.js";
2
2
  export { API_TEMPLATE, CRON_TEMPLATE, LAYOUT_TEMPLATE, MIDDLEWARE_TEMPLATE, PAGE_TEMPLATE, PLUGIN_TEMPLATE, createFsOps, deleteScaffold, listScaffoldableFiles, recoverScaffold, renderApiTemplate, renderCronTemplate, renderLayoutTemplate, renderMiddlewareTemplate, renderPageTemplate, renderPluginTemplate, renderTemplate, scaffold, toCamelCase, toKebabCase, toPascalCase };
@@ -990,71 +990,50 @@ const ZH_LOCALE = `{
990
990
  }
991
991
  `;
992
992
  /** ubean logo SVG — 所有模板共用 */
993
- const FAVICON_SVG = `<svg width="100%" height="100%" version="1.1" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg"
994
- xmlns:xlink="http://www.w3.org/1999/xlink">
993
+ const FAVICON_SVG = `<svg width="100%" height="100%" version="1.1" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
995
994
  <g>
996
- <path
997
- d="M 200,866 C 100,866 50,779.4 100,692.8 L 200,519.6 C 220,485 240,490 265,499.6 S 360,542.68 360,542.68 C 480.5,601 498,642.5 500,720 C 498,811 462,856 420,866"
998
- fill="url(#LinearGradient)" fill-rule="nonzero" opacity="1" stroke="none" />
999
- <path
1000
- d="M 420,866 C 455,861 478,846 500,827 C 614,696 615,597 500,517 C 394,444 333,374 380,207.82 L 260,415.67 C 240.22,450 254.37,465.1 275.28,481.79 S 360,542.68 360,542.68 C 480.5,601 498,642.5 500,720 C 498,811 462,856 420,866"
1001
- fill="url(#LinearGradient_2)" fill-rule="nonzero" opacity="1" stroke="none" />
1002
- <path d="M 500,517 C 394,444 333,374 380,207.82 L 400,173.2 C 367,295 421,350 603,428 C 572,440 524,474 500,517"
1003
- fill="url(#LinearGradient_3)" fill-rule="nonzero" opacity="1" stroke="none" />
1004
- <path d="M 500,827 L 660,660 C 738,589 710,482 603,428 C 572,440 524,474 500,517 C 615,597 614,696 500,827"
1005
- fill="url(#LinearGradient_4)" fill-rule="nonzero" opacity="1" stroke="none" />
1006
- <path d="M 400,173.2 C 367,295 421,350 603,428 C 690,389, 750,445 788,500 L 600,173.2 C 550,86.6 450,86.6 400,173.2"
1007
- fill="url(#LinearGradient_5)" fill-rule="nonzero" opacity="1" stroke="none" />
1008
- <path
1009
- d="M 500,827 L 660,660 C 738,589 710,482 603,428 C 690,389, 750,445 788,500 C 816,554 797,606 750,640 L 500,827"
1010
- fill="url(#LinearGradient_6)" fill-rule="nonzero" opacity="1" stroke="none" />
1011
- <path
1012
- d="M 788,500 C 816,554 797,606 750,640 L 500,827 C 497,851 513,862 540,866 L 800,866 C 900,866 950,779.4 900,692.8 L 788,500"
1013
- fill="url(#LinearGradient_7)" fill-rule="nonzero" opacity="1" stroke="none" />
1014
-
1015
- <!--左下角图案-->
995
+ <path d="M 200,866 C 100,866 50,779.4 100,692.8 L 200,519.6 C 220,485 240,490 265,499.6 S 360,542.68 360,542.68 C 480.5,601 498,642.5 500,720 C 498,811 462,856 420,866" fill="url(#LinearGradient)" fill-rule="nonzero" opacity="1" stroke="none"/>
996
+ <path d="M 420,866 C 455,861 478,846 500,827 C 614,696 615,597 500,517 C 394,444 333,374 380,207.82 L 260,415.67 C 240.22,450 254.37,465.1 275.28,481.79 S 360,542.68 360,542.68 C 480.5,601 498,642.5 500,720 C 498,811 462,856 420,866" fill="url(#LinearGradient_2)" fill-rule="nonzero" opacity="1" stroke="none"/>
997
+ <path d="M 500,517 C 394,444 333,374 380,207.82 L 400,173.2 C 367,295 421,350 603,428 C 572,440 524,474 500,517" fill="url(#LinearGradient_3)" fill-rule="nonzero" opacity="1" stroke="none"/>
998
+ <path d="M 500,827 L 660,660 C 738,589 710,482 603,428 C 572,440 524,474 500,517 C 615,597 614,696 500,827" fill="url(#LinearGradient_4)" fill-rule="nonzero" opacity="1" stroke="none"/>
999
+ <path d="M 400,173.2 C 367,295 421,350 603,428 C 690,389, 750,445 788,500 L 600,173.2 C 550,86.6 450,86.6 400,173.2" fill="url(#LinearGradient_5)" fill-rule="nonzero" opacity="1" stroke="none"/>
1000
+ <path d="M 500,827 L 660,660 C 738,589 710,482 603,428 C 690,389, 750,445 788,500 C 816,554 797,606 750,640 L 500,827" fill="url(#LinearGradient_6)" fill-rule="nonzero" opacity="1" stroke="none"/>
1001
+ <path d="M 788,500 C 816,554 797,606 750,640 L 500,827 C 497,851 513,862 540,866 L 800,866 C 900,866 950,779.4 900,692.8 L 788,500" fill="url(#LinearGradient_7)" fill-rule="nonzero" opacity="1" stroke="none"/>
1002
+ </g>
1003
+ <!--左下角图案-->
1016
1004
  <g transform="translate(130, 675) scale(7)">
1017
1005
  <g viewBox="0 0 24 24">
1018
- <path fill="#ffffff" d="M4.528 5.118a1 1 0 0 1 1.027.05l5.554 3.703A2 2 0 0 1 12 10.535V21a1 1 0 0 1-1.555.832l-5.554-3.703A2 2 0 0 1 4 16.465V6a1 1 0 0 1 .528-.882m4-2a1 1 0 0 1 1.027.05l5.554 3.703A2 2 0 0 1 16 8.535V19a1 1 0 0 1-1.555.832l-.945-.63v-8.667a3.5 3.5 0 0 0-1.559-2.912L8 4.995V4a1 1 0 0 1 .528-.882m4-2a1 1 0 0 1 1.027.05l5.554 3.703A2 2 0 0 1 20 6.535V17a1 1 0 0 1-1.555.832l-.945-.63V8.534a3.5 3.5 0 0 0-1.559-2.912L12 2.995V2a1 1 0 0 1 .528-.882" />
1019
-
1006
+ <path fill="#ffffff" d="M4.528 5.118a1 1 0 0 1 1.027.05l5.554 3.703A2 2 0 0 1 12 10.535V21a1 1 0 0 1-1.555.832l-5.554-3.703A2 2 0 0 1 4 16.465V6a1 1 0 0 1 .528-.882m4-2a1 1 0 0 1 1.027.05l5.554 3.703A2 2 0 0 1 16 8.535V19a1 1 0 0 1-1.555.832l-.945-.63v-8.667a3.5 3.5 0 0 0-1.559-2.912L8 4.995V4a1 1 0 0 1 .528-.882m4-2a1 1 0 0 1 1.027.05l5.554 3.703A2 2 0 0 1 20 6.535V17a1 1 0 0 1-1.555.832l-.945-.63V8.534a3.5 3.5 0 0 0-1.559-2.912L12 2.995V2a1 1 0 0 1 .528-.882"/>
1020
1007
  </g>
1021
1008
  </g>
1022
- </g>
1023
1009
  <defs>
1024
- <linearGradient gradientTransform="matrix(104.391 -73.3432 73.3432 104.391 277.441 710.122)"
1025
- gradientUnits="userSpaceOnUse" id="LinearGradient" x1="0" x2="1" y1="0" y2="0">
1026
- <stop offset="0" stop-color="#30a772" />
1027
- <stop offset="1" stop-color="#30e191" />
1010
+ <linearGradient gradientTransform="matrix(104.391 -73.3432 73.3432 104.391 277.441 710.122)" gradientUnits="userSpaceOnUse" id="LinearGradient" x1="0" x2="1" y1="0" y2="0">
1011
+ <stop offset="0" stop-color="#373ebf"/>
1012
+ <stop offset="1" stop-color="#5058e6"/>
1028
1013
  </linearGradient>
1029
- <linearGradient gradientTransform="matrix(-173.747 557.324 -557.324 -173.747 508.829 258.172)"
1030
- gradientUnits="userSpaceOnUse" id="LinearGradient_2" x1="0" x2="1" y1="0" y2="0">
1031
- <stop offset="0" stop-color="#98f6cc" />
1032
- <stop offset="1" stop-color="#4aefa5" />
1014
+ <linearGradient gradientTransform="matrix(-173.747 557.324 -557.324 -173.747 508.829 258.172)" gradientUnits="userSpaceOnUse" id="LinearGradient_2" x1="0" x2="1" y1="0" y2="0">
1015
+ <stop offset="0" stop-color="#c2d6ff"/>
1016
+ <stop offset="1" stop-color="#646cff"/>
1033
1017
  </linearGradient>
1034
- <linearGradient gradientTransform="matrix(157.951 295.666 -295.666 157.951 382.944 193.642)"
1035
- gradientUnits="userSpaceOnUse" id="LinearGradient_3" x1="0" x2="1" y1="0" y2="0">
1036
- <stop offset="0" stop-color="#30e191" />
1037
- <stop offset="1" stop-color="#30a772" />
1018
+ <linearGradient gradientTransform="matrix(157.951 295.666 -295.666 157.951 382.944 193.642)" gradientUnits="userSpaceOnUse" id="LinearGradient_3" x1="0" x2="1" y1="0" y2="0">
1019
+ <stop offset="0" stop-color="#5058e6"/>
1020
+ <stop offset="1" stop-color="#373ebf"/>
1038
1021
  </linearGradient>
1039
- <linearGradient gradientTransform="matrix(-44.3023 219.578 -219.578 -44.3023 619.69 469.652)"
1040
- gradientUnits="userSpaceOnUse" id="LinearGradient_4" x1="0" x2="1" y1="0" y2="0">
1041
- <stop offset="0" stop-color="#6ff3b7" />
1042
- <stop offset="1" stop-color="#30e191" />
1022
+ <linearGradient gradientTransform="matrix(-44.3023 219.578 -219.578 -44.3023 619.69 469.652)" gradientUnits="userSpaceOnUse" id="LinearGradient_4" x1="0" x2="1" y1="0" y2="0">
1023
+ <stop offset="0" stop-color="#91a7ff"/>
1024
+ <stop offset="1" stop-color="#5058e6"/>
1043
1025
  </linearGradient>
1044
- <linearGradient gradientTransform="matrix(125.52 334.256 -334.256 125.52 539.723 235.139)"
1045
- gradientUnits="userSpaceOnUse" id="LinearGradient_5" x1="0" x2="1" y1="0" y2="0">
1046
- <stop offset="0" stop-color="#4aefa5" />
1047
- <stop offset="1" stop-color="#98f6cc" />
1026
+ <linearGradient gradientTransform="matrix(125.52 334.256 -334.256 125.52 539.723 235.139)" gradientUnits="userSpaceOnUse" id="LinearGradient_5" x1="0" x2="1" y1="0" y2="0">
1027
+ <stop offset="0" stop-color="#646cff"/>
1028
+ <stop offset="1" stop-color="#c2d6ff"/>
1048
1029
  </linearGradient>
1049
- <linearGradient gradientTransform="matrix(-241.23 357.206 -357.206 -241.23 754.054 449.312)"
1050
- gradientUnits="userSpaceOnUse" id="LinearGradient_6" x1="0" x2="1" y1="0" y2="0">
1051
- <stop offset="0" stop-color="#98f6cc" />
1052
- <stop offset="1" stop-color="#4aefa5" />
1030
+ <linearGradient gradientTransform="matrix(-241.23 357.206 -357.206 -241.23 754.054 449.312)" gradientUnits="userSpaceOnUse" id="LinearGradient_6" x1="0" x2="1" y1="0" y2="0">
1031
+ <stop offset="0" stop-color="#c2d6ff"/>
1032
+ <stop offset="1" stop-color="#646cff"/>
1053
1033
  </linearGradient>
1054
- <linearGradient gradientTransform="matrix(125.978 210.065 -210.065 125.978 596.433 613.665)"
1055
- gradientUnits="userSpaceOnUse" id="LinearGradient_7" x1="0" x2="1" y1="0" y2="0">
1056
- <stop offset="0" stop-color="#30a772" />
1057
- <stop offset="1" stop-color="#30e191" />
1034
+ <linearGradient gradientTransform="matrix(125.978 210.065 -210.065 125.978 596.433 613.665)" gradientUnits="userSpaceOnUse" id="LinearGradient_7" x1="0" x2="1" y1="0" y2="0">
1035
+ <stop offset="0" stop-color="#373ebf"/>
1036
+ <stop offset="1" stop-color="#5058e6"/>
1058
1037
  </linearGradient>
1059
1038
  </defs>
1060
1039
  </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubean/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "CLI for ubean (ubean-next binary: dev, build, prepare, init, preview, page, env, config, devtools, api/layout/middleware/cron/plugin scaffolds)",
5
5
  "bin": {
6
6
  "ubean-next": "./bin/ubean-next.mjs"
@@ -27,17 +27,17 @@
27
27
  "citty": "^0.2.2",
28
28
  "kolorist": "^1.8.0",
29
29
  "pathe": "^2.0.3",
30
- "@ubean/app": "0.2.1",
31
- "@ubean/build": "0.2.1",
32
- "@ubean/codegen": "0.2.1",
33
- "@ubean/config": "0.2.1",
34
- "@ubean/dev-server": "0.2.1",
35
- "@ubean/logger": "0.2.1",
36
- "@ubean/preset": "0.2.1",
37
- "@ubean/prerender": "0.2.1",
38
- "@ubean/scan": "0.2.1",
39
- "@ubean/shared": "0.2.1",
40
- "@ubean/modules": "0.2.1"
30
+ "@ubean/build": "0.2.2",
31
+ "@ubean/app": "0.2.2",
32
+ "@ubean/codegen": "0.2.2",
33
+ "@ubean/config": "0.2.2",
34
+ "@ubean/dev-server": "0.2.2",
35
+ "@ubean/logger": "0.2.2",
36
+ "@ubean/modules": "0.2.2",
37
+ "@ubean/preset": "0.2.2",
38
+ "@ubean/prerender": "0.2.2",
39
+ "@ubean/shared": "0.2.2",
40
+ "@ubean/scan": "0.2.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^26.2.0",
@@ -45,7 +45,7 @@
45
45
  "vite-plus": "0.2.9"
46
46
  },
47
47
  "peerDependencies": {
48
- "@ubean/devtools": "0.2.1"
48
+ "@ubean/devtools": "0.2.2"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "@ubean/devtools": {