-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make minimal for bun script repository template
- Loading branch information
Showing
12 changed files
with
22 additions
and
66 deletions.
There are no files selected for viewing
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,11 +1,9 @@ | ||
FROM oven/bun:alpine@sha256:3dc101cc42433f8a470da07701441afdb1aab4c6d056a291eb405e348c5a5c37 | ||
|
||
COPY tsconfig.prod.json ./ | ||
COPY bun.prod.toml ./bun.toml | ||
COPY server.ts cli.ts ./ | ||
COPY tsconfig.json ./ | ||
COPY src/ ./ | ||
COPY package.json bun.lockb ./ | ||
|
||
RUN bun install --production --frozen-lockfile | ||
ENTRYPOINT ["bun"] | ||
CMD ["run", "start"] | ||
CMD ["--version"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,25 +1,19 @@ | ||
{ | ||
"private": true, | ||
"name": "bun", | ||
"module": "index.ts", | ||
"type": "module", | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.4", | ||
"@tsconfig/bun": "1.0.7", | ||
"@tsconfig/strictest": "2.0.5", | ||
"@types/bun": "latest" | ||
"@types/bun": "latest", | ||
"lefthook": "1.8.1" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^5.0.0" | ||
"typescript": "5.0.0" | ||
}, | ||
"scripts": { | ||
"cli": "bun cli.ts", | ||
"start": "bun server.ts", | ||
"fmt": "biome check --write --unsafe", | ||
"docker:action-lint": "docker run --rm -v $(pwd):/repo --workdir /repo rhysd/actionlint:latest -color" | ||
}, | ||
"bin": "cli.ts", | ||
"private": true, | ||
"type": "module", | ||
"dependencies": { | ||
"lefthook": "^1.8.1" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { test } from "bun:test"; | ||
|
||
test.todo("main test", () => {}); |
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,12 @@ | ||
function main(): Promise<void> { | ||
return Promise.resolve(); | ||
} | ||
|
||
main() | ||
.then(() => { | ||
process.exit(0); | ||
}) | ||
.catch((error) => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |
This file was deleted.
Oops, something went wrong.