@needle-tools/gltf-build-pipeline 1.6.0-alpha.3 → 1.6.0-alpha.4
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/CHANGELOG.md +1 -1
- package/dist/package.json +66 -0
- package/dist/src/utils/version.d.ts +1 -0
- package/dist/src/utils/version.js +5 -0
- package/package.json +3 -3
- package/tsconfig.json +2 -1
- package/dist/utils/version.d.ts +0 -1
- package/dist/utils/version.js +0 -40
- /package/dist/{cache → src/cache}/cache.d.ts +0 -0
- /package/dist/{cache → src/cache}/cache.js +0 -0
- /package/dist/{cache → src/cache}/index.d.ts +0 -0
- /package/dist/{cache → src/cache}/index.js +0 -0
- /package/dist/{cli → src/cli}/index.d.ts +0 -0
- /package/dist/{cli → src/cli}/index.js +0 -0
- /package/dist/{config → src/config}/index.d.ts +0 -0
- /package/dist/{config → src/config}/index.js +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_compression_texture/NEEDLE_compression_texture.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_compression_texture/NEEDLE_compression_texture.js +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_compression_texture/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_compression_texture/index.js +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_mesh_compression/NEEDLE_mesh_compression.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_mesh_compression/NEEDLE_mesh_compression.js +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_mesh_compression/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_mesh_compression/index.js +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_opaque/NEEDLE_opaque.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_opaque/NEEDLE_opaque.js +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_opaque/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_opaque/index.js +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_progressive/NEEDLE_progressive.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_progressive/NEEDLE_progressive.js +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_progressive/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_progressive/index.js +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_progressive_mesh_settings/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_progressive_mesh_settings/index.js +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_progressive_texture_settings/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/NEEDLE_progressive_texture_settings/index.js +0 -0
- /package/dist/{extensions → src/extensions}/index.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/index.js +0 -0
- /package/dist/{extensions → src/extensions}/utils.d.ts +0 -0
- /package/dist/{extensions → src/extensions}/utils.js +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{scripts → src/scripts}/index.d.ts +0 -0
- /package/dist/{scripts → src/scripts}/index.js +0 -0
- /package/dist/{scripts → src/scripts}/pack-gltf.d.ts +0 -0
- /package/dist/{scripts → src/scripts}/pack-gltf.js +0 -0
- /package/dist/{transforms → src/transforms}/index.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/index.js +0 -0
- /package/dist/{transforms → src/transforms}/needle_animation_transform.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/needle_animation_transform.js +0 -0
- /package/dist/{transforms → src/transforms}/needle_asset.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/needle_asset.js +0 -0
- /package/dist/{transforms → src/transforms}/needle_common.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/needle_common.js +0 -0
- /package/dist/{transforms → src/transforms}/needle_mesh_transform.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/needle_mesh_transform.js +0 -0
- /package/dist/{transforms → src/transforms}/needle_progressive.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/needle_progressive.js +0 -0
- /package/dist/{transforms → src/transforms}/needle_texture_transform.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/needle_texture_transform.js +0 -0
- /package/dist/{transforms → src/transforms}/needle_toktx.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/needle_toktx.js +0 -0
- /package/dist/{transforms → src/transforms}/needle_webp.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/needle_webp.js +0 -0
- /package/dist/{transforms → src/transforms}/toktx.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/toktx.js +0 -0
- /package/dist/{transforms → src/transforms}/util.d.ts +0 -0
- /package/dist/{transforms → src/transforms}/util.js +0 -0
- /package/dist/{utils → src/utils}/compression_utils.d.ts +0 -0
- /package/dist/{utils → src/utils}/compression_utils.js +0 -0
- /package/dist/{utils → src/utils}/fileutils.d.ts +0 -0
- /package/dist/{utils → src/utils}/fileutils.js +0 -0
- /package/dist/{utils → src/utils}/guid.d.ts +0 -0
- /package/dist/{utils → src/utils}/guid.js +0 -0
- /package/dist/{utils → src/utils}/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/index.js +0 -0
- /package/dist/{utils → src/utils}/mesh.d.ts +0 -0
- /package/dist/{utils → src/utils}/mesh.js +0 -0
- /package/dist/{utils → src/utils}/nodeio.d.ts +0 -0
- /package/dist/{utils → src/utils}/nodeio.js +0 -0
- /package/dist/{utils → src/utils}/stats.d.ts +0 -0
- /package/dist/{utils → src/utils}/stats.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ All notable changes to this package will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
-
## [1.6.0-alpha.
|
|
7
|
+
## [1.6.0-alpha.4] - 2023-05-28
|
|
8
8
|
- fix: determine build pipeline version
|
|
9
9
|
|
|
10
10
|
## [1.6.0-alpha.2] - 2023-05-27
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@needle-tools/gltf-build-pipeline",
|
|
3
|
+
"version": "1.6.0-alpha.4",
|
|
4
|
+
"description": "Pipeline and tools for optimizing gltf files using gltf-transform and compression settings within glTF extensions",
|
|
5
|
+
"main": "index.mjs",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"readme": "README.md",
|
|
8
|
+
"bin": {
|
|
9
|
+
"gltf-build-pipeline": "./dist/src/cli/index.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"start": "node scripts/index.mjs",
|
|
13
|
+
"dev": "npm-watch compile",
|
|
14
|
+
"transform": "node scripts/index.mjs",
|
|
15
|
+
"transform:make-progressive": "node scripts/make-progressive.mjs",
|
|
16
|
+
"transform:pack-gltf": "node --no-experimental-fetch scripts/pack-gltf.mjs",
|
|
17
|
+
"pack-gltf": "node --no-experimental-fetch scripts/pack-gltf.mjs",
|
|
18
|
+
"dev:pack-gltf": "npm run compile && node scripts/pack-gltf.mjs",
|
|
19
|
+
"clear-caches": "node scripts/clear-caches.mjs",
|
|
20
|
+
"limit-caches": "node scripts/limit-caches.mjs",
|
|
21
|
+
"compile": "tsc || exit 1"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@donmccurdy/caporal": "~0.0.10",
|
|
25
|
+
"@gltf-transform/core": "^3.10.1",
|
|
26
|
+
"@gltf-transform/extensions": "^3.10.1",
|
|
27
|
+
"@gltf-transform/functions": "^3.10.1",
|
|
28
|
+
"command-exists": "^1.2.9",
|
|
29
|
+
"command-line-args": "^5.2.1",
|
|
30
|
+
"draco3dgltf": "^1.5.3",
|
|
31
|
+
"glob": "^7.2.0",
|
|
32
|
+
"meshoptimizer": "^0.18.1",
|
|
33
|
+
"micromatch": "^4.0.5",
|
|
34
|
+
"ndarray": "^1.0.19",
|
|
35
|
+
"ndarray-lanczos": "^0.3.0",
|
|
36
|
+
"ndarray-pixels": "^2.0.1",
|
|
37
|
+
"p-limit": "3.1.0",
|
|
38
|
+
"semver": "^7.3.7",
|
|
39
|
+
"sharp": "^0.32.6",
|
|
40
|
+
"tmp": "^0.2.1",
|
|
41
|
+
"uuid": "^9.0.1"
|
|
42
|
+
},
|
|
43
|
+
"watch": {
|
|
44
|
+
"compile": {
|
|
45
|
+
"patterns": [
|
|
46
|
+
"src"
|
|
47
|
+
],
|
|
48
|
+
"extensions": "ts",
|
|
49
|
+
"quiet": false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/node": "^18.7.23",
|
|
54
|
+
"npm-watch": "^0.11.0",
|
|
55
|
+
"typescript": "^4.9.5"
|
|
56
|
+
},
|
|
57
|
+
"author": {
|
|
58
|
+
"name": "Needle",
|
|
59
|
+
"email": "help@needle.tools",
|
|
60
|
+
"url": "https://needle.tools/"
|
|
61
|
+
},
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/needle-tools/needle-gltf-extensions.git"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getVersion(_marklocal?: boolean): string;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needle-tools/gltf-build-pipeline",
|
|
3
|
-
"version": "1.6.0-alpha.
|
|
3
|
+
"version": "1.6.0-alpha.4",
|
|
4
4
|
"description": "Pipeline and tools for optimizing gltf files using gltf-transform and compression settings within glTF extensions",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"readme": "README.md",
|
|
8
8
|
"bin": {
|
|
9
|
-
"gltf-build-pipeline": "./dist/cli/index.js"
|
|
9
|
+
"gltf-build-pipeline": "./dist/src/cli/index.js"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"start": "node scripts/index.mjs",
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
"type": "git",
|
|
64
64
|
"url": "git+https://github.com/needle-tools/needle-gltf-extensions.git"
|
|
65
65
|
}
|
|
66
|
-
}
|
|
66
|
+
}
|
package/tsconfig.json
CHANGED
package/dist/utils/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getVersion(marklocal?: boolean): string;
|
package/dist/utils/version.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { existsSync, readFileSync, statSync } from 'fs';
|
|
2
|
-
let version = undefined;
|
|
3
|
-
let isLocal = false;
|
|
4
|
-
export function getVersion(marklocal = true) {
|
|
5
|
-
if (version === undefined) {
|
|
6
|
-
console.log(process.argv);
|
|
7
|
-
const scriptLocation = process.argv[1].replaceAll("\\", "/");
|
|
8
|
-
console.log("Determining version from " + scriptLocation);
|
|
9
|
-
const path = scriptLocation.split('/');
|
|
10
|
-
let packageJsonPath = null;
|
|
11
|
-
while (path.length) {
|
|
12
|
-
const dirname = path.join('/');
|
|
13
|
-
if (statSync(dirname).isDirectory()) {
|
|
14
|
-
const filename = dirname + '/package.json';
|
|
15
|
-
if (existsSync(filename)) {
|
|
16
|
-
packageJsonPath = filename;
|
|
17
|
-
break;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
path.pop();
|
|
21
|
-
}
|
|
22
|
-
if (packageJsonPath) {
|
|
23
|
-
isLocal = !path.includes("node_modules");
|
|
24
|
-
if (existsSync(packageJsonPath)) {
|
|
25
|
-
const packageJson = readFileSync(packageJsonPath, "utf8");
|
|
26
|
-
const packageVersion = JSON.parse(packageJson).version;
|
|
27
|
-
version = packageVersion ?? null;
|
|
28
|
-
}
|
|
29
|
-
else
|
|
30
|
-
console.log("Could not find package.json at " + packageJsonPath);
|
|
31
|
-
}
|
|
32
|
-
if (!version) {
|
|
33
|
-
throw new Error("Could not determine version");
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
let res = version;
|
|
37
|
-
if (marklocal && isLocal)
|
|
38
|
-
res += " (local)";
|
|
39
|
-
return res;
|
|
40
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{extensions → src/extensions}/NEEDLE_compression_texture/NEEDLE_compression_texture.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{extensions → src/extensions}/NEEDLE_mesh_compression/NEEDLE_mesh_compression.d.ts
RENAMED
|
File without changes
|
/package/dist/{extensions → src/extensions}/NEEDLE_mesh_compression/NEEDLE_mesh_compression.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|