yakuza0 2.22.15-beta.2 → 2.22.15-beta.3

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 +148 -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,40 @@ 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
+ case 2:
349
+ case 'end':
350
+ return _context5.stop();
351
+ }
352
+ }
353
+ }, _callee5, undefined);
354
+ })));
355
+
356
+ _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() {
357
+ var _connectionTester$tes, isInner, CS, CLNENV, noCache, CLNWORKERS, TRY_TIMES, CLNVERSION, pkg, NMCI, projectName, obj, imageReleaseName, imageReleaseNameSave, BI, loop;
358
+
359
+ return _regenerator2.default.wrap(function _callee6$(_context6) {
360
+ while (1) {
361
+ switch (_context6.prev = _context6.next) {
330
362
  case 0:
331
363
  _connectionTester$tes = _connectionTester2.default.test('fe-repo.inner.px.nfjbill.ren', 5000, 1000), isInner = _connectionTester$tes.success;
332
364
  CS = (0, _server.gPwd)();
@@ -351,13 +383,13 @@ var run = exports.run = function () {
351
383
  BI = isInner ? 'fe-repo.inner.px.nfjbill.ren:5000/cln-server:0.5.4' : 'nfjbill/cln-server:0.5.4';
352
384
 
353
385
  if ((0, _commandExists.sync)('docker')) {
354
- _context5.next = 18;
386
+ _context6.next = 18;
355
387
  break;
356
388
  }
357
389
 
358
390
  _consola2.default.error('docker must be installed!');
359
391
  process.exit(1);
360
- return _context5.abrupt('return');
392
+ return _context6.abrupt('return');
361
393
 
362
394
  case 18:
363
395
  if (!(0, _commandExists.sync)('pxnpm')) {
@@ -384,7 +416,7 @@ var run = exports.run = function () {
384
416
 
385
417
  loop(0);
386
418
 
387
- _context5.next = 25;
419
+ _context6.next = 25;
388
420
  return (0, _server.delay)(1000);
389
421
 
390
422
  case 25:
@@ -397,28 +429,29 @@ var run = exports.run = function () {
397
429
 
398
430
  _consola2.default.info('Image tar: ' + imageReleaseNameSave + '.tar');
399
431
  _consola2.default.info('Image name: ' + imageReleaseName);
400
- _consola2.default.info('Image production completed!');
432
+ _consola2.default.success('Image production completed!');
401
433
 
402
434
  case 29:
403
435
  case 'end':
404
- return _context5.stop();
436
+ return _context6.stop();
405
437
  }
406
438
  }
407
- }, _callee5, undefined);
439
+ }, _callee6, undefined);
408
440
  })));
409
441
 
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')
442
+ _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
443
  // .action(async ({app}) => {
412
444
  .action(function () {
413
- var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(_ref10) {
414
- var yk0BuildApp = _ref10.yk0BuildApp,
415
- env = _ref10.env;
445
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(_ref11) {
446
+ var yk0BuildApp = _ref11.yk0BuildApp,
447
+ env = _ref11.env,
448
+ wk = _ref11.workers;
416
449
 
417
- var _ref12, apps, workers, cpuLen, i, run;
450
+ var _ref13, apps, workers, cpuLen, i, run;
418
451
 
419
- return _regenerator2.default.wrap(function _callee7$(_context7) {
452
+ return _regenerator2.default.wrap(function _callee8$(_context8) {
420
453
  while (1) {
421
- switch (_context7.prev = _context7.next) {
454
+ switch (_context8.prev = _context8.next) {
422
455
  case 0:
423
456
  // process.env.NODE_ENV = 'production';
424
457
  // process.env.NODE_CMD = 'build';
@@ -428,13 +461,15 @@ var run = exports.run = function () {
428
461
  _consola2.default.log('In the preparation...');
429
462
  process.env.NODE_ENV = 'production';
430
463
  process.env.NODE_CMD = 'build';
431
- _context7.next = 5;
464
+ _context8.next = 5;
432
465
  return gi({ app: yk0BuildApp, ykServerEnv: env });
433
466
 
434
467
  case 5:
435
- _ref12 = _context7.sent;
436
- apps = _ref12.apps;
437
- workers = process.env.npm_config_workers;
468
+ _ref13 = _context8.sent;
469
+ apps = _ref13.apps;
470
+ workers = wk || process.env.npm_config_workers;
471
+ // const workers = process.env.npm_config_workers;
472
+
438
473
  cpuLen = _os2.default.cpus().length;
439
474
 
440
475
  if (workers) {
@@ -456,10 +491,10 @@ var run = exports.run = function () {
456
491
  };
457
492
 
458
493
  _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) {
494
+ var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(key, j) {
495
+ return _regenerator2.default.wrap(function _callee7$(_context7) {
461
496
  while (1) {
462
- switch (_context6.prev = _context6.next) {
497
+ switch (_context7.prev = _context7.next) {
463
498
  case 0:
464
499
  if (j < cpuLen) {
465
500
  i = j;
@@ -468,27 +503,27 @@ var run = exports.run = function () {
468
503
 
469
504
  case 1:
470
505
  case 'end':
471
- return _context6.stop();
506
+ return _context7.stop();
472
507
  }
473
508
  }
474
- }, _callee6, undefined);
509
+ }, _callee7, undefined);
475
510
  }));
476
511
 
477
512
  return function (_x8, _x9) {
478
- return _ref13.apply(this, arguments);
513
+ return _ref14.apply(this, arguments);
479
514
  };
480
515
  }());
481
516
 
482
517
  case 13:
483
518
  case 'end':
484
- return _context7.stop();
519
+ return _context8.stop();
485
520
  }
486
521
  }
487
- }, _callee7, undefined);
522
+ }, _callee8, undefined);
488
523
  }));
489
524
 
490
525
  return function (_x7) {
491
- return _ref11.apply(this, arguments);
526
+ return _ref12.apply(this, arguments);
492
527
  };
493
528
  }());
