mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
* WIP * WIP * Improve helptext * WIP * WIP * WIP * WIP * Clean up, implement warn_on_unrecognized_flag * Fix struct * Tweaks * Fix bunx test * Address reviews * Init and create * Updates * bunx * Tweaks * Lockfile * tweak * tweak * tweak * tweak * Remove comments * Add back origin and port * Remove logging * Updates * fmt * fix rebasing mistakes * bruh * expose node builtins for -e * add tests and fix it on windows * a * lol * okay * finish things up * Update src/deps/zig-clap/clap/streaming.zig Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> --------- Co-authored-by: dave caruso <me@paperdave.net> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
343 lines
9.3 KiB
JSON
Generated
343 lines
9.3 KiB
JSON
Generated
{
|
|
// The usage of BUN_GARBAGE_COLLECTOR_LEVEL=2 is important for debugging
|
|
// It will force the garbage collector to run after every test and every call to expect()
|
|
// it makes our tests very slow
|
|
// But it helps catch memory bugs
|
|
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun test [file]",
|
|
"program": "bun-debug",
|
|
"args": ["test", "${file}"],
|
|
// The cwd here must be the same as in CI. Or you will cause test failures that only happen in CI.
|
|
"cwd": "${workspaceFolder}/test",
|
|
"env": {
|
|
"FORCE_COLOR": "1",
|
|
"BUN_DEBUG_QUIET_LOGS": "1",
|
|
"BUN_GARBAGE_COLLECTOR_LEVEL": "2"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun test [file] (fast)",
|
|
"program": "bun-debug",
|
|
"args": ["test", "${file}"],
|
|
// The cwd here must be the same as in CI. Or you will cause test failures that only happen in CI.
|
|
"cwd": "${workspaceFolder}/test",
|
|
"env": {
|
|
"FORCE_COLOR": "1",
|
|
"BUN_DEBUG_QUIET_LOGS": "1"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun test [file] (verbose)",
|
|
"program": "bun-debug",
|
|
"args": ["test", "${file}"],
|
|
// The cwd here must be the same as in CI. Or you will cause test failures that only happen in CI.
|
|
"cwd": "${workspaceFolder}/test",
|
|
"env": {
|
|
"FORCE_COLOR": "1"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun test [file] --watch",
|
|
"program": "bun-debug",
|
|
"args": ["test", "--watch", "${file}"],
|
|
// The cwd here must be the same as in CI. Or you will cause test failures that only happen in CI.
|
|
"cwd": "${workspaceFolder}/test",
|
|
"env": {
|
|
"FORCE_COLOR": "1",
|
|
"BUN_DEBUG_QUIET_LOGS": "1"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun test [file] --only",
|
|
"program": "bun-debug",
|
|
"args": ["test", "--only", "${file}"],
|
|
// The cwd here must be the same as in CI. Or you will cause test failures that only happen in CI.
|
|
"cwd": "${workspaceFolder}/test",
|
|
"env": {
|
|
"FORCE_COLOR": "1",
|
|
"BUN_DEBUG_QUIET_LOGS": "1"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun test [*]",
|
|
"program": "bun-debug",
|
|
"args": ["test", "js/node"],
|
|
"cwd": "${workspaceFolder}/test",
|
|
"env": {
|
|
"FORCE_COLOR": "1",
|
|
"BUN_DEBUG_QUIET_LOGS": "1",
|
|
"BUN_GARBAGE_COLLECTOR_LEVEL": "2"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun test [*] (fast)",
|
|
"program": "bun-debug",
|
|
"args": ["test", "js"],
|
|
// The cwd here must be the same as in CI. Or you will cause test failures that only happen in CI.
|
|
"cwd": "${workspaceFolder}/test",
|
|
"env": {
|
|
"FORCE_COLOR": "1",
|
|
"BUN_DEBUG_QUIET_LOGS": "1"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun test [*] --only",
|
|
"program": "bun-debug",
|
|
"args": ["test", "--only"],
|
|
// The cwd here must be the same as in CI. Or you will cause test failures that only happen in CI.
|
|
"cwd": "${workspaceFolder}/test",
|
|
"env": {
|
|
"FORCE_COLOR": "1",
|
|
"BUN_DEBUG_QUIET_LOGS": "1"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun run [file]",
|
|
"program": "bun-debug",
|
|
"args": ["run", "${file}"],
|
|
"cwd": "${fileDirname}",
|
|
"env": {
|
|
"FORCE_COLOR": "1",
|
|
"NODE_ENV": "development"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun run [file] (gc)",
|
|
"program": "bun-debug",
|
|
"args": ["run", "${file}"],
|
|
"cwd": "${fileDirname}",
|
|
"env": {
|
|
"FORCE_COLOR": "1",
|
|
"BUN_DEBUG_QUIET_LOGS": "1",
|
|
"BUN_GARBAGE_COLLECTOR_LEVEL": "2"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun run [file] (verbose)",
|
|
"program": "bun-debug",
|
|
"args": ["run", "${file}"],
|
|
"cwd": "${fileDirname}",
|
|
"env": {
|
|
"FORCE_COLOR": "1"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun run [file] --watch",
|
|
"program": "bun-debug",
|
|
"args": ["run", "--watch", "${file}"],
|
|
"cwd": "${fileDirname}",
|
|
"env": {
|
|
"FORCE_COLOR": "1"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun run [file] --hot",
|
|
"program": "bun-debug",
|
|
"args": ["run", "--hot", "${file}"],
|
|
"cwd": "${fileDirname}",
|
|
"env": {
|
|
"FORCE_COLOR": "1"
|
|
},
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "HTTP bench",
|
|
"program": "${workspaceFolder}/misctools/http_bench",
|
|
"args": ["https://twitter.com", "--count=100"],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun build debug",
|
|
"program": "bun-debug",
|
|
"args": ["bun", "${file}"],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole",
|
|
"env": {
|
|
"BUN_CONFIG_MINIFY_WHITESPACE": "1"
|
|
}
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun build debug out.js",
|
|
"program": "bun-debug",
|
|
"args": ["--outfile=out.js", "bun", "${file}"],
|
|
"cwd": "${file}/../",
|
|
"console": "internalConsole",
|
|
"env": {
|
|
"BUN_CONFIG_MINIFY_WHITESPACE": "1"
|
|
}
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun build debug STDOUT",
|
|
"program": "bun-debug",
|
|
"args": ["bun", "${file}"],
|
|
"cwd": "${file}/../",
|
|
"console": "internalConsole",
|
|
"env": {}
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun build debug (no splitting, browser entry)",
|
|
"program": "bun-debug",
|
|
"args": [
|
|
"--entry-names=./[name].[ext]",
|
|
"--outdir=/Users/jarred/Code/bun-rsc/.rsc-no-split",
|
|
"--platform=browser",
|
|
"bun",
|
|
"./quick.tsx"
|
|
],
|
|
"cwd": "/Users/jarred/Code/bun-rsc",
|
|
"console": "internalConsole",
|
|
"env": {
|
|
"NODE_ENV": "production"
|
|
// "BUN_DEBUG_QUIET_LOGS": "1"
|
|
// "BUN_DUMP_SYMBOLS": "1"
|
|
}
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun build debug (splitting, rsc)",
|
|
"program": "bun-debug",
|
|
"args": [
|
|
"--entry-names=./[name].[ext]",
|
|
"--outdir=/Users/jarred/Code/bun-rsc/.rsc-split",
|
|
"--server-components",
|
|
"--platform=bun",
|
|
"--splitting",
|
|
"bun",
|
|
"/Users/jarred/Code/bun-rsc/components/Message.tsx",
|
|
"/Users/jarred/Code/bun-rsc/components/Button.tsx"
|
|
],
|
|
"cwd": "/Users/jarred/Code/bun-rsc",
|
|
"console": "internalConsole",
|
|
"env": {
|
|
"NODE_ENV": "production"
|
|
// "BUN_DEBUG_QUIET_LOGS": "1"
|
|
// "BUN_DUMP_SYMBOLS": "1"
|
|
}
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun build debug (NO splitting, rsc)",
|
|
"program": "bun-debug",
|
|
"args": [
|
|
"--entry-names=./[name].[ext]",
|
|
"--outdir=/Users/jarred/Code/bun-rsc/.rsccheck",
|
|
"--server-components",
|
|
"--platform=bun",
|
|
"bun",
|
|
"/Users/jarred/Code/bun-rsc/pages/index.js"
|
|
],
|
|
"cwd": "/Users/jarred/Code/bun-rsc",
|
|
"console": "internalConsole",
|
|
"env": {
|
|
"NODE_ENV": "production"
|
|
// "BUN_DEBUG_QUIET_LOGS": "1"
|
|
// "BUN_DUMP_SYMBOLS": "1"
|
|
}
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bunx debug",
|
|
"program": "bun-debug",
|
|
"args": ["--bun", "x", "tsc", "--help"],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole",
|
|
"env": {
|
|
"BUN_DEBUG_QUIET_LOGS": "1"
|
|
}
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "bun install",
|
|
"program": "bun-debug",
|
|
"args": ["install"],
|
|
"cwd": "/Users/jarred/Build/worky",
|
|
"console": "internalConsole",
|
|
"env": {}
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "fetch debug",
|
|
"program": "${workspaceFolder}/misctools/fetch",
|
|
"args": ["https://example.com", "--verbose"],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Build zig unit test",
|
|
"program": "make",
|
|
"args": ["build-unit", "${file}"],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Run zig unit test",
|
|
"program": "${workspaceFolder}/zig-out/bin/test",
|
|
"args": ["abc"],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole"
|
|
}
|
|
]
|
|
}
|