如何修改/编辑流星包? [英] How to modify/edit a Meteor package?
本文介绍了如何修改/编辑流星包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在同一台服务器上(在不同端口上)运行两个不同的Meteor应用程序,但是我想更改Meteor的一个核心程序包中的某些内容,并且我希望一个应用程序使用原始程序包,而另一个应用程序使用修改后的程序包一.我该怎么办?
I want to run two different Meteor apps on the same server (on different ports) but I want to change something in one of Meteor's core packages and I want one app to use the original package and the other app to use the modified one. How could I do it?
推荐答案
基于此处:
- 在您的项目中创建"packages"文件夹,然后将位置更改为该文件夹("cd yourproject"&&"mkdir软件包"&&"cd软件包")
- 从git中获取文件("git clone https://github.com/YOUR_PACKAGE_ADDRESS '-您需要拥有安装了git )
- 在提取的包文件夹中找到package.js并在"Package.describe"名称值中进行编辑,例如,通过添加"-manually-modified"
- 在提取的包文件夹中编辑需要修改的文件.
- 将包添加到项目中(流式添加手动修改的包名)
- Create packages folder in your project and change location to that folder ('cd yourproject' && 'mkdir packages' && 'cd packages')
- Fetch files from git ('git clone https://github.com/YOUR_PACKAGE_ADDRESS' - you need to have git installed)
- Inside fetched package folder find package.js and edit inside 'Package.describe' name value, for example by adding '-manually-modified'
- Edit files you need to modify inside fetched package folder.
- Add package to project (meteor add package-name-manually-modified)
这篇关于如何修改/编辑流星包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文