-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1497ff
commit bb30e52
Showing
7 changed files
with
10 additions
and
83 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import os from "node:os"; | ||
|
||
const numCPUs = os.cpus().length; | ||
for (let i = 0; i < numCPUs; i++) { | ||
Bun.spawn(["bun", "app.ts"], { | ||
stdio: ["inherit", "inherit", "inherit"], | ||
env: { ...process.env }, | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,6 @@ | ||
{ | ||
"name": "durian.js", | ||
"version": "1.0.0", | ||
"description": "Run NestJS on Bun Blazingly Fast", | ||
"author": "mario-huang", | ||
"license": "MIT", | ||
"keywords": [ | ||
"durian", | ||
"durianjs", | ||
"nest", | ||
"nestjs", | ||
"bun" | ||
], | ||
"scripts": { | ||
"build": "durian build", | ||
"start": "durian start", | ||
"start:debug": "durian start:debug", | ||
"start:dev": "durian start:dev", | ||
"start:prod": "durian start:prod", | ||
"compile": "durian compile", | ||
"compile:linux-x64": "durian compile:linux-x64", | ||
"compile:linux-arm64": "durian compile:linux-arm64", | ||
"compile:windows-x64": "durian compile:windows-x64", | ||
"compile:darwin-x64": "durian compile:darwin-x64", | ||
"compile:darwin-arm64": "durian compile:darwin-arm64", | ||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", | ||
"test": "durian test", | ||
"test:watch": "durian test:watch", | ||
"test:cov": "durian test:cov", | ||
"test:debug": "durian test:debug", | ||
"test:e2e": "durian test:e2e" | ||
}, | ||
"dependencies": { | ||
"durian.js": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@nestjs/cli": "^10.0.0", | ||
"@nestjs/schematics": "^10.0.0", | ||
"@nestjs/testing": "^10.0.0", | ||
"@types/bun": "^1.1.6", | ||
"@types/express": "^4.17.17", | ||
"@types/jest": "^29.5.2", | ||
"@types/node": "^20.3.1", | ||
"@types/supertest": "^6.0.0", | ||
"@typescript-eslint/eslint-plugin": "^7.0.0", | ||
"@typescript-eslint/parser": "^7.0.0", | ||
"eslint": "^8.42.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"jest": "^29.5.0", | ||
"prettier": "^3.0.0", | ||
"source-map-support": "^0.5.21", | ||
"supertest": "^7.0.0", | ||
"ts-jest": "^29.1.0", | ||
"ts-loader": "^9.4.3", | ||
"ts-node": "^10.9.1", | ||
"tsconfig-paths": "^4.2.0", | ||
"typescript": "^5.1.3" | ||
}, | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"js", | ||
"json", | ||
"ts" | ||
], | ||
"rootDir": "src", | ||
"testRegex": ".*\\.spec\\.ts$", | ||
"transform": { | ||
"^.+\\.(t|j)s$": "ts-jest" | ||
}, | ||
"collectCoverageFrom": [ | ||
"**/*.(t|j)s" | ||
], | ||
"coverageDirectory": "../coverage", | ||
"testEnvironment": "node" | ||
"durian.js": "~1.0.0" | ||
} | ||
} |