Meteor:如何使用smart.json手动添加包

时间:2014-04-29 07:32:16

标签: meteor package meteorite

我只是尝试使用 smart.json 将包添加到我的meteor项目中:

{
    "packages": {
    "scss": {},
    "iron-router": {},
    "normalize.css": {
        "git": "https://github.com/rithis/meteor-normalize.css"
    },
    "Meteor.cron": {
        "git": "https://github.com/alexsuslov/Meteor.cron"
    }
}

在这种情况下,我手动添加了normalize.cssMeteor.cron。现在我做的时候

$> mrt update

这些包安装在packages目录中。到目前为止没有问题,但我认为它们没有被使用。我没有在浏览器中看到normalize.css并测试Meteor.cron我在server目录中添加了一个测试文件

console.log(Meteor.Cron)

打印undefined 我有什么建议吗?

1 个答案:

答案 0 :(得分:1)

您使用的是不正确的git clone网址。在你的smart.json中尝试这个

{
    "packages": {
    "scss": {},
    "iron-router": {},
    "normalize.css": {
        "git": "https://github.com/rithis-archive/meteor-normalize.css.git"
    },
    "Meteor.cron": {
        "git": "https://github.com/alexsuslov/Meteor.cron.git"
    }
}
相关问题