-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from jakeboone02/drop-vite
Drop Vite and Yarn in favor of Bun
- Loading branch information
Showing
18 changed files
with
78 additions
and
9,362 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
bun.lockb binary |
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
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
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 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
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,3 +1,7 @@ | ||
body { | ||
font-family: 'Courier New', Courier, monospace; | ||
} | ||
|
||
th, | ||
td { | ||
border-bottom: 1px solid lightgray; | ||
|
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
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
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,16 @@ | ||
import type { Serve } from 'bun'; | ||
import open from 'open'; | ||
|
||
const dev = (await Bun.build({ entrypoints: ['./src/dev.ts'] })).outputs[0]; | ||
|
||
setTimeout(() => open('http://localhost:3000'), 500); | ||
|
||
export default { | ||
fetch(req: Request) { | ||
const reqAsURL = new URL(req.url); | ||
if (reqAsURL.pathname.endsWith('dev.ts')) { | ||
return new Response(dev); | ||
} | ||
return new Response(Bun.file('./main.html')); | ||
}, | ||
} satisfies Serve; |
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
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,17 +1,18 @@ | ||
{ | ||
"compilerOptions": { | ||
"types": ["bun-types", "jest"], | ||
"isolatedModules": true, | ||
"declaration": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"module": "es6", | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"target": "ES2015", | ||
"target": "es2017", | ||
"esModuleInterop": true, | ||
"baseUrl": ".", | ||
"outDir": "dist", | ||
"noEmit": true, | ||
"lib": ["ES2015", "DOM"] | ||
}, | ||
"include": ["./src"] | ||
"include": [".", "./src"] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.