yakuza0 2.22.15-beta.2 → 2.22.15-beta.4

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.
Files changed (2) hide show
  1. package/cli/index.js +155 -113
  2. package/package.json +4 -2
package/cli/index.js CHANGED
@@ -65,6 +65,10 @@ var _connectionTester = require('connection-tester');
65
65
 
66
66
  var _connectionTester2 = _interopRequireDefault(_connectionTester);
67
67
 
68
+ var _jsonFormat = require('json-format');
69
+
70
+ var _jsonFormat2 = _interopRequireDefault(_jsonFormat);
71
+
68
72
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
69
73
 
70
74
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -209,10 +213,10 @@ var execCmd = function execCmd(cmd) {
209
213
  };
210
214
 
211
215
  var run = exports.run = function () {
212
- var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(_argv) {
213
- return _regenerator2.default.wrap(function _callee15$(_context15) {
216
+ var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(_argv) {
217
+ return _regenerator2.default.wrap(function _callee16$(_context16) {
214
218
  while (1) {
215
- switch (_context15.prev = _context15.next) {
219
+ switch (_context16.prev = _context16.next) {
216
220
  case 0:
217
221
  _commander2.default.version(_package2.default.version, '-v, --version');
218
222
 
@@ -321,12 +325,47 @@ var run = exports.run = function () {
321
325
  };
322
326
  }());
323
327
 
324
- _commander2.default.command('image').description('Build image.').option('-nc, --no-cache', 'Do not use cache when building the image').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
325
- var _connectionTester$tes, isInner, CS, CLNENV, noCache, CLNWORKERS, TRY_TIMES, CLNVERSION, pkg, NMCI, projectName, obj, imageReleaseName, imageReleaseNameSave, BI, loop;
326
-
328
+ _commander2.default.command('init').description('cln2 is initialized.').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
329
+ var pkg, obj;
327
330
  return _regenerator2.default.wrap(function _callee5$(_context5) {
328
331
  while (1) {
329
332
  switch (_context5.prev = _context5.next) {
333
+ case 0:
334
+ // add image
335
+ pkg = _paths2.default.read(_paths2.default.appPackageJson);
336
+
337
+ try {
338
+ obj = JSON.parse(pkg);
339
+
340
+
341
+ if (!obj.scripts.image) {
342
+ obj.scripts.image = "yk image";
343
+ }
344
+
345
+ _paths2.default.write(_paths2.default.appPackageJson, (0, _jsonFormat2.default)(obj));
346
+ } catch (e) {}
347
+
348
+ // add cross-env
349
+ try {
350
+ if (!(0, _commandExists.sync)('cross-env')) {
351
+ execCmd('pxnpm i -g cross-env');
352
+ }
353
+ } catch (e) {}
354
+
355
+ case 3:
356
+ case 'end':
357
+ return _context5.stop();
358
+ }
359
+ }
360
+ }, _callee5, undefined);
361
+ })));
362
+
363
+ _commander2.default.command('image').description('Build image.').option('-nc, --no-cache', 'Do not use cache when building the image').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
364
+ var _connectionTester$tes, isInner, CS, CLNENV, noCache, CLNWORKERS, TRY_TIMES, CLNVERSION, pkg, NMCI, projectName, obj, imageReleaseName, imageReleaseNameSave, BI, loop;
365
+
366
+ return _regenerator2.default.wrap(function _callee6$(_context6) {
367
+ while (1) {
368
+ switch (_context6.prev = _context6.next) {
330
369
  case 0:
331
370
  _connectionTester$tes = _connectionTester2.default.test('fe-repo.inner.px.nfjbill.ren', 5000, 1000), isInner = _connectionTester$tes.success;
332
371
  CS = (0, _server.gPwd)();
@@ -351,13 +390,13 @@ var run = exports.run = function () {
351
390
  BI = isInner ? 'fe-repo.inner.px.nfjbill.ren:5000/cln-server:0.5.4' : 'nfjbill/cln-server:0.5.4';
352
391
 
353
392
  if ((0, _commandExists.sync)('docker')) {
354
- _context5.next = 18;
393
+ _context6.next = 18;
355
394
  break;
356
395
  }
357
396
 
358
397
  _consola2.default.error('docker must be installed!');
359
398
  process.exit(1);
360
- return _context5.abrupt('return');
399
+ return _context6.abrupt('return');
361
400
 
362
401
  case 18:
363
402
  if (!(0, _commandExists.sync)('pxnpm')) {
@@ -384,7 +423,7 @@ var run = exports.run = function () {
384
423
 
385
424
  loop(0);
386
425
 
387
- _context5.next = 25;
426
+ _context6.next = 25;
388
427
  return (0, _server.delay)(1000);
389
428
 
390
429
  case 25:
@@ -397,28 +436,29 @@ var run = exports.run = function () {
397
436
 
398
437
  _consola2.default.info('Image tar: ' + imageReleaseNameSave + '.tar');
399
438
  _consola2.default.info('Image name: ' + imageReleaseName);
400
- _consola2.default.info('Image production completed!');
439
+ _consola2.default.success('Image production completed!');
401
440
 
402
441
  case 29:
403
442
  case 'end':
404
- return _context5.stop();
443
+ return _context6.stop();
405
444
  }
406
445
  }
407
- }, _callee5, undefined);
446
+ }, _callee6, undefined);
408
447
  })));
409
448
 
410
- _commander2.default.command('build').description('build a model').option('-y0ba, --yk0-build-app <appName>', 'Building a specified application').option('-e, --env <envName>', 'yk server env')
449
+ _commander2.default.command('build').description('build a model').option('-y0ba, --yk0-build-app <appName>', 'Building a specified application').option('-workers <workers>', 'Building a specified application').option('-e, --env <envName>', 'yk server env')
411
450
  // .action(async ({app}) => {
412
451
  .action(function () {
413
- var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(_ref10) {
414
- var yk0BuildApp = _ref10.yk0BuildApp,
415
- env = _ref10.env;
452
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(_ref11) {
453
+ var yk0BuildApp = _ref11.yk0BuildApp,
454
+ env = _ref11.env,
455
+ wk = _ref11.workers;
416
456
 
417
- var _ref12, apps, workers, cpuLen, i, run;
457
+ var _ref13, apps, workers, cpuLen, i, run;
418
458
 
419
- return _regenerator2.default.wrap(function _callee7$(_context7) {
459
+ return _regenerator2.default.wrap(function _callee8$(_context8) {
420
460
  while (1) {
421
- switch (_context7.prev = _context7.next) {
461
+ switch (_context8.prev = _context8.next) {
422
462
  case 0:
423
463
  // process.env.NODE_ENV = 'production';
424
464
  // process.env.NODE_CMD = 'build';
@@ -428,13 +468,15 @@ var run = exports.run = function () {
428
468
  _consola2.default.log('In the preparation...');
429
469
  process.env.NODE_ENV = 'production';
430
470
  process.env.NODE_CMD = 'build';
431
- _context7.next = 5;
471
+ _context8.next = 5;
432
472
  return gi({ app: yk0BuildApp, ykServerEnv: env });
433
473
 
434
474
  case 5:
435
- _ref12 = _context7.sent;
436
- apps = _ref12.apps;
437
- workers = process.env.npm_config_workers;
475
+ _ref13 = _context8.sent;
476
+ apps = _ref13.apps;
477
+ workers = wk || process.env.npm_config_workers;
478
+ // const workers = process.env.npm_config_workers;
479
+
438
480
  cpuLen = _os2.default.cpus().length;
439
481
 
440
482
  if (workers) {
@@ -456,10 +498,10 @@ var run = exports.run = function () {
456
498
  };
457
499
 
458
500
  _server._.asyncMap(apps, function () {
459
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(key, j) {
460
- return _regenerator2.default.wrap(function _callee6$(_context6) {
501
+ var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(key, j) {
502
+ return _regenerator2.default.wrap(function _callee7$(_context7) {
461
503
  while (1) {
462
- switch (_context6.prev = _context6.next) {
504
+ switch (_context7.prev = _context7.next) {
463
505
  case 0:
464
506
  if (j < cpuLen) {
465
507
  i = j;
@@ -468,27 +510,27 @@ var run = exports.run = function () {
468
510
 
469
511
  case 1:
470
512
  case 'end':
471
- return _context6.stop();
513
+ return _context7.stop();
472
514
  }
473
515
  }
474
- }, _callee6, undefined);
516
+ }, _callee7, undefined);
475
517
  }));
476
518
 
477
519
  return function (_x8, _x9) {
478
- return _ref13.apply(this, arguments);
520
+ return _ref14.apply(this, arguments);
479
521
  };
480
522
  }());
481
523
 
482
524
  case 13:
483
525
  case 'end':
484
- return _context7.stop();
526
+ return _context8.stop();
485
527
  }
486
528
  }
487
- }, _callee7, undefined);
529
+ }, _callee8, undefined);
488
530
  }));
489
531
 
490
532
  return function (_x7) {
491
- return _ref11.apply(this, arguments);
533
+ return _ref12.apply(this, arguments);
492
534
  };
493
535
  }());
494
536
 
@@ -496,131 +538,131 @@ var run = exports.run = function () {
496
538
  // .option('-y0ba, --yk0-build-app <appName>', 'Building a specified application')
497
539
  // .action(async ({app}) => {
498
540
  .action(function () {
499
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(cmd) {
500
- return _regenerator2.default.wrap(function _callee8$(_context8) {
541
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(cmd) {
542
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
501
543
  while (1) {
502
- switch (_context8.prev = _context8.next) {
544
+ switch (_context9.prev = _context9.next) {
503
545
  case 0:
504
546
  process.env.NODE_ENV = 'production';
505
547
  process.env.NODE_CMD = 'build';
506
548
  // console.log(app);
507
549
  // gi({app: yk0BuildApp});
508
550
  alias({ appName: cmd });
509
- _context8.next = 5;
551
+ _context9.next = 5;
510
552
  return require(params.serverPath)('build', cmd);
511
553
 
512
554
  case 5:
513
555
  case 'end':
514
- return _context8.stop();
556
+ return _context9.stop();
515
557
  }
516
558
  }
517
- }, _callee8, undefined);
559
+ }, _callee9, undefined);
518
560
  }));
519
561
 
520
562
  return function (_x10) {
521
- return _ref14.apply(this, arguments);
563
+ return _ref15.apply(this, arguments);
522
564
  };
523
565
  }());
524
566
 
525
- _commander2.default.command('generate').alias('g').description('generate a model').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
526
- return _regenerator2.default.wrap(function _callee9$(_context9) {
567
+ _commander2.default.command('generate').alias('g').description('generate a model').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
568
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
527
569
  while (1) {
528
- switch (_context9.prev = _context9.next) {
570
+ switch (_context10.prev = _context10.next) {
529
571
  case 0:
530
572
  process.env.NODE_ENV = 'production';
531
- _context9.next = 3;
573
+ _context10.next = 3;
532
574
  return gi();
533
575
 
534
576
  case 3:
535
- _context9.prev = 3;
536
- _context9.next = 6;
577
+ _context10.prev = 3;
578
+ _context10.next = 6;
537
579
  return nuxtCli.run(['generate']);
538
580
 
539
581
  case 6:
540
- _context9.next = 12;
582
+ _context10.next = 12;
541
583
  break;
542
584
 
543
585
  case 8:
544
- _context9.prev = 8;
545
- _context9.t0 = _context9['catch'](3);
586
+ _context10.prev = 8;
587
+ _context10.t0 = _context10['catch'](3);
546
588
 
547
- _consola2.default.fatal(_context9.t0);
589
+ _consola2.default.fatal(_context10.t0);
548
590
  process.exit(2);
549
591
 
550
592
  case 12:
551
593
  case 'end':
552
- return _context9.stop();
594
+ return _context10.stop();
553
595
  }
554
596
  }
555
- }, _callee9, undefined, [[3, 8]]);
597
+ }, _callee10, undefined, [[3, 8]]);
556
598
  })));
