diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..1ee6890 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,106 @@ + +Default to using Bun instead of Node.js. + +- Use `bun ` instead of `node ` or `ts-node ` +- Use `bun test` instead of `jest` or `vitest` +- Use `bun build ` instead of `webpack` or `esbuild` +- Use `bun install` instead of `npm install` or `yarn install` or `pnpm install` +- Use `bun run + + +``` + +With the following `frontend.tsx`: + +```tsx#frontend.tsx +import React from "react"; + +// import .css files directly and it works +import './index.css'; + +import { createRoot } from "react-dom/client"; + +const root = createRoot(document.body); + +export default function Frontend() { + return

Hello, world!

; +} + +root.render(); +``` + +Then, run index.ts + +```sh +bun --hot ./index.ts +``` + +For more information, read the Bun API docs in `node_modules/bun-types/docs/**.md`. diff --git a/bun.lockb b/bun.lockb old mode 100644 new mode 100755 index 0565094..7f7418e Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 4587cf7..bfa2a20 100644 --- a/package.json +++ b/package.json @@ -9,18 +9,31 @@ "lint": "next lint" }, "dependencies": { - "tailwind-merge": "^2.5.4", + "gray-matter": "^4.0.3", + "html-to-react": "^1.7.0", + "lodash": "^4.17.23", + "lucide-react": "^0.577.0", + "mdx": "^0.3.1", + "next-mdx-remote": "^6.0.0", + "openai": "^6.25.0", "postcss": "^8", - "tailwindcss": "^3.4.14" + "react-code-blocks": "^0.1.6", + "react-responsive-modal": "^7.1.0", + "rehype-prism-plus": "^2.0.2", + "remark-gfm": "^4.0.1", + "tailwind-merge": "^3.5.0", + "tailwindcss": "^4.2.1" }, "devDependencies": { - "next": "14.2.15", - "react": "^18", - "react-dom": "^18", - "typescript": "^5", + "@next/mdx": "^16.1.6", + "@types/ace": "^0.0.52", + "@types/bun": "latest", + "@types/mdx": "^2.0.13", "@types/node": "^20", - "@types/react": "^18", - "@types/react-dom": "^18" + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "typescript": "^5.9.3", + "@types/lodash": "^4.17.23" }, "exports": { ".": "./components"