Go to file
2015-11-28 17:38:25 +08:00
dist/typescript Add gulp workflow config and sample 2015-04-10 16:05:54 +08:00
doc Add new topic: Decorators 2015-11-28 17:38:25 +08:00
ts Add gulp workflow config and sample 2015-04-10 16:05:54 +08:00
.bookignore update 2015-06-13 21:33:00 +08:00
.gitignore update: handbook 2015-04-14 19:49:55 +08:00
book.json Add new topic: Decorators 2015-11-28 17:38:25 +08:00
gulpfile.js update gulpfile.js 2015-05-06 20:55:31 +08:00
LICENSE Initial commit 2015-03-22 19:32:47 +08:00
package.json Add gulp workflow config and sample 2015-04-10 16:05:54 +08:00
preface.md Format Gitbook 2015-11-18 20:49:38 +08:00
README.md Update README.md 2015-11-16 20:51:48 +08:00
SUMMARY.md Add new topic: Decorators 2015-11-28 17:38:25 +08:00

TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output. http://www.typescriptlang.org

📖 TypeScript手册中文版 - Published with GitBook

Beyond Handbook && Latest features

TypeScript Handbook

TypeScript Language Specification

Others

I'd love for you to contribute to the translation:)

Using Gulp with TypeScript

Install gulp and gulp-typescript. See package.json.

$ npm install --global gulp
$ npm install --save-dev gulp gulp-typescript

Config gulp. See gulpfile.js.

gulp.task('typescript', function() {
  var tsResult = gulp.src('ts/*.ts')
    .pipe(ts({
      target: 'ES5',
      declarationFiles: false,
      noExternalResolve: true
    }));

  tsResult.dts.pipe(gulp.dest('dist/tsdefinitions'));

  return tsResult.js.pipe(gulp.dest('dist/typescript'));
});