Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
/ ts-package-template Public archive

Simple template repository for creating npm packages with Typescript

License

Notifications You must be signed in to change notification settings

Yakiyo/ts-package-template

Repository files navigation

TS + npm package template

Open on gitpod https://gitpod.io/from-referrer/

This is a simple template repository I use for creating npm packages with typescript.

Features:

Usage

Locally

Generate from the template.

Clone it with git and install. Then run setup.

$ git clone https://github.com/<username>/<repo-name>.git

# use npm if u don't have pnpm
$ pnpm install

# again, use npm if u don't have pnpm. This builds the files and sets up husky
$ pnpm run setup

Edit package.json as per your project. Make your package. Remove everything in Readme from here to top.

My Awesome Package

Super awesome package description

Install

$ npm install pkg-name
# or
$ yarn add pkg-name
# or 
$ pnpm add pkg-name

Usage

// Commonjs require
const pkg = require('pkg-name');
// ES module import
import pkg from 'pkg-name';

Author

Package Name © Author-name. Authored and maintained by Author-name.

Released under MIT License