如何修改已安装的大气包 [英] How to modify already installed Atmosphere packages
问题描述
在meteor 0.9.0 之前,我可以在安装后编辑Atmosphere 包文件.现在模板是预编译的,隐藏在meteor core中,所以我无法编辑html(templates).
Before meteor 0.9.0 I could edit Atmosphere package files after it has been installed. Now templates are pre-compiled and hidden in meteor core, so I can't edit html(templates).
我找到了修改包的唯一方法.从 GitHub 加载它,对其进行修改,然后将其作为特定于应用程序的包添加到/packages 目录中.然后我可以不断修改这个包.
I found only way to have modified package. Load it from GitHub, modify it and then add as app-specific packages to the /packages directory. Then I can continuously modify this package.
有人知道更好的方法吗?
Does anyone know better way ?
谢谢.
推荐答案
你说得对,例如这个包mrt:accounts-t9n,我有以下步骤
you are right, for example with this package mrt:accounts-t9n, I have following this steps
1- cd yourproject &&mkdir 包 &&cd 包
2- git clonehttps://github.com/softwarerero/meteor-accounts-t9n.git
3- cdmeteor-accounts-t9n
4- 编辑 package.js 并将第 4 行更改为名称:"mrt:accounts-t9n"
5- cd .. &&流星添加mrt:accounts-t9n
1- cd yourproject && mkdir packages && cd packages
2- git clone https://github.com/softwarerero/meteor-accounts-t9n.git
3- cd meteor-accounts-t9n
4- edit package.js and change line 4 to name: "mrt:accounts-t9n"
5- cd .. && meteor add mrt:accounts-t9n
目前是解决方案,我找不到另一个.
for this moment is the solution, I don't find another.
这篇关于如何修改已安装的大气包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!