gruntjs / grunt-contrib-compass

Compile Compass to CSS.
http://gruntjs.com/
MIT License
626 stars 128 forks source link

Add an option to define executable name on Windows #234

Closed malys closed 9 years ago

sindresorhus commented 9 years ago

Why? Always include a pull request description ;)

malys commented 9 years ago

By default, you consider that the executable on Windows is "compass.bat". However, It isn't always the case. This can be "compass.bat","compass.cmd" or "compass.exe" With this option, the developer can override the executable name.

an efficient title means a lot. Moreover, I'm not really a little Shakespeare. :).

sindresorhus commented 9 years ago

"Why" is always more important than "what" ;)

sindresorhus commented 9 years ago

Why isn't the bin extension consistent? Do you have any proof of this? If true I would prefer an automated solution.

malys commented 9 years ago

If you install ruby + compass, you have to launch compass.bat. But on Windows, you can use a portable version of compass to embed ruby and compass in one exe file. See Portable Compass.

Consequently, the application setup is more simple and self-sufficient.

sindresorhus commented 9 years ago

Ok, but I'd prefer to auto-detect it somehow. I don't want users to have to manually specify this. Can probably use https://github.com/isaacs/node-which for that.