gitbyeos/open-part-skills · Archived

vite-plus

最新适合 Agent 开发的 Web 前端工?

First seen May 28, 2026

Installation

$ npx skills add gitbyeos/open-part-skills --skill vite-plus

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from gitbyeos/open-part-skills · top by installs.

npx skills add gitbyeos/open-part-skills

Browse all from gitbyeos/open-part-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 40
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,577 B
  • docs SUMMARY.md 158 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 10 installs

SKILL.md

Vite+ (vp) 使用技能

概述

Vite+ 是整合了运行时管理、包管理、开发/构建/测试、格式化和 lint 的一体化前端工具链,CLI 命令为 vp。

何时使用

当用户提到以下意图时触发:

  • 创建 Vite+ 项目
  • 运行 vp 命令(vp dev、vp build、vp check 等)
  • 配置 Vite+ 或迁移到 Vite+

安装 vp

curl -fsSL https://vite.plus | bash

验证:vp help 升级:vp upgrade

创建项目

交互式创建:

vp create

非交互式指定模板:

vp create vite -- --template vanilla-ts # 传递参数给模板

常用模板:

值 含义
vanilla 原生 JavaScript
vanilla-ts 原生 TypeScript
vue Vue + JavaScript
vue-ts Vue + TypeScript
react React + JavaScript
react-ts React + TypeScript
react-swc React + JavaScript(SWC)
react-swc-ts React + TypeScript(SWC)
svelte Svelte + JavaScript
svelte-ts Svelte + TypeScript
preact Preact + JavaScript
preact-ts Preact + TypeScript
lit Lit + JavaScript
lit-ts Lit + TypeScript
solid Solid + JavaScript
solid-ts Solid + TypeScript
qwik Qwik + JavaScript
qwik-ts Qwik + TypeScript

核心命令

vp dev              # 启动开发服务器
vp build            # 生产构建
vp build --watch    # 构建并监听
vp preview          # 本地预览生产构建
vp check            # 格式化 + lint + 类型检查(一次完成)
vp check --fix      # 检查并自动修复
vp fmt              # 仅格式化
vp fmt --check      # 检查格式而不修改
vp lint             # 仅 lint
vp lint --fix       # lint 并自动修复
vp test             # 运行测试
vp test watch       # 监听模式测试
vp run <script>     # 运行 package.json 脚本

包管理

vp install          # 安装依赖
vp add <pkg>        # 添加依赖
vp add -D <pkg>     # 添加开发依赖
vp remove <pkg>     # 移除
vp update           # 更新
vp cache clean      #清缓存

配置文件

Vite 构建配置(vite.config.ts)

最小可用配置:

import { defineConfig } from "vite";

export default defineConfig({
  base: "/skill_matrix/",
  plugins: [],
  build: {
    outDir: "/Users/bole/Server/skill_matrix",
    emptyOutDir: true,
  },
  server: {
    host: "127.0.0.1",
    port: 5175,
    strictPort: true,
  },
});

项目说明(package.json)

最小可用配置:

{
  "name": "skill_matrix",
  "version": "0.1.0",
  "private": true,
  "type": "module",
  "scripts": {
    "dev": "vp dev",
    "build": "tsc && vp build",
    "preview": "vp preview",
    "check": "vp check"
  },
  "dependencies": {
    "typescript": "latest",
    "vite": "latest"
  },
  "packageManager": "[email protected]"
}

CI/CD(GitHub Actions)

- uses: voidzero-dev/setup-vp@v1
  with:
    node-version: '22'
    cache: true
- run: vp install
- run: vp check
- run: vp test
- run: vp build

核心原则

  • 用 vp check 代替单独运行格式化/lint/类型检查
  • 用 vp run 执行 package.json 脚本,用 vp test 执行内置测试
  • 不再直接使用 prettier/eslint/vitest,统一在 vite.config.ts 中配置