For example, in a Ruby project you can use rake
to create and run tasks for performing manual operations. What is the equivalent, if any, when using Meteor?
Let's say I have a function inside a server/tasks.js
file:
Meteor.startup(function() {
function importData() {
// My code goes here
}
});
How do I run it from the command line using Meteor or some other task manager?
meteor importData