From 91b15ad49092c314dd6d3483aec47f0be7a37506 Mon Sep 17 00:00:00 2001 From: polwex Date: Thu, 11 Sep 2025 01:50:29 +0700 Subject: ihategit --- shim/ws-shim/CLAUDE.md | 107 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 shim/ws-shim/CLAUDE.md (limited to 'shim/ws-shim/CLAUDE.md') diff --git a/shim/ws-shim/CLAUDE.md b/shim/ws-shim/CLAUDE.md new file mode 100644 index 0000000..630114b --- /dev/null +++ b/shim/ws-shim/CLAUDE.md @@ -0,0 +1,107 @@ +--- + +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`. -- cgit v1.2.3