My Vue3 Template

screenshot of My Vue3 Template
vite
vue
scss

My starter template for Vue3, with vite, quarkd, sass/less(含viewport 适配方案, axios 封装)

Overview:

The vue3-template is a mobile template scaffold for Vue 3 projects. It utilizes Vue 3, Vite, Pinia, quark design, sass/less, viewport adaptation, and axios customization. It aims to provide a complete development environment with features like multiple environment variable configurations, viewport adaptation, Pinia state management, Vue Router 4, and Axios integration. The template also includes basic configurations for eslint, Pettier, and stylelint to ensure code quality and development standards. It offers easy installation and various customization options for different project needs.

Features:

  • Vite: Fast and efficient development server for Vue 3 projects.
  • Multiple Environment Variable Configurations: Allows configuration of different environments (dev, test, prod) through npm scripts.
  • Viewport Adaptation: Configures viewport adaptation using the postcss-px-to-viewport plugin.
  • Pinia State Management: Provides a convenient and TypeScript-compatible alternative to Vuex for state management.
  • Vue Router 4: Includes a hash mode for routing in the project, with the option to switch to history mode.
  • Axios Customization and API Management: Uses a custom request.js file to handle Axios requests and provides a centralized API management in the src/api directory.
  • Vite Configurations: Offers basic configurations for vite.config.ts, including aliases and proxy settings.
  • Linting and Code Formatting: Includes eslint, Pettier, and stylelint configurations for maintaining development standards and code quality.

Summary:

The vue3-template is a feature-rich mobile template scaffold for Vue 3 projects. It provides the necessary tools and configurations to quickly set up a development environment and start building mobile applications. With support for multiple environment variables, viewport adaptation, Pinia state management, and customized Axios integration, developers can easily build scalable and efficient mobile applications. Additionally, the template includes basic configurations for eslint, Pettier, and stylelint to enforce code quality and development standards. Overall, the vue3-template offers a comprehensive solution for developing mobile applications using Vue 3.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

vue
Vue

Vue.js is a lightweight and flexible JavaScript framework that allows developers to easily build dynamic and reactive user interfaces. Its intuitive syntax, modular architecture, and focus on performance make it a popular choice for modern web development.

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

Stylelint

Stylelint is a modern linter for CSS that helps you avoid errors and enforce consistent styling conventions. It provides rules for detecting errors and warnings, and can be configured to match your specific project's requirements.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.