Skip to content

mkvlrn/template-node

Repository files navigation

template-node

A sane, opinionated template for esm node projects written in typescript.

For new, node lts (currently v24) projects.

Uses:

running

pnpm dev

Runs the project in watch mode.

pnpm build

Builds/transpiles the code to ./build.

pnpm start

Runs the built project.

pnpm test

Runs tests.

pnpm biome-fix

Runs biome in fix mode (only safe fixes) to lint and format the project.

pnpm typecheck

Runs type checking using tsc.

vscode

You might want to install the recommended extensions in vscode. Search for @recommended in the extensions tab, they'll show up as "workspace recommendations".

If you have been using eslint and prettier and their extensions, you might want to disable eslint entirely and keep prettier as the formatter only for certain types of files.

This is done by the .vscode/settings.json file.

Debug configurations are also included (for source using tsx and for bundle using the generated source maps).

About

A template for esm Node.js projects using typescript

Topics

Resources

License

Stars

Watchers

Forks