Initial repository setup and core files added

Add configuration, documentation, code of conduct, contributing guide, license, and README files. Set up .gitignore, coverage config, GitHub issue templates, pull request template, and initial source code, scripts, and tests for DeepLX optimized for Cloudflare Workers.
This commit is contained in:
xixu-me committed 2025-07-27 02:09:25 +08:00
commit 8afa94767e
63 files changed
+14751

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
roots: ["<rootDir>/src", "<rootDir>/tests"],
testMatch: ["**/__tests__/**/*.ts", "**/?(*.)+(spec|test).ts"],
transform: {
"^.+\\.ts$": "ts-jest",
},
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.d.ts", "!src/**/index.ts"],
coverageDirectory: "coverage",
coverageReporters: ["text", "lcov", "html"],
setupFilesAfterEnv: ["<rootDir>/tests/setup.ts"],
moduleNameMapping: {
"^@/(.*)$": "<rootDir>/src/$1",
},
testTimeout: 30000,
globals: {
"ts-jest": {
tsconfig: {
target: "ES2020",
module: "commonjs",
lib: ["ES2020", "WebWorker"],
types: ["@cloudflare/workers-types", "jest"],
},
},
},
};