I would like to use the features of Grunt and Gulp (preprocessing, compressing, watching etc.), but I don't want to abandon traditional PHP. I use CouchCMS which requires traditional PHP.
Can I use both CouchCMS with Grunt or Gulp? If not, why is that so, and is there any viable alternative?
You can just create
Gruntfile.js in your core folder with configs and run it from same folder where your project located by
grunt <command>. To install grunt as application, you need to install
npm and then by using
npm(Node Packaged Modules) you can install
npm install -g grunt or
npm install -g gulp. By adding
-g property, you force installing packages inside your execution folder
bin and you can use those packages as standalone console application.