refactor(generator:scriptbase): Make method generate the path, make the method require the component and name