mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-14 05:01:26 -05:00
51e63cf7aedf930baea7ac60cdc56f50ad29e3cf
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.
(cherry picked from commit 38debb4d14)
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%