7

I've seen grunt in the MEANJS stack have a file watcher to automatically execute tasks such as moving around files when they change. Is there anything like this in the .NET space, or am I better off installing node.js and adding grunt to my development stack? I'm really looking to move .js/.css/.cshtml from my code repository to my wwwroot when they're edited and saved.

jdylanmc
  • 829
  • 11
  • 24
  • 1
    If you are considering using nodejs and gulp, I recently wrote about how you can do that in an answer here: http://stackoverflow.com/questions/29983027/automatically-switching-to-minified-css-js-files-in-different-environments/29989493#29989493 – Carrie Kendall May 04 '15 at 16:27

2 Answers2

3

You're better off adding Grunt to your development stack. You can then use the following extensions to add support in Visual Studio: - Task Runner Explorer - NPM and Bower package Intellisense - Grunt Luncher

If you're on Mac you could use CodeKit (not free). But still Grunt is highly recommended for what you're trying to achieve.

You might also want to experience with Web Essentials to watch your CSS/JS

Rachid
  • 812
  • 6
  • 7
1

I've seen grunt in the MEANJS stack have a file watcher to automatically execute tasks such as moving around files when they change. Is there anything like this in the .NET space

Yep, FileSystemWatcher in System.IO namespace (MSDN)

sac1
  • 1,344
  • 10
  • 15