In this post I will cover some area of grunt more of a grunt basic tutorial, things you can do with grunt, in previous post we saw how we use grunt with Visual Studio 2012 and 2013 and our simple hello world task.
Let’s start with some more basic things e.g writing a simple function task that takes a parameter.
For example below we have a hello task that takes a parameter of name.
|
1 2 3 4 5 6 7 8 9 10 11 |
grunt.registerTask('hello', function(name) { grunt.log.writeln('Hello ' + name); }); //run the task |



