Skip to content

Commit

Permalink
chore(ditsmod): upgrade Ditsmod, removed bun.lockb and bun-providers.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaTretyak committed Aug 16, 2024
1 parent b669efd commit 4a462a9
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 36 deletions.
1 change: 1 addition & 0 deletions frameworks/TypeScript/ditsmod/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist*
.pnp*
nodemon.json
package-lock.json
bun.lockb
12 changes: 6 additions & 6 deletions frameworks/TypeScript/ditsmod/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"approach": "Realistic",
"classification": "Micro",
"database": "None",
"framework": "Ditsmod",
"framework": "ditsmod-bun",
"language": "TypeScript",
"flavor": "None",
"orm": "None",
Expand All @@ -159,7 +159,7 @@
"approach": "Realistic",
"classification": "Micro",
"database": "None",
"framework": "Ditsmod",
"framework": "ditsmod-bun",
"language": "TypeScript",
"flavor": "None",
"orm": "None",
Expand All @@ -182,7 +182,7 @@
"approach": "Realistic",
"classification": "Micro",
"database": "Postgres",
"framework": "Ditsmod",
"framework": "ditsmod-bun",
"language": "TypeScript",
"flavor": "None",
"orm": "Raw",
Expand All @@ -205,7 +205,7 @@
"approach": "Realistic",
"classification": "Micro",
"database": "MySQL",
"framework": "Ditsmod",
"framework": "ditsmod-bun",
"language": "TypeScript",
"flavor": "None",
"orm": "Raw",
Expand All @@ -228,7 +228,7 @@
"approach": "Realistic",
"classification": "Micro",
"database": "Postgres",
"framework": "Ditsmod",
"framework": "ditsmod-bun",
"language": "TypeScript",
"flavor": "None",
"orm": "Raw",
Expand All @@ -251,7 +251,7 @@
"approach": "Realistic",
"classification": "Micro",
"database": "MySQL",
"framework": "Ditsmod",
"framework": "ditsmod-bun",
"language": "TypeScript",
"flavor": "None",
"orm": "Raw",
Expand Down
Binary file removed frameworks/TypeScript/ditsmod/bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion frameworks/TypeScript/ditsmod/ditsmod-bun-mysql.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN bun install
RUN bun run build

ENV NODE_ENV production
ENV IS_BUN true
ENV DATABASE mysql
ENV MYSQL_HOST tfb-database
ENV MYSQL_USER benchmarkdbuser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN bun install
RUN bun run build

ENV NODE_ENV production
ENV IS_BUN true
ENV DATABASE postgres
ENV PG_HOST tfb-database
ENV PG_USER benchmarkdbuser
Expand Down
1 change: 0 additions & 1 deletion frameworks/TypeScript/ditsmod/ditsmod-bun.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN bun install
RUN bun run build

ENV NODE_ENV production
ENV IS_BUN true

EXPOSE 8080
CMD rm node_modules/@ditsmod/*/tsconfig.json && bun src/app/bun-integration/spawn.ts
2 changes: 1 addition & 1 deletion frameworks/TypeScript/ditsmod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"author": "Костя Третяк",
"license": "MIT",
"dependencies": {
"@ditsmod/core": "~2.54.2",
"@ditsmod/core": "~2.55.0",
"@ditsmod/routing": "~2.3.0",
"handlebars": "^4.7.8",
"lru-cache": "^11.0.0",
Expand Down
10 changes: 5 additions & 5 deletions frameworks/TypeScript/ditsmod/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { PreRouter, rootModule } from '@ditsmod/core';
import { PreRouter, Providers, rootModule } from '@ditsmod/core';

import { SimpleModule } from '#routed/simple/simple.module.js';
import { BunPreRouter } from './bun-integration/pre-router.js';
import { BunProviders } from './bun-integration/bun-providers.js';

@rootModule({
appends: [SimpleModule],
providersPerApp: [
...new BunProviders().useLogConfig({ level: 'off' }).if(process.env.IS_BUN).useClass(PreRouter, BunPreRouter),
],
providersPerApp: new Providers()
.useLogConfig({ level: 'off' })
.$if(global['Bun'])
.useClass(PreRouter, BunPreRouter),
})
export class AppModule {}

This file was deleted.

0 comments on commit 4a462a9

Please sign in to comment.