mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Add exp_gui
This commit is contained in:
8
exp_gui/index.ts
Normal file
8
exp_gui/index.ts
Normal 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
7
exp_gui/instance.ts
Normal 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
|
||||||
|
}
|
||||||
0
exp_gui/module/locale/en.cfg
Normal file
0
exp_gui/module/locale/en.cfg
Normal file
12
exp_gui/module/module.json
Normal file
12
exp_gui/module/module.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "exp_gui",
|
||||||
|
"load": [
|
||||||
|
"module_exports.lua"
|
||||||
|
],
|
||||||
|
"require": [
|
||||||
|
],
|
||||||
|
"dependencies": {
|
||||||
|
"clusterio": "*",
|
||||||
|
"exp_util": "*"
|
||||||
|
}
|
||||||
|
}
|
||||||
0
exp_gui/module/module_exports.lua
Normal file
0
exp_gui/module/module_exports.lua
Normal file
35
exp_gui/package.json
Normal file
35
exp_gui/package.json
Normal 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
6
exp_gui/tsconfig.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"files": [],
|
||||||
|
"references": [
|
||||||
|
{ "path": "./tsconfig.node.json" }
|
||||||
|
]
|
||||||
|
}
|
||||||
5
exp_gui/tsconfig.node.json
Normal file
5
exp_gui/tsconfig.node.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"extends": "../tsconfig.node.json",
|
||||||
|
"include": ["./**/*.ts"],
|
||||||
|
"exclude": ["test/*", "./dist/*"],
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
"references": [
|
"references": [
|
||||||
{ "path": "./exp_commands/" },
|
{ "path": "./exp_commands/" },
|
||||||
{ "path": "./exp_groups/" },
|
{ "path": "./exp_groups/" },
|
||||||
|
{ "path": "./exp_gui/" },
|
||||||
{ "path": "./exp_legacy/" },
|
{ "path": "./exp_legacy/" },
|
||||||
{ "path": "./exp_scenario/" },
|
{ "path": "./exp_scenario/" },
|
||||||
{ "path": "./exp_util/" },
|
{ "path": "./exp_util/" },
|
||||||
|
|||||||
Reference in New Issue
Block a user