[英]How do I create a package of my javascript app?
According my topic, what is the best way to distribute my javascript application? 根据我的主题,分发我的javascript应用程序的最佳方法是什么? Is a best practice distribute my application using npm packages? 最佳做法是使用npm软件包分发我的应用程序吗? Or npm is only for distribute frameworks? 还是npm仅适用于分布式框架?
Thanks! 谢谢! :) :)
The standard way to distribute JavaScript modules that were build on Node.js is to publish them onto npm with the command npm publish
. 分发基于Node.js构建的JavaScript模块的标准方法是使用命令npm publish
将它们发布到npm上。 You can find out how to properly publish modules in the official documentation . 您可以在官方文档中找到如何正确发布模块的方法。
Also read up on package.json
. 另请阅读package.json
。 It is basically the interface that you can use for publications. 基本上,它是您可以用于发布的界面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.