mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2026-11-11 15:14:52 +09:00
1.0.7 RC2
This commit is contained in:
1 parent
3b223191da
commit
5461422397
6 files changed
+11
-38
No files matched your search
@@ -104,7 +104,6 @@ export const plugin: lib.PluginDeclaration = {
|
|||||||
name: 'chat_relay',
|
name: 'chat_relay',
|
||||||
title: 'Chat Relay',
|
title: 'Chat Relay',
|
||||||
description: 'Bidirectional chat relay between Factorio and Discord.',
|
description: 'Bidirectional chat relay between Factorio and Discord.',
|
||||||
webEntrypoint: './web',
|
|
||||||
instanceEntrypoint: 'dist/node/instance.js',
|
instanceEntrypoint: 'dist/node/instance.js',
|
||||||
controllerEntrypoint: 'dist/node/controller.js',
|
controllerEntrypoint: 'dist/node/controller.js',
|
||||||
controllerConfigFields: {
|
controllerConfigFields: {
|
||||||
|
|||||||
+4
-4
@@ -22,18 +22,18 @@
|
|||||||
],
|
],
|
||||||
"main": "dist/node/index.js",
|
"main": "dist/node/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "tsc --build && webpack-cli --mode production",
|
"prepare": "tsc --build && vite build",
|
||||||
"test": "echo \"Error: run tests from root\" && exit 1"
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
"@clusterio/controller": "workspace:^",
|
||||||
"@clusterio/lib": "workspace:^"
|
"@clusterio/lib": "workspace:^"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@clusterio/controller": "workspace:^",
|
||||||
"@clusterio/lib": "workspace:^",
|
"@clusterio/lib": "workspace:^",
|
||||||
"@clusterio/web_ui": "workspace:^",
|
"@clusterio/web_ui": "workspace:^",
|
||||||
"webpack": "catalog:",
|
"vite": "catalog:"
|
||||||
"webpack-cli": "catalog:",
|
|
||||||
"webpack-merge": "catalog:"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"discord.js": "^14.27.0",
|
"discord.js": "^14.27.0",
|
||||||
|
|||||||
@@ -4,5 +4,5 @@
|
|||||||
{"path": "../../packages/lib/tsconfig.browser.json"},
|
{"path": "../../packages/lib/tsconfig.browser.json"},
|
||||||
{"path": "../../packages/web_ui/tsconfig.browser.json"}
|
{"path": "../../packages/web_ui/tsconfig.browser.json"}
|
||||||
],
|
],
|
||||||
"include": ["web/**/*.tsx", "web/**/*.ts", "index.ts", "package.json"]
|
"include": ["index.ts", "package.json"]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import { defineConfig } from "vite";
|
||||||
|
import { clusterioPlugin } from "@clusterio/web_ui/vite.mjs";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [clusterioPlugin()],
|
||||||
|
});
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
import {type WebPluginContext} from '@clusterio/web_ui';
|
|
||||||
|
|
||||||
export default async function loadWebPlugin(context: WebPluginContext) {
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
const path = require('path');
|
|
||||||
const webpack = require('webpack');
|
|
||||||
const {merge} = require('webpack-merge');
|
|
||||||
const common = require('@clusterio/web_ui/webpack.common');
|
|
||||||
|
|
||||||
module.exports = (env = {}, argv = {}) => merge(common(env, argv), {
|
|
||||||
context: __dirname,
|
|
||||||
entry: './web/index.tsx',
|
|
||||||
output: {
|
|
||||||
path: path.resolve(__dirname, 'dist', 'web'),
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
new webpack.container.ModuleFederationPlugin({
|
|
||||||
name: 'chat_relay',
|
|
||||||
library: {type: 'var', name: 'plugin_chat_relay'},
|
|
||||||
exposes: {
|
|
||||||
'./': './index.ts',
|
|
||||||
'./package.json': './package.json',
|
|
||||||
'./web': './web/index.tsx',
|
|
||||||
},
|
|
||||||
shared: {
|
|
||||||
'@clusterio/lib': {import: false},
|
|
||||||
'@clusterio/web_ui': {import: false},
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
});
|
|
||||||
Reference in new issue
Block a user