JavaScript Watch and recompile individual templates with grunt

I have a directory with a bunch of jade templates, and a grunt task that compiles all of them to individual html files.

I'd like to have a watch task that recompiles a template when it changes, but right now my task recompiles every template when any of them change.

Here is a demo in a gist.

Is there a succinct way to write a task that recompiles a template when it changes, but not all of the other templates?

Answer:1

I am using node.js for an application, I'm also using mysql to allow users to connect on the app. I was using the application on local, and it was working pretty well, no crash, nothing bad. Today I ...

I am using node.js for an application, I'm also using mysql to allow users to connect on the app. I was using the application on local, and it was working pretty well, no crash, nothing bad. Today I ...

  1. node application crashes
  2. heroku app crashed node

I have the following controller action: var fileName = "monthly_report.pdf" var document = new Document(); //DO SOME STUFF WITH THE DOCUMENT MemoryStream stream = new MemoryStream(); ...

I have the following controller action: var fileName = "monthly_report.pdf" var document = new Document(); //DO SOME STUFF WITH THE DOCUMENT MemoryStream stream = new MemoryStream(); ...

I am now using Semantic UI without including Bootstrap as there are some conflicts among them. But I quite like the Carousel function of bootstrap. Can I optionally include it in my project? Thanks a ...

I am now using Semantic UI without including Bootstrap as there are some conflicts among them. But I quite like the Carousel function of bootstrap. Can I optionally include it in my project? Thanks a ...

  1. text only carousel bootstrap 4
  2. text only carousel bootstrap
  3. text only carousel bootstrap 3
  4. bootstrap only carousel

I have this: personname: function(value, element) { return this.optional(element) || /^[a-zA-Z\s]+$/.test(value); } But when the name is Pëter Müller or something like that it is invalid, how ...

I have this: personname: function(value, element) { return this.optional(element) || /^[a-zA-Z\s]+$/.test(value); } But when the name is Pëter Müller or something like that it is invalid, how ...

  1. make input only accept numbers
  2. make input only readable
  3. make input readonly
  4. make input numbers only
  5. make input field only accept numbers
  6. make input accept only numbers html
  7. make input numeric only
  8. html make input readonly
  9. make input number only html
  10. css make input readonly
  11. javascript make input readonly
  12. make input type read only
  13. make input field number only
  14. make input field read only
  15. how to make input only an integer in c++
  16. make input field read only css
  17. how to make input only accept numbers python
  18. make input tag read only
  19. make input box read only
  20. make input text readonly