Skip to content

voctal/npm-module-template

Repository files navigation

npm-module-template

Discord server Last commit

About

This repository is a template to build a modern npm module in TypeScript. This is the template we use for our modules at Voctal.

Features

  • Bundles the module for both CJS and ESM formats
  • Supports tree-shaking
  • Generates source maps (.map) and TypeScript declaration files (d.ts)
  • Uses the fastest linter: Oxlint
  • Uses the fastest formatter: Oxfmt
  • Uses one of the fastest bundler: tsdown, powered by Rolldown
  • Uses typescript-go for type checking and type-aware linting
  • Automated publishing with a GitHub Actions workflow, including npm provenance

How to use

Format all files

npm run fmt

Type check and lint all files

npm run lint

Build the module

npm run build

You will also need to set the NPM_TOKEN secret on Github Actions.

Links

About

A modern npm module template in TypeScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors