This commit is contained in:
Benjamin Toby 2026-01-26 14:11:48 +01:00
parent 1e3c6fcf4c
commit 2dff234715
9 changed files with 600 additions and 2 deletions

2
.bunfig.toml Normal file
View File

@ -0,0 +1,2 @@
[install.scopes]
moduletrace = "https://git.tben.me/api/packages/moduletrace/npm/"

34
.gitignore vendored Normal file
View File

@ -0,0 +1,34 @@
# dependencies (bun install)
node_modules
# output
out
dist
*.tgz
# code coverage
coverage
*.lcov
# logs
logs
_.log
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# caches
.eslintcache
.cache
*.tsbuildinfo
# IntelliJ based IDEs
.idea
# Finder (MacOS) folder config
.DS_Store

15
README.md Normal file
View File

@ -0,0 +1,15 @@
# server-data
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run index.ts
```
This project was created using `bun init` in bun v1.3.0. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.

501
bun.lock Normal file

File diff suppressed because it is too large Load Diff

1
index.ts Normal file
View File

@ -0,0 +1 @@
console.log("Hello via Bun!");

16
package.json Normal file
View File

@ -0,0 +1,16 @@
{
"name": "server-data",
"module": "index.ts",
"type": "module",
"private": true,
"devDependencies": {
"@types/bun": "latest",
"@types/node": "^25.0.10"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"@moduletrace/datasquirel": "^5.7.32"
}
}

View File

@ -1,5 +1,5 @@
import datasquirel from "@moduletrace/datasquirel"; import datasquirel from "@moduletrace/datasquirel";
import { execSync, ExecSyncOptions } from "child_process"; import { execSync, type ExecSyncOptions } from "child_process";
import path from "path"; import path from "path";
const BACKUP_DIR = `/root/backups`; const BACKUP_DIR = `/root/backups`;

View File

@ -1,5 +1,5 @@
import datasquirel from "@moduletrace/datasquirel"; import datasquirel from "@moduletrace/datasquirel";
import { execSync, ExecSyncOptions } from "child_process"; import { execSync, type ExecSyncOptions } from "child_process";
import path from "path"; import path from "path";
const BACKUP_DIR = `/root/backups`; const BACKUP_DIR = `/root/backups`;

29
tsconfig.json Normal file
View File

@ -0,0 +1,29 @@
{
"compilerOptions": {
// Environment setup & latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
}