forked from get-convex/agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cjs
More file actions
25 lines (23 loc) · 830 Bytes
/
setup.cjs
File metadata and controls
25 lines (23 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env node
// "setup": "npm i && npm run build && cd example && npm i",
const { join } = require("path");
const { execSync } = require("child_process");
console.log("Installing dependencies for the Agent component...");
execSync("npm install", { cwd: __dirname, stdio: "inherit" });
console.log("✅\n");
console.log("Building the Agent component...");
execSync("npm run build", { cwd: __dirname, stdio: "inherit" });
console.log("✅\n");
console.log("Installing dependencies for the playground...");
execSync("npm install", {
cwd: join(__dirname, "./playground"),
stdio: "inherit",
});
console.log("✅\n");
console.log("Installing dependencies for the example...");
execSync("npm install", {
cwd: join(__dirname, "./example"),
stdio: "inherit",
});
console.log("✅\n");
console.log("Now run: npm run dev");