mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-28 01:59:10 -06:00
38debb4d14eeb57bbae54e19a58f2d99875504dc
convertJsToTs and allowJs options (#4212)
Close #2676 At the moment when we run `vue add`, Vue CLI renames all `*.js` files to `*.ts`. This PR introduces two new prompts on `@vue/cli-plugin-typescript` late-invokation: 1. `convertJsToTs`: if set to `true`, renames all `.js` files to `.ts`. Otherwise renames only `main.js` -> `main.ts`; 2. `allowJs`: if set to `true`, adds `allowJs: true` to TSConfig compiler options.
vue-cli

Vue CLI is the Standard Tooling for Vue.js Development.
Documentation
Docs are available at https://cli.vuejs.org/ - we are still working on refining it and contributions are welcome!
Contributing
Please see contributing guide.
License
Languages
JavaScript
75%
Vue
22.9%
TypeScript
0.9%
Stylus
0.5%
HTML
0.3%
Other
0.4%