@pisell/common 1.0.23 → 1.0.25
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/CHANGELOG.md +14 -0
- package/es/script/constants/index.js +1 -1
- package/es/script/release/release.js +4 -2
- package/es/script/uploadCode/uploadCode.js +12 -10
- package/es/script/utils/index.js +6 -4
- package/lib/script/constants/index.js +1 -1
- package/lib/script/release/release.js +4 -4
- package/lib/script/uploadCode/uploadCode.js +7 -5
- package/lib/script/utils/index.js +8 -4
- package/package.json +2 -2
- package/src/script/constants/index.js +1 -1
- package/src/script/release/release.js +3 -3
- package/src/script/uploadCode/uploadCode.js +7 -4
- package/src/script/utils/index.js +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @pisell/common
|
|
2
2
|
|
|
3
|
+
## 1.0.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [961d44f7]
|
|
8
|
+
- @pisell/utils@1.0.26
|
|
9
|
+
|
|
10
|
+
## 1.0.24
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [10083f21]
|
|
15
|
+
- @pisell/utils@1.0.25
|
|
16
|
+
|
|
3
17
|
## 1.0.23
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -53,7 +53,8 @@ var Release = /*#__PURE__*/function () {
|
|
|
53
53
|
serverConfig = serverConfigMap.cn[this.env];
|
|
54
54
|
}
|
|
55
55
|
if (this.env === 'prod') {
|
|
56
|
-
serverConfig
|
|
56
|
+
serverConfig = serverConfigMap.aws.service[this.env];
|
|
57
|
+
serverConfig.privateKey = fs.readFileSync("../../../pem/pisell-pro.pem");
|
|
57
58
|
}
|
|
58
59
|
this.serverConfig = serverConfig;
|
|
59
60
|
case 7:
|
|
@@ -118,7 +119,8 @@ var Release = /*#__PURE__*/function () {
|
|
|
118
119
|
return releaseProject(this.conn, {
|
|
119
120
|
path: this.outPath,
|
|
120
121
|
fileName: "".concat(this.version),
|
|
121
|
-
isSSR: this.isSSR
|
|
122
|
+
isSSR: this.isSSR,
|
|
123
|
+
env: this.env
|
|
122
124
|
});
|
|
123
125
|
case 2:
|
|
124
126
|
return _context3.abrupt("return", _context3.sent);
|
|
@@ -109,25 +109,26 @@ var UploadCode = /*#__PURE__*/function () {
|
|
|
109
109
|
|
|
110
110
|
// pisell2.0正式环境使用亚马逊服务器
|
|
111
111
|
if (this.env === "prod" && this.projectName === "admin") {
|
|
112
|
-
serverConfig = serverConfigMap.aws[this.env];
|
|
113
|
-
serverConfig.privateKey = fs.readFileSync("../../../
|
|
112
|
+
serverConfig = serverConfigMap.aws.service[this.env];
|
|
113
|
+
serverConfig.privateKey = fs.readFileSync("../../../pem/pisell-pro.pem");
|
|
114
114
|
}
|
|
115
|
+
console.log(serverConfig, 'serverConfig');
|
|
115
116
|
this.setConfig(serverConfig);
|
|
116
117
|
if (serverConfig) {
|
|
117
|
-
_context.next =
|
|
118
|
+
_context.next = 22;
|
|
118
119
|
break;
|
|
119
120
|
}
|
|
120
121
|
console.log("您当前没有权限!");
|
|
121
122
|
return _context.abrupt("return", false);
|
|
122
|
-
case
|
|
123
|
+
case 22:
|
|
123
124
|
_context.t0 = console;
|
|
124
|
-
_context.next =
|
|
125
|
+
_context.next = 25;
|
|
125
126
|
return getGitCurrentBranch();
|
|
126
|
-
case
|
|
127
|
+
case 25:
|
|
127
128
|
_context.t1 = _context.sent;
|
|
128
129
|
_context.t0.log.call(_context.t0, "当前主项目分支", _context.t1);
|
|
129
130
|
return _context.abrupt("return", true);
|
|
130
|
-
case
|
|
131
|
+
case 28:
|
|
131
132
|
case "end":
|
|
132
133
|
return _context.stop();
|
|
133
134
|
}
|
|
@@ -316,7 +317,7 @@ var UploadCode = /*#__PURE__*/function () {
|
|
|
316
317
|
while (1) switch (_context6.prev = _context6.next) {
|
|
317
318
|
case 0:
|
|
318
319
|
localPath = path.resolve(this.projectAbsolutePath, "".concat(this.currentVersion, ".zip"));
|
|
319
|
-
remotePath = "".concat(this.
|
|
320
|
+
remotePath = "/tmp/".concat(this.projectName, "-").concat(this.currentVersion, ".zip");
|
|
320
321
|
_context6.next = 4;
|
|
321
322
|
return _serverUpload(this.conn, {
|
|
322
323
|
localPath: localPath,
|
|
@@ -351,8 +352,9 @@ var UploadCode = /*#__PURE__*/function () {
|
|
|
351
352
|
return _serverUnpack(this.conn, {
|
|
352
353
|
path: this.outPath,
|
|
353
354
|
fileName: "".concat(this.currentVersion),
|
|
354
|
-
fullFileName: "".concat(this.currentVersion, ".zip"),
|
|
355
|
-
changelog: this.changelog
|
|
355
|
+
fullFileName: "".concat(this.projectName, "-").concat(this.currentVersion, ".zip"),
|
|
356
|
+
changelog: this.changelog,
|
|
357
|
+
env: this.env
|
|
356
358
|
});
|
|
357
359
|
case 2:
|
|
358
360
|
return _context7.abrupt("return", _context7.sent);
|
package/es/script/utils/index.js
CHANGED
|
@@ -176,7 +176,8 @@ var serverUnpack = function serverUnpack(conn, _ref5) {
|
|
|
176
176
|
var path = _ref5.path,
|
|
177
177
|
fileName = _ref5.fileName,
|
|
178
178
|
fullFileName = _ref5.fullFileName,
|
|
179
|
-
changelog = _ref5.changelog
|
|
179
|
+
changelog = _ref5.changelog,
|
|
180
|
+
env = _ref5.env;
|
|
180
181
|
if (!conn) return Promise.reject('未连接服务器');
|
|
181
182
|
// 文件全名
|
|
182
183
|
return new Promise(function (resolve, reject) {
|
|
@@ -186,7 +187,7 @@ var serverUnpack = function serverUnpack(conn, _ref5) {
|
|
|
186
187
|
reject(err);
|
|
187
188
|
return;
|
|
188
189
|
}
|
|
189
|
-
stream.end("\n cd ".concat(path, "\n unzip ").concat(fullFileName, " -d ").concat(fileName, " && mv ").concat(fileName, "/dist/* ").concat(fileName, "/ && rmdir ").concat(fileName, "/dist\n rm -rf ").concat(fullFileName, "\n echo \"").concat(changelog, "\" > ./").concat(fileName, "/changelog.md\n sh deleteOldVersion.sh\n exit\n ") // 打开到path
|
|
190
|
+
stream.end(" ".concat(env === 'prod' ? 'sudo -i' : '', "\n cd /tmp\n mv ").concat(fullFileName, " ").concat(path, "\n cd ").concat(path, "\n unzip ").concat(fullFileName, " -d ").concat(fileName, " && mv ").concat(fileName, "/dist/* ").concat(fileName, "/ && rmdir ").concat(fileName, "/dist\n rm -rf ").concat(fullFileName, "\n echo \"").concat(changelog, "\" > ./").concat(fileName, "/changelog.md\n sh deleteOldVersion.sh\n exit\n ").concat(env === 'prod' ? 'exit' : '', "\n ") // 打开到path
|
|
190
191
|
// 解压 1.0.0.zip 文件到 1.0.0 移动dist中内容到 1.0.0内 删除dist
|
|
191
192
|
// 删除1.0.0.zip
|
|
192
193
|
// 写入changelog到changelog.md
|
|
@@ -209,7 +210,8 @@ var serverUnpack = function serverUnpack(conn, _ref5) {
|
|
|
209
210
|
var releaseProject = function releaseProject(conn, _ref6) {
|
|
210
211
|
var path = _ref6.path,
|
|
211
212
|
fileName = _ref6.fileName,
|
|
212
|
-
isSSR = _ref6.isSSR
|
|
213
|
+
isSSR = _ref6.isSSR,
|
|
214
|
+
env = _ref6.env;
|
|
213
215
|
return new Promise(function (resolve, reject) {
|
|
214
216
|
conn.shell(function (err, stream) {
|
|
215
217
|
if (err) {
|
|
@@ -217,7 +219,7 @@ var releaseProject = function releaseProject(conn, _ref6) {
|
|
|
217
219
|
reject(err);
|
|
218
220
|
return;
|
|
219
221
|
}
|
|
220
|
-
stream.end("\n cd ".concat(path, "\n cp -R -f pre-master next-master\n rm -rf pre-master\n \\cp -R -f ").concat(fileName, "/* next-master\n cp -R -f ").concat(fileName, " pre-master\n rm -rf master\n cp -R next-master master\n rm -rf next-master\n ").concat(isSSR ? 'pm2 restart server.js' : '', "\n exit\n ") // 打开到path
|
|
222
|
+
stream.end(" ".concat(env === 'prod' ? 'sudo -i' : '', "\n cd ").concat(path, "\n cp -R -f pre-master next-master\n rm -rf pre-master\n \\cp -R -f ").concat(fileName, "/* next-master\n cp -R -f ").concat(fileName, " pre-master\n rm -rf master\n cp -R next-master master\n rm -rf next-master\n ").concat(isSSR ? 'pm2 restart server.js' : '', "\n exit\n ").concat(env === 'prod' ? 'exit' : '', "\n ") // 打开到path
|
|
221
223
|
// 复制pre-master到next-master
|
|
222
224
|
// 删除pre-master
|
|
223
225
|
// 复制1.0.0到next-master
|
|
@@ -31,7 +31,7 @@ var outPathMap = {
|
|
|
31
31
|
pre: "../data/release/project/my_pisel_shop"
|
|
32
32
|
},
|
|
33
33
|
admin: {
|
|
34
|
-
prod: "
|
|
34
|
+
prod: "../data/release/project/pisell_v2",
|
|
35
35
|
release: "../data/release/project/pisell_v2",
|
|
36
36
|
pre: "../data/release/project/pisell_v2"
|
|
37
37
|
},
|
|
@@ -46,9 +46,8 @@ var Release = class {
|
|
|
46
46
|
serverConfig = serverConfigMap.cn[this.env];
|
|
47
47
|
}
|
|
48
48
|
if (this.env === "prod") {
|
|
49
|
-
serverConfig
|
|
50
|
-
|
|
51
|
-
);
|
|
49
|
+
serverConfig = serverConfigMap.aws.service[this.env];
|
|
50
|
+
serverConfig.privateKey = fs.readFileSync("../../../pem/pisell-pro.pem");
|
|
52
51
|
}
|
|
53
52
|
this.serverConfig = serverConfig;
|
|
54
53
|
}
|
|
@@ -74,7 +73,8 @@ var Release = class {
|
|
|
74
73
|
return await (0, import_utils.releaseProject)(this.conn, {
|
|
75
74
|
path: this.outPath,
|
|
76
75
|
fileName: `${this.version}`,
|
|
77
|
-
isSSR: this.isSSR
|
|
76
|
+
isSSR: this.isSSR,
|
|
77
|
+
env: this.env
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
@@ -86,9 +86,10 @@ var UploadCode = class {
|
|
|
86
86
|
serverConfig = this.setConfig(serverConfigMap["prod3"]);
|
|
87
87
|
}
|
|
88
88
|
if (this.env === "prod" && this.projectName === "admin") {
|
|
89
|
-
serverConfig = serverConfigMap.aws[this.env];
|
|
90
|
-
serverConfig.privateKey = fs.readFileSync("../../../
|
|
89
|
+
serverConfig = serverConfigMap.aws.service[this.env];
|
|
90
|
+
serverConfig.privateKey = fs.readFileSync("../../../pem/pisell-pro.pem");
|
|
91
91
|
}
|
|
92
|
+
console.log(serverConfig, "serverConfig");
|
|
92
93
|
this.setConfig(serverConfig);
|
|
93
94
|
if (!serverConfig) {
|
|
94
95
|
console.log("您当前没有权限!");
|
|
@@ -174,7 +175,7 @@ var UploadCode = class {
|
|
|
174
175
|
this.projectAbsolutePath,
|
|
175
176
|
`${this.currentVersion}.zip`
|
|
176
177
|
);
|
|
177
|
-
const remotePath =
|
|
178
|
+
const remotePath = `/tmp/${this.projectName}-${this.currentVersion}.zip`;
|
|
178
179
|
return await (0, import_utils.serverUpload)(this.conn, { localPath, remotePath });
|
|
179
180
|
}
|
|
180
181
|
/**
|
|
@@ -186,8 +187,9 @@ var UploadCode = class {
|
|
|
186
187
|
return await (0, import_utils.serverUnpack)(this.conn, {
|
|
187
188
|
path: this.outPath,
|
|
188
189
|
fileName: `${this.currentVersion}`,
|
|
189
|
-
fullFileName: `${this.currentVersion}.zip`,
|
|
190
|
-
changelog: this.changelog
|
|
190
|
+
fullFileName: `${this.projectName}-${this.currentVersion}.zip`,
|
|
191
|
+
changelog: this.changelog,
|
|
192
|
+
env: this.env
|
|
191
193
|
});
|
|
192
194
|
}
|
|
193
195
|
/**
|
|
@@ -118,7 +118,7 @@ var serverUpload = (conn, { localPath, remotePath }) => {
|
|
|
118
118
|
});
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
|
-
var serverUnpack = (conn, { path: path2, fileName, fullFileName, changelog }) => {
|
|
121
|
+
var serverUnpack = (conn, { path: path2, fileName, fullFileName, changelog, env }) => {
|
|
122
122
|
if (!conn)
|
|
123
123
|
return Promise.reject("未连接服务器");
|
|
124
124
|
return new Promise((resolve, reject) => {
|
|
@@ -129,13 +129,16 @@ var serverUnpack = (conn, { path: path2, fileName, fullFileName, changelog }) =>
|
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
stream.end(
|
|
132
|
-
`
|
|
132
|
+
` ${env === "prod" ? "sudo -i" : ""}
|
|
133
|
+
cd /tmp
|
|
134
|
+
mv ${fullFileName} ${path2}
|
|
133
135
|
cd ${path2}
|
|
134
136
|
unzip ${fullFileName} -d ${fileName} && mv ${fileName}/dist/* ${fileName}/ && rmdir ${fileName}/dist
|
|
135
137
|
rm -rf ${fullFileName}
|
|
136
138
|
echo "${changelog}" > ./${fileName}/changelog.md
|
|
137
139
|
sh deleteOldVersion.sh
|
|
138
140
|
exit
|
|
141
|
+
${env === "prod" ? "exit" : ""}
|
|
139
142
|
`
|
|
140
143
|
// 打开到path
|
|
141
144
|
// 解压 1.0.0.zip 文件到 1.0.0 移动dist中内容到 1.0.0内 删除dist
|
|
@@ -151,7 +154,7 @@ var serverUnpack = (conn, { path: path2, fileName, fullFileName, changelog }) =>
|
|
|
151
154
|
});
|
|
152
155
|
});
|
|
153
156
|
};
|
|
154
|
-
var releaseProject = (conn, { path: path2, fileName, isSSR }) => {
|
|
157
|
+
var releaseProject = (conn, { path: path2, fileName, isSSR, env }) => {
|
|
155
158
|
return new Promise((resolve, reject) => {
|
|
156
159
|
conn.shell((err, stream) => {
|
|
157
160
|
if (err) {
|
|
@@ -160,7 +163,7 @@ var releaseProject = (conn, { path: path2, fileName, isSSR }) => {
|
|
|
160
163
|
return;
|
|
161
164
|
}
|
|
162
165
|
stream.end(
|
|
163
|
-
`
|
|
166
|
+
` ${env === "prod" ? "sudo -i" : ""}
|
|
164
167
|
cd ${path2}
|
|
165
168
|
cp -R -f pre-master next-master
|
|
166
169
|
rm -rf pre-master
|
|
@@ -171,6 +174,7 @@ var releaseProject = (conn, { path: path2, fileName, isSSR }) => {
|
|
|
171
174
|
rm -rf next-master
|
|
172
175
|
${isSSR ? "pm2 restart server.js" : ""}
|
|
173
176
|
exit
|
|
177
|
+
${env === "prod" ? "exit" : ""}
|
|
174
178
|
`
|
|
175
179
|
// 打开到path
|
|
176
180
|
// 复制pre-master到next-master
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.less"
|
|
6
6
|
],
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"archiver": "^5.3.1",
|
|
21
21
|
"dotenv": "^16.0.3",
|
|
22
22
|
"ssh2": "^1.13.0",
|
|
23
|
-
"@pisell/utils": "1.0.
|
|
23
|
+
"@pisell/utils": "1.0.26"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"father": "^4.1.6"
|
|
@@ -5,7 +5,7 @@ const outPathMap = {
|
|
|
5
5
|
pre: '../data/release/project/my_pisel_shop',
|
|
6
6
|
},
|
|
7
7
|
admin: {
|
|
8
|
-
prod: '
|
|
8
|
+
prod: '../data/release/project/pisell_v2',
|
|
9
9
|
release: '../data/release/project/pisell_v2',
|
|
10
10
|
pre: '../data/release/project/pisell_v2',
|
|
11
11
|
},
|
|
@@ -39,9 +39,8 @@ class Release {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
if (this.env === 'prod') {
|
|
42
|
-
serverConfig
|
|
43
|
-
|
|
44
|
-
);
|
|
42
|
+
serverConfig = serverConfigMap.aws.service[this.env];
|
|
43
|
+
serverConfig.privateKey = fs.readFileSync("../../../pem/pisell-pro.pem");
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
this.serverConfig = serverConfig;
|
|
@@ -71,6 +70,7 @@ class Release {
|
|
|
71
70
|
path: this.outPath,
|
|
72
71
|
fileName: `${this.version}`,
|
|
73
72
|
isSSR: this.isSSR,
|
|
73
|
+
env: this.env,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -88,10 +88,12 @@ class UploadCode {
|
|
|
88
88
|
|
|
89
89
|
// pisell2.0正式环境使用亚马逊服务器
|
|
90
90
|
if (this.env === "prod" && this.projectName === "admin") {
|
|
91
|
-
serverConfig = serverConfigMap.aws[this.env];
|
|
92
|
-
serverConfig.privateKey = fs.readFileSync("../../../
|
|
91
|
+
serverConfig = serverConfigMap.aws.service[this.env];
|
|
92
|
+
serverConfig.privateKey = fs.readFileSync("../../../pem/pisell-pro.pem");
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
console.log(serverConfig,'serverConfig')
|
|
96
|
+
|
|
95
97
|
this.setConfig(serverConfig);
|
|
96
98
|
|
|
97
99
|
if (!serverConfig) {
|
|
@@ -188,7 +190,7 @@ class UploadCode {
|
|
|
188
190
|
this.projectAbsolutePath,
|
|
189
191
|
`${this.currentVersion}.zip`
|
|
190
192
|
);
|
|
191
|
-
const remotePath =
|
|
193
|
+
const remotePath = `/tmp/${this.projectName}-${this.currentVersion}.zip`;
|
|
192
194
|
return await serverUpload(this.conn, { localPath, remotePath });
|
|
193
195
|
}
|
|
194
196
|
|
|
@@ -201,8 +203,9 @@ class UploadCode {
|
|
|
201
203
|
return await serverUnpack(this.conn, {
|
|
202
204
|
path: this.outPath,
|
|
203
205
|
fileName: `${this.currentVersion}`,
|
|
204
|
-
fullFileName: `${this.currentVersion}.zip`,
|
|
206
|
+
fullFileName: `${this.projectName}-${this.currentVersion}.zip`,
|
|
205
207
|
changelog: this.changelog,
|
|
208
|
+
env: this.env,
|
|
206
209
|
});
|
|
207
210
|
}
|
|
208
211
|
|
|
@@ -115,7 +115,7 @@ const serverUpload = (conn, { localPath, remotePath }) => {
|
|
|
115
115
|
* @Describe:
|
|
116
116
|
* @Author: Zsj
|
|
117
117
|
*/
|
|
118
|
-
const serverUnpack = (conn, { path, fileName, fullFileName, changelog }) => {
|
|
118
|
+
const serverUnpack = (conn, { path, fileName, fullFileName, changelog, env }) => {
|
|
119
119
|
if (!conn) return Promise.reject('未连接服务器');
|
|
120
120
|
// 文件全名
|
|
121
121
|
return new Promise((resolve, reject) => {
|
|
@@ -127,13 +127,16 @@ const serverUnpack = (conn, { path, fileName, fullFileName, changelog }) => {
|
|
|
127
127
|
}
|
|
128
128
|
stream
|
|
129
129
|
.end(
|
|
130
|
-
`
|
|
130
|
+
` ${env === 'prod' ? 'sudo -i' : ''}
|
|
131
|
+
cd /tmp
|
|
132
|
+
mv ${fullFileName} ${path}
|
|
131
133
|
cd ${path}
|
|
132
134
|
unzip ${fullFileName} -d ${fileName} && mv ${fileName}/dist/* ${fileName}/ && rmdir ${fileName}/dist
|
|
133
135
|
rm -rf ${fullFileName}
|
|
134
136
|
echo "${changelog}" > ./${fileName}/changelog.md
|
|
135
137
|
sh deleteOldVersion.sh
|
|
136
138
|
exit
|
|
139
|
+
${env === 'prod' ? 'exit' : ''}
|
|
137
140
|
`,
|
|
138
141
|
// 打开到path
|
|
139
142
|
// 解压 1.0.0.zip 文件到 1.0.0 移动dist中内容到 1.0.0内 删除dist
|
|
@@ -157,7 +160,7 @@ const serverUnpack = (conn, { path, fileName, fullFileName, changelog }) => {
|
|
|
157
160
|
* @Describe:
|
|
158
161
|
* @Author: Zsj
|
|
159
162
|
*/
|
|
160
|
-
const releaseProject = (conn, { path, fileName, isSSR }) => {
|
|
163
|
+
const releaseProject = (conn, { path, fileName, isSSR, env }) => {
|
|
161
164
|
return new Promise((resolve, reject) => {
|
|
162
165
|
conn.shell((err, stream) => {
|
|
163
166
|
if (err) {
|
|
@@ -167,7 +170,7 @@ const releaseProject = (conn, { path, fileName, isSSR }) => {
|
|
|
167
170
|
}
|
|
168
171
|
stream
|
|
169
172
|
.end(
|
|
170
|
-
`
|
|
173
|
+
` ${env === 'prod' ? 'sudo -i' : ''}
|
|
171
174
|
cd ${path}
|
|
172
175
|
cp -R -f pre-master next-master
|
|
173
176
|
rm -rf pre-master
|
|
@@ -178,6 +181,7 @@ const releaseProject = (conn, { path, fileName, isSSR }) => {
|
|
|
178
181
|
rm -rf next-master
|
|
179
182
|
${isSSR ? 'pm2 restart server.js' : ''}
|
|
180
183
|
exit
|
|
184
|
+
${env === 'prod' ? 'exit' : ''}
|
|
181
185
|
`,
|
|
182
186
|
// 打开到path
|
|
183
187
|
// 复制pre-master到next-master
|