This project, create-autovue, is a command-line interface (CLI) tool designed to scaffold Vue.js projects. It provides a streamlined way to set up new Vue applications with various configurations and features, including TypeScript, routing, state management (Pinia), and different testing frameworks.
Key Technologies:
- TypeScript: For type-safe JavaScript development.
- Vue.js: The progressive JavaScript framework for building user interfaces.
- Vite: A fast build tool that provides an extremely fast development experience.
- ESLint: For identifying and reporting on patterns found in ECMAScript/JavaScript code.
- Prettier: An opinionated code formatter.
- Vitest: A fast unit test framework powered by Vite.
read @Readme
To install the dependencies, run:
npm installTo build the project, use the following command:
npm run buildTo run the test suite:
npm run testTo lint the codebase:
npm run lintTo format the code using Prettier:
npm run formatTo check for formatting issues without applying changes:
npm run format:check- ESLint: The project uses ESLint for code quality and style enforcement. The configuration is defined in
eslint.config.js. - Prettier: Code formatting is handled by Prettier, configured via
.prettierrc. Developers should runnpm run formatregularly to ensure consistent code style.
- TypeScript: The project is written in TypeScript, and type checking is performed using
tsconfig.json.
- Vitest: Unit tests are written using Vitest. Test files are typically located in
__test__directories or alongside the code they test, following the*.spec.tsnaming convention.
Before committing, always run:
npx eslint .npx prettier . --checkIf either returns errors, adjust the code and rerun the cycle. Once no errors are returned, the changes are ready to be committed.