@paxperscientiam/generate-phaser3-filepack
Advanced tools
Comparing version 4.0.0 to 5.0.0
@@ -6,3 +6,4 @@ { | ||
"devDependencies": { | ||
"@types/node": "^20.8.7", | ||
"@types/node": "^20.9.0", | ||
"ts-to-zod": "^3.2.0", | ||
"tsup": "^7.2.0" | ||
@@ -13,3 +14,3 @@ }, | ||
"is-image": "^4.0.0", | ||
"ts-to-zod": "^3.2.0", | ||
"is-video": "^2.0.0", | ||
"zod": "^3.22.4" | ||
@@ -21,3 +22,3 @@ }, | ||
], | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"scripts": { | ||
@@ -24,0 +25,0 @@ "build": "ts-to-zod && tsup --cjsInterop", |
@@ -45,17 +45,59 @@ [Phaser 3](https://github.com/photonstorm/phaser) Pack File Generator | ||
## Notes | ||
- this script does NOT write anything to file; it's up to you to do so. | ||
This script does NOT write anything to file; it's up to you to do so. | ||
Is you set a "hint", it's assumed accurate. | ||
### Auto inferred types | ||
- [x] image (:IPhaserFilePackGenericAsset) | ||
- [ ] atlas | ||
- [ ] atlasXML | ||
- [ ] audioSprite | ||
- [ ] htmlTexture | ||
- [ ] multiatlas | ||
- [ ] obj | ||
- [ ] spritesheet | ||
- [ ] tilemapCSV | ||
- [ ] tilemapImpact | ||
- [ ] tilemapTiledJSON | ||
- [ ] unityAtlas | ||
- [x] audio (:IPhaserFilePackGenericAsset) | ||
- [x] binary (:IPhaserFilePackBinaryAsset) | ||
- [x] css | ||
- [ ] binary (:IPhaserFilePackBinaryAsset) | ||
- [ ] html | ||
- [ ] json | ||
- [ ] svg | ||
- [ ] txt | ||
- [x] glsl | ||
- [x] html | ||
- [x] image (:IPhaserFilePackGenericAsset) | ||
- [x] json | ||
- [x] svg | ||
- [x] text | ||
- [x] video | ||
- [x] xml | ||
### Hint-reliant types | ||
- [x] atlas | ||
- [x] bitmapFont | ||
- [x] css | ||
- [x] html | ||
- [x] json | ||
- [x] svg | ||
- [x] text | ||
- [x] xml | ||
### Improvements | ||
- [ ] add check to prevent changing keys of unmoved files | ||
- [x] filter out commonsystem and temp files. EG .DS_Store | ||
- [ ] post process adjustments. | ||
- [ ] allow set `asBlob` and `noAudio` in post-processing. | ||
- [ ] use phaser's type for development testing | ||
### Bugs | ||
- [x] only selectively collapse asset set (EG: collapse audio, but not toher types with files with same file-basenames) | ||
- [ ] filter out unknowns explicitly | ||
- [ ] review warnings about key uniqueness. EG [this on videos](https://newdocs.phaser.io/docs/3.54.0/Phaser.Loader.LoaderPlugin#video). | ||
## Contributors | ||
@@ -62,0 +104,0 @@ - All the programmers Copilot ripped off |
@@ -5,5 +5,5 @@ /** | ||
export interface IConfigAssetTarget { | ||
hint?: "audio"|"image"|"bitmapFont"|"binary"|"css"|string | ||
key: string | ||
basePath: string | ||
hint?: "audio"|"image"|"bitmapFont"|"binary"|"css"|string | ||
extensions?: string | ||
@@ -30,5 +30,10 @@ ignoredPaths?: string|string[] | ||
url: string | string[] | ||
focalKey?: string | ||
} | ||
interface Uint8Array { | ||
" buffer_kind"?: "uint8"; | ||
} | ||
/** | ||
@@ -38,8 +43,18 @@ * @toExtract | ||
export type IPhaserFilePackBinaryAsset = { | ||
type: string | ||
type: "binary" | ||
key: string | ||
url: string | ||
dataType: Uint8Array|unknown | ||
dataType: Uint8Array | ||
} | ||
/** | ||
* @toExtract | ||
*/ | ||
export type IPhaserFilePackVideoAsset = { | ||
type: "video" | ||
asBlob?: boolean | ||
noAudio?: boolean | ||
key: string | ||
url: string | string[] | ||
} | ||
@@ -50,4 +65,9 @@ | ||
*/ | ||
export type IPhaserFilePackAsset = IPhaserFilePackGenericAsset & IPhaserFilePackBinaryAsset & IPhaserFilePackVideoAsset | ||
/** | ||
* @toExtract | ||
*/ | ||
export type IPhaserFilePackFiles = { | ||
files: IPhaserFilePackGenericAsset[] | ||
files: IPhaserFilePackAsset[] | ||
} | ||
@@ -54,0 +74,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16407
470
106
3
+ Addedis-video@^2.0.0
+ Addedis-video@2.0.0(transitive)
+ Addedvideo-extensions@1.2.0(transitive)
- Removedts-to-zod@^3.2.0
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removed@oclif/core@4.0.33(transitive)
- Removed@typescript/vfs@1.6.0(transitive)
- Removedansi-escapes@4.3.2(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedansis@3.3.2(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedarray-union@2.1.0(transitive)
- Removedasync@3.2.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbl@4.1.0(transitive)
- Removedbrace-expansion@1.1.112.0.1(transitive)
- Removedbraces@3.0.3(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedcase@1.6.3(transitive)
- Removedchalk@4.1.2(transitive)
- Removedchardet@0.7.0(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedclean-stack@3.0.1(transitive)
- Removedcli-cursor@3.1.0(transitive)
- Removedcli-spinners@2.9.2(transitive)
- Removedcli-width@3.0.0(transitive)
- Removedclone@1.0.4(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddebug@4.3.7(transitive)
- Removeddefaults@1.0.4(transitive)
- Removeddir-glob@3.0.1(transitive)
- Removedejs@3.1.10(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedescape-string-regexp@4.0.0(transitive)
- Removedesm@3.2.25(transitive)
- Removedexternal-editor@3.1.0(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedfigures@3.2.0(transitive)
- Removedfilelist@1.0.4(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfs-extra@11.2.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedget-package-type@0.1.0(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedglobby@11.1.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedieee754@1.2.1(transitive)
- Removedignore@5.3.2(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedinherits@2.0.4(transitive)
- Removedinquirer@8.2.6(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-docker@2.2.1(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-interactive@1.0.0(transitive)
- Removedis-number@7.0.0(transitive)
- Removedis-observable@2.1.0(transitive)
- Removedis-unicode-supported@0.1.0(transitive)
- Removedis-wsl@2.2.0(transitive)
- Removedjake@10.9.2(transitive)
- Removedjsonfile@6.1.0(transitive)
- Removedlilconfig@3.1.2(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlog-symbols@4.1.0(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removedminimatch@3.1.25.1.69.0.5(transitive)
- Removedms@2.1.3(transitive)
- Removedmute-stream@0.0.8(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedobservable-fns@0.6.1(transitive)
- Removedonetime@5.1.2(transitive)
- Removedora@5.4.1(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedprettier@3.0.3(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedrestore-cursor@3.1.0(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrun-async@2.4.1(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedrxjs@7.8.1(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsemver@7.6.3(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedslash@3.0.0(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedsupports-color@7.2.08.1.1(transitive)
- Removedthreads@1.7.0(transitive)
- Removedthrough@2.3.8(transitive)
- Removedtiny-worker@2.3.0(transitive)
- Removedtmp@0.0.33(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedts-to-zod@3.13.0(transitive)
- Removedtslib@1.14.12.8.1(transitive)
- Removedtsutils@3.21.0(transitive)
- Removedtype-fest@0.21.3(transitive)
- Removedtypescript@5.6.3(transitive)
- Removeduniversalify@2.0.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwcwidth@1.0.1(transitive)
- Removedwidest-line@3.1.0(transitive)
- Removedwordwrap@1.0.0(transitive)
- Removedwrap-ansi@6.2.07.0.0(transitive)