vertex-cli 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -0
- package/bin/vertex-bump +0 -0
- package/bin/vertex-check +0 -0
- package/bin/vertex-commit +0 -0
- package/package.json +24 -0
package/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# VERTEX CLI
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install -g vertex-cli
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
### Smart Commit
|
|
12
|
+
```bash
|
|
13
|
+
vertex-commit
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### System Diagnostics
|
|
17
|
+
```bash
|
|
18
|
+
vertex-check
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Version Bump
|
|
22
|
+
```bash
|
|
23
|
+
vertex-bump
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Security
|
|
27
|
+
This package contains compiled binaries to ensure integrity and protection of the core logic.
|
|
28
|
+
|
|
29
|
+
## 🔗 Integration Guide: Version Sync
|
|
30
|
+
|
|
31
|
+
Want to display the version in your web app (like `v1.2.3`)?
|
|
32
|
+
|
|
33
|
+
### 1. Update `vite.config.ts`
|
|
34
|
+
Expose the version from `package.json` to your app:
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { defineConfig } from "vite";
|
|
38
|
+
import packageJson from "./package.json";
|
|
39
|
+
|
|
40
|
+
export default defineConfig({
|
|
41
|
+
define: {
|
|
42
|
+
__APP_VERSION__: JSON.stringify(packageJson.version),
|
|
43
|
+
},
|
|
44
|
+
// ... rest of config
|
|
45
|
+
});
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 2. Add Type Definition
|
|
49
|
+
Create `src/vite-env.d.ts` so TypeScript knows about the constant:
|
|
50
|
+
|
|
51
|
+
```typescript
|
|
52
|
+
/// <reference types="vite/client" />
|
|
53
|
+
declare const __APP_VERSION__: string;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### 3. Use in React Component
|
|
57
|
+
Now you can use `__APP_VERSION__` anywhere!
|
|
58
|
+
|
|
59
|
+
```tsx
|
|
60
|
+
export function VersionFooter() {
|
|
61
|
+
return (
|
|
62
|
+
<div className="text-gray-500 text-sm">
|
|
63
|
+
v{__APP_VERSION__}
|
|
64
|
+
</div>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Now run `vertex-bump`, and your UI will update automatically! 🚀
|
package/bin/vertex-bump
ADDED
|
Binary file
|
package/bin/vertex-check
ADDED
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vertex-cli",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Protected CLI for VERTEX Diagnostics & Commit Intelligence",
|
|
5
|
+
"bin": {
|
|
6
|
+
"vertex-commit": "bin/vertex-commit",
|
|
7
|
+
"vertex-check": "bin/vertex-check",
|
|
8
|
+
"vertex-bump": "bin/vertex-bump"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "mkdir -p bin && shc -r -f scripts/git-commit.sh -o bin/vertex-commit && shc -r -f scripts/check-all.sh -o bin/vertex-check && shc -r -f scripts/bump-version.sh -o bin/vertex-bump && rm -f scripts/*.x.c"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"cli",
|
|
18
|
+
"vertex",
|
|
19
|
+
"git",
|
|
20
|
+
"diagnostics"
|
|
21
|
+
],
|
|
22
|
+
"author": "VERTEX",
|
|
23
|
+
"license": "UNLICENSED"
|
|
24
|
+
}
|