494
529
 
@@ -496,131 +531,131 @@ var run = exports.run = function () {
496
531
  // .option('-y0ba, --yk0-build-app <appName>', 'Building a specified application')
497
532
  // .action(async ({app}) => {
498
533
  .action(function () {
499
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(cmd) {
500
- return _regenerator2.default.wrap(function _callee8$(_context8) {
534
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(cmd) {
535
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
501
536
  while (1) {
502
- switch (_context8.prev = _context8.next) {
537
+ switch (_context9.prev = _context9.next) {
503
538
  case 0:
504
539
  process.env.NODE_ENV = 'production';
505
540
  process.env.NODE_CMD = 'build';
506
541
  // console.log(app);
507
542
  // gi({app: yk0BuildApp});
508
543
  alias({ appName: cmd });
509
- _context8.next = 5;
544
+ _context9.next = 5;
510
545
  return require(params.serverPath)('build', cmd);
511
546
 
512
547
  case 5:
513
548
  case 'end':
514
- return _context8.stop();
549
+ return _context9.stop();
515
550
  }
516
551
  }
517
- }, _callee8, undefined);
552
+ }, _callee9, undefined);
518
553
  }));
519
554
 
520
555
  return function (_x10) {
521
- return _ref14.apply(this, arguments);
556
+ return _ref15.apply(this, arguments);
522
557
  };
523
558
  }());
524
559
 
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) {
560
+ _commander2.default.command('generate').alias('g').description('generate a model').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
561
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
527
562
  while (1) {
528
- switch (_context9.prev = _context9.next) {
563
+ switch (_context10.prev = _context10.next) {
529
564
  case 0:
530
565
  process.env.NODE_ENV = 'production';
531
- _context9.next = 3;
566
+ _context10.next = 3;
532
567
  return gi();
533
568
 
534
569
  case 3:
535
- _context9.prev = 3;
536
- _context9.next = 6;
570
+ _context10.prev = 3;
571
+ _context10.next = 6;
537
572
  return nuxtCli.run(['generate']);
538
573
 
539
574
  case 6:
540
- _context9.next = 12;
575
+ _context10.next = 12;
541
576
  break;
542
577
 
543
578
  case 8:
544
- _context9.prev = 8;
545
- _context9.t0 = _context9['catch'](3);
579
+ _context10.prev = 8;
580
+ _context10.t0 = _context10['catch'](3);
546
581
 
547
- _consola2.default.fatal(_context9.t0);
582
+ _consola2.default.fatal(_context10.t0);
548
583
  process.exit(2);
549
584
 
550
585
  case 12:
551
586
  case 'end':
552
- return _context9.stop();
587
+ return _context10.stop();
553
588
  }
554
589
  }
555
- }, _callee9, undefined, [[3, 8]]);
590
+ }, _callee10, undefined, [[3, 8]]);
556
591
  })));
