之前学习TypeScript的时候,花了点时间把express-generator生成的express 模板项目转换成了TypeScript。或许可以再进一步做成个TypeScript的模板生成项目,不过,这样做到底有没有价值?
https://github.com/prufeng/tsexpress
Turn the express-generator Helloworld project to TypeScript.
Get started
npm install
Run build task, compile the ts to js.
tsc:build-tsconfig.json
Start the application with command line below.
npm start
Open url below in browser for test.
http://localhost:3000/