@openfairygui/cli 0.2.0-alpha.15 → 0.2.0-alpha.17
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 +14 -4
- package/package.json +4 -4
package/dist/cli.mjs
CHANGED
|
@@ -12582,16 +12582,26 @@ var ProjectWriter = class {
|
|
|
12582
12582
|
return attrs;
|
|
12583
12583
|
});
|
|
12584
12584
|
if (publishAtlases.length > 0) publishAttrs.atlas = publishAtlases;
|
|
12585
|
-
|
|
12586
|
-
|
|
12585
|
+
const packageDescriptorPath = fs.join(pkgDir, "package.xml");
|
|
12586
|
+
await fs.writeFile(packageDescriptorPath, this._renderPackageDescriptionXml(packageDescriptionAttrs, mainResources, publishAttrs));
|
|
12587
|
+
currentSourceFilePaths.add(packageDescriptorPath);
|
|
12588
|
+
for (const comp of mainResources.filter((resource) => resource.propertyType === "Component")) {
|
|
12589
|
+
currentSourceFilePaths.add(fs.join(pkgDir, this._componentSourceRelativePath(comp)));
|
|
12590
|
+
await this._writeComponent(comp, pkgDir);
|
|
12591
|
+
}
|
|
12587
12592
|
await this._writeResourceSourceFiles(mainResources, pkgDir, currentSourceFilePaths);
|
|
12588
12593
|
for (const [branchName, branchResources] of resourcesByBranch) {
|
|
12589
12594
|
if (!branchName) continue;
|
|
12590
12595
|
this._assertSafePathSegment(branchName, "branch name");
|
|
12591
12596
|
const branchPkgDir = fs.join(basePath, `assets_${branchName}`, pkg.getName());
|
|
12592
12597
|
await fs.mkdir(branchPkgDir);
|
|
12593
|
-
|
|
12594
|
-
|
|
12598
|
+
const branchDescriptorPath = fs.join(branchPkgDir, "package_branch.xml");
|
|
12599
|
+
await fs.writeFile(branchDescriptorPath, this._renderBranchDescriptionXml(branchResources));
|
|
12600
|
+
currentSourceFilePaths.add(branchDescriptorPath);
|
|
12601
|
+
for (const comp of branchResources.filter((resource) => resource.propertyType === "Component")) {
|
|
12602
|
+
currentSourceFilePaths.add(fs.join(branchPkgDir, this._componentSourceRelativePath(comp)));
|
|
12603
|
+
await this._writeComponent(comp, branchPkgDir);
|
|
12604
|
+
}
|
|
12595
12605
|
await this._writeResourceSourceFiles(branchResources, branchPkgDir, currentSourceFilePaths);
|
|
12596
12606
|
}
|
|
12597
12607
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfairygui/cli",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.17",
|
|
4
4
|
"description": "FairyGUI Headless Authoring SDK — command-line interface.",
|
|
5
5
|
"author": "OpenFairyGUI Contributors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"restore"
|
|
34
34
|
],
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@openfairygui/
|
|
37
|
-
"@openfairygui/
|
|
36
|
+
"@openfairygui/core": "0.2.0-alpha.17",
|
|
37
|
+
"@openfairygui/functions": "0.2.0-alpha.17"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"commander": "^14.0.2",
|
|
41
41
|
"jiti": "^2.7.0",
|
|
42
|
-
"@openfairygui/backend": "0.2.0-alpha.
|
|
42
|
+
"@openfairygui/backend": "0.2.0-alpha.17"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
45
|
"sharp": ">=0.33.0"
|