From a44ef3837ff941cf092cd5119f86a5e6c19a2be0 Mon Sep 17 00:00:00 2001 From: sharworange Date: Fri, 5 Jul 2024 15:45:13 +0800 Subject: [PATCH] initial commit --- .editorconfig | 9 +++++++++ .gitattributes | 7 +++++++ .gitignore | 18 ++++++++++++++++++ .npmignore | 2 ++ package.json | 22 ++++++++++++++++++++++ readme.md | 5 +++++ src/index.ts | 11 +++++++++++ tsconfig.json | 24 ++++++++++++++++++++++++ 8 files changed, 98 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .npmignore create mode 100644 package.json create mode 100644 readme.md create mode 100644 src/index.ts create mode 100644 tsconfig.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..8f02e58 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +insert_final_newline = true +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f6b1d23 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +* text eol=lf + +*.png -text +*.jpg -text +*.ico -text +*.gif -text +*.webp -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea11750 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +lib +dist +external + +node_modules +npm-debug.log +yarn-debug.log +yarn-error.log +tsconfig.tsbuildinfo + +.eslintcache +.DS_Store +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..7e5fcbc --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +.DS_Store +tsconfig.tsbuildinfo diff --git a/package.json b/package.json new file mode 100644 index 0000000..a9429c1 --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "koishi-plugin-minecraft-vc-rcon", + "description": "", + "version": "0.0.1", + "main": "lib/index.js", + "typings": "lib/index.d.ts", + "files": [ + "lib", + "dist" + ], + "license": "MIT", + "scripts": {}, + "keywords": [ + "chatbot", + "koishi", + "plugin" + ], + "devDependencies": {}, + "peerDependencies": { + "koishi": "^4.17.9" + } +} diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..63b58d0 --- /dev/null +++ b/readme.md @@ -0,0 +1,5 @@ +# koishi-plugin-minecraft-vc-rcon + +[![npm](https://img.shields.io/npm/v/koishi-plugin-minecraft-vc-rcon?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-minecraft-vc-rcon) + + diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..554fc4b --- /dev/null +++ b/src/index.ts @@ -0,0 +1,11 @@ +import { Context, Schema } from 'koishi' + +export const name = 'minecraft-vc-rcon' + +export interface Config {} + +export const Config: Schema = Schema.object({}) + +export function apply(ctx: Context) { + // write your plugin here +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..5af41f7 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "rootDir": "src", + "outDir": "lib", + "target": "es2022", + "module": "esnext", + "declaration": true, + "emitDeclarationOnly": true, + "composite": true, + "incremental": true, + "skipLibCheck": true, + "esModuleInterop": true, + "moduleResolution": "bundler", + "jsx": "react-jsx", + "jsxImportSource": "@satorijs/element", + "types": [ + "node", + "yml-register/types" + ] + }, + "include": [ + "src" + ] +}