Skip to content

ghoullier/template-typescript-node-package

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template TypeScript Node Package

Template TypeScript Node.js package with all the CI bells & whistles I commonly use. ✨

All Contributors Codecov Test Coverage Contributor Covenant License: MIT Sponsor: On GitHub Style: Prettier TypeScript: Strict

Explainer

This template is available for anybody who wants to set up a basic Node application using TypeScript. It sets up the following tooling for you:

  • ESLint: Static analysis for JavaScript code, configured with typescript-eslint for TypeScript code and other general-use plugins.
  • Markdownlint: Static analysis for Markdown code.
  • pnpm: Desk-efficient package manager alternative.
  • Prettier: Opinionated formatting for code, run on file save and as a Git commit hook via husky and lint-staged.
  • ts-prune: Unused exports detection for TypeScript code.
  • TypeScript: A typed superset of JavaScript, configured with strict compiler options.
  • Vitest: Fast unit tests, configured with coverage tracking.

Setup

First make sure you have the following installed:

To use this template:

  1. Click the Use this template button to create a new repository with the same Git history
  2. Open that repository, such as by cloning it locally or developing in a codespace
  3. pnpm install
  4. pnpm run setup

The setup script removes the ## Explainer and ## Setup from this README.md.

Usage

npm i template-typescript-node-package
import { greet } from "template-typescript-node-package"; greet("Hello, world!");

Development

See .github/CONTRIBUTING.md. Thanks! 💖

Contributors

Josh Goldberg
Josh Goldberg

🐛 💻 🖋 💡 🤔 🚇 🚧 📦 📆 👀 🛡️ 🔧 ⚠️
Jeff Wen
Jeff Wen

🔧

About

Template TypeScript Node.js package with all the CI bells & whistles I commonly use. ✨

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.6%
  • TypeScript 21.7%
  • Shell 0.7%