Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.81 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.81 KB

TS2

Abstract

TS2 contains code samples and configuration to run a Typescript project.

The intention is to keep this repository up-to-date with the latest version of Typescript available.

Code samples

  1. Design patterns

Configuration

The project has a build pipeline setup to compile Typescript 2+ through ES6 and, finally, to ES5.

I did not consider a browser integration useful here because this project must provide useful code snippets which you can copy-and-paste into another project.

The files are bundled using Gulp, compiled to ES6 using gulp-typescript and then to ES5 with gulp-babel.

gulp-typescript is a Gulp wrapper over the Typescript compiler. See TS compiler options for information on how to configure.

gulp-babel is a Gulp wrapper over Babel. See Babel API for information on how to configure.

Source maps are generated using gulp-sourcemaps.

Tslint

Some things which are used in configuration and you might want to be aware of: