-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevbox.json
More file actions
29 lines (29 loc) · 1.26 KB
/
devbox.json
File metadata and controls
29 lines (29 loc) · 1.26 KB
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
26
27
28
29
{
"packages": [
"bun",
"nodejs_22",
"python3",
"pixman",
"cairo",
"pango",
"libjpeg",
"giflib",
"librsvg",
"pkg-config"
],
"shell": {
"init_hook": [
"export PKG_CONFIG_PATH=\"$DEVBOX_PACKAGES_DIR/pixman/lib/pkgconfig:$DEVBOX_PACKAGES_DIR/cairo/lib/pkgconfig:$DEVBOX_PACKAGES_DIR/pango/lib/pkgconfig:$PKG_CONFIG_PATH\"",
"echo 'Checking for bun dependencies...'",
"if [ ! -d 'node_modules/canvas' ]; then bun install; fi",
"if [ ! -f 'node_modules/canvas/build/Release/canvas.node' ]; then npm install --build-from-source canvas; fi",
"echo -e '\\n\\033[0;34m--- 🛠️ Build Instructions 🛠️ ---\\033[0m'",
"echo -e '\\033[0;32mTo build the browser version:\\033[0m bun build-browser.ts 🌐'",
"echo -e '\\033[0;32mTo build the CLI version:\\033[0m bun build-cli.ts 💻'",
"echo -e '\\n\\033[0;34m--- ▶️ Run Instructions ▶️ ---\\033[0m'",
"echo -e '\\033[0;32mTo run the CLI:\\033[0m ./dist/cli.js <path_to_image_or_url> <json_config_string_or_path_to_json> [--wait-for-online <seconds>] 🚀'",
"echo -e '\\033[0;32mTo run the web server:\\033[0m bun server.ts 🌐'",
"echo -e '\\033[0;32mThen, open http://localhost:3000 in your browser.\\033[0m'"
]
}
}