dist/typescript | ||
doc | ||
ts | ||
.bookignore | ||
.gitignore | ||
book.json | ||
gulpfile.js | ||
LICENSE | ||
package.json | ||
README.md |
TypeScript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output. http://www.typescriptlang.org
Beyond Handbook && Latest features
- tsconfig.json (TypeScript 1.5)
- 命名空间 - Namespace (TypeScript 1.5)
- 元组类型 - Tuple Types (TypeScript 1.3)
- 受保护的成员 - Protected members (TypeScript 1.3)
TypeScript Handbook
- Read TypeScript Handbook (Recommended, BUT not up to date officially)
- Read TypeScript 手册 (翻译完成) (持续更新中,最新版)
TypeScript Language Specification
- Read TypeScript Language Specification (Recommended)
- Read [TypeScript 语言规范 (译完第一章)](./doc/TypeScript Language Specification.md)
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'));
});