A
A
Alexander Tartmin2014-08-14 14:45:06
Automation
Alexander Tartmin, 2014-08-14 14:45:06

Is it possible to run a Grunt.js task as a standalone nodejs application?

I need to run a Grunt script that uses this plugin: https://github.com/gruntjs/grunt-contrib-watch to watch changes in certain directories. I'm going to use this to automatically build LESS and JS files. So I thought that it is possible to run Gruntfile.js as a separate node application (using PM2 or Forever). Interested in the correctness of my decision and if there are more beautiful ways, please tell me. I’ll make a reservation right away that I’ve been using nodejs recently, and I started experimenting with soil only today, so don’t rush with slippers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-08-14
@baskerville42

yes, you can. Although I usually just run the task and it hangs itself and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question