Paul's Project Setup
When setting up a new project or initializing a repository, use this modern stack and these specific configuration conventions.
Core Stack Strategy
We use this specific stack to maximize execution speed, minimize configuration overhead, and avoid slow build steps during development.
- Package Manager:
pnpm(for strict dependency resolution and speed) - Type Checking:
buildless-typesstandard (JSDoc or Erasable Syntax withtsc --noEmitto get type safety without the overhead of a build step) - Testing: Node.js native test runner (
node --test)`. We avoid Jest entirely because it is notoriously slow and requires complex transpilation pipelines. - Bundler / Dev Server:
esbuild(for fast Node.js tooling compilation).
Configuration Standards
Apply these baseline settings to enable the preferred workflow.
1. package.json Scripts & Settings
Ensure the project is an ES Module and defines standard scripts inspired by Paul's existing projects:
{
"type": "module",
"engines": {
"node": ">=24.11.0"
},
"scripts": {
"test": "pnpm run typecheck && pnpm run test:node",
"test:node": "node --test test/**/*.test.js",
"typecheck": "tsc --noEmit",
"preflight": "pnpm typecheck && pnpm test"
}
}
2. Type Safety (buildless-types)
- Use modern Node.js features to run
.tsfiles directly using erasable syntax, or use complete JSDoc annotations in.jsfiles. - The
tsconfig.jsonshould align with thebuildless-typesskill constraints (e.g.,erasableSyntaxOnly: true,verbatimModuleSyntax: true,allowImportingTsExtensions: true). - Execute files directly with
node script.ts. Do not use tools likenpx tsxorts-node.
3. Testing
- Prefer the built-in Node.js test runner (
node --test) for unit and integration testing. It requires zero configuration and runs extremely fast. - If a richer ecosystem or browser-like testing environment is required, use
vitest. - Avoid
jestcompletely due to its performance overhead and configuration complexity.
4. Bundling
- Use
esbuildfor fast Node.js CLI tooling compilation or generic JS bundling. - Use
vitefor modern web application frontend development and building.