forked from pixijs/assetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(manifest): Add tags to Manifest (#10)
* - add skip property and skipChildren - fixed json and test - fixed texture packer still creating individual images - ensure output is removed if the cache key changes * -test tweak - fix compressed pngs not working * fix rotation on texture packer * - modify cache-buster to use hash - remove spineAtlasMipmap from mipmap-compress - fix png compression - add spine package * pr feedback * fix install * fix tests * fix test * note * feedback * fix fs * fix up metadata * remove dup code --------- Co-authored-by: Zyie <[email protected]>
- Loading branch information
1 parent
afccd34
commit 8657b72
Showing
2 changed files
with
58 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,10 +146,20 @@ describe('Manifest', () => | |
{ | ||
alias: ['bundle/json.json'], | ||
src: ['bundle/json.json'], | ||
data: { | ||
tags: { | ||
m: true, | ||
}, | ||
}, | ||
}, | ||
{ | ||
alias: ['bundle/json.json5'], | ||
src: ['bundle/json.json5'], | ||
data: { | ||
tags: { | ||
m: true, | ||
}, | ||
}, | ||
}, | ||
{ | ||
alias: ['bundle/sprite.png'], | ||
|
@@ -159,37 +169,37 @@ describe('Manifest', () => | |
'bundle/sprite.webp', | ||
'bundle/sprite.png', | ||
], | ||
// data: { | ||
// tags: { | ||
// m: true, | ||
// }, | ||
// }, | ||
data: { | ||
tags: { | ||
m: true, | ||
}, | ||
}, | ||
}, | ||
{ | ||
alias: ['bundle/tps-0'], | ||
src: [ | ||
'bundle/[email protected]', | ||
'bundle/tps-0.json', | ||
], | ||
// data: { | ||
// tags: { | ||
// tps: true, | ||
// m: true, | ||
// }, | ||
// }, | ||
data: { | ||
tags: { | ||
tps: true, | ||
m: true, | ||
}, | ||
}, | ||
}, | ||
{ | ||
alias: ['bundle/tps-1'], | ||
src: [ | ||
'bundle/[email protected]', | ||
'bundle/tps-1.json', | ||
], | ||
// data: { | ||
// tags: { | ||
// tps: true, | ||
// m: true, | ||
// }, | ||
// }, | ||
data: { | ||
tags: { | ||
tps: true, | ||
m: true, | ||
}, | ||
}, | ||
}, | ||
], | ||
}); | ||
|
@@ -199,26 +209,35 @@ describe('Manifest', () => | |
{ | ||
alias: ['defaultFolder/1.mp3'], | ||
src: ['defaultFolder/1.ogg', 'defaultFolder/1.mp3'], | ||
data: { | ||
tags: {}, | ||
}, | ||
}, | ||
{ | ||
alias: ['defaultFolder/3.wav'], | ||
src: ['defaultFolder/3.ogg', 'defaultFolder/3.mp3'], | ||
data: { | ||
tags: {}, | ||
}, | ||
}, | ||
{ | ||
alias: ['spine/dragon.json'], | ||
src: ['spine/dragon.json'], | ||
data: { | ||
tags: {} | ||
}, | ||
}, | ||
{ | ||
alias: ['spine/dragon.atlas'], | ||
src: [ | ||
'spine/[email protected]', | ||
'spine/dragon.atlas', | ||
], | ||
// data: { | ||
// tags: { | ||
// spine: true, | ||
// }, | ||
// }, | ||
data: { | ||
tags: { | ||
spine: true, | ||
}, | ||
}, | ||
}, | ||
], | ||
}); | ||
|
@@ -319,6 +338,7 @@ describe('Manifest', () => | |
pixiManifest({ | ||
createShortcuts: true, | ||
trimExtensions: true, | ||
includeMetaData: false | ||
}), | ||
], | ||
}); | ||
|
@@ -463,6 +483,7 @@ describe('Manifest', () => | |
pixiManifest({ | ||
createShortcuts: true, | ||
trimExtensions: false, | ||
includeMetaData: false | ||
}), | ||
], | ||
}); | ||
|
@@ -585,6 +606,7 @@ describe('Manifest', () => | |
pixiManifest({ | ||
createShortcuts: true, | ||
trimExtensions: false, | ||
includeMetaData: false | ||
}), | ||
], | ||
}); | ||
|
@@ -729,6 +751,7 @@ describe('Manifest', () => | |
pixiManifest({ | ||
createShortcuts: false, | ||
trimExtensions: true, | ||
includeMetaData: false | ||
}), | ||
], | ||
}); | ||
|
@@ -894,7 +917,9 @@ describe('Manifest', () => | |
output: outputDir, | ||
cache: false, | ||
pipes: [ | ||
pixiManifest(), | ||
pixiManifest({ | ||
includeMetaData: false | ||
}), | ||
], | ||
}); | ||
|
||
|