diff --git a/exp_gui/index.ts b/exp_gui/index.ts new file mode 100644 index 00000000..eb9596f4 --- /dev/null +++ b/exp_gui/index.ts @@ -0,0 +1,8 @@ +import * as lib from "@clusterio/lib"; + +export const plugin: lib.PluginDeclaration = { + name: "exp_gui", + title: "exp_gui", + description: "Example Description. Plugin. Change me in index.ts", + instanceEntrypoint: "./dist/node/instance", +}; diff --git a/exp_gui/instance.ts b/exp_gui/instance.ts new file mode 100644 index 00000000..e8fa7eeb --- /dev/null +++ b/exp_gui/instance.ts @@ -0,0 +1,7 @@ +import * as lib from "@clusterio/lib"; +import { BaseInstancePlugin } from "@clusterio/host"; + +export class InstancePlugin extends BaseInstancePlugin { + // This class is empty because an instance plugin must be defined for a module to be injected + // This requirement may change in the future to allow for standalone modules +} diff --git a/exp_gui/module/locale/en.cfg b/exp_gui/module/locale/en.cfg new file mode 100644 index 00000000..e69de29b diff --git a/exp_gui/module/module.json b/exp_gui/module/module.json new file mode 100644 index 00000000..c5aaae1d --- /dev/null +++ b/exp_gui/module/module.json @@ -0,0 +1,12 @@ +{ + "name": "exp_gui", + "load": [ + "module_exports.lua" + ], + "require": [ + ], + "dependencies": { + "clusterio": "*", + "exp_util": "*" + } +} diff --git a/exp_gui/module/module_exports.lua b/exp_gui/module/module_exports.lua new file mode 100644 index 00000000..e69de29b diff --git a/exp_gui/package.json b/exp_gui/package.json new file mode 100644 index 00000000..1bd59be4 --- /dev/null +++ b/exp_gui/package.json @@ -0,0 +1,35 @@ +{ + "name": "@expcluster/lib_gui", + "version": "0.1.0", + "description": "Clusterio plugin providing a Lua GUI definition library.", + "author": "Cooldude2606 ", + "license": "MIT", + "repository": "explosivegaming/ExpCluster", + "main": "dist/node/index.js", + "scripts": { + "prepare": "tsc --build" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@clusterio/lib": "^2.0.0-alpha.19" + }, + "devDependencies": { + "@clusterio/lib": "2.0.0-alpha.19", + "@types/node": "^20.14.9", + "typescript": "^5.5.3" + }, + "dependencies": { + "@expcluster/lib_util": "workspace:*", + "@sinclair/typebox": "^0.30.4" + }, + "publishConfig": { + "access": "public" + }, + "keywords": [ + "clusterio", + "clusterio-plugin", + "factorio" + ] +} diff --git a/exp_gui/tsconfig.json b/exp_gui/tsconfig.json new file mode 100644 index 00000000..a0473e75 --- /dev/null +++ b/exp_gui/tsconfig.json @@ -0,0 +1,6 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.node.json" } + ] +} diff --git a/exp_gui/tsconfig.node.json b/exp_gui/tsconfig.node.json new file mode 100644 index 00000000..3218f2e7 --- /dev/null +++ b/exp_gui/tsconfig.node.json @@ -0,0 +1,5 @@ +{ + "extends": "../tsconfig.node.json", + "include": ["./**/*.ts"], + "exclude": ["test/*", "./dist/*"], +} diff --git a/tsconfig.json b/tsconfig.json index 754a5810..e6634ddf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "references": [ { "path": "./exp_commands/" }, { "path": "./exp_groups/" }, + { "path": "./exp_gui/" }, { "path": "./exp_legacy/" }, { "path": "./exp_scenario/" }, { "path": "./exp_util/" },