auto-psgen-cli
Version:
A CLI tool to automate project structure setup for API test
28 lines (22 loc) • 758 B
JavaScript
const { execSync } = require("child_process");
const path = require("path");
const scriptDir = __dirname;
try {
console.log("🚀 Running createStructure.js...");
execSync(`node "${path.join(scriptDir, "createStructure.js")}"`, {
stdio: "inherit",
});
console.log("📂 Running template.js...");
execSync(`node "${path.join(scriptDir, "template.js")}"`, {
stdio: "inherit",
});
console.log("⚡ Running template_override.js...");
execSync(`node "${path.join(scriptDir, "template_override.js")}"`, {
stdio: "inherit",
});
console.log("🎉 All scripts executed successfully!");
} catch (error) {
console.error("❌ An error occurred:", error.message);
process.exit(1);
}