首页 > meteor 的 package 的源代码放在什么路径(如何修改meteor package.)

meteor 的 package 的源代码放在什么路径(如何修改meteor package.)

如题

在.meteor/package文件下有如下配置

meteor-platform

Account system

accounts-password

我accounts-password源代码的路径在那里,我的目的是修改meteor package.


这里是以mac而言:

  1. 安装meteor时:curl https://install.meteor.com/ | sh,其实是下载执行了sh文件。如果打开sh文件可以看到创建你了$HOME/.meteor/meteor目录

  2. 所以online meteor add的package放在$HOME/.meteor/meteor/package/这里,比如:~/.meteor/packages/accounts-password/1.1.3

  3. 如果在某个meteor项目中,可以export PACKAGE_DIRS变量来添加寻找package的路径,如果在上面的路径(保存网络添加的)找不到,会去PACKAGE_DIRS中去找。所以PACKAGE_DIRS可以用来meteor add一些本地的package


accounts-password 源代码在 https://github.com/meteor/meteor/tree/devel/packages/accounts-password

首先,移除accounts-password。
然后,自己新建个包,并发布。
最后,添加自己的包。

【热门文章】
【热门文章】