I have a simple hello world jake file, which gives an error:
victors-macbook-pro:votefor Victor$ jake -f jakefile asynchronous
(in /Users/Victor/Documents/workspace/votefor/votefor) Error on line 1 of file [unknown] ReferenceError: Can't find variable: desc
victors-macbook-pro:votefor Victor$ cat jakefile
desc('This is an asynchronous task.');
task('asynchronous', [], function () {
setTimeout(function () {
console.log("Yay, I'm asynchronous!");
complete();
}, 1000);
}, true);
Is there anything that i am doing wrong ?
The code was copied and pasted from http://howtonode.org/intro-to-jake