557
599
 
558
- _commander2.default.command('clean').description('clean cache').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
559
- return _regenerator2.default.wrap(function _callee10$(_context10) {
600
+ _commander2.default.command('clean').description('clean cache').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
601
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
560
602
  while (1) {
561
- switch (_context10.prev = _context10.next) {
603
+ switch (_context11.prev = _context11.next) {
562
604
  case 0:
563
605
  _rimraf2.default.sync(_paths2.default.hardSourceCache);
564
606
  _rimraf2.default.sync(_paths2.default.ykRootCacheDir);
565
607
 
566
608
  case 2:
567
609
  case 'end':
568
- return _context10.stop();
610
+ return _context11.stop();
569
611
  }
570
612
  }
571
- }, _callee10, undefined);
613
+ }, _callee11, undefined);
572
614
  })));
573
615
 
574
616
  _commander2.default.command('verify <cmd>').option('-ed, --edit <envName>', 'commit file').option('-m, --msg <msg>', 'commit msg').option('-y0ba, --yk0-build-app <appName>', 'Building a specified application').option('-e, --env <envName>', 'yk server env').description('husky').action(function () {
575
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(cmd, _ref17) {
576
- var edit = _ref17.edit,
577
- msg = _ref17.msg,
578
- yk0BuildApp = _ref17.yk0BuildApp,
579
- env = _ref17.env;
580
- return _regenerator2.default.wrap(function _callee11$(_context11) {
617
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(cmd, _ref18) {
618
+ var edit = _ref18.edit,
619
+ msg = _ref18.msg,
620
+ yk0BuildApp = _ref18.yk0BuildApp,
621
+ env = _ref18.env;
622
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
581
623
  while (1) {
582
- switch (_context11.prev = _context11.next) {
624
+ switch (_context12.prev = _context12.next) {
583
625
  case 0:
584
626
  alias({ appName: "__common" });
585
627
 
586
628
  if (!(cmd !== "commit-init")) {
587
- _context11.next = 4;
629
+ _context12.next = 4;
588
630
  break;
589
631
  }
590
632
 
591
- _context11.next = 4;
633
+ _context12.next = 4;
592
634
  return gi({ app: yk0BuildApp, ykServerEnv: env, appsNoneExit: false });
593
635
 
594
636
  case 4:
595
- _context11.t0 = cmd;
596
- _context11.next = _context11.t0 === "commit-init" ? 7 : 8;
637
+ _context12.t0 = cmd;
638
+ _context12.next = _context12.t0 === "commit-init" ? 7 : 8;
597
639
  break;
598
640
 
599
641
  case 7:
600
- return _context11.abrupt('break', 14);
642
+ return _context12.abrupt('break', 14);
601
643
 
602
644
  case 8:
603
- _context11.next = 10;
645
+ _context12.next = 10;
604
646
  return (0, _verify.commitEsLint)({ edit: edit });
605
647
 
606
648
  case 10:
607
- _context11.next = 12;
649
+ _context12.next = 12;
608
650
  return (0, _verify.commitStyleLint)({ edit: edit });
609
651
 
610
652
  case 12:
611
- _context11.next = 14;
653
+ _context12.next = 14;
612
654
  return (0, _verify.commitMsg)({ edit: msg });
613
655
 
614
656
  case 14:
615
657
  case 'end':
616
- return _context11.stop();
658
+ return _context12.stop();
617
659
  }
618
660
  }
619
- }, _callee11, undefined);
661
+ }, _callee12, undefined);
620
662
  }));
