简体   繁体   English

在Win和Mac系统上开发Meteor.js应用程序

[英]Developing Meteor.js app on both Win and Mac systems

If I create a Meteor.js app on the Mac and starts developing and adding Atmosphere packages with meteorite , can I continue developing on a Windows system (code synced using git) where meteorite is not installed and doesn't run on Windows? 如果我在Mac上创建一个Meteor.js应用程序并开始使用meteorite开发和添加Atmosphere软件包,我可以继续在Windows系统(使用git同步的代码)上进行开发,其中未安装meteorite并且不在Windows上运行吗? Whenever I need to change the meteor smart packages I will use the Mac system. 每当我需要更改流星智能包时,我都会使用Mac系统。

This isn't possible because the symlinks wont easily copy over. 这是不可能的,因为符号链接不会轻易复制。 The way I get passed this is I "hard" install the atmosphere packages into /packages . 我通过这种方式是我“硬”将气氛包安装到/packages

You would notice on a mac that there are symlinks in the /packages directory of your application. 您会在mac上注意到应用程序的/packages目录中有符号链接。 If you follow them & then copy over all the contents into a new directory that replaces the original symlinks with the same names your package should work on both windows & mac with git sync. 如果你按照它们然后将所有内容复制到一个新的目录中,该目录用相同的名称替换原始的符号链接,你的包应该在带有git sync的windows和mac上工作。

When a new version comes out though, you need to update the files again or before you deploy your app you could substitute the packages back to symlinks by just deleting them all and running mrt update to fetch the packages back. 当出现新版本时,您需要再次更新文件,或者在部署应用程序之前,您可以将软件包替换为符号链接,只需将它们全部删除并运行mrt update即可获取包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM