This article will show you how to compile typescript code into JavaScript (es5) step by step.

  1. How to build typeScript project with gulp.
  2. How to add Browserify, uglify and watchify to gulp pipeline.

We assume that your already using Nodejs and npm

Create project

Lets start with new directory

mkdir new-gulp-project
cd new-gulp-project

Inside new-gulp-project create two new folder with name src and dist

mkdir src
mkdir dist

Initialize the project

npm init --y

It will create package.json This file will manage your dependencies. For your entry point, use /dist/main.js You can always change these in the package.json

Install our…

Swapnil Bankar

Reader, Writer, Learner, Full stack developer,

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