557
592
 
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) {
593
+ _commander2.default.command('clean').description('clean cache').action((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
594
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
560
595
  while (1) {
561
- switch (_context10.prev = _context10.next) {
596
+ switch (_context11.prev = _context11.next) {
562
597
  case 0:
563
598
  _rimraf2.default.sync(_paths2.default.hardSourceCache);
564
599
  _rimraf2.default.sync(_paths2.default.ykRootCacheDir);
565
600
 
566
601
  case 2:
567
602
  case 'end':
568
- return _context10.stop();
603
+ return _context11.stop();
569
604
  }
570
605
  }
571
- }, _callee10, undefined);
606
+ }, _callee11, undefined);
572
607
  })));
573
608
 
574
609
  _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) {
610
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(cmd, _ref18) {
611
+ var edit = _ref18.edit,
612
+ msg = _ref18.msg,
613
+ yk0BuildApp = _ref18.yk0BuildApp,
614
+ env = _ref18.env;
615
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
581
616
  while (1) {
582
- switch (_context11.prev = _context11.next) {
617
+ switch (_context12.prev = _context12.next) {
583
618
  case 0:
584
619
  alias({ appName: "__common" });
585
620
 
586
621
  if (!(cmd !== "commit-init")) {
587
- _context11.next = 4;
622
+ _context12.next = 4;
588
623
  break;
589
624
  }
590
625
 
591
- _context11.next = 4;
626
+ _context12.next = 4;
592
627
  return gi({ app: yk0BuildApp, ykServerEnv: env, appsNoneExit: false });
593
628
 
594
629
  case 4:
595
- _context11.t0 = cmd;
596
- _context11.next = _context11.t0 === "commit-init" ? 7 : 8;
630
+ _context12.t0 = cmd;
631
+ _context12.next = _context12.t0 === "commit-init" ? 7 : 8;
597
632
  break;
598
633
 
599
634
  case 7:
600
- return _context11.abrupt('break', 14);
635
+ return _context12.abrupt('break', 14);
601
636
 
602
637
  case 8:
603
- _context11.next = 10;
638
+ _context12.next = 10;
604
639
  return (0, _verify.commitEsLint)({ edit: edit });
605
640
 
606
641
  case 10:
607
- _context11.next = 12;
642
+ _context12.next = 12;
608
643
  return (0, _verify.commitStyleLint)({ edit: edit });
609
644
 
610
645
  case 12:
611
- _context11.next = 14;
646
+ _context12.next = 14;
612
647
  return (0, _verify.commitMsg)({ edit: msg });
613
648
 
614
649
  case 14:
615
650
  case 'end':
616
- return _context11.stop();
651
+ return _context12.stop();
617
652
  }
618
653
  }
619
- }, _callee11, undefined);
654
+ }, _callee12, undefined);
620
655
  }));
621
656
 
622
657
  return function (_x11, _x12) {
623
- return _ref18.apply(this, arguments);
658
+ return _ref19.apply(this, arguments);
624
659
  };
625
660
  }()
626
661
  // case "commit-eslint":
@@ -635,78 +670,78 @@ var run = exports.run = function () {
635
670
  );
636
671
 
637
672
  _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;
