Do you run yeoman/gruntjs inside your vagrant (vm)

Deadly 提交于 2019-12-10 19:33:49

问题


So I want to start using yeoman (Gruntjs/requirejs/bower), but I was wondering if this could be done from inside your vm or would it be better for my workflow to have it installed on my host machine (OSX)? As far as I know you need to have a couple dependancies like node.js.

Is this a subjective thing or is there a guideline?


回答1:


As @matt-cooper said, it's a subjective thing.

Personally, I run it on my host because that's where git and my IDE live and I consider Yeoman etc to be development tools that belong outside the backend code, whereas inside my VM I expect it to reflect my deployment server which doesn't need to meet the same requirements as Yeoman.




回答2:


This is purely a subjective thing... you can do either.

If you are only ever going to use one VM then you could install grunt etc on the VM or the host and use it, it would mean that you would have to ssh into the VM each time you wanted to run grunt commands though.

If however you are going to have more than one VM setup then you might be better to have grunt etc. installed on your host machine rather than having to maintain multiple versions.



来源:https://stackoverflow.com/questions/19790726/do-you-run-yeoman-gruntjs-inside-your-vagrant-vm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!