Add exp_gui

This commit is contained in:
Cooldude2606
2025-01-02 03:22:50 +00:00
parent 1a17f11062
commit a924a211ae
9 changed files with 74 additions and 0 deletions

8
exp_gui/index.ts Normal file
View File

@@ -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",
};

7
exp_gui/instance.ts Normal file
View File

@@ -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
}

View File

View File

@@ -0,0 +1,12 @@
{
"name": "exp_gui",
"load": [
"module_exports.lua"
],
"require": [
],
"dependencies": {
"clusterio": "*",
"exp_util": "*"
}
}

View File

35
exp_gui/package.json Normal file
View File

@@ -0,0 +1,35 @@
{
"name": "@expcluster/lib_gui",
"version": "0.1.0",
"description": "Clusterio plugin providing a Lua GUI definition library.",
"author": "Cooldude2606 <https://github.com/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"
]
}

6
exp_gui/tsconfig.json Normal file
View File

@@ -0,0 +1,6 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.node.json" }
]
}

View File

@@ -0,0 +1,5 @@
{
"extends": "../tsconfig.node.json",
"include": ["./**/*.ts"],
"exclude": ["test/*", "./dist/*"],
}

View File

@@ -3,6 +3,7 @@
"references": [
{ "path": "./exp_commands/" },
{ "path": "./exp_groups/" },
{ "path": "./exp_gui/" },
{ "path": "./exp_legacy/" },
{ "path": "./exp_scenario/" },
{ "path": "./exp_util/" },