Skip to content

Commit 8dacc7f

Browse files
fengmk2claude
andcommitted
feat: initial implementation of setup-vite-plus-action
GitHub Action to set up Vite+ (@voidzero-dev/global) with: - Version specification (latest or specific version) - Dual registry support (npm and GitHub Package Registry) - Dependency caching with auto-detection of lock files - Optional vite install execution with custom args/cwd - ESM output bundled with tsdown Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 parents  commit 8dacc7f

16 files changed

Lines changed: 2761 additions & 0 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

README.md

Whitespace-only changes.

action.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: 'Setup Vite+'
2+
description: 'Install Vite+ (@voidzero-dev/global) and optionally cache project dependencies'
3+
author: 'voidzero-dev'
4+
branding:
5+
icon: zap
6+
color: purple
7+
8+
inputs:
9+
version:
10+
description: 'Version of @voidzero-dev/global to install'
11+
required: false
12+
default: 'latest'
13+
registry:
14+
description: 'Registry to install from: "npm" (default) or "github"'
15+
required: false
16+
default: 'npm'
17+
github-token:
18+
description: 'GitHub PAT for GitHub Package Registry. Required when registry is "github".'
19+
required: false
20+
run-install:
21+
description: 'Run `vite install` after setup. Accepts boolean or YAML object with cwd/args.'
22+
required: false
23+
default: 'false'
24+
cache:
25+
description: 'Enable caching of project dependencies'
26+
required: false
27+
default: 'false'
28+
cache-dependency-path:
29+
description: 'Path to lock file for cache key generation. Auto-detected if not specified.'
30+
required: false
31+
32+
outputs:
33+
version:
34+
description: 'The installed version of @voidzero-dev/global'
35+
cache-hit:
36+
description: 'Boolean indicating if cache was restored'
37+
38+
runs:
39+
using: node20
40+
main: dist/index.mjs
41+
post: dist/index.mjs
42+
post-if: success()

dist/index.mjs

Lines changed: 197 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)