How to modify/edit a Meteor package?

后端 未结 3 826
北恋
北恋 2021-01-04 02:37

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 th

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-04 03:06

    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)

提交回复
热议问题