master-zapier-plan-draft/research/zapier/verae-zapier-api/scripts/gate-all.mjs
George Lambert b4150c8250 Milestone 0: import zappier billing, Verae middleware, and Zapier research
Compose-ready workspace: packages/zappier (rate card, portal, Stripe),
packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier
(CLI app), vendor/zapier-platform, and research/zapier vendor corpus.

Gate 0 structure checks pass. Product code and research are not yet wired.
2026-09-09 02:37:36 -04:00

27 lines
742 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env node
/**
* Run gates 012 in dependency order. Stops on first failure.
*/
import { spawnSync } from 'node:child_process';
import { resolve, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
const root = resolve(dirname(fileURLToPath(import.meta.url)), '..');
const gates = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
for (const g of gates) {
console.log(`\n========== GATE ${g} ==========`);
const result = spawnSync('npm', ['run', `gate:${g}`], {
cwd: root,
stdio: 'inherit',
shell: true,
});
if (result.status !== 0) {
console.error(`\ngate:all stopped at GATE ${g}`);
process.exit(result.status ?? 1);
}
}
console.log('\ngate:all PASSED (012)');
process.exit(0);