DEV Community

Bar Akiva
Bar Akiva

Posted on

Automate new project creation

I want to set up new Vue proejcts with my personal configuration with just one command. I am looking for something like

function vc() {
npm create vue@3 -y --project-name=myapp --ts=yes --jsx=no #etc
}

Enter fullscreen mode Exit fullscreen mode

How can I do that? So far I have tried spawn and expect but it doesn't work.

Top comments (0)