We've used the Vue CLI to create an example application with TypeScript support enabled. You can find it in the code samples for this book, under Chapter09/04-vue-cli/01-empty.
When you use the Vue CLI to create an application, it asks a series of questions that let you customize the project creation process.
Here's how we created our example application and the options that we used:
- Command: vue create 01-empty
- Manually select features
- Package manager? Yarn
- Features:
- TypeScript
- Linter/Format
- Unit testing
- E2E testing
At the second stage, the CLI has asked us the following questions:
- Use class-style component syntax? Yes
- Which linter to use? TSLint
- When to lint? Lint on save
- Which library for unit tests? Jest
- Which library to use for E2E tests? Cypress
- Where to store configurations? In dedicated config files