Skip to content

Commit

Permalink
Complete webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Nov 21, 2023
1 parent 3925a95 commit 948a12a
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 78 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ updates:
# versioning-strategy: increase
allow:
- dependency-name: "@nestia/*"
- dependency-name: "@nestjs/*"
- dependency-name: "nestia"
- dependency-name: "tstl"
- dependency-name: "typia"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"dotenv-expand": "^10.0.0",
"git-last-commit": "^1.0.0",
"jsonwebtoken": "^9.0.2",
"mutex-server": "^0.3.1",
"mutex-server": "^0.3.2",
"prisma": "^5.6.0",
"prisma-markdown": "^1.0.7",
"source-map-support": "^0.5.19",
Expand Down
12 changes: 0 additions & 12 deletions src/executable/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import { randint } from "tstl/algorithm/random";
import { Singleton } from "tstl/thread/Singleton";

import { MyBackend } from "../MyBackend";
import { MyGlobal } from "../MyGlobal";
import { MyUpdator } from "../MyUpdator";
import { MyScheduler } from "../schedulers/MyScheduler";
import { ErrorUtil } from "../utils/ErrorUtil";

const EXTENSION = __filename.substr(-2);
Expand Down Expand Up @@ -58,15 +55,6 @@ async function main(): Promise<void> {
// UNEXPECTED ERRORS
global.process.on("uncaughtException", handle_error);
global.process.on("unhandledRejection", handle_error);

// SCHEDULER ONLY WHEN MASTER
if (MyGlobal.env.MODE !== "real" || process.argv[3] === "master") {
if (MyGlobal.env.MODE === "local")
try {
await MyUpdator.master();
} catch {}
await MyScheduler.repeat();
}
}
main().catch((exp) => {
console.log(exp);
Expand Down
39 changes: 0 additions & 39 deletions src/schedulers/MyScheduler.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/schedulers/features/schedule_something_in_every_day.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/schedulers/features/schedule_something_in_every_hour.ts

This file was deleted.

This file was deleted.

3 changes: 2 additions & 1 deletion test/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ const webpackTest = async (): Promise<void> => {
throw new Error("Run npm run webpack command first.");

// START BACKEND SERVER
const backend = cp.fork("server.js", {
const backend = cp.fork(`${MyConfiguration.ROOT}/dist/server.js`, {
cwd: `${MyConfiguration.ROOT}/dist`,
});
console.log(__dirname + "/features");
await sleep_for(2_500);

// DO TEST
Expand Down
4 changes: 0 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ module.exports = {
from: "./node_modules/.prisma/client/*.node",
to: () => Promise.resolve("[path][name][ext]"),
},
{
from: "./node_modules/ws/**/*.*",
to: () => Promise.resolve("[path][name][ext]"),
},
],
}),
new WriteFilePlugin(),
Expand Down

0 comments on commit 948a12a

Please sign in to comment.