More Premium Hugo Themes Premium Vue Themes

Blog

Vue3.2+Vite+TypeScript+Pinia+Setup写法,包括 命令式组件写法,Eslint Prettier规范,TypeScript入门写法

Blog

Vue3.2+Vite+TypeScript+Pinia+Setup写法,包括 命令式组件写法,Eslint Prettier规范,TypeScript入门写法

Author Avatar Theme by shaobeichen
Github Stars Github Stars: 152
Last Commit Last Commit: Dec 18, 2022 -
First Commit Created: Aug 27, 2024 -
default image

Overview:

This product is a personal homepage theme built with Vue3.2, Vite, TypeScript, Pinia, and Setup techniques. It features a TodoList example for practicing Vue3.2 and supports both Vue3 and Setup component writing methods. Additionally, it includes guidelines for testing Vue components with Jest and TypeScript along with coverage viewing. The theme also adheres to various coding standards such as eslint, prettier, stylelint, commitlint, and husky, and supports automatic deployment using GitHub Actions.

Features:

  • Vue3.2 + Vite + TypeScript + Pinia + Setup: Combination of latest technologies for efficient development.
  • TodoList Example for Vue3.2: Helps in quick understanding and entry into Vue3.2.
  • Component Writing Support: Provides guides for both Vue3 + Setup component writing and Vue3.2 imperative component writing alongside Vue2.x Options API usage.
  • Testing with Jest + TypeScript: Introduction to writing Vue component test cases with Jest and TypeScript for better code coverage.
  • Coding Standards: Supports various coding standards like eslint, prettier, stylelint, commitlint, and husky for maintaining code quality.
  • Automatic Deployment: Utilizes GitHub Actions for automated project deployment.

Installation:

  1. Install yarn:
    npm install -g yarn
    
  2. Install dependencies:
    yarn install
    
  3. Run the project:
    yarn dev
    

Summary:

This personal homepage theme built with Vue3.2, Vite, TypeScript, Pinia, and Setup techniques provides a comprehensive guide for developers to create efficient Vue projects. With features like a TodoList example, component writing support for different Vue versions, testing with Jest and TypeScript, coding standards adherence, and automatic deployment using GitHub Actions, this theme aims to streamline the development process and enhance code quality.