在网上找了一圈,发现也就这个脚手架能用且足够轻量,推荐给读者。
1.下载脚手架代码
git clone https://github.com/jsynowiec/node-typescript-boilerplate <your folder>
cd <your folder>
npm install
2. 编译&运行
//编译
npm run build
//这个构建后的代码会在build/src目录下
//运行
npm run start
3. 使用自己的仓储
rm -rf .git
git init