673
+ var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(cmd, _ref20) {
674
+ var yk0BuildApp = _ref20.yk0BuildApp,
675
+ env = _ref20.env;
641
676
 
642
- var _ref21, apps;
677
+ var _ref22, apps;
643
678
 
644
- return _regenerator2.default.wrap(function _callee13$(_context13) {
679
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
645
680
  while (1) {
646
- switch (_context13.prev = _context13.next) {
681
+ switch (_context14.prev = _context14.next) {
647
682
  case 0:
648
683
  if (!(_os2.default.platform() === 'win32')) {
649
- _context13.next = 3;
684
+ _context14.next = 3;
650
685
  break;
651
686
  }
652
687
 
653
688
  _consola2.default.error(_msg.errMsg['os.win32.cmd.server']);
654
- return _context13.abrupt('return');
689
+ return _context14.abrupt('return');
655
690
 
656
691
  case 3:
657
692
  process.env.NODE_ENV = 'production';
658
693
  process.env.NODE_CMD = 'server ' + cmd;
659
- _context13.next = 7;
694
+ _context14.next = 7;
660
695
  return gi({ app: yk0BuildApp, ykServerEnv: env });
661
696
 
662
697
  case 7:
663
- _ref21 = _context13.sent;
664
- apps = _ref21.apps;
698
+ _ref22 = _context14.sent;
699
+ apps = _ref22.apps;
665
700
 
666
701
  if (!['start', 'stop', 'restart', 'lite', 'container'].includes(cmd)) {
667
- _context13.next = 21;
702
+ _context14.next = 21;
668
703
  break;
669
704
  }
670
705
 
671
- _context13.t0 = cmd;
672
- _context13.next = _context13.t0 === 'lite' ? 13 : 17;
706
+ _context14.t0 = cmd;
707
+ _context14.next = _context14.t0 === 'lite' ? 13 : 17;
673
708
  break;
674
709
 
675
710
  case 13:
676
711
  alias({ appName: apps[0] });
677
- _context13.next = 16;
712
+ _context14.next = 16;
678
713
  return require(params.serverLite)(cmd);
679
714
 
680
715
  case 16:
681
- return _context13.abrupt('break', 19);
716
+ return _context14.abrupt('break', 19);
682
717
 
683
718
  case 17:
684
- _context13.next = 19;
719
+ _context14.next = 19;
685
720
  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) {
721
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(key, j) {
722
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
688
723
  while (1) {
689
- switch (_context12.prev = _context12.next) {
724
+ switch (_context13.prev = _context13.next) {
690
725
  case 0:
691
726
  alias({ appName: key });
692
- _context12.next = 3;
727
+ _context13.next = 3;
693
728
  return require(params.serverPath)(cmd, key, j !== apps.length - 1);
694
729
 
695
730
  case 3:
696
731
  case 'end':
697
- return _context12.stop();
732
+ return _context13.stop();
698
733
  }
699
734
  }
700
- }, _callee12, undefined);
735
+ }, _callee13, undefined);
701
736
  }));
702
737
 
703
738
  return function (_x15, _x16) {
704
- return _ref22.apply(this, arguments);
739
+ return _ref23.apply(this, arguments);
705
740
  };
706
741
  }());
707
742
 
708
743
  case 19:
709
- _context13.next = 23;
744
+ _context14.next = 23;
710
745
  break;
711
746
 
712
747
  case 21:
@@ -715,14 +750,14 @@ var run = exports.run = function () {
715
750
 
716
751
  case 23:
717
752
  case 'end':
718
- return _context13.stop();
753
+ return _context14.stop();
719
754
  }
720
755
  }
721
- }, _callee13, undefined);
756
+ }, _callee14, undefined);
722
757
  }));
723
758
 
724
759
  return function (_x13, _x14) {
725
- return _ref20.apply(this, arguments);
760
+ return _ref21.apply(this, arguments);
726
761
  };
727
762
  }()).on('--help', function () {
728
763
  console.log('');
@@ -734,29 +769,29 @@ var run = exports.run = function () {
734
769
  });
735
770
 
736
771
  _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) {
772
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(env, options) {
773
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
739
774
  while (1) {
740
- switch (_context14.prev = _context14.next) {
775
+ switch (_context15.prev = _context15.next) {
741
776
  case 0:
742
777
  process.env.NODE_TYPE = 'publish';
743
- _context14.next = 3;
778
+ _context15.next = 3;
744
779
  return gi();
745
780
 
746
781
  case 3:
747
- _context14.next = 5;
782
+ _context15.next = 5;
748
783
  return require('../utils/deployment')();
749
784
 
750
785
  case 5:
751
786
  case 'end':
752
- return _context14.stop();
787
+ return _context15.stop();
753
788
  }
754
789
  }
755
- }, _callee14, undefined);
790
+ }, _callee15, undefined);
756
791
  }));
757
792
 
758
793
  return function (_x17, _x18) {
759
- return _ref23.apply(this, arguments);
794
+ return _ref24.apply(this, arguments);
760
795
  };
761
796
  }());
762
797
 
@@ -767,12 +802,12 @@ var run = exports.run = function () {
767
802
 
768
803
  _commander2.default.parse(process.argv);
769
804
 
770
- case 13:
805
+ case 14:
771
806
  case 'end':
772
- return _context15.stop();
807
+ return _context16.stop();
773
808
  }
774
809
  }
775
- }, _callee15, undefined);
810
+ }, _callee16, undefined);
776
811
  }));
777
812
 
778
813
  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.3",
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",