npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@well-do-it-too/node-typescript-starter

v1.0.12

Published

A comprehensive TypeScript Node.js starter project with essential tools and configurations

Downloads

6

Readme

ISC License TypeScript Node.js GitHub release (latest by date) GitHub tag (latest by date)

TypeScript Node.js Starter

A comprehensive starter template for TypeScript Node.js projects, equipped with essential tools and configurations to jumpstart your development process.

Features

  • TypeScript configuration
  • ESLint for code linting
  • Prettier for code formatting
  • Husky for Git hooks
  • Nodemon for development
  • Automatic version updating
  • Automatic Git tag updating
  • Minification of distribution files
  • Pre-commit hooks
  • Make commands for easier project management

Prerequisites

  • Node.js (v20 or later)
  • pnpm (v6 or later)
  • GNU Make

Installation

  1. Clone the repository:

    git clone https://github.com/Well-do-it-too/node-typescript-starter.git
    cd node-typescript-starter
  2. Install dependencies:

    pnpm install

Usage

You can use either pnpm scripts or Make commands to manage the project.

Using pnpm scripts

To run tests:

pnpm test

To start the development server with hot-reloading:

pnpm run dev

To compile TypeScript to JavaScript:

pnpm run build

For production build with minification:

pnpm run build:prod

To lint your code:

pnpm run lint

To format your code:

pnpm run format

To start the compiled application:

pnpm start

Using Make commands

Run these commands with make <command>:

  • make or make help: Shows all available Make commands.
  • make rmdist: Removes the dist folder.
  • make build: Builds the project (includes removing dist folder).
  • make build-prod: Builds the project for production (includes minification).
  • make dev: Starts the development server.
  • make run: Runs the compiled application.
  • make test: Runs the test suite.
  • make version-up: Updates the project version.
  • make pre: Runs pre-commit checks.

Git Tag Management

The project includes additional commands for managing Git tags:

  • make tag: Displays the latest Git tag.
  • make tag-new: Displays the next Git tag that would be created.
  • make tag-up: Creates and pushes a new Git tag. Note: This command can only be run from the 'main' branch.

Scripts

  • prepare: Sets up Husky
  • clean: Removes dist folder, node_modules, and pnpm-lock.yaml
  • build: Compiles TypeScript to JavaScript
  • build:prod: Compiles and minifies for production
  • dist:minify: Minifies distribution files
  • dev: Starts development server with hot-reloading
  • start: Runs the compiled application
  • test: Runs the test suite
  • lint: Lints the codebase
  • format: Formats the codebase
  • version-up: Updates the project version
  • pre-commit: Runs linting and formatting before commit

Version Management

This project uses semantic versioning (SemVer) for its Git tags. The tag.mk file provides utilities to manage these tags:

  • Tags follow the format vX.Y.Z where X is the major version, Y is the minor version, and Z is the patch version.
  • The make tag-up command automatically increments the patch version when creating a new tag.
  • New tags can only be created from the 'main' branch to ensure version consistency.

When contributing to the project, please be aware of these versioning practices and use the provided commands to manage tags and versions.

License

This project is licensed under the ISC License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Remember to run make pre or pnpm run pre-commit before committing your changes to ensure code quality and consistency.

Acknowledgements