TypeScriptNPMPublish:在NPM上发布TypeScript项目变得容易!

时间:2021-05-12 17:28:33
【文件属性】:
文件名称:TypeScriptNPMPublish:在NPM上发布TypeScript项目变得容易!
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-12 17:28:33
TypeScript 在NPM上发布TypeScript模块非常容易! 在NPM上分发TypeScript包并不像应该的那样简单,这就是为什么我决定将解决问题时收集到的信息汇总在一起的原因。 您可以找到所有信息。 注意:到目前为止,我仍无法将其用于TypeScript 1.6和1.7,因此请坚持使用。 构建ES3,ES5和ES6的样本 只需在TypeScript-1.5.3中使用cd即可: $ tsc @ES3.params # or $ tsc @ES5.params # or $ tsc @ES6.params 然后运行: node Main.js # for ES3 and ES5 # or node Main-ES6.js # for ES6 认真地在Git仓库中的一个node_modules目录吗? 你不知道giti​​gnore吗? 是的,这实际上是您在此存储库中必须检查的
【文件预览】:
TypeScriptNPMPublish-master
----.gitignore(96B)
----package.json(66B)
----TypeScript-1.7.0()
--------tsconfig.json(74B)
--------node_modules()
--------Main.ts(562B)
--------ES6.params(24B)
--------ES3.params(38B)
--------ES5.params(38B)
--------Main-ES6.ts(322B)
----README.md(1KB)
----TypeScript-1.5.3()
--------tsconfig.json(74B)
--------node_modules()
--------Main.ts(579B)
--------ES6.params(24B)
--------ES3.params(38B)
--------ES5.params(38B)
--------Main-ES6.ts(322B)

网友评论