Skip to content

Commit 5bd070e

Browse files
fengmk2claude
andauthored
refactor: change package name to vite-plus-cli (#2)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8b9fc27 commit 5bd070e

17 files changed

Lines changed: 196 additions & 2233 deletions

.github/workflows/test.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jobs:
2424
uses: ./
2525
with:
2626
version: latest
27-
registry: github
28-
github-token: ${{ secrets.VP_TOKEN }}
2927
run-install: false
3028
cache: false
3129

@@ -52,8 +50,6 @@ jobs:
5250
uses: ./
5351
id: setup
5452
with:
55-
registry: github
56-
github-token: ${{ secrets.VP_TOKEN }}
5753
run-install: false
5854
cache: true
5955
cache-dependency-path: test-project/pnpm-lock.yaml
@@ -84,8 +80,6 @@ jobs:
8480
uses: ./
8581
id: setup
8682
with:
87-
registry: github
88-
github-token: ${{ secrets.VP_TOKEN }}
8983
run-install: false
9084
cache: true
9185
cache-dependency-path: test-project/package-lock.json
@@ -116,8 +110,6 @@ jobs:
116110
uses: ./
117111
id: setup
118112
with:
119-
registry: github
120-
github-token: ${{ secrets.VP_TOKEN }}
121113
run-install: false
122114
cache: true
123115
cache-dependency-path: test-project/yarn.lock
@@ -141,8 +133,6 @@ jobs:
141133
uses: ./
142134
id: setup
143135
with:
144-
registry: github
145-
github-token: ${{ secrets.VP_TOKEN }}
146136
cache: true
147137

148138
- name: Type check

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
88

99
## Project Overview
1010

11-
GitHub Action to set up [Vite+](https://github.com/voidzero-dev/vite-plus) (`@voidzero-dev/global`) with dependency caching support. This action installs Vite+ globally and optionally caches project dependencies based on lock file detection.
11+
GitHub Action to set up [Vite+](https://github.com/voidzero-dev/vite-plus) (`vite-plus-cli`) with dependency caching support. This action installs Vite+ globally and optionally caches project dependencies based on lock file detection.
1212

1313
## Commands
1414

@@ -41,7 +41,7 @@ vite run fmt:check
4141
This is a GitHub Action with main and post execution phases (defined in `action.yml`):
4242

4343
- **Main phase** (`src/index.ts``runMain`):
44-
1. Install `@voidzero-dev/global` globally via npm
44+
1. Install `vite-plus-cli` globally via npm
4545
2. Restore dependency cache if enabled
4646
3. Run `vite install` if requested
4747

@@ -51,7 +51,7 @@ This is a GitHub Action with main and post execution phases (defined in `action.
5151
### Key Modules
5252

5353
- `src/inputs.ts` - Parse and validate action inputs using Zod schemas
54-
- `src/install-viteplus.ts` - Install vite-plus globally, handles GitHub Package Registry auth
54+
- `src/install-viteplus.ts` - Install vite-plus globally via npm
5555
- `src/cache-restore.ts` / `src/cache-save.ts` - Dependency caching via `@actions/cache`
5656
- `src/run-install.ts` - Execute `vite install` with optional cwd/args
5757
- `src/types.ts` - Shared types, enums, and Zod schemas

README.md

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# setup-vite-plus-action
22

3-
GitHub Action to set up [Vite+](https://github.com/voidzero-dev/vite-plus) (`@voidzero-dev/global`) with dependency caching support.
3+
GitHub Action to set up [Vite+](https://github.com/voidzero-dev/vite-plus) (`vite-plus-cli`) with dependency caching support.
44

55
## Features
66

77
- Install Vite+ globally with version specification
8-
- Support both npm Registry and GitHub Package Registry
98
- Cache project dependencies with auto-detection of lock files
109
- Optionally run `vite install` after setup
1110
- Support for all major package managers (npm, pnpm, yarn)
@@ -55,20 +54,6 @@ steps:
5554
cache: true
5655
```
5756
58-
### GitHub Package Registry
59-
60-
```yaml
61-
steps:
62-
- uses: actions/checkout@v6
63-
- uses: actions/setup-node@v6
64-
with:
65-
node-version: '22'
66-
- uses: voidzero-dev/setup-vite-plus-action@v1
67-
with:
68-
registry: github
69-
github-token: ${{ secrets.GH_PKG_TOKEN }}
70-
```
71-
7257
### Advanced Run Install
7358
7459
```yaml
@@ -90,9 +75,7 @@ steps:
9075
9176
| Input | Description | Required | Default |
9277
|-------|-------------|----------|---------|
93-
| `version` | Version of @voidzero-dev/global to install | No | `latest` |
94-
| `registry` | Registry to install from: `npm` or `github` | No | `npm` |
95-
| `github-token` | GitHub PAT for GitHub Package Registry | No | - |
78+
| `version` | Version of vite-plus-cli to install | No | `latest` |
9679
| `run-install` | Run `vite install` after setup. Accepts boolean or YAML object with `cwd`/`args` | No | `true` |
9780
| `cache` | Enable caching of project dependencies | No | `false` |
9881
| `cache-dependency-path` | Path to lock file for cache key generation | No | Auto-detected |
@@ -101,7 +84,7 @@ steps:
10184

10285
| Output | Description |
10386
|--------|-------------|
104-
| `version` | The installed version of @voidzero-dev/global |
87+
| `version` | The installed version of vite-plus-cli |
10588
| `cache-hit` | Boolean indicating if cache was restored |
10689

10790
## Caching
@@ -146,6 +129,10 @@ jobs:
146129
- run: vite run test
147130
```
148131

132+
## Feedback
133+
134+
If you have any feedback or issues, please [submit an issue or start a discussion](https://github.com/voidzero-dev/vite-plus-discussions).
135+
149136
## License
150137

151138
MIT

action.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
name: 'Setup Vite+'
2-
description: 'Install Vite+ (@voidzero-dev/global) and optionally cache project dependencies'
2+
description: 'Install Vite+ (vite-plus-cli) and optionally cache project dependencies'
33
author: 'voidzero-dev'
44
branding:
55
icon: zap
66
color: purple
77

88
inputs:
99
version:
10-
description: 'Version of @voidzero-dev/global to install'
10+
description: 'Version of vite-plus-cli to install'
1111
required: false
1212
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
2013
run-install:
2114
description: 'Run `vite install` after setup. Accepts boolean or YAML object with cwd/args.'
2215
required: false
@@ -31,7 +24,7 @@ inputs:
3124

3225
outputs:
3326
version:
34-
description: 'The installed version of @voidzero-dev/global'
27+
description: 'The installed version of vite-plus-cli'
3528
cache-hit:
3629
description: 'Boolean indicating if cache was restored'
3730

dist/index.mjs

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"@types/node": "^22.0.0",
27-
"@voidzero-dev/vite-plus": "latest",
28-
"typescript": "^5.7.0"
27+
"typescript": "^5.7.0",
28+
"vite-plus": "latest"
2929
}
3030
}

0 commit comments

Comments
 (0)