shipfe 0.1.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/.vscode/settings.json +5 -0
- package/README.md +73 -0
- package/bin/shipfe +0 -0
- package/package.json +33 -0
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Shipfe
|
|
2
|
+
|
|
3
|
+
A powerful deployment tool for web applications with support for multiple environments and sub-environments.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g shipfe
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Initialize project
|
|
14
|
+
```bash
|
|
15
|
+
shipfe init
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Deploy to environment
|
|
19
|
+
```bash
|
|
20
|
+
# Deploy to default environment
|
|
21
|
+
shipfe deploy
|
|
22
|
+
|
|
23
|
+
# Deploy to specific environment
|
|
24
|
+
shipfe deploy --profile dev
|
|
25
|
+
|
|
26
|
+
# Deploy to sub-environment
|
|
27
|
+
shipfe deploy --profile dev-admin
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Configuration
|
|
31
|
+
|
|
32
|
+
Edit `shipfe.config.json` to configure your deployment settings:
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"environments": {
|
|
37
|
+
"dev": {
|
|
38
|
+
"build_command": "npm run build",
|
|
39
|
+
"local_dist_path": "./dist",
|
|
40
|
+
"servers": [
|
|
41
|
+
{
|
|
42
|
+
"host": "dev.example.com",
|
|
43
|
+
"port": 22,
|
|
44
|
+
"username": "deploy",
|
|
45
|
+
"password": "your_password",
|
|
46
|
+
"remote_deploy_path": "/var/www/dev",
|
|
47
|
+
"delete_old": false
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"remote_tmp": "/tmp",
|
|
51
|
+
"sub_environments": {
|
|
52
|
+
"admin": {
|
|
53
|
+
"build_command": "npm run build:admin",
|
|
54
|
+
"remote_deploy_path": "/var/www/dev/admin"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Features
|
|
63
|
+
|
|
64
|
+
- Multiple environment support
|
|
65
|
+
- Sub-environment configuration
|
|
66
|
+
- Custom build commands
|
|
67
|
+
- SSH-based deployment
|
|
68
|
+
- Automatic backup and rollback
|
|
69
|
+
- Detailed logging
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
MIT
|
package/bin/shipfe
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "shipfe",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A deployment tool for web applications",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"shipfe": "bin/shipfe"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"deployment",
|
|
14
|
+
"devops",
|
|
15
|
+
"ssh",
|
|
16
|
+
"ci-cd"
|
|
17
|
+
],
|
|
18
|
+
"author": "Your Name",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/yourusername/shipfe.git"
|
|
23
|
+
},
|
|
24
|
+
"os": [
|
|
25
|
+
"darwin",
|
|
26
|
+
"linux",
|
|
27
|
+
"win32"
|
|
28
|
+
],
|
|
29
|
+
"cpu": [
|
|
30
|
+
"x64",
|
|
31
|
+
"arm64"
|
|
32
|
+
]
|
|
33
|
+
}
|