@wyxos/zephyr 0.1.0 → 0.1.1

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 CHANGED
@@ -1,76 +1,76 @@
1
- # @wyxos/zephyr
2
-
3
- A streamlined deployment tool for web applications with intelligent Laravel project detection.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install -g @wyxos/zephyr
9
- ```
10
-
11
- Or run directly with npx:
12
-
13
- ```bash
14
- npx @wyxos/zephyr
15
- ```
16
-
17
- ## Usage
18
-
19
- Navigate to your project directory and run:
20
-
21
- ```bash
22
- zephyr
23
- ```
24
-
25
- Follow the interactive prompts to configure your deployment target:
26
- - Server name and IP address
27
- - Project path on the remote server
28
- - Git branch to deploy
29
- - SSH user and private key
30
-
31
- Configuration is saved to `release.json` for future deployments.
32
-
33
- ## Features
34
-
35
- - Automated Git operations (branch switching, commits, pushes)
36
- - SSH-based deployment to remote servers
37
- - Laravel project detection with smart task execution
38
- - Intelligent dependency management (Composer, npm)
39
- - Database migrations when detected
40
- - Frontend asset compilation
41
- - Cache clearing and queue worker management
42
- - SSH key validation and management
43
-
44
- ## Smart Task Execution
45
-
46
- Zephyr analyzes changed files and runs appropriate tasks:
47
-
48
- - **Always**: `git pull origin <branch>`
49
- - **Composer files changed**: `composer update`
50
- - **Migration files added**: `php artisan migrate`
51
- - **package.json changed**: `npm install`
52
- - **Frontend files changed**: `npm run build`
53
- - **PHP files changed**: Clear Laravel caches, restart queues
54
-
55
- ## Configuration
56
-
57
- Deployment targets are stored in `release.json`:
58
-
59
- ```json
60
- [
61
- {
62
- "serverName": "production",
63
- "serverIp": "192.168.1.100",
64
- "projectPath": "~/webapps/myapp",
65
- "branch": "main",
66
- "sshUser": "forge",
67
- "sshKey": "~/.ssh/id_rsa"
68
- }
69
- ]
70
- ```
71
-
72
- ## Requirements
73
-
74
- - Node.js 16+
75
- - Git
1
+ # @wyxos/zephyr
2
+
3
+ A streamlined deployment tool for web applications with intelligent Laravel project detection.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @wyxos/zephyr
9
+ ```
10
+
11
+ Or run directly with npx:
12
+
13
+ ```bash
14
+ npx @wyxos/zephyr
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ Navigate to your project directory and run:
20
+
21
+ ```bash
22
+ zephyr
23
+ ```
24
+
25
+ Follow the interactive prompts to configure your deployment target:
26
+ - Server name and IP address
27
+ - Project path on the remote server
28
+ - Git branch to deploy
29
+ - SSH user and private key
30
+
31
+ Configuration is saved to `release.json` for future deployments.
32
+
33
+ ## Features
34
+
35
+ - Automated Git operations (branch switching, commits, pushes)
36
+ - SSH-based deployment to remote servers
37
+ - Laravel project detection with smart task execution
38
+ - Intelligent dependency management (Composer, npm)
39
+ - Database migrations when detected
40
+ - Frontend asset compilation
41
+ - Cache clearing and queue worker management
42
+ - SSH key validation and management
43
+
44
+ ## Smart Task Execution
45
+
46
+ Zephyr analyzes changed files and runs appropriate tasks:
47
+
48
+ - **Always**: `git pull origin <branch>`
49
+ - **Composer files changed**: `composer update`
50
+ - **Migration files added**: `php artisan migrate`
51
+ - **package.json changed**: `npm install`
52
+ - **Frontend files changed**: `npm run build`
53
+ - **PHP files changed**: Clear Laravel caches, restart queues
54
+
55
+ ## Configuration
56
+
57
+ Deployment targets are stored in `release.json`:
58
+
59
+ ```json
60
+ [
61
+ {
62
+ "serverName": "production",
63
+ "serverIp": "192.168.1.100",
64
+ "projectPath": "~/webapps/myapp",
65
+ "branch": "main",
66
+ "sshUser": "forge",
67
+ "sshKey": "~/.ssh/id_rsa"
68
+ }
69
+ ]
70
+ ```
71
+
72
+ ## Requirements
73
+
74
+ - Node.js 16+
75
+ - Git
76
76
  - SSH access to target servers
package/bin/zephyr.mjs CHANGED
@@ -1,7 +1,7 @@
1
- #!/usr/bin/env node
2
- import { main } from '../src/index.mjs'
3
-
4
- main().catch((error) => {
5
- console.error(error.message)
6
- process.exit(1)
7
- })
1
+ #!/usr/bin/env node
2
+ import { main } from '../src/index.mjs'
3
+
4
+ main().catch((error) => {
5
+ console.error(error.message)
6
+ process.exit(1)
7
+ })
package/package.json CHANGED
@@ -1,47 +1,19 @@
1
- {
2
- "name": "@wyxos/zephyr",
3
- "version": "0.1.0",
4
- "description": "A streamlined deployment tool for web applications with intelligent Laravel project detection",
5
- "type": "module",
6
- "main": "./src/index.mjs",
7
- "bin": {
8
- "zephyr": "./bin/zephyr.mjs"
9
- },
10
- "scripts": {
11
- "test": "vitest"
12
- },
13
- "keywords": [
14
- "deployment",
15
- "laravel",
16
- "ssh",
17
- "automation",
18
- "devops",
19
- "git"
20
- ],
21
- "author": "wyxos",
22
- "license": "MIT",
23
- "repository": {
24
- "type": "git",
25
- "url": "git+https://github.com/wyxos/zephyr.git"
26
- },
27
- "bugs": {
28
- "url": "https://github.com/wyxos/zephyr/issues"
29
- },
30
- "homepage": "https://github.com/wyxos/zephyr#readme",
31
- "engines": {
32
- "node": ">=16.0.0"
33
- },
34
- "files": [
35
- "bin/",
36
- "src/",
37
- "README.md"
38
- ],
39
- "dependencies": {
40
- "chalk": "5.3.0",
41
- "inquirer": "^9.2.12",
42
- "node-ssh": "^13.1.0"
43
- },
44
- "devDependencies": {
45
- "vitest": "^2.1.8"
46
- }
47
- }
1
+ {
2
+ "name": "@wyxos/zephyr",
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "scripts": {
6
+ "test": "vitest"
7
+ },
8
+ "bin": {
9
+ "zephyr": "./bin/zephyr.mjs"
10
+ },
11
+ "dependencies": {
12
+ "chalk": "5.3.0",
13
+ "inquirer": "^9.2.12",
14
+ "node-ssh": "^13.1.0"
15
+ },
16
+ "devDependencies": {
17
+ "vitest": "^2.1.8"
18
+ }
19
+ }