我正在使用Meteorite并看到回购自述文件提及:
mrt create my-app --branch devel
但是,这样做时我遇到了错误。流星说 - 分支不是识别命令。
更重要的是,如何使用特定分支创建应用程序?或者我可以进入smart.lock并将Meteor的git放在我想要的分支上吗?
我知道我可以使用特定的版本,但我很想知道如何使用特定的分支。
答案 0 :(得分:1)
我已将meteor
(非smart.json
)文件中的smart.lock
条目更改为:
{
"meteor": {
"git": "https://github.com/meteor/meteor.git",
"branch": "shark"
},
"packages": {
...
}
}
您可以使用branch
指向特定版本,而不是tag
字段。
答案 1 :(得分:1)
如musically_ut所述,您可以在smart.json文件中执行以下操作:
{
"meteor": {
"git": "https://github.com/meteor/meteor.git",
"branch": "shark"
},
"packages": {
...
}
}
但是,除非您通过在应用目录中运行“mrt”或“mrt run”启动应用(而不是运行“meteor”或“meteor run”,否则在运行应用时,您将无法从此更改中受益)。这让我难以忍受了一段时间,所以我想我会在这里为其他人沿着同样的道路添加这个。感谢Tom Coleman在meteor-core上的指针!