ezpm2gui 1.3.2 → 1.5.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 +295 -294
- package/bin/ezpm2gui.js +8 -8
- package/bin/ezpm2gui.ts +51 -51
- package/bin/generate-ecosystem.js +35 -35
- package/bin/generate-ecosystem.ts +56 -56
- package/dist/index.js +1 -1
- package/dist/server/config/project-configs.json +236 -236
- package/dist/server/index.js +256 -83
- package/dist/server/routes/deployApplication.js +6 -5
- package/dist/server/routes/logStreaming.js +20 -13
- package/dist/server/routes/modules.js +89 -69
- package/dist/server/routes/remoteConnections.js +279 -40
- package/dist/server/routes/updates.d.ts +3 -0
- package/dist/server/routes/updates.js +135 -0
- package/dist/server/utils/encryption.js +0 -12
- package/dist/server/utils/pm2-connection.d.ts +1 -1
- package/dist/server/utils/pm2-connection.js +1 -3
- package/dist/server/utils/remote-connection.d.ts +36 -3
- package/dist/server/utils/remote-connection.js +307 -79
- package/package.json +73 -69
- package/scripts/postinstall.js +36 -36
- package/src/client/build/asset-manifest.json +6 -6
- package/src/client/build/favicon.ico +2 -2
- package/src/client/build/index.html +1 -1
- package/src/client/build/logo192.svg +7 -7
- package/src/client/build/logo512.svg +7 -7
- package/src/client/build/manifest.json +24 -24
- package/src/client/build/static/css/main.2d095544.css +5 -0
- package/src/client/build/static/css/main.2d095544.css.map +1 -0
- package/src/client/build/static/js/main.17e17668.js +3 -0
- package/src/client/build/static/js/main.17e17668.js.map +1 -0
- package/dist/server/config/cron-jobs.json +0 -18
- package/dist/server/config/cron-scripts/6d8d5e1d-2bc8-463f-82a6-6c294f2b9dbe.sh +0 -2
- package/dist/server/config/remote-connections.json +0 -22
- package/dist/server/logs/deployment.log +0 -12
- package/dist/server/utils/dialog.d.ts +0 -1
- package/dist/server/utils/dialog.js +0 -16
- package/dist/server/utils/upload.d.ts +0 -3
- package/dist/server/utils/upload.js +0 -39
- package/src/client/build/static/css/main.d46bc75c.css +0 -5
- package/src/client/build/static/css/main.d46bc75c.css.map +0 -1
- package/src/client/build/static/js/main.b0e1c9b1.js +0 -3
- package/src/client/build/static/js/main.b0e1c9b1.js.map +0 -1
- /package/src/client/build/static/js/{main.b0e1c9b1.js.LICENSE.txt → main.17e17668.js.LICENSE.txt} +0 -0
|
@@ -1,236 +1,236 @@
|
|
|
1
|
-
{
|
|
2
|
-
"projectTypes": {
|
|
3
|
-
"node": {
|
|
4
|
-
"name": "Node.js",
|
|
5
|
-
"detection": {
|
|
6
|
-
"files": ["package.json"],
|
|
7
|
-
"extensions": [".js", ".ts", ".jsx", ".tsx"]
|
|
8
|
-
},
|
|
9
|
-
"setup": {
|
|
10
|
-
"steps": [
|
|
11
|
-
{
|
|
12
|
-
"name": "Check Node.js version",
|
|
13
|
-
"command": "node --version",
|
|
14
|
-
"description": "Verifying Node.js installation",
|
|
15
|
-
"required": true
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "Install dependencies",
|
|
19
|
-
"command": "npm install",
|
|
20
|
-
"description": "Installing project dependencies",
|
|
21
|
-
"required": true,
|
|
22
|
-
"workingDirectory": "project"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "Build project (if build script exists)",
|
|
26
|
-
"command": "npm run build",
|
|
27
|
-
"description": "Building the project",
|
|
28
|
-
"required": false,
|
|
29
|
-
"conditional": "build_script_exists",
|
|
30
|
-
"workingDirectory": "project"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "Run tests (if test script exists)",
|
|
34
|
-
"command": "npm test",
|
|
35
|
-
"description": "Running tests",
|
|
36
|
-
"required": false,
|
|
37
|
-
"conditional": "test_script_exists",
|
|
38
|
-
"workingDirectory": "project"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"environment": {
|
|
42
|
-
"NODE_ENV": "production"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"validation": {
|
|
46
|
-
"checks": [
|
|
47
|
-
{
|
|
48
|
-
"name": "package.json exists",
|
|
49
|
-
"file": "package.json"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "node_modules exists after install",
|
|
53
|
-
"directory": "node_modules"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
"defaultConfig": {
|
|
58
|
-
"interpreter": "node",
|
|
59
|
-
"execMode": "fork",
|
|
60
|
-
"supportsCluster": true,
|
|
61
|
-
"startScript": "npm start"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"python": {
|
|
65
|
-
"name": "Python",
|
|
66
|
-
"detection": {
|
|
67
|
-
"files": ["requirements.txt", "pyproject.toml", "setup.py", "Pipfile"],
|
|
68
|
-
"extensions": [".py"]
|
|
69
|
-
},
|
|
70
|
-
"setup": {
|
|
71
|
-
"steps": [
|
|
72
|
-
{
|
|
73
|
-
"name": "Check Python version",
|
|
74
|
-
"command": "python --version",
|
|
75
|
-
"description": "Verifying Python installation",
|
|
76
|
-
"required": true
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "Create virtual environment",
|
|
80
|
-
"command": "python -m venv venv",
|
|
81
|
-
"description": "Creating Python virtual environment",
|
|
82
|
-
"required": true,
|
|
83
|
-
"workingDirectory": "project"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"name": "Activate virtual environment (Windows)",
|
|
87
|
-
"command": ".\\venv\\Scripts\\Activate.ps1",
|
|
88
|
-
"description": "Activating virtual environment",
|
|
89
|
-
"required": true,
|
|
90
|
-
"platform": "win32",
|
|
91
|
-
"workingDirectory": "project"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"name": "Activate virtual environment (Unix)",
|
|
95
|
-
"command": "source venv/bin/activate",
|
|
96
|
-
"description": "Activating virtual environment",
|
|
97
|
-
"required": true,
|
|
98
|
-
"platform": "unix",
|
|
99
|
-
"workingDirectory": "project"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"name": "Upgrade pip",
|
|
103
|
-
"command": "python -m pip install --upgrade pip",
|
|
104
|
-
"description": "Upgrading pip",
|
|
105
|
-
"required": true,
|
|
106
|
-
"workingDirectory": "project",
|
|
107
|
-
"useVenv": true
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "Install requirements",
|
|
111
|
-
"command": "pip install -r requirements.txt",
|
|
112
|
-
"description": "Installing Python dependencies",
|
|
113
|
-
"required": true,
|
|
114
|
-
"conditional": "requirements_exists",
|
|
115
|
-
"workingDirectory": "project",
|
|
116
|
-
"useVenv": true
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "Install from pyproject.toml",
|
|
120
|
-
"command": "pip install -e .",
|
|
121
|
-
"description": "Installing from pyproject.toml",
|
|
122
|
-
"required": true,
|
|
123
|
-
"conditional": "pyproject_exists",
|
|
124
|
-
"workingDirectory": "project",
|
|
125
|
-
"useVenv": true
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
"environment": {
|
|
129
|
-
"PYTHONPATH": ".",
|
|
130
|
-
"PYTHON_UNBUFFERED": "1"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"validation": {
|
|
134
|
-
"checks": [
|
|
135
|
-
{
|
|
136
|
-
"name": "Virtual environment created",
|
|
137
|
-
"directory": "venv"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"name": "Requirements file exists",
|
|
141
|
-
"file": "requirements.txt",
|
|
142
|
-
"optional": true
|
|
143
|
-
}
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
"defaultConfig": {
|
|
147
|
-
"interpreter": "python",
|
|
148
|
-
"execMode": "fork",
|
|
149
|
-
"supportsCluster": false,
|
|
150
|
-
"interpreterPath": "venv/Scripts/python.exe"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"dotnet": {
|
|
154
|
-
"name": ".NET",
|
|
155
|
-
"detection": {
|
|
156
|
-
"files": ["*.csproj", "*.fsproj", "*.vbproj", "*.sln"],
|
|
157
|
-
"extensions": [".cs", ".fs", ".vb"]
|
|
158
|
-
},
|
|
159
|
-
"setup": {
|
|
160
|
-
"steps": [
|
|
161
|
-
{
|
|
162
|
-
"name": "Check .NET version",
|
|
163
|
-
"command": "dotnet --version",
|
|
164
|
-
"description": "Verifying .NET installation",
|
|
165
|
-
"required": true
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"name": "Restore packages",
|
|
169
|
-
"command": "dotnet restore",
|
|
170
|
-
"description": "Restoring NuGet packages",
|
|
171
|
-
"required": true,
|
|
172
|
-
"workingDirectory": "project"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"name": "Build project",
|
|
176
|
-
"command": "dotnet build --configuration Release",
|
|
177
|
-
"description": "Building .NET project",
|
|
178
|
-
"required": true,
|
|
179
|
-
"workingDirectory": "project"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"name": "Publish project",
|
|
183
|
-
"command": "dotnet publish --configuration Release --output ./publish",
|
|
184
|
-
"description": "Publishing .NET project",
|
|
185
|
-
"required": true,
|
|
186
|
-
"workingDirectory": "project"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "Run tests",
|
|
190
|
-
"command": "dotnet test",
|
|
191
|
-
"description": "Running .NET tests",
|
|
192
|
-
"required": false,
|
|
193
|
-
"conditional": "test_project_exists",
|
|
194
|
-
"workingDirectory": "project"
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"environment": {
|
|
198
|
-
"DOTNET_ENVIRONMENT": "Production",
|
|
199
|
-
"ASPNETCORE_ENVIRONMENT": "Production"
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
"validation": {
|
|
203
|
-
"checks": [
|
|
204
|
-
{
|
|
205
|
-
"name": "Project file exists",
|
|
206
|
-
"pattern": "*.csproj"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "Publish directory exists",
|
|
210
|
-
"directory": "publish"
|
|
211
|
-
}
|
|
212
|
-
]
|
|
213
|
-
},
|
|
214
|
-
"defaultConfig": {
|
|
215
|
-
"interpreter": "dotnet",
|
|
216
|
-
"execMode": "fork",
|
|
217
|
-
"supportsCluster": false,
|
|
218
|
-
"startCommand": "dotnet run"
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
"global": {
|
|
223
|
-
"timeouts": {
|
|
224
|
-
"setup": 300000,
|
|
225
|
-
"validation": 30000
|
|
226
|
-
},
|
|
227
|
-
"retries": {
|
|
228
|
-
"setup": 2,
|
|
229
|
-
"validation": 1
|
|
230
|
-
},
|
|
231
|
-
"logging": {
|
|
232
|
-
"level": "info",
|
|
233
|
-
"file": "deployment.log"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"projectTypes": {
|
|
3
|
+
"node": {
|
|
4
|
+
"name": "Node.js",
|
|
5
|
+
"detection": {
|
|
6
|
+
"files": ["package.json"],
|
|
7
|
+
"extensions": [".js", ".ts", ".jsx", ".tsx"]
|
|
8
|
+
},
|
|
9
|
+
"setup": {
|
|
10
|
+
"steps": [
|
|
11
|
+
{
|
|
12
|
+
"name": "Check Node.js version",
|
|
13
|
+
"command": "node --version",
|
|
14
|
+
"description": "Verifying Node.js installation",
|
|
15
|
+
"required": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Install dependencies",
|
|
19
|
+
"command": "npm install",
|
|
20
|
+
"description": "Installing project dependencies",
|
|
21
|
+
"required": true,
|
|
22
|
+
"workingDirectory": "project"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "Build project (if build script exists)",
|
|
26
|
+
"command": "npm run build",
|
|
27
|
+
"description": "Building the project",
|
|
28
|
+
"required": false,
|
|
29
|
+
"conditional": "build_script_exists",
|
|
30
|
+
"workingDirectory": "project"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Run tests (if test script exists)",
|
|
34
|
+
"command": "npm test",
|
|
35
|
+
"description": "Running tests",
|
|
36
|
+
"required": false,
|
|
37
|
+
"conditional": "test_script_exists",
|
|
38
|
+
"workingDirectory": "project"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"environment": {
|
|
42
|
+
"NODE_ENV": "production"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"validation": {
|
|
46
|
+
"checks": [
|
|
47
|
+
{
|
|
48
|
+
"name": "package.json exists",
|
|
49
|
+
"file": "package.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "node_modules exists after install",
|
|
53
|
+
"directory": "node_modules"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"defaultConfig": {
|
|
58
|
+
"interpreter": "node",
|
|
59
|
+
"execMode": "fork",
|
|
60
|
+
"supportsCluster": true,
|
|
61
|
+
"startScript": "npm start"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"python": {
|
|
65
|
+
"name": "Python",
|
|
66
|
+
"detection": {
|
|
67
|
+
"files": ["requirements.txt", "pyproject.toml", "setup.py", "Pipfile"],
|
|
68
|
+
"extensions": [".py"]
|
|
69
|
+
},
|
|
70
|
+
"setup": {
|
|
71
|
+
"steps": [
|
|
72
|
+
{
|
|
73
|
+
"name": "Check Python version",
|
|
74
|
+
"command": "python --version",
|
|
75
|
+
"description": "Verifying Python installation",
|
|
76
|
+
"required": true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "Create virtual environment",
|
|
80
|
+
"command": "python -m venv venv",
|
|
81
|
+
"description": "Creating Python virtual environment",
|
|
82
|
+
"required": true,
|
|
83
|
+
"workingDirectory": "project"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "Activate virtual environment (Windows)",
|
|
87
|
+
"command": ".\\venv\\Scripts\\Activate.ps1",
|
|
88
|
+
"description": "Activating virtual environment",
|
|
89
|
+
"required": true,
|
|
90
|
+
"platform": "win32",
|
|
91
|
+
"workingDirectory": "project"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "Activate virtual environment (Unix)",
|
|
95
|
+
"command": "source venv/bin/activate",
|
|
96
|
+
"description": "Activating virtual environment",
|
|
97
|
+
"required": true,
|
|
98
|
+
"platform": "unix",
|
|
99
|
+
"workingDirectory": "project"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "Upgrade pip",
|
|
103
|
+
"command": "python -m pip install --upgrade pip",
|
|
104
|
+
"description": "Upgrading pip",
|
|
105
|
+
"required": true,
|
|
106
|
+
"workingDirectory": "project",
|
|
107
|
+
"useVenv": true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "Install requirements",
|
|
111
|
+
"command": "pip install -r requirements.txt",
|
|
112
|
+
"description": "Installing Python dependencies",
|
|
113
|
+
"required": true,
|
|
114
|
+
"conditional": "requirements_exists",
|
|
115
|
+
"workingDirectory": "project",
|
|
116
|
+
"useVenv": true
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "Install from pyproject.toml",
|
|
120
|
+
"command": "pip install -e .",
|
|
121
|
+
"description": "Installing from pyproject.toml",
|
|
122
|
+
"required": true,
|
|
123
|
+
"conditional": "pyproject_exists",
|
|
124
|
+
"workingDirectory": "project",
|
|
125
|
+
"useVenv": true
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"environment": {
|
|
129
|
+
"PYTHONPATH": ".",
|
|
130
|
+
"PYTHON_UNBUFFERED": "1"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"validation": {
|
|
134
|
+
"checks": [
|
|
135
|
+
{
|
|
136
|
+
"name": "Virtual environment created",
|
|
137
|
+
"directory": "venv"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "Requirements file exists",
|
|
141
|
+
"file": "requirements.txt",
|
|
142
|
+
"optional": true
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"defaultConfig": {
|
|
147
|
+
"interpreter": "python",
|
|
148
|
+
"execMode": "fork",
|
|
149
|
+
"supportsCluster": false,
|
|
150
|
+
"interpreterPath": "venv/Scripts/python.exe"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"dotnet": {
|
|
154
|
+
"name": ".NET",
|
|
155
|
+
"detection": {
|
|
156
|
+
"files": ["*.csproj", "*.fsproj", "*.vbproj", "*.sln"],
|
|
157
|
+
"extensions": [".cs", ".fs", ".vb"]
|
|
158
|
+
},
|
|
159
|
+
"setup": {
|
|
160
|
+
"steps": [
|
|
161
|
+
{
|
|
162
|
+
"name": "Check .NET version",
|
|
163
|
+
"command": "dotnet --version",
|
|
164
|
+
"description": "Verifying .NET installation",
|
|
165
|
+
"required": true
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "Restore packages",
|
|
169
|
+
"command": "dotnet restore",
|
|
170
|
+
"description": "Restoring NuGet packages",
|
|
171
|
+
"required": true,
|
|
172
|
+
"workingDirectory": "project"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "Build project",
|
|
176
|
+
"command": "dotnet build --configuration Release",
|
|
177
|
+
"description": "Building .NET project",
|
|
178
|
+
"required": true,
|
|
179
|
+
"workingDirectory": "project"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "Publish project",
|
|
183
|
+
"command": "dotnet publish --configuration Release --output ./publish",
|
|
184
|
+
"description": "Publishing .NET project",
|
|
185
|
+
"required": true,
|
|
186
|
+
"workingDirectory": "project"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "Run tests",
|
|
190
|
+
"command": "dotnet test",
|
|
191
|
+
"description": "Running .NET tests",
|
|
192
|
+
"required": false,
|
|
193
|
+
"conditional": "test_project_exists",
|
|
194
|
+
"workingDirectory": "project"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"environment": {
|
|
198
|
+
"DOTNET_ENVIRONMENT": "Production",
|
|
199
|
+
"ASPNETCORE_ENVIRONMENT": "Production"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"validation": {
|
|
203
|
+
"checks": [
|
|
204
|
+
{
|
|
205
|
+
"name": "Project file exists",
|
|
206
|
+
"pattern": "*.csproj"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "Publish directory exists",
|
|
210
|
+
"directory": "publish"
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"defaultConfig": {
|
|
215
|
+
"interpreter": "dotnet",
|
|
216
|
+
"execMode": "fork",
|
|
217
|
+
"supportsCluster": false,
|
|
218
|
+
"startCommand": "dotnet run"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"global": {
|
|
223
|
+
"timeouts": {
|
|
224
|
+
"setup": 300000,
|
|
225
|
+
"validation": 30000
|
|
226
|
+
},
|
|
227
|
+
"retries": {
|
|
228
|
+
"setup": 2,
|
|
229
|
+
"validation": 1
|
|
230
|
+
},
|
|
231
|
+
"logging": {
|
|
232
|
+
"level": "info",
|
|
233
|
+
"file": "deployment.log"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|