Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pflorian91/ts2
Code samples and configuration to run a Typescript project.
https://github.com/pflorian91/ts2
babel es5 es6 gulp tsconfig tslint typescript2
Last synced: about 2 months ago
JSON representation
Code samples and configuration to run a Typescript project.
- Host: GitHub
- URL: https://github.com/pflorian91/ts2
- Owner: pflorian91
- License: mit
- Created: 2017-04-14T20:15:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-09T20:23:43.000Z (over 7 years ago)
- Last Synced: 2024-10-31T08:42:51.307Z (3 months ago)
- Topics: babel, es5, es6, gulp, tsconfig, tslint, typescript2
- Language: TypeScript
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://gulpjs.com/), compiled to ES6 using [gulp-typescript](https://github.com/ivogabe/gulp-typescript) and then to ES5 with [gulp-babel](https://www.npmjs.com/package/gulp-babel).
[gulp-typescript](https://github.com/ivogabe/gulp-typescript) is a [Gulp](http://gulpjs.com/) wrapper over the [Typescript](https://www.typescriptlang.org) compiler.
See [TS compiler options](https://www.typescriptlang.org/docs/handbook/compiler-options.html) for information on how to configure.[gulp-babel](https://www.npmjs.com/package/gulp-babel) is a [Gulp](http://gulpjs.com/) wrapper over [Babel](https://babeljs.io/). See [Babel API](https://babeljs.io/docs/usage/api/) for information on how to configure.
Source maps are generated using [gulp-sourcemaps](https://www.npmjs.com/package/gulp-sourcemaps).
Tslint
- https://github.com/panuhorsmalahti/gulp-tslint
- https://palantir.github.io/tslint/
- https://palantir.github.io/tslint/rules/Some things which are used in configuration and you might want to be aware of:
- [merge2](https://www.npmjs.com/package/merge2) package used to merge the Typescript project streams
- [Information from TS on Gulp integration ](https://www.typescriptlang.org/docs/handbook/gulp.html)
- Breaking changes on [gulp-typescript v3]http://dev.ivogabe.com/gulp-typescript-3/