Go to file
2015-12-27 08:11:55 +08:00
dist/typescript Add gulp workflow config and sample 2015-04-10 16:05:54 +08:00
doc Add new topic: Using TypeScript With ASP.Net 5 2015-12-27 08:00:27 +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
.travis.yml Add markdown lint + ci, and satisfy lint 2015-12-16 22:10:19 +08:00
book.json Add new topic: Decorators 2015-11-28 17:38:25 +08:00
CONTRIBUTING.md Add CONTRIBUTING.md 2015-12-17 19:31:20 +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
lint.js Add markdown lint + ci, and satisfy lint 2015-12-16 22:10:19 +08:00
package.json Add markdown lint + ci, and satisfy lint 2015-12-16 22:10:19 +08:00
preface.md Add new topic: Using TypeScript With ASP.Net 5 2015-12-27 08:00:27 +08:00
README.md Add travis badge 2015-12-27 08:11:55 +08:00
SUMMARY.md Add new topic: Using TypeScript With ASP.Net 5 2015-12-27 08:00:27 +08:00

TypeScript

Build Status

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

请阅读 📖 TypeScript Handbook 中文版 - Published with GitBook

目录

  • [基础类型](./doc/handbook/Basic Types.md)
  • 枚举
  • [变量声明](./doc/handbook/Variable Declarations.md)
  • 接口
  • [高级类型](./doc/handbook/Advanced Types.md)
  • [命名空间和模块](./doc/handbook/Namespaces and Modules.md)
  • 命名空间
  • 模块
  • 函数
  • 泛型
  • 混入
  • [声明合并](./doc/handbook/Declaration Merging.md)
  • [类型推论](./doc/handbook/Type Inference.md)
  • [类型兼容性](./doc/handbook/Type Compatibility.md)
  • [书写.d.ts文件](./doc/handbook/Writing Definition Files.md)
  • [Iterators 和 Generators](./doc/handbook/Iterators and Generators.md)
  • Symbols
  • Decorators
  • JSX
  • tsconfig.json
  • [编译选项](./doc/handbook/Compiler Options.md)
  • [在MSBuild里使用编译选项](./doc/handbook/Compiler Options in MSBuild.md)
  • [与其它构建工具整合](./doc/handbook/Integrating with Build Tools.md)
  • [NPM包的类型](./doc/handbook/Typings for NPM Packages.md)
  • Wiki

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'));
});