标签:tar ejs main ora convert github blob vscode com
安装链接: https://nodejs.org/zh-cn/ 安装测试: node -v npm -v
sudo npm install typescript -g npm install typescript -D(--dev) tsc --version
npm init -y
生成package.json文件tsc --init
npm install @types/node --dev-save
4. 关于tsconfig.json的配置,详见:
https://github.com/hstarorg/HstarDoc/blob/master/%E5%89%8D%E7%AB%AF%E7%9B%B8%E5%85%B3/TypeScript%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6tsconfig%E7%AE%80%E6%9E%90.md
5. 常用tsconfig配置:
{ "compilerOptions": { "target": "ES5", "module": "commonjs", "emitDecoratorMetadata": true, "experimentalDecorators": true, "sourceMap": true, "noEmitHelpers": true }, "exclude": [ "node_modules", "typings/main", "typings/main.d.ts" ], "compileOnSave": false }
标签:tar ejs main ora convert github blob vscode com
原文地址:https://www.cnblogs.com/aloehui/p/9317810.html