Replaces one-off script with grunt task.