Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to modify/edit a Meteor package?

Tags:

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?

like image 317
Bob Torrent Avatar asked Apr 02 '13 13:04

Bob Torrent


People also ask

How do you update meteor packages?

If you want to update to a newer version of a package after installing it, use meteor update . You can run meteor update without any arguments to update all packages and Meteor itself to their latest versions, or pass a specific package to update just that one, for example meteor update ostrio:flow-router-extra .

What is Meteor NPM?

What is Meteor? Meteor is a full-stack JavaScript platform for developing modern web and mobile applications. Meteor includes a key set of technologies for building connected-client reactive applications, a build tool, and a curated set of packages from the Node. js and general JavaScript community.


1 Answers

A bit more straightforward answer, based on answer from here :

  1. Create packages folder in your project and change location to that folder ('cd yourproject' && 'mkdir packages' && 'cd packages')
  2. Fetch files from git ('git clone https://github.com/YOUR_PACKAGE_ADDRESS' - you need to have git installed)
  3. Inside fetched package folder find package.js and edit inside 'Package.describe' name value, for example by adding '-manually-modified'
  4. Edit files you need to modify inside fetched package folder.
  5. Add package to project (meteor add package-name-manually-modified)
like image 125
Rafał Praczyk Avatar answered Sep 28 '22 01:09

Rafał Praczyk