621
663
 
622
664
  return function (_x11, _x12) {
623
- return _ref18.apply(this, arguments);
665
+ return _ref19.apply(this, arguments);
624
666
  };
625
667
  }()
626
668
  // case "commit-eslint":
@@ -635,78 +677,78 @@ var run = exports.run = function () {
635
677
  );
636
678
 
637
679
  _commander2.default.command('server <cmd>').alias('s').option('-y0ba, --yk0-build-app <appName>', 'Building a specified application').option('-e, --env <envName>', 'yk server env').description('service control').action(function () {
638
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(cmd, _ref19) {
639
- var yk0BuildApp = _ref19.yk0BuildApp,
640
- env = _ref19.env;
680
+ var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(cmd, _ref20) {
681
+ var yk0BuildApp = _ref20.yk0BuildApp,
682
+ env = _ref20.env;
641
683
 
642
- var _ref21, apps;
684
+ var _ref22, apps;
643
685
 
644
- return _regenerator2.default.wrap(function _callee13$(_context13) {
686
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
645
687
  while (1) {
646
- switch (_context13.prev = _context13.next) {
688
+ switch (_context14.prev = _context14.next) {
647
689
  case 0:
648
690
  if (!(_os2.default.platform() === 'win32')) {
649
- _context13.next = 3;
691
+ _context14.next = 3;
650
692
  break;
651
693
  }
652
694
 
653
695
  _consola2.default.error(_msg.errMsg['os.win32.cmd.server']);
654
- return _context13.abrupt('return');
696
+ return _context14.abrupt('return');
655
697
 
656
698
  case 3:
657
699
  process.env.NODE_ENV = 'production';
658
700
  process.env.NODE_CMD = 'server ' + cmd;
659
- _context13.next = 7;
701
+ _context14.next = 7;
660
702
  return gi({ app: yk0BuildApp, ykServerEnv: env });
661
703
 
662
704
  case 7:
663
- _ref21 = _context13.sent;
664
- apps = _ref21.apps;
705
+ _ref22 = _context14.sent;
706
+ apps = _ref22.apps;
665
707
 
666
708
  if (!['start', 'stop', 'restart', 'lite', 'container'].includes(cmd)) {
667
- _context13.next = 21;
709
+ _context14.next = 21;
668
710
  break;
669
711
  }
670
712
 
671
- _context13.t0 = cmd;
672
- _context13.next = _context13.t0 === 'lite' ? 13 : 17;
713
+ _context14.t0 = cmd;
714
+ _context14.next = _context14.t0 === 'lite' ? 13 : 17;
673
715
  break;
674
716
 
675
717
  case 13:
676
718
  alias({ appName: apps[0] });
677
- _context13.next = 16;
719
+ _context14.next = 16;
678
720
  return require(params.serverLite)(cmd);
679
721
 
680
722
  case 16:
681
- return _context13.abrupt('break', 19);
723
+ return _context14.abrupt('break', 19);
682
724
 
683
725
  case 17:
684
- _context13.next = 19;
726
+ _context14.next = 19;
685
727
  return _server._.asyncMap(apps, function () {
686
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(key, j) {
687
- return _regenerator2.default.wrap(function _callee12$(_context12) {
728
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(key, j) {
729
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
688
730
  while (1) {
689
- switch (_context12.prev = _context12.next) {
731
+ switch (_context13.prev = _context13.next) {
690
732
  case 0:
691
733
  alias({ appName: key });
692
- _context12.next = 3;
734
+ _context13.next = 3;
693
735
  return require(params.serverPath)(cmd, key, j !== apps.length - 1);
694
736
 
695
737
  case 3:
696
738
  case 'end':
697
- return _context12.stop();
739
+ return _context13.stop();
698
740
  }
699
741
  }
700
- }, _callee12, undefined);
742
+ }, _callee13, undefined);
701
743
  }));
702
744
 
703
745
  return function (_x15, _x16) {
704
- return _ref22.apply(this, arguments);
746
+ return _ref23.apply(this, arguments);
705
747
  };
706
748
  }());
707
749
 
708
750
  case 19:
709
- _context13.next = 23;
751
+ _context14.next = 23;
710
752
  break;
711
753
 
712
754
  case 21:
@@ -715,14 +757,14 @@ var run = exports.run = function () {
715
757
 
716
758
  case 23:
717
759
  case 'end':
718
- return _context13.stop();
760
+ return _context14.stop();
719
761
  }
720
762
  }
721
- }, _callee13, undefined);
763
+ }, _callee14, undefined);
722
764
  }));
