如何在github上使用自己的包迁移到Meteor 0.9

时间:2014-09-25 06:12:02

标签: meteor packages meteorite

我有一个Meteor 0.8.3项目,我尝试使用meteor update进行更新,但我得到了结果:

This project is at the latest release which is compatible with your
current package constraints.

我已经确定问题是我从github使用的两个自定义'包',我在smart.json中引用:

{
  "packages": {
    "accounts-ui": {
        "git": "https://github.com/RacingTadpole/accounts-ui.git",
        "branch": "master"
    },
    "accounts-ui-unstyled": {
        "git": "https://github.com/RacingTadpole/accounts-ui-unstyled.git",
        "branch": "master"
    }
  }
}

我通过删除所有包,然后更新Meteor,然后逐个添加它来建立此功能。我收到了错误:

Figuring out the best package versions to use. This may take a moment.
Refreshing package metadata. This may take a moment.
Could not satisfy all the specified constraints:
Error: conflict: accounts-ui can't be satisfied

我的.meteor/packages文件如下所示:

standard-app-packages
less
(... lots more I'm leaving out ...)
accounts-google
accounts-ui
accounts-password
iron-router

我当然最后一行更新为iron:router

packages.js中的accounts-ui文件是:

Package.describe({
    summary: "Simple templates to add login widgets to an app"
});
Package.on_use(function (api) {
    // Export Accounts (etc) to packages using this one.
    api.imply('accounts-base', ['client', 'server']);
    api.use('accounts-ui-unstyled', 'client');
    api.use('less', 'client');
    api.add_files(['login_buttons.less'], 'client');
});

其他自定义程序包中的相同文件很长,但链接为here

如何将这两个软件包迁移到Meteor 0.9.2.2?谢谢!

0 个答案:

没有答案