Typescript here we come IG

This commit is contained in:
2025-03-11 20:35:06 -07:00
parent 44530ff327
commit 6cf8a02100
6 changed files with 2542 additions and 8 deletions

2495
api/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

24
api/package.json Normal file
View File

@@ -0,0 +1,24 @@
{
"dependencies": {
"node": "^23.9.0",
"npm": "^11.2.0"
},
"name": "api",
"version": "1.0.0",
"description": "HTTP API component for bubble",
"main": "dist/main.js",
"devDependencies": {
"typescript": "^5.8.2"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc",
"debug": "node dist/main.js"
},
"repository": {
"type": "git",
"url": "ssh://git@git.shockrah.xyz:2222/shockrah/bubble.git"
},
"author": "shockrah",
"license": "MIT"
}

1
api/src/main.ts Normal file
View File

@@ -0,0 +1 @@
console.log('asdf')

20
api/tsconfig.json Normal file
View File

@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"rootDir": "./src/",
"outDir": "./dist/",
"importHelpers": true,
"strictFunctionTypes": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true
}
}