723
765
 
724
766
  return function (_x13, _x14) {
725
- return _ref20.apply(this, arguments);
767
+ return _ref21.apply(this, arguments);
726
768
  };
727
769
  }()).on('--help', function () {
728
770
  console.log('');
@@ -734,29 +776,29 @@ var run = exports.run = function () {
734
776
  });
735
777
 
736
778
  _commander2.default.command('publish').alias('pub').description('Publish to server').action(function () {
737
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(env, options) {
738
- return _regenerator2.default.wrap(function _callee14$(_context14) {
779
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(env, options) {
780
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
739
781
  while (1) {
740
- switch (_context14.prev = _context14.next) {
782
+ switch (_context15.prev = _context15.next) {
741
783
  case 0:
742
784
  process.env.NODE_TYPE = 'publish';
743
- _context14.next = 3;
785
+ _context15.next = 3;
744
786
  return gi();
745
787
 
746
788
  case 3:
747
- _context14.next = 5;
789
+ _context15.next = 5;
748
790
  return require('../utils/deployment')();
749
791
 
750
792
  case 5:
751
793
  case 'end':
752
- return _context14.stop();
794
+ return _context15.stop();
753
795
  }
754
796
  }
755
- }, _callee14, undefined);
797
+ }, _callee15, undefined);
756
798
  }));
757
799
 
758
800
  return function (_x17, _x18) {
759
- return _ref23.apply(this, arguments);
801
+ return _ref24.apply(this, arguments);
760
802
  };
761
803
  }());
