mirror of
https://github.com/smogon/sprites.git
synced 2026-12-05 07:00:37 -06:00
rules/ exists so several deploys can declare the same rules; a set with one caller is just indirection. Only gen10Modelslike has two (smogon xy/ and ps ani/), so it stays. The live sets move into assets.build.ts and smogon.build.ts, and the three deprecated sets move into the commented-out block that was their only reference, which empties minisprites.ts and social.ts. Declarations are copied verbatim, so no rule key moves: a full dry run reports 7748 up to date, 0 would run, and all three deploy trees come out byte-identical. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MQicnpaee6kQXGG7uVExLS
17 lines
521 B
TypeScript
17 lines
521 B
TypeScript
|
|
import {type Artifact, forEachRule} from '../tools/build/artifact.ts';
|
|
|
|
// Shared by the smogon xy/ set and the PS ani/ set.
|
|
|
|
export function gen10Modelslike(): Artifact[] {
|
|
return forEachRule('src/champions/*.png', {
|
|
display: '96x96 %f',
|
|
// TODO, add customizable compression for gif
|
|
// ... or investigate using webp instead of both png/gif here
|
|
cmds: [
|
|
'magick convert %f -trim +repage -resize 90x90 %o',
|
|
'gifsicle -O3 -b %o',
|
|
],
|
|
}, '%B.gif');
|
|
}
|