diff --git a/qwilight-fe/ecosystem.config.js b/qwilight-fe/ecosystem.config.js index d2b069b..e7413b3 100644 --- a/qwilight-fe/ecosystem.config.js +++ b/qwilight-fe/ecosystem.config.js @@ -2,7 +2,7 @@ apps: [ { name: "qwilight-fe", - script: "pnpm start", + script: "next start -p 3001", instances: "max", exec_mode: "cluster", }, diff --git a/qwilight-fe/package.json b/qwilight-fe/package.json index 32561b8..9a31618 100644 --- a/qwilight-fe/package.json +++ b/qwilight-fe/package.json @@ -5,7 +5,8 @@ "scripts": { "dev": "next dev -p 3001", "build": "next build", - "start": "next start -p 3001", + "start": "pm2 start", + "stop": "pm2 stop", "lint": "next lint" }, "dependencies": { diff --git a/taehui-fe/ecosystem.config.js b/taehui-fe/ecosystem.config.js index 9db7bc3..b20b662 100644 --- a/taehui-fe/ecosystem.config.js +++ b/taehui-fe/ecosystem.config.js @@ -2,7 +2,7 @@ apps: [ { name: "taehui-fe", - script: ".", + script: "next start", instances: "max", exec_mode: "cluster", }, diff --git a/taehui-fe/package.json b/taehui-fe/package.json index dcd713a..747988a 100644 --- a/taehui-fe/package.json +++ b/taehui-fe/package.json @@ -5,7 +5,8 @@ "scripts": { "dev": "next dev", "build": "next build", - "start": "next start", + "start": "pm2 start", + "stop": "pm2 stop", "lint": "next lint" }, "dependencies": { diff --git a/taehui-fe/src/hoc/withQueryClient.tsx b/taehui-fe/src/hoc/withQueryClient.tsx index f4a7744..871865c 100644 --- a/taehui-fe/src/hoc/withQueryClient.tsx +++ b/taehui-fe/src/hoc/withQueryClient.tsx @@ -4,7 +4,7 @@ const queryClient = new QueryClient(); export default function withQueryClient(Component: FC) { - return (props: T) => { + return function HOC(props: T) { return ( diff --git a/taehui-ts/.gitignore b/taehui-ts/.gitignore index ca58f78..2b503ec 100644 --- a/taehui-ts/.gitignore +++ b/taehui-ts/.gitignore @@ -1,3 +1,3 @@ /.turbo -/build +/main /node_modules diff --git a/taehui-ts/package.json b/taehui-ts/package.json index d14245e..4a8d01f 100644 --- a/taehui-ts/package.json +++ b/taehui-ts/package.json @@ -3,20 +3,20 @@ "version": "1.0.0", "private": true, "exports": { - "./date": "./build/date.js", - "./fe-utilities": "./build/fe-utilities.js", - "./language": "./build/language.js" + "./date": "./main/date.js", + "./fe-utilities": "./main/fe-utilities.js", + "./language": "./main/language.js" }, "typesVersions": { "*": { "date": [ - "./build/date.d.ts" + "./main/date.d.ts" ], "fe-utilities": [ - "./build/fe-utilities.d.ts" + "./main/fe-utilities.d.ts" ], "language": [ - "./build/language.d.ts" + "./main/language.d.ts" ] } }, diff --git a/taehui-ts/rollup.config.mjs b/taehui-ts/rollup.config.mjs index 307454e..a39046f 100644 --- a/taehui-ts/rollup.config.mjs +++ b/taehui-ts/rollup.config.mjs @@ -7,12 +7,12 @@ plugins: [ typescript({ compilerOptions: { - outDir: "build", + outDir: "main", declaration: true, }, }), ], output: { - dir: "build" + dir: "main" }, }); diff --git a/taehui-www/.gitignore b/taehui-www/.gitignore index 9610f6b..10a72a4 100644 --- a/taehui-www/.gitignore +++ b/taehui-www/.gitignore @@ -2,6 +2,6 @@ /DB /Event /System -/build +/main /node_modules Configure.json diff --git a/taehui-www/ecosystem.config.js b/taehui-www/ecosystem.config.js index 1b19cbd..e6e0c55 100644 --- a/taehui-www/ecosystem.config.js +++ b/taehui-www/ecosystem.config.js @@ -2,7 +2,7 @@ apps: [ { name: "taehui-www", - script: ".", + script: "main", instances: "max", exec_mode: "cluster", }, diff --git a/taehui-www/package.json b/taehui-www/package.json index b106675..8c520cc 100644 --- a/taehui-www/package.json +++ b/taehui-www/package.json @@ -20,11 +20,15 @@ "@types/koa-router": "^7.4.8", "@types/uuid": "^9.0.8", "concurrently": "^8.2.2", + "esbuild": "^0.20.1", "nodemon": "^3.1.0" }, "scripts": { "dev": "conc pnpm:local pnpm:watch", - "local": "nodemon -e js,json build", - "watch": "esbuild --bundle --outfile=build/index.js --platform=node --sourcemap --watch src" + "local": "nodemon -e js,json main", + "watch": "esbuild --bundle --outfile=main/index.js --platform=node --sourcemap --watch src", + "build": "esbuild --bundle --minify --outfile=main/index.js --platform=node --sourcemap src", + "start": "pm2 start", + "stop": "pm2 stop" } } diff --git a/turbo.json b/turbo.json index 7864051..963698c 100644 --- a/turbo.json +++ b/turbo.json @@ -11,7 +11,8 @@ "^build" ], "outputs": [ - ".next/**" + ".next/**", + "main/**" ] }, "start": {