From 372dbe50f7254ed3142a85dac58e624fce695aa7 Mon Sep 17 00:00:00 2001 From: Mouriya Date: Mon, 3 Jun 2024 02:08:37 +0900 Subject: [PATCH] =?UTF-8?q?HTTP=E3=82=B5=E3=83=BC=E3=83=90=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E3=83=9B=E3=83=83=E3=83=88=E3=83=AA=E3=83=AD=E3=83=BC?= =?UTF-8?q?=E3=83=89=E6=A9=9F=E8=83=BD=E3=82=92=E8=BF=BD=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/kintone-addins/package.json | 6 +++++- plugin/kintone-addins/vite.config.js | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/plugin/kintone-addins/package.json b/plugin/kintone-addins/package.json index cca566d..590f2f3 100644 --- a/plugin/kintone-addins/package.json +++ b/plugin/kintone-addins/package.json @@ -10,11 +10,15 @@ "build:dev": "tsc && set \"SOURCE_MAP=true\" && vite build && xcopy dist\\*.js ..\\..\\backend\\Temp\\ /E /I /Y", "preview": "vite preview", "ngrok": "ngrok http http://localhost:4173/", - "vite": "vite dev" + "vite": "vite dev", + "server": "vite dev & ngrok http 4173", + "watch": "vite build --watch", + "test": "run-p watch server" }, "devDependencies": { "@types/jquery": "^3.5.24", "@types/node": "^20.8.9", + "npm-run-all": "^4.1.5", "sass": "^1.69.5", "typescript": "^5.0.2", "vite": "^4.4.5", diff --git a/plugin/kintone-addins/vite.config.js b/plugin/kintone-addins/vite.config.js index 1904e4b..5750db8 100644 --- a/plugin/kintone-addins/vite.config.js +++ b/plugin/kintone-addins/vite.config.js @@ -23,4 +23,8 @@ export default defineConfig({ }, sourcemap: sourcemap, }, + server: { + port: 4173, + open: '/dist/alc_runtime.js', + } });