How to modify/edit a Meteor package?

后端 未结 3 827
北恋
北恋 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 02:59

    You can get the package's files at the github repo : https://github.com/meteor/meteor/tree/master/packages

    Fetch the files you want except the package.js files and add them to your project. Of note is you need to ensure their loading order sometimes so you might have to modify the file names, to have a look at the loading order have a look at package.js. By default meteor orders file by name but packages don't necessarily use that.

    You can avoid renaming the files if you just mod the package and add it back using meteorite : https://github.com/oortcloud/meteorite

    Full instructions on how to make a smart.json : https://atmosphere.meteor.com/wtf/package. If its anything nice please consider adding it to atmosphere too!

提交回复
热议问题