@intelligentgraphics/ig.gfx.packager 3.0.7 → 3.0.9
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/build/{cli-5a0c1608.js → cli-17d957b0.js} +59 -16
- package/build/cli-17d957b0.js.map +1 -0
- package/build/{dependencies-b011d0a0.js → dependencies-51916db0.js} +26 -10
- package/build/dependencies-51916db0.js.map +1 -0
- package/build/{generate-01f1838f.js → generateIndex-59993f0f.js} +153 -118
- package/build/generateIndex-59993f0f.js.map +1 -0
- package/build/generateParameterType-d3ab08fd.js +74 -0
- package/build/generateParameterType-d3ab08fd.js.map +1 -0
- package/build/{index-4d792508.js → index-a48c5d0a.js} +5 -5
- package/build/{index-4d792508.js.map → index-a48c5d0a.js.map} +1 -1
- package/build/{index-1b304a61.js → index-ac2cd050.js} +2 -2
- package/build/{index-1b304a61.js.map → index-ac2cd050.js.map} +1 -1
- package/build/index.mjs +1 -1
- package/build/{postinstall-a621a30d.js → postinstall-9990fb31.js} +3 -3
- package/build/{postinstall-a621a30d.js.map → postinstall-9990fb31.js.map} +1 -1
- package/build/{publishNpm-6671ae3b.js → publishNpm-74a96626.js} +4 -4
- package/build/{publishNpm-6671ae3b.js.map → publishNpm-74a96626.js.map} +1 -1
- package/build/{versionFile-8dd4ca7e.js → versionFile-68e35b54.js} +2 -2
- package/build/{versionFile-8dd4ca7e.js.map → versionFile-68e35b54.js.map} +1 -1
- package/package.json +2 -2
- package/readme.md +14 -3
- package/build/cli-5a0c1608.js.map +0 -1
- package/build/dependencies-b011d0a0.js.map +0 -1
- package/build/generate-01f1838f.js.map +0 -1
|
@@ -62,6 +62,27 @@ const ANIMATION_FILE_SUFFIX = ".animation.json";
|
|
|
62
62
|
* @interface PackageLocation
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
+
const getCreatorIndexParameterPrimaryJSType = type => {
|
|
66
|
+
switch (type) {
|
|
67
|
+
case "LengthM":
|
|
68
|
+
case "ArcDEG":
|
|
69
|
+
case "Integer":
|
|
70
|
+
case "Int":
|
|
71
|
+
case "Float":
|
|
72
|
+
return "number";
|
|
73
|
+
case "Boolean":
|
|
74
|
+
case "Bool":
|
|
75
|
+
return "boolean";
|
|
76
|
+
case "String":
|
|
77
|
+
case "Material":
|
|
78
|
+
case "Geometry":
|
|
79
|
+
case "Animation":
|
|
80
|
+
case "Interactor":
|
|
81
|
+
case "Evaluator":
|
|
82
|
+
default:
|
|
83
|
+
return "string";
|
|
84
|
+
}
|
|
85
|
+
};
|
|
65
86
|
const parseCreatorPackageName = manifest => {
|
|
66
87
|
const [domain, ...subdomainParts] = manifest.Package.split(".");
|
|
67
88
|
return {
|
|
@@ -2071,6 +2092,7 @@ const captureError = err => {
|
|
|
2071
2092
|
} else {
|
|
2072
2093
|
console.error("Stopped execution because of the following error: " + err.message);
|
|
2073
2094
|
}
|
|
2095
|
+
process.exit(1);
|
|
2074
2096
|
};
|
|
2075
2097
|
const buildOptions = {
|
|
2076
2098
|
outDir: {
|
|
@@ -2165,7 +2187,7 @@ yargsInstance.command("build [directories...]", "Builds the specified directorie
|
|
|
2165
2187
|
}
|
|
2166
2188
|
const {
|
|
2167
2189
|
buildFolders
|
|
2168
|
-
} = await import('./index-
|
|
2190
|
+
} = await import('./index-ac2cd050.js').then(function (n) { return n.i; });
|
|
2169
2191
|
await buildFolders({
|
|
2170
2192
|
...options,
|
|
2171
2193
|
packages: folders,
|
|
@@ -2288,7 +2310,7 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
|
|
|
2288
2310
|
}
|
|
2289
2311
|
const {
|
|
2290
2312
|
releaseFolder
|
|
2291
|
-
} = await import('./index-
|
|
2313
|
+
} = await import('./index-a48c5d0a.js');
|
|
2292
2314
|
const prompter = createDefaultPrompter();
|
|
2293
2315
|
const fullOptions = {
|
|
2294
2316
|
...options,
|
|
@@ -2416,25 +2438,46 @@ yargsInstance.command("testConnection [directory]", "Tests connection to asset s
|
|
|
2416
2438
|
});
|
|
2417
2439
|
yargsInstance.command({
|
|
2418
2440
|
command: "generateIndex [directory]",
|
|
2419
|
-
builder: argv => {
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2441
|
+
builder: argv => argv.option("ignore", {
|
|
2442
|
+
type: "array",
|
|
2443
|
+
default: [],
|
|
2444
|
+
description: "Files to ignore while generating index"
|
|
2445
|
+
}),
|
|
2446
|
+
handler: async ({
|
|
2447
|
+
directory,
|
|
2448
|
+
ignore
|
|
2449
|
+
}) => {
|
|
2450
|
+
const workspace = detectWorkspace(process.cwd());
|
|
2451
|
+
await preCommandCheck(workspace);
|
|
2452
|
+
const {
|
|
2453
|
+
generateIndex
|
|
2454
|
+
} = await import('./generateIndex-59993f0f.js');
|
|
2455
|
+
const location = detectPackage(workspace, directory);
|
|
2456
|
+
generateIndex({
|
|
2457
|
+
location,
|
|
2458
|
+
ignore
|
|
2424
2459
|
});
|
|
2425
2460
|
},
|
|
2461
|
+
describe: "Generates an index file for a package based on typescript types"
|
|
2462
|
+
});
|
|
2463
|
+
yargsInstance.command({
|
|
2464
|
+
command: "generateParameterType [directory] [name]",
|
|
2426
2465
|
handler: async ({
|
|
2427
2466
|
directory,
|
|
2428
|
-
|
|
2467
|
+
name
|
|
2429
2468
|
}) => {
|
|
2430
2469
|
const workspace = detectWorkspace(process.cwd());
|
|
2431
2470
|
await preCommandCheck(workspace);
|
|
2432
2471
|
const {
|
|
2433
|
-
|
|
2434
|
-
} = await import('./
|
|
2472
|
+
generateParameterType
|
|
2473
|
+
} = await import('./generateParameterType-d3ab08fd.js');
|
|
2435
2474
|
const location = detectPackage(workspace, directory);
|
|
2436
|
-
|
|
2437
|
-
|
|
2475
|
+
generateParameterType({
|
|
2476
|
+
location,
|
|
2477
|
+
name
|
|
2478
|
+
});
|
|
2479
|
+
},
|
|
2480
|
+
describe: "Generates a parameter type for an interactor or evaluator"
|
|
2438
2481
|
});
|
|
2439
2482
|
yargsInstance.command({
|
|
2440
2483
|
command: "postinstall",
|
|
@@ -2442,7 +2485,7 @@ yargsInstance.command({
|
|
|
2442
2485
|
handler: async () => {
|
|
2443
2486
|
const {
|
|
2444
2487
|
executePostInstall
|
|
2445
|
-
} = await import('./postinstall-
|
|
2488
|
+
} = await import('./postinstall-9990fb31.js');
|
|
2446
2489
|
executePostInstall(detectWorkspace(process.cwd()));
|
|
2447
2490
|
},
|
|
2448
2491
|
describe: "Runs postinstall tasks"
|
|
@@ -2468,7 +2511,7 @@ yargsInstance.command({
|
|
|
2468
2511
|
const workspace = detectWorkspace(process.cwd());
|
|
2469
2512
|
const {
|
|
2470
2513
|
publishToNpm
|
|
2471
|
-
} = await import('./publishNpm-
|
|
2514
|
+
} = await import('./publishNpm-74a96626.js');
|
|
2472
2515
|
await publishToNpm({
|
|
2473
2516
|
workspace,
|
|
2474
2517
|
location: detectPackage(workspace, directory),
|
|
@@ -2484,5 +2527,5 @@ var cli = /*#__PURE__*/Object.freeze({
|
|
|
2484
2527
|
__proto__: null
|
|
2485
2528
|
});
|
|
2486
2529
|
|
|
2487
|
-
export { INDEX_FILE as I, PACKAGE_FILE as P, readPackageAnimationList as a, readPackageCreatorIndex as b, readWorkspaceNpmManifest as c, getPackageReleasesDirectory as d, getExistingPackages as e, closeSession as f, getWorkspaceOutputPath as g, getPackageTypescriptFiles as h, isErrorENOENT as i, writePackageCreatorIndex as j,
|
|
2488
|
-
//# sourceMappingURL=cli-
|
|
2530
|
+
export { INDEX_FILE as I, PACKAGE_FILE as P, readPackageAnimationList as a, readPackageCreatorIndex as b, readWorkspaceNpmManifest as c, getPackageReleasesDirectory as d, getExistingPackages as e, closeSession as f, getWorkspaceOutputPath as g, getPackageTypescriptFiles as h, isErrorENOENT as i, writePackageCreatorIndex as j, getCreatorIndexParameterPrimaryJSType as k, getWorkspaceLibPath as l, readNpmManifest as m, stripUtf8Bom as n, readPackageNpmManifest as o, parseCreatorPackageName as p, writePackageNpmManifest as q, readPackageCreatorManifest as r, startSession as s, iterateWorkspacePackages as t, uploadPackage as u, cli as v, writePackageCreatorManifest as w };
|
|
2531
|
+
//# sourceMappingURL=cli-17d957b0.js.map
|