Prism-Notes migration: copy scaffold, update package metadata, add npm-based deps, switch startup to Bun.serve with custom logs, and ignore env/deps via .gitignore
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
# Dependencies
|
||||
/node_modules/
|
||||
|
||||
# Environment
|
||||
.env
|
||||
|
||||
# OS/editor noise
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
*.log
|
||||
|
||||
# Bun/NPM cache artifacts
|
||||
bun.lock
|
||||
npm-debug.log*
|
||||
@@ -127,9 +127,13 @@ app.get('/', async (c) => {
|
||||
});
|
||||
|
||||
const PORT = Number(process.env.PORT || 5500);
|
||||
console.log(`PBandGraph server running at http://localhost:${PORT}`);
|
||||
|
||||
export default {
|
||||
// Start Bun server manually to avoid Bun's auto startup banner
|
||||
const server = Bun.serve({
|
||||
port: PORT,
|
||||
fetch: app.fetch,
|
||||
};
|
||||
});
|
||||
|
||||
// Custom startup notes
|
||||
console.log(`Prism Notes server running at http://localhost:${PORT}`);
|
||||
console.log('Prism Notes API ready (health: /health)');
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
"module": "ESNext",
|
||||
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
||||
"types": ["bun-types", "node", "bun"],
|
||||
"moduleResolution": "bundler",
|
||||
"moduleResolution": "node",
|
||||
"allowImportingTsExtensions": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
|
||||
Reference in New Issue
Block a user