@galacean/cli 2.0.0-alpha.28 → 2.0.0-alpha.29
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.bundle.cjs +2 -14
- package/package.json +1 -1
package/dist/cli.bundle.cjs
CHANGED
|
@@ -30515,10 +30515,6 @@ var init_en = __esm({
|
|
|
30515
30515
|
lottie: {
|
|
30516
30516
|
title: "Lottie"
|
|
30517
30517
|
},
|
|
30518
|
-
texture: {
|
|
30519
|
-
title: "Texture",
|
|
30520
|
-
"texture-compression": "Compression"
|
|
30521
|
-
},
|
|
30522
30518
|
"spine-skeleton-data": {
|
|
30523
30519
|
title: "Spine Skeleton Data"
|
|
30524
30520
|
},
|
|
@@ -33994,10 +33990,6 @@ var init_zh = __esm({
|
|
|
33994
33990
|
lottie: {
|
|
33995
33991
|
title: "Lottie"
|
|
33996
33992
|
},
|
|
33997
|
-
texture: {
|
|
33998
|
-
title: "\u7EB9\u7406",
|
|
33999
|
-
"texture-compression": "\u7EB9\u7406\u538B\u7F29"
|
|
34000
|
-
},
|
|
34001
33993
|
"spine-skeleton-data": {
|
|
34002
33994
|
title: "Spine\u9AA8\u9ABC\u6570\u636E"
|
|
34003
33995
|
},
|
|
@@ -37486,10 +37478,6 @@ var init_ja = __esm({
|
|
|
37486
37478
|
lottie: {
|
|
37487
37479
|
title: "Lottie"
|
|
37488
37480
|
},
|
|
37489
|
-
texture: {
|
|
37490
|
-
title: "\u30C6\u30AF\u30B9\u30C1\u30E3",
|
|
37491
|
-
"texture-compression": "\u5727\u7E2E"
|
|
37492
|
-
},
|
|
37493
37481
|
"spine-skeleton-data": {
|
|
37494
37482
|
title: "Spine\u30B9\u30B1\u30EB\u30C8\u30F3\u30C7\u30FC\u30BF"
|
|
37495
37483
|
},
|
|
@@ -46645,7 +46633,7 @@ var require_index_ts2 = __commonJS({
|
|
|
46645
46633
|
// ../builder/templates/web/package.json.ejs
|
|
46646
46634
|
var require_package_json = __commonJS({
|
|
46647
46635
|
"../builder/templates/web/package.json.ejs"(exports2, module2) {
|
|
46648
|
-
module2.exports = '{\n "name": "<%= projectName %>",\n "version": "1.0.0",\n <% if(debug) { %>\n "main": "./main.js",\n <% } else { %>\n "main": "./src/App.tsx",\n <% } %>\n "scripts": {\n "dev": "vite --host",\n "build": "vite build",\n "serve": "vite preview",\n "https": "vite --https --host"\n },\n "dependencies": {\n <% if(framework === 0x2) { %>\n "react": "^18.3.1",\n "react-dom": "^18.3.1",\n <% } %>\n <% if(framework === 0x4) { %>\n "vue": "^3.5.13",\n <% } %>\n <% if(features.lottie) { %>"@galacean/engine-lottie": "
|
|
46636
|
+
module2.exports = '{\n "name": "<%= projectName %>",\n "version": "1.0.0",\n <% if(debug) { %>\n "main": "./main.js",\n <% } else { %>\n "main": "./src/App.tsx",\n <% } %>\n "scripts": {\n "dev": "vite --host",\n "build": "vite build",\n "serve": "vite preview",\n "https": "vite --https --host"\n },\n "dependencies": {\n <% if(framework === 0x2) { %>\n "react": "^18.3.1",\n "react-dom": "^18.3.1",\n <% } %>\n <% if(framework === 0x4) { %>\n "vue": "^3.5.13",\n <% } %>\n <% if(features.lottie) { %>"@galacean/engine-lottie": "alpha", <% } %>\n <% if(features.spine) { %>"@galacean/engine-spine": "alpha", <% } %>\n <% if(features.shaderCompiler) { %>"@galacean/engine-shader-compiler": "<%= engineVersion %>", <% } %>\n <% if(features.shaderCompiler) { %>"@galacean/engine-shader": "<%= engineVersion %>", <% } %>\n <% if(features.physicsLite) { %>"@galacean/engine-physics-lite": "<%= engineVersion %>", <% } %>\n <% if(features.physx) { %>"@galacean/engine-physics-physx": "<%= engineVersion %>", <% } %>\n <% if(features.xr) { %>\n "@galacean/engine-xr": "<%= engineVersion %>",\n "@galacean/engine-xr-webxr": "<%= engineVersion %>",\n "@galacean/engine-toolkit-xr": "alpha",\n <% } %>\n <% if(features.gui) { %>"@galacean/engine-ui": "<%= engineVersion %>", <% } %>\n <% if(features.editorDecorators) { %>"@galacean/editor-decorators": "latest", <% } %>\n <% if(debug.stats || debug.orbitControl) { %>\n "@galacean/engine-toolkit": "alpha",\n <% } %>\n <% Object.keys(dependencies).forEach((name, index, array) => { %>\n "<%= name %>": "<%= dependencies[name] %>",\n <% }) %>\n "@galacean/engine": "<%= engineVersion %>"\n },\n "devDependencies": {\n <% if(framework === 0x2) { %>\n "@vitejs/plugin-react": "^3.1.0",\n <% } %>\n <% if(framework === 0x4) { %>\n "@vitejs/plugin-vue": "^4.6.2",\n "@vitejs/plugin-vue-jsx": "^4.1.1",\n <% } %>\n "vite": "^4",\n "typescript": "^5.7.3"\n }\n}\n';
|
|
46649
46637
|
}
|
|
46650
46638
|
});
|
|
46651
46639
|
|
|
@@ -788664,7 +788652,7 @@ function readCliVersionFromPackageJson() {
|
|
|
788664
788652
|
const parsed = JSON.parse(raw);
|
|
788665
788653
|
return typeof parsed.version === "string" && parsed.version.length > 0 ? parsed.version : "0.0.0";
|
|
788666
788654
|
}
|
|
788667
|
-
var CLI_VERSION = "2.0.0-alpha.
|
|
788655
|
+
var CLI_VERSION = "2.0.0-alpha.29".length > 0 ? "2.0.0-alpha.29" : readCliVersionFromPackageJson();
|
|
788668
788656
|
|
|
788669
788657
|
// src/cli.ts
|
|
788670
788658
|
init_config();
|