Gordon Pedersen
6f3e2f65ad
Code based on (but not identical to) https://github.com/jakelazaroff/activitypub-starter-kit Instead of using node/express, it's using Bun/bun's inbuilt server Right now it can follow/unfollow (be followed/unfollowed) and create notes which get sent to followers No UI yet Stores posts as markdown with YAML frontmatter Stores activities for creating those posts as json Stores following/followers in json files
53 lines
No EOL
1.6 KiB
JSON
53 lines
No EOL
1.6 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "bun",
|
|
"request": "launch",
|
|
"name": "Debug Bun",
|
|
|
|
// The path to a JavaScript or TypeScript file to run.
|
|
"program": "src/index.ts",
|
|
|
|
// The arguments to pass to the program, if any.
|
|
"args": [],
|
|
|
|
// The working directory of the program.
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
// The environment variables to pass to the program.
|
|
"env": {},
|
|
|
|
// If the environment variables should not be inherited from the parent process.
|
|
"strictEnv": false,
|
|
|
|
// If the program should be run in watch mode.
|
|
// This is equivalent to passing `--watch` to the `bun` executable.
|
|
// You can also set this to "hot" to enable hot reloading using `--hot`.
|
|
"watchMode": false,
|
|
|
|
// If the debugger should stop on the first line of the program.
|
|
"stopOnEntry": false,
|
|
|
|
// If the debugger should be disabled. (for example, breakpoints will not be hit)
|
|
"noDebug": false,
|
|
|
|
// The path to the `bun` executable, defaults to your `PATH` environment variable.
|
|
"runtime": "bun",
|
|
|
|
// The arguments to pass to the `bun` executable, if any.
|
|
// Unlike `args`, these are passed to the executable itself, not the program.
|
|
"runtimeArgs": ["--watch"],
|
|
},
|
|
{
|
|
"type": "bun",
|
|
"request": "attach",
|
|
"name": "Attach to Bun",
|
|
|
|
// The URL of the WebSocket inspector to attach to.
|
|
// This value can be retreived by using `bun --inspect`.
|
|
"url": "ws://localhost:6499/",
|
|
}
|
|
]
|
|
}
|
|
|