Thegusse Thegusse - 2 years ago 137
Javascript Question

Using Node.js with CouchCMS

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?


Answer Source

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 node and npm and then by using npm(Node Packaged Modules) you can install grunt/gulp via 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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download