A Beginners Guide to Creating a TypeScript library and a Github Repository

Introduction

Prerequisites

Laying the Foundations

cd code
npx typescript-starter
cd ts-project

Exploring the Project

⌘ + Spacebar
npm install
npm install @types/node --save-dev

Building the Project and Running Tests

npm run watch:build
npm run watch:test
npm run cov

Setting Up a Github Repository

Documentation

npm run doc:publish
{Github user}.github.io/{project name}

George is a software engineer, author, blogger, and tech enthusiast who believes in helping others to make us happier and healthier.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store