mirror of
https://github.com/araxiaonline/docs.git
synced 2026-06-13 03:32:31 -04:00
Adding base files
This commit is contained in:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
node_modules
|
||||
*.env
|
||||
dist
|
||||
.vscode
|
||||
plugins
|
||||
1063
package-lock.json
generated
Normal file
1063
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
17
package.json
Normal file
17
package.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@tsconfig/recommended": "^1.0.3",
|
||||
"@types/node": "^20.11.25",
|
||||
"@types/typescript": "^2.0.0",
|
||||
"typescript": "^5.4.2",
|
||||
"wow-eluna-ts-module": "^1.11.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "^0.17.1",
|
||||
"@types/commander": "^2.12.2",
|
||||
"commander": "^12.0.0",
|
||||
"dotenv": "^16.4.5",
|
||||
"openai": "^4.28.4",
|
||||
"ts-node": "^10.9.2"
|
||||
}
|
||||
}
|
||||
33
tsconfig.json
Normal file
33
tsconfig.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"strict": false,
|
||||
"target": "esnext",
|
||||
"outDir": "./dist",
|
||||
"skipLibCheck": true,
|
||||
"lib": [
|
||||
"esnext"
|
||||
],
|
||||
"moduleResolution": "node",
|
||||
"types": [
|
||||
"lua-types/5.2",
|
||||
"@typescript-to-lua/language-extensions",
|
||||
"wow-eluna-ts-module",
|
||||
"@araxiaonline/wow-wotlk-declarations",
|
||||
"node"
|
||||
],
|
||||
"rootDir": "."
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/node_modules",
|
||||
"test",
|
||||
"**/*spec.ts",
|
||||
"**/__tests__",
|
||||
"**/__mocks__",
|
||||
"dist",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
111
tstl.schema.json
Normal file
111
tstl.schema.json
Normal file
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"title": "tsconfig.json with TSTL",
|
||||
"description": "JSON schema for the TypeScript compiler's configuration file with TSTL",
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "https://json.schemastore.org/tsconfig"
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"tstl": {
|
||||
"description": "TypeScriptToLua compiler options.",
|
||||
"type": "object",
|
||||
"definitions": {
|
||||
"//": {
|
||||
"reference": "https://typescripttolua.github.io/docs/configuration#custom-options"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"buildMode": {
|
||||
"description": "Use buildMode: \"library\" to build publishable library packages.",
|
||||
"type": "string",
|
||||
"default": "library",
|
||||
"enum": ["default", "library"]
|
||||
},
|
||||
"extension": {
|
||||
"description": "File extension for the resulting Lua files. Defaults to \".lua\"",
|
||||
"type": "string"
|
||||
},
|
||||
"lua51AllowTryCatchInAsyncAwait": {
|
||||
"description": "Disable the warning that try/catch is not allowed in async functions in Lua 5.1, in case you are using a patched 5.1 lua version that supports this.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"luaBundle": {
|
||||
"description": "The name of the lua file to bundle output lua to. Requires luaBundleEntry.",
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"luaBundleEntry": {
|
||||
"description": "The entry *.ts file that will be executed when entering the luaBundle. Requires luaBundle.",
|
||||
"type": "string"
|
||||
},
|
||||
"luaLibImport": {
|
||||
"description": "Specifies how js standard features missing in lua are imported.",
|
||||
"type": "string",
|
||||
"default": "require",
|
||||
"enum": ["none", "inline", "require", "require-minimal"]
|
||||
},
|
||||
"luaTarget": {
|
||||
"description": "Specifies the Lua version you want to generate code for.",
|
||||
"type": "string",
|
||||
"default": "universal",
|
||||
"enum": ["5.0", "universal", "5.1", "5.2", "5.3", "5.4", "JIT"]
|
||||
},
|
||||
"noImplicitGlobalVariables": {
|
||||
"description": "Always declare all root-level variables as local, even if the file is not a module and they would be global in TypeScript.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"noImplicitSelf": {
|
||||
"description": "If true, treats all project files as if they were prefixed with\n/** @noSelfInFile **/.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"noHeader": {
|
||||
"description": "Specify if a header will be added to compiled files.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"noResolvePaths": {
|
||||
"description": "An array of import paths that should not be resolved but copied verbatim to output lua.",
|
||||
"type": "array"
|
||||
},
|
||||
"sourceMapTraceback": {
|
||||
"description": "Applies the source map to show source TS files and lines in error tracebacks.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"tstlVerbose": {
|
||||
"description": "Give verbose tstl output, helpful when diagnosing tstl issues.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"luaPlugins": {
|
||||
"description": "List of TypeScriptToLua plugins.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"description": "Describes TypeScriptToLua plugin",
|
||||
"type": "object",
|
||||
"required": ["name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Path to the JS file, that contains the plugin code",
|
||||
"type": "string"
|
||||
},
|
||||
"import": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"measurePerformance": {
|
||||
"description": "Measure and report performance of the tstl compiler.",
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"allowTrailingCommas": true
|
||||
}
|
||||
Reference in New Issue
Block a user