Refactor: npm run dev script

This commit is contained in:
unitwk 2023-11-17 21:03:22 +08:00
parent ac9962f622
commit 15fe2c07f3
10 changed files with 14 additions and 43 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
open -a Terminal.app "start-daemon.sh"
open -a Terminal.app "start-panel.sh"
./start-frontend.sh
open -a Terminal.app "npm run start-daemon"
open -a Terminal.app "npm run start-panel"
npm run start-frontend

View File

@ -1,4 +1,5 @@
start start-daemon.bat
start start-panel.bat
start-frontend.bat
start npm run start-daemon
start npm run start-panel
npm run start-frontend

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{
"name": "mcsmanager-root",
"name": "mcsmanager-workspace",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mcsmanager-root",
"name": "mcsmanager-workspace",
"version": "1.0.0",
"dependencies": {
"crc": "^4.3.2",

View File

@ -1,9 +1,12 @@
{
"name": "mcsmanager-root",
"name": "mcsmanager-workspace",
"version": "1.0.0",
"scripts": {
"i18n": "i18next-scanner --config i18-scanner.config.js",
"preview-build": "cd common && npm install && npm run build"
"preview-build": "cd common && npm install && npm run build",
"start-daemon": "cd daemon && npm run dev",
"start-frontend": "cd frontend && npm run dev",
"start-panel": "cd panel && npm run dev"
},
"dependencies": {
"crc": "^4.3.2",

View File

@ -1,4 +0,0 @@
cd daemon
npm run dev

View File

@ -1,7 +0,0 @@
#!/bin/bash
script_directory=$(dirname "$0")
cd "$script_directory"/daemon
npm run dev

View File

@ -1,4 +0,0 @@
cd frontend
npm run dev

View File

@ -1,7 +0,0 @@
#!/bin/bash
script_directory=$(dirname "$0")
cd "$script_directory"/frontend
npm run dev

View File

@ -1,4 +0,0 @@
cd panel
npm run dev

View File

@ -1,7 +0,0 @@
#!/bin/bash
script_directory=$(dirname "$0")
cd "$script_directory"/panel
npm run dev