More Premium Hugo Themes Premium Vue Themes

Vue Preset

一个用于生成自定义模板的 Vue CLI 4.x preset,支持 Vue3。

Vue Preset

一个用于生成自定义模板的 Vue CLI 4.x preset,支持 Vue3。

Author Avatar Theme by cdtrsfe
Github Stars Github Stars: 7
Last Commit Last Commit: Jan 13, 2022 -
First Commit Created: Jun 19, 2023 -
Vue Preset screenshot

Overview:

The vue-preset is a Vue CLI 4.x preset that is used to generate custom templates. It includes the necessary options, plugins, and custom template files for creating a project. The preset includes the following preconfigured plugins and configurations: Less, Axios, Router, Vuex, StyleLint, Eslint, and Babel. The template files are stored in the /generator/template directory and are automatically generated when creating a project.

Features:

  • Less: Supports Less as the CSS preprocessor.
  • Axios: Includes preconfigured Axios plugin for making HTTP requests.
  • Router: Preconfigured Router plugin for handling routing in the project.
  • Vuex: Integrated Vuex for state management.
  • StyleLint: Includes StyleLint plugin for CSS linting.
  • Eslint: Preconfigured Eslint for JavaScript linting.
  • Babel: Utilizes Babel with transformations to remove debuggers and console logs.

Installation:

To install the vue-preset, follow these steps:

  1. Upgrade Vue CLI to version 4.5 or above, if you want to use Vue 3.
  2. Install the vue-preset package:
vue create --preset <preset-name> <project-name>
  1. During the project creation process, choose the desired options, including Vue version (default is 2.x), project type (such as data visualization project), and UI component library (if applicable).

Summary:

The vue-preset is a customizable Vue CLI 4.x preset that simplifies project setup by providing preconfigured options, plugins, and templates. It includes support for Less, Axios, Router, Vuex, StyleLint, Eslint, and Babel. The preset offers an easy installation process and allows developers to choose the desired Vue version, project type, and UI component library. Overall, the vue-preset helps streamline development by providing a solid foundation for Vue projects.