Commit 2433775b authored by nanahira's avatar nanahira

bump and dev server

parent d2778fd8
...@@ -13,3 +13,7 @@ Dockerfile ...@@ -13,3 +13,7 @@ Dockerfile
/dist/tests /dist/tests
/dev /dev
/dist/dev /dist/dev
/webpack.config.js
/.eslint*
.*ignore
.prettierrc*
import { Context } from 'koishi';
export default class ExtrasInDev {
constructor(ctx: Context) {}
}
...@@ -2,6 +2,9 @@ import { App } from 'koishi'; ...@@ -2,6 +2,9 @@ import { App } from 'koishi';
import TargetPlugin from '../src'; import TargetPlugin from '../src';
import ConsolePlugin from '@koishijs/plugin-console'; import ConsolePlugin from '@koishijs/plugin-console';
import SandboxPlugin from '@koishijs/plugin-sandbox'; import SandboxPlugin from '@koishijs/plugin-sandbox';
import DatabasePlugin from '@koishijs/plugin-database-memory';
import CachePlugin from '@koishijs/plugin-cache-lru';
import ExtrasInDev from './extras';
const app = new App({ const app = new App({
port: 14514, port: 14514,
...@@ -9,11 +12,20 @@ const app = new App({ ...@@ -9,11 +12,20 @@ const app = new App({
prefix: '.', prefix: '.',
}); });
// Console and sandbox
app.plugin(SandboxPlugin);
app.plugin(ConsolePlugin, { app.plugin(ConsolePlugin, {
open: true, open: false,
}); });
app.plugin(SandboxPlugin);
// Some services
app.plugin(CachePlugin);
app.plugin(DatabasePlugin);
// Some extras
app.plugin(ExtrasInDev);
// Target plugin
app.plugin(TargetPlugin, {}); app.plugin(TargetPlugin, {});
app.start(); app.start();
This diff is collapsed.
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
}, },
"homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-mcinfo", "homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-mcinfo",
"dependencies": { "dependencies": {
"koishi-thirdeye": "^8.3.2", "koishi-thirdeye": "^8.3.3",
"minecraft-protocol": "^1.30.0", "minecraft-protocol": "^1.30.0",
"source-map-support": "^0.5.21" "source-map-support": "^0.5.21"
}, },
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
"koishi": "^4.2.2" "koishi": "^4.2.2"
}, },
"devDependencies": { "devDependencies": {
"@koishijs/plugin-cache-lru": "^1.0.0-rc.0",
"@koishijs/plugin-console": "^3.1.1", "@koishijs/plugin-console": "^3.1.1",
"@koishijs/plugin-database-memory": "^1.0.2",
"@koishijs/plugin-sandbox": "^1.0.0", "@koishijs/plugin-sandbox": "^1.0.0",
"@types/jest": "^27.4.0", "@types/jest": "^27.4.0",
"@types/node": "^17.0.18", "@types/node": "^17.0.18",
...@@ -49,6 +51,7 @@ ...@@ -49,6 +51,7 @@
"raw-loader": "^4.0.2", "raw-loader": "^4.0.2",
"ts-jest": "^27.1.3", "ts-jest": "^27.1.3",
"ts-loader": "^9.2.6", "ts-loader": "^9.2.6",
"ts-node": "^10.5.0",
"typescript": "^4.5.5", "typescript": "^4.5.5",
"webpack": "^5.69.1", "webpack": "^5.69.1",
"webpack-cli": "^4.9.2", "webpack-cli": "^4.9.2",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment