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.
Merge branch 'chore/cache-buster-plugins' into chore/object-hash-options
- Loading branch information
Showing
5 changed files
with
20 additions
and
24 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { AssetPack } from '@play-co/assetpack-core'; | ||
import { compress, mipmap } from '@play-co/assetpack-plugin-image'; | ||
import { readFileSync } from 'fs-extra'; | ||
import { existsSync, readFileSync } from 'fs-extra'; | ||
import { assetPath, createFolder, getInputDir, getOutputDir } from '../../../shared/test'; | ||
import { spineAtlasCompress } from '../src/spineAtlasCompress'; | ||
import { spineAtlasMipmap } from '../src/spineAtlasMipmap'; | ||
|
@@ -74,7 +74,7 @@ describe('Spine Atlas All', () => | |
expect(rawAtlasWebpHalf.includes('[email protected]')).toBeTruthy(); | ||
}); | ||
|
||
it.only('should correctly create files when Mipmap and CacheBuster are used', async () => | ||
it('should correctly create files when Mipmap and CacheBuster are used', async () => | ||
{ | ||
const testName = 'spine-atlas-mip-cache-buster'; | ||
const inputDir = getInputDir(pkg, testName); | ||
|
@@ -106,15 +106,13 @@ describe('Spine Atlas All', () => | |
output: outputDir, | ||
cache: false, | ||
pipes: [ | ||
mipmapCompress({ | ||
mipmap: { | ||
resolutions: { default: 1, low: 0.5 }, | ||
}, | ||
compress: { | ||
png: true, | ||
jpg: true, | ||
webp: true, | ||
} | ||
mipmap({ | ||
resolutions: { default: 1, low: 0.5 }, | ||
}), | ||
compress({ | ||
png: true, | ||
webp: true, | ||
jpg: true, | ||
}), | ||
spineAtlasMipmap({ | ||
resolutions: { default: 1, low: 0.5 }, | ||
|
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