mirror of
https://github.com/MincoMK/create-computercraft.git
synced 2025-12-10 06:33:18 +00:00
init
This commit is contained in:
3
templates/library/.gitignore
vendored
Normal file
3
templates/library/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
dist/**/*
|
||||
node_modules
|
||||
pnpm-lock.yaml
|
||||
29
templates/library/package.json
Normal file
29
templates/library/package.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "{{ PROJECT_NAME }}",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"license": "ISC",
|
||||
"author": "",
|
||||
"type": "commonjs",
|
||||
"types": "./dist/main.d.ts",
|
||||
"main": "./dist/main",
|
||||
"files": [
|
||||
"dist/**/*.lua",
|
||||
"dist/**/*.d.ts"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tstl"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.27.0",
|
||||
"computercraft-ts": "^1.0.0",
|
||||
"eslint": "^9.27.0",
|
||||
"globals": "^16.2.0",
|
||||
"luamin": "^1.0.4",
|
||||
"typescript": "^5.8.3",
|
||||
"typescript-eslint": "^8.33.0",
|
||||
"typescript-to-lua": "^1.31.1",
|
||||
"typescript-tstl-plugin": "^0.3.2"
|
||||
},
|
||||
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
|
||||
}
|
||||
3
templates/library/src/main.ts
Normal file
3
templates/library/src/main.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function hello() {
|
||||
print("Hello, world!");
|
||||
}
|
||||
18
templates/library/tsconfig.json
Normal file
18
templates/library/tsconfig.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/TypeScriptToLua/TypeScriptToLua/master/tsconfig-schema.json",
|
||||
"compilerOptions": {
|
||||
"target": "ESNext",
|
||||
"lib": ["ESNext"],
|
||||
"moduleResolution": "Node",
|
||||
"types": ["computercraft-ts"],
|
||||
"strict": true,
|
||||
"declaration": true,
|
||||
"outDir": "dist/",
|
||||
"rootDir": "src/"
|
||||
},
|
||||
"tstl": {
|
||||
"luaTarget": "JIT",
|
||||
"buildMode": "library"
|
||||
},
|
||||
"include": ["src/**/*"]
|
||||
}
|
||||
Reference in New Issue
Block a user