esoftplay 0.0.121-e → 0.0.121-g

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/bin/cli.js +11 -17
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -66,10 +66,11 @@ switch (args[0]) {
66
66
  break;
67
67
  case "bc":
68
68
  case "build-cancel":
69
- if (fs.existsSync('./node_modules/esoftplaymodules'))
70
- command('rm -rf modules && mv ./node_modules/esoftplaymodules modules')
71
- else
72
- consoleError("build cancel sudah dilakukan sebelumnya")
69
+ buildPrepare(false)
70
+ break;
71
+ case "bp":
72
+ case "build-prepare":
73
+ buildPrepare(true)
73
74
  break;
74
75
  case "vn":
75
76
  case "version-new":
@@ -651,7 +652,7 @@ function devClientPos(file) {
651
652
  }
652
653
  }
653
654
 
654
- function cacheBuild(include = true) {
655
+ function buildPrepare(include = true) {
655
656
  if (include) {
656
657
  if (!fs.existsSync('./node_modules/esoftplaymodules')) {
657
658
  fs.mkdirSync('./node_modules/esoftplaymodules')
@@ -668,11 +669,13 @@ function cacheBuild(include = true) {
668
669
  comm.push(`cp -n ./node_modules/esoftplay/modules/${module}/* ./modules/${module}`)
669
670
  }
670
671
  });
671
- (async () => await execAsync(comm.join(" && ")))();
672
+ consoleSucces("\n\nPLEASE COPY AND EXECUTE THE FOLLOWING COMMAND\n\n" + comm.join('\n'))
672
673
  }
673
674
  } else {
674
675
  if (fs.existsSync('./node_modules/esoftplaymodules'))
675
676
  command('rm -rf modules && mv ./node_modules/esoftplaymodules modules')
677
+ else
678
+ consoleError('')
676
679
  }
677
680
  }
678
681
 
@@ -722,7 +725,6 @@ function build() {
722
725
  name: "1. IOS (Development) - Simulator",
723
726
  cmd: "eas build --platform ios --profile development",
724
727
  pre: () => {
725
- cacheBuild()
726
728
  configAvailable(true)
727
729
  devClientPre(appjson)
728
730
  jsEng(appjson, false)
@@ -735,7 +737,6 @@ function build() {
735
737
  name: "2. IOS (Preview) - Simulator",
736
738
  cmd: "eas build --platform ios --profile preview",
737
739
  pre: () => {
738
- cacheBuild()
739
740
  configAvailable(true)
740
741
  devClientPos(appjson)
741
742
  jsEng(appjson, true)
@@ -748,7 +749,6 @@ function build() {
748
749
  name: "3. IOS (Preview) - Non Simulator",
749
750
  cmd: "eas build --platform ios --profile preview_build",
750
751
  pre: () => {
751
- cacheBuild()
752
752
  configAvailable(true)
753
753
  devClientPos(appjson)
754
754
  jsEng(appjson, true)
@@ -761,7 +761,6 @@ function build() {
761
761
  name: "4. IOS (Production) - ipa",
762
762
  cmd: "eas build --platform ios --profile production",
763
763
  pre: () => {
764
- cacheBuild()
765
764
  configAvailable(true)
766
765
  devClientPos(appjson)
767
766
  jsEng(appjson, true)
@@ -774,7 +773,6 @@ function build() {
774
773
  name: "5. Android (Development) - apk",
775
774
  cmd: "eas build --platform android --profile development",
776
775
  pre: () => {
777
- cacheBuild()
778
776
  configAvailable(true)
779
777
  devClientPre(appjson)
780
778
  jsEng(appjson, false)
@@ -787,7 +785,6 @@ function build() {
787
785
  name: "6. Android (Preview) - apk",
788
786
  cmd: "eas build --platform android --profile preview",
789
787
  pre: () => {
790
- cacheBuild()
791
788
  configAvailable(true)
792
789
  devClientPos(appjson)
793
790
  jsEng(appjson, true)
@@ -800,7 +797,6 @@ function build() {
800
797
  name: "7. Android (Production) - aab",
801
798
  cmd: "eas build --platform android --profile production",
802
799
  pre: () => {
803
- cacheBuild()
804
800
  configAvailable(true)
805
801
  devClientPos(appjson)
806
802
  jsEng(appjson, true)
@@ -830,15 +826,12 @@ function build() {
830
826
  if (pre) pre()
831
827
  consoleSucces("⚙⚙⚙ ... \n" + cmd)
832
828
  command(cmd)
833
- cacheBuild(false)
834
829
  configAvailable(false)
835
830
  devClientPos(appjson)
836
831
  } else if (d === false) {
837
832
  consoleError("Build Canceled")
838
- cacheBuild(false)
839
833
  } else {
840
834
  consoleError("Build type tidak ditemukan")
841
- cacheBuild(false)
842
835
  }
843
836
  });
844
837
 
@@ -941,7 +934,8 @@ function help() {
941
934
  "\n - u|update all : untuk update semua esp module ke versi terakhir",
942
935
  "\n - start : start esoftplay framework",
943
936
  "\n - b|build : untuk build app .ipa .apk .aab",
944
- "\n - bc|build-cancel : untuk build app .ipa .apk .aab",
937
+ "\n - bp|build-prepare : untuk prepare for esp b",
938
+ "\n - bc|build-cancel : untuk cancel build prepare",
945
939
  "\n - f|file : untuk check status file",
946
940
  "\n - c|check : untuk check status",
947
941
  "\n - create-master [moduleName] : untuk create master module terpisah",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.121-e",
3
+ "version": "0.0.121-g",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",