vitejs / create-vite-app

Create a Vite-powered app in seconds!
MIT License
572 stars 60 forks source link

can you add "template-vue-ts"? #48

Closed snowdream closed 4 years ago

snowdream commented 4 years ago

I want to create the project built on Vue3 and TypeScript.

mikeshi80 commented 4 years ago

Just rename the main.js to main.ts, and add lang props in your script tag, set it to "ts".

Typescript is the superset of javascript, so it will run correctly, you can make the code more tyepscript later.

Because it is really small modification for developers, I think this is dispensable.

0x6a68 commented 4 years ago

@snowdream what changes do you think are needed? (based on template vue)

snowdream commented 4 years ago

@0x6a68 you can check this pull request.

https://github.com/vitejs/create-vite-app/pull/17