how do I execute commands such as vue create xxx
in the node
script?
I want to be an active scaffolding. I want to learn from the idea of vue-cli
, provide some options to developers, and then automatically generate project templates according to the developer"s choice. For example, if the developer chooses to use vue
, then call the command of vue-cli
to generate the template (some business-related things will be done in between), but after executing vue create xxx
in the script with execa
, it will not be called normally, but the terminal will not respond. But execute commands like git init
.
call Creator
function
vue create xxx