So, I have a cake file for building my Coffeescript (thanks to https://github.com/krismolendyke/InstantJasmineCoffee). I also have a directory full of SCSS based on Compass, which I call with a quick “compass compile,” which comes from a Ruby gem.
Is there a way to call “compass compile” from within my Cake file, or a way to call my Cake file from within a Rake file, or a Make file that can do both, or something else entirely? What’s the easiest way to do all of my compilations?
radiospiel has shown how you could run
compassorcakefrom aRakefile. To callcompassorrakefrom aCakefile, you’d write something like this:(Replace
compass compilewith whatever system command you want to run.) Note that this would, by default, suppress the output from the command; you should probably use a callback to log that output. See the Node docs on child_process.exec for details.