英文官网
https://www.typescriptlang.org/
中文站点
TypeScript 入门教程
npmjs包地址
https://www.npmjs.com/package/typescript
仓库地址
https://github.com/Microsoft/TypeScript
typescript+babel+react
起步示例:https://github.com/Microsoft/TypeScript-Babel-Starter#using-jsx-and-react
react-webpack-typescript-babel:https://github.com/a-tarasyuk/react-webpack-typescript-babel
typescript+babel+webpack
起步示例:https://github.com/Microsoft/TypeScript-Babel-Starter#using-webpack
完整示例:https://github.com/a-tarasyuk/webpack-typescript-babel
ts-loader
https://www.npmjs.com/package/ts-loader
fork-ts-checker-webpack-plugin
https://www.npmjs.com/search?q=fork-ts-checker-webpack-plugin
使用ts-loader时进行类型检查,会降低构建速度。
引入这个webpack插件可以明显提升构建速度,它通过优化类型检查来提升:
- 类型检查
- 只对配置需要进行类型检查的ts文件进行检查,
- 在独立的进程上进行
- ast缓存
详细的说明可以阅读:https://www.npmjs.com/package/ts-loader#faster-builds
