简体   繁体   English

Guard和Compass手表之间的区别

[英]Difference between Guard and Compass watch

These are both Ruby gems. 这些都是Ruby宝石。 They watch for filesystem changes. 他们监视文件系统的更改。 I've looked for resources detailing the aspects of each and I haven't found any that compare/contrast the two. 我一直在寻找详细说明每一个方面的资源,但没有找到可以将两者进行比较/对比的任何内容。 Are these essentially the same thing just different flavors? 这些本质上相同的东西只是口味不同吗?

Well Guard is a general tool for filesystem changes that can be used to compile compass/sass, whereas compass watch is a standalone tool that watches only compass changes and isn't used for anything else. Well Guard是用于文件系统更改的通用工具, 用于编译指南针/ Sass,而指南针监视是一个独立的工具,仅监视指南针更改,而不用于其他任何用途。

So if all you want to watch is compass files, then compass watch should do the trick. 因此,如果您只想观看指南针文件,那么指南针监视就可以解决问题。 If you also want to, for example, compile coffeescript then Guard can be used to do both, but compass watch couldn't. 例如,如果您还想编译coffeescript,则可以使用Guard来完成这两个任务,但不能使用罗盘监视。

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

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