Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit 0672747

Browse files
author
=
committed
25w11
1 parent c5052f1 commit 0672747

248 files changed

Lines changed: 6994 additions & 7107 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MASTER_KEY=
2+
3+
PB_HOST=
4+
PB_EMAIL=
5+
PB_PASSWORD=
6+
7+
PORT=3636

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules
22
scripts
33
dist
44

5-
*.local
5+
*.local
6+
src/constants/corsAllowedOrigins.ts

bun.lockb

41.3 KB
Binary file not shown.

eslint.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import globals from "globals";
22
import pluginJs from "@eslint/js";
33

4-
54
export default [
6-
{languageOptions: { globals: globals.node }},
5+
{ languageOptions: { globals: globals.node } },
76
pluginJs.configs.recommended,
8-
];
7+
];

jest.config.cjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
preset: "ts-jest",
3+
testEnvironment: "node",
4+
moduleFileExtensions: ["ts", "js"],
5+
transform: {
6+
"^.+\\.ts$": "ts-jest",
7+
},
8+
transform: {
9+
"^.+\\.ts$": ["ts-jest", { isolatedModules: true, diagnostics: false }],
10+
},
11+
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
12+
verbose: true,
13+
};

jest.setup.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import dotenv from "dotenv";
2+
3+
dotenv.config({
4+
path: ".env.local",
5+
});

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"@imgly/background-removal-node": "^1.4.5",
55
"@netlify/functions": "^2.8.2",
66
"@passwordless-id/webauthn": "^1.6.2",
7+
"@types/fluent-ffmpeg": "^2.1.27",
78
"@types/mailparser": "^3.4.5",
89
"@types/pdfkit": "^0.13.5",
910
"aewx-metar-parser": "^1.0.0",
@@ -21,6 +22,7 @@
2122
"csv-parse": "^5.5.6",
2223
"dompurify": "^3.2.3",
2324
"dotenv": "^16.4.5",
25+
"dotenv-flow": "^4.1.0",
2426
"ejs": "^3.1.10",
2527
"exifreader": "^4.23.7",
2628
"express": "^4.21.0",
@@ -72,7 +74,8 @@
7274
},
7375
"scripts": {
7476
"dev": "export NODE_ENV=development && forever stopall && tsx watch --env-file=.env.local ./src/index.ts",
75-
"start": "export NODE_ENV=production && forever stopall && tsc && pkgroll --minify --clean-dist && forever start -c \"node --env-file=.env.local\" dist/index.mjs"
77+
"start": "export NODE_ENV=production && forever stopall && tsc && pkgroll --minify --clean-dist && export $(grep -v '^#' .env.local | xargs) && forever start dist/index.mjs",
78+
"test": "jest"
7679
},
7780
"exports": "./dist/index.mjs",
7881
"main": "src/index.ts",
@@ -91,6 +94,7 @@
9194
"@types/express-validator": "^3.0.0",
9295
"@types/helmet": "^4.0.0",
9396
"@types/imap-simple": "^4.2.9",
97+
"@types/jest": "^29.5.14",
9498
"@types/jsdom": "^21.1.7",
9599
"@types/mime-types": "^2.1.4",
96100
"@types/morgan": "^1.9.9",
@@ -106,6 +110,7 @@
106110
"eslint": "^9.12.0",
107111
"eslint-config-airbnb-base": "^15.0.0",
108112
"eslint-plugin-import": "^2.31.0",
113+
"forever": "^4.0.3",
109114
"globals": "^15.10.0",
110115
"jest": "^29.7.0",
111116
"lorem-ipsum": "^2.0.8",

0 commit comments

Comments
 (0)