762
804
 
@@ -767,12 +809,12 @@ var run = exports.run = function () {
767
809
 
768
810
  _commander2.default.parse(process.argv);
769
811
 
770
- case 13:
812
+ case 14:
771
813
  case 'end':
772
- return _context15.stop();
814
+ return _context16.stop();
773
815
  }
774
816
  }
775
- }, _callee15, undefined);
817
+ }, _callee16, undefined);
776
818
  }));
777
819
 
778
820
  return function run(_x3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.22.15-beta.2",
3
+ "version": "2.22.15-beta.4",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,7 +9,8 @@
9
9
  "pub:beta": "npm run build && npm version prerelease --preid=beta && npm publish --tag beta",
10
10
  "pub:hotfix": "npm run build && npm version prerelease --preid=hotfix && npm publish --tag hotfix",
11
11
  "pub": "npm run build && npm version patch && npm publish",
12
- "test": "jest"
12
+ "test": "jest",
13
+ "postinstall": "yk init"
13
14
  },
14
15
  "author": "nfjbill",
15
16
  "devDependencies": {
@@ -66,6 +67,7 @@
66
67
  "http-proxy": "^1.18.1",
67
68
  "http-proxy-middleware": "^2.0.6",
68
69
  "isomorphic-fetch": "^2.2.1",
70
+ "json-format": "^1.0.1",
69
71
  "koa": "^2.13.3",
70
72
  "koa-body": "^4.0.4",
71
73
  "koa-compress": "^3.0.0",