I would like to create a Javascript file in my RoR project that act like a tasks.
I know that for a Ruby file, you write your code in lib/tasks/my_task.rake
and run your task by typing rake:name_of_the_task
in your console.
I would like to do the same process but in Javascript, is anyone having a tutorial or could explain me how it works ? Can I insert javascript in my rake file ?
Thanks !