mirror of
https://github.com/smogon/sprites.git
synced 2026-10-24 00:58:06 -05:00
Replace the .env deploy command with deploy.json5
An untracked json5 config maps deploy names to a buildFile plus (subset globs, cmd) entries: the deploy verb builds the named buildFiles, finishes each, routes the outputs through the subset globs, and pipes one tar per entry to its command. Every glob must match an output and every output must be covered by some entry. The tar no longer carries __key; the upload command names the asset set itself (smogonctl assets upload sprites). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -160,12 +160,12 @@ export class ActionQueue {
|
||||
}
|
||||
}
|
||||
|
||||
pack() : NodeJS.ReadableStream {
|
||||
pack(filter? : (dst : string) => boolean) : NodeJS.ReadableStream {
|
||||
if (!this.valid)
|
||||
throw new Error(`Invalid ActionQueue`);
|
||||
let t = tar.pack();
|
||||
for (const entry of this.log) {
|
||||
if (entry.type !== 'Op')
|
||||
if (entry.type !== 'Op' || (filter !== undefined && !filter(entry.dst)))
|
||||
continue;
|
||||
const op = entry.op;
|
||||
if (op.type === 'Copy'){
|
||||
|
||||
Reference in New Issue
Block a user