chore: 初始化glTF模型压缩工具包

添加了完整的项目配置、工具函数、纹理压缩与模型优化实现,以及文档说明
This commit is contained in:
2026-05-18 16:51:56 +08:00
commit 18eaaff65f
13 changed files with 4525 additions and 0 deletions

33
package.json Normal file
View File

@@ -0,0 +1,33 @@
{
"name": "@g1sir8b/gltf-model-compressor",
"version": "1.0.1",
"description": "Standalone npm package for GLTF/GLB optimization and texture compression.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"README.md"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js"
}
},
"scripts": {
"build": "tsc -p tsconfig.json"
},
"dependencies": {
"gl-matrix": "^3.4.3",
"gltf-pipeline": "^4.1.0",
"image-size": "^2.0.2",
"jimp": "^1.6.1",
"mime": "^3.0.0",
"seinjs-texture-compressor": "^1.0.3"
},
"devDependencies": {
"@types/mime": "^3.0.0",
"@types/node": "^20.0.0",
"typescript": "^5.2.2"
}
}