utiller 1.0.75 → 1.0.77
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.
|
@@ -1221,7 +1221,7 @@ var NodeUtiller = /*#__PURE__*/function (_Utiller) {
|
|
|
1221
1221
|
return !_this8.has(path, projectName);
|
|
1222
1222
|
};
|
|
1223
1223
|
})))) {
|
|
1224
|
-
_context10.next =
|
|
1224
|
+
_context10.next = 40;
|
|
1225
1225
|
break;
|
|
1226
1226
|
}
|
|
1227
1227
|
|
|
@@ -1253,67 +1253,71 @@ var NodeUtiller = /*#__PURE__*/function (_Utiller) {
|
|
|
1253
1253
|
if (_this8.isPathExist(templatePath)) {
|
|
1254
1254
|
_this8.copyFromFolderToDestFolder(templatePath, _this8.persistByPath(_path5["default"].join(release, "template")));
|
|
1255
1255
|
}
|
|
1256
|
-
/** 把package.json 放進去 */
|
|
1257
1256
|
|
|
1257
|
+
if (!deployToNPMServer) {
|
|
1258
|
+
_context10.next = 22;
|
|
1259
|
+
break;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
_context10.next = 17;
|
|
1263
|
+
return _this8.upgradePackageJsonVersion(pathOfPackageJson);
|
|
1264
|
+
|
|
1265
|
+
case 17:
|
|
1266
|
+
_yield$_this8$upgrade = _context10.sent;
|
|
1267
|
+
name = _yield$_this8$upgrade.name;
|
|
1268
|
+
version = _yield$_this8$upgrade.version;
|
|
1269
|
+
_context10.next = 22;
|
|
1270
|
+
return _this8.updateVersionOfTemplate(name, version);
|
|
1258
1271
|
|
|
1272
|
+
case 22:
|
|
1273
|
+
/** 把package.json release放進去 */
|
|
1259
1274
|
_this8.copySingleFile(pathOfPackageJson, _path5["default"].join(release, "package.json"), undefined, true);
|
|
1260
1275
|
/** 安裝一個沒有devDependency 的node_module */
|
|
1261
1276
|
|
|
1262
1277
|
|
|
1263
|
-
_context10.next =
|
|
1278
|
+
_context10.next = 25;
|
|
1264
1279
|
return _this8.executeCommandLine("\ncd ".concat(release, " && yarn install --production"));
|
|
1265
1280
|
|
|
1266
|
-
case
|
|
1281
|
+
case 25:
|
|
1267
1282
|
_this8.appendInfo("build ".concat(path, " succeed"));
|
|
1268
1283
|
/** 部署到 local server*/
|
|
1269
1284
|
|
|
1270
1285
|
|
|
1271
1286
|
if (!deployToNPMServer) {
|
|
1272
|
-
_context10.next =
|
|
1287
|
+
_context10.next = 29;
|
|
1273
1288
|
break;
|
|
1274
1289
|
}
|
|
1275
1290
|
|
|
1276
|
-
_context10.next =
|
|
1277
|
-
return _this8.upgradePackageJsonVersion(pathOfPackageJson);
|
|
1278
|
-
|
|
1279
|
-
case 21:
|
|
1280
|
-
_yield$_this8$upgrade = _context10.sent;
|
|
1281
|
-
name = _yield$_this8$upgrade.name;
|
|
1282
|
-
version = _yield$_this8$upgrade.version;
|
|
1283
|
-
_context10.next = 26;
|
|
1291
|
+
_context10.next = 29;
|
|
1284
1292
|
return _this8.executeCommandLine("cd ".concat(release, " && npm publish"));
|
|
1285
1293
|
|
|
1286
|
-
case
|
|
1287
|
-
_context10.next =
|
|
1288
|
-
return _this8.updateVersionOfTemplate(name, version);
|
|
1289
|
-
|
|
1290
|
-
case 28:
|
|
1291
|
-
_context10.next = 35;
|
|
1294
|
+
case 29:
|
|
1295
|
+
_context10.next = 36;
|
|
1292
1296
|
break;
|
|
1293
1297
|
|
|
1294
|
-
case
|
|
1295
|
-
_context10.prev =
|
|
1298
|
+
case 31:
|
|
1299
|
+
_context10.prev = 31;
|
|
1296
1300
|
_context10.t0 = _context10["catch"](9);
|
|
1297
|
-
_context10.next =
|
|
1301
|
+
_context10.next = 35;
|
|
1298
1302
|
return _this8.deleteSelfByPath(release, true);
|
|
1299
1303
|
|
|
1300
|
-
case
|
|
1304
|
+
case 35:
|
|
1301
1305
|
throw new _index2["default"](9999, "generatePackage \u5831\u932F, ".concat(_context10.t0.message));
|
|
1302
1306
|
|
|
1303
|
-
case
|
|
1304
|
-
_context10.prev =
|
|
1305
|
-
_context10.next =
|
|
1307
|
+
case 36:
|
|
1308
|
+
_context10.prev = 36;
|
|
1309
|
+
_context10.next = 39;
|
|
1306
1310
|
return _this8.deleteSelfByPath(tempFolderPath, true);
|
|
1307
1311
|
|
|
1308
|
-
case 38:
|
|
1309
|
-
return _context10.finish(35);
|
|
1310
|
-
|
|
1311
1312
|
case 39:
|
|
1313
|
+
return _context10.finish(36);
|
|
1314
|
+
|
|
1315
|
+
case 40:
|
|
1312
1316
|
case "end":
|
|
1313
1317
|
return _context10.stop();
|
|
1314
1318
|
}
|
|
1315
1319
|
}
|
|
1316
|
-
}, _loop, null, [[9,
|
|
1320
|
+
}, _loop, null, [[9, 31, 36, 40]]);
|
|
1317
1321
|
});
|
|
1318
1322
|
|
|
1319
1323
|
_iterator8.s();
|
package/package.json
CHANGED