jjb-cmd 2.1.11 → 2.1.13

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/README.md CHANGED
@@ -2,7 +2,11 @@
2
2
  <h3>更新日志:</h3>
3
3
  <ul>
4
4
  <li>
5
- <p>2.1.11</p>
5
+ <p>2.1.13</p>
6
+ <div>增加远程更新配置文件</div>
7
+ </li>
8
+ <li>
9
+ <p>2.1.12</p>
6
10
  <div>增加install.app</div>
7
11
  </li>
8
12
  <li>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jjb-cmd",
3
3
  "use": "no",
4
- "version": "2.1.11",
4
+ "version": "2.1.13",
5
5
  "description": "jjb脚手架工具",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -1 +1 @@
1
- const a0_0x144ec3=a0_0x4f74;function a0_0x4f74(_0x1dbc94,_0x34c45a){const _0x18e26b=a0_0x18e2();return a0_0x4f74=function(_0x4f74c1,_0x4d044b){_0x4f74c1=_0x4f74c1-0x16c;let _0x163246=_0x18e26b[_0x4f74c1];return _0x163246;},a0_0x4f74(_0x1dbc94,_0x34c45a);}(function(_0xdacc07,_0x3fb22c){const _0x5c0231=a0_0x4f74,_0x3b19a3=_0xdacc07();while(!![]){try{const _0x4854ea=parseInt(_0x5c0231(0x17c))/0x1+parseInt(_0x5c0231(0x16c))/0x2*(-parseInt(_0x5c0231(0x177))/0x3)+-parseInt(_0x5c0231(0x173))/0x4+-parseInt(_0x5c0231(0x180))/0x5*(-parseInt(_0x5c0231(0x171))/0x6)+parseInt(_0x5c0231(0x17f))/0x7+parseInt(_0x5c0231(0x174))/0x8+-parseInt(_0x5c0231(0x17a))/0x9;if(_0x4854ea===_0x3fb22c)break;else _0x3b19a3['push'](_0x3b19a3['shift']());}catch(_0x43b74b){_0x3b19a3['push'](_0x3b19a3['shift']());}}}(a0_0x18e2,0x4847a));function a0_0x18e2(){const _0x2ab4a8=['/api/auth','3493385YFjwGk','215CRbeLD','Auth\x20NetWork\x20Fail!','path','join','exports','14MVFofZ','Auth\x20Fail!','existsSync','writeFileSync','../cmd.install/config','57474auDGIo','../../../.auth','57760URpFmy','4121568lxRFWE','data','then','4776cXDbHx','unlinkSync','Auth\x20Success!','13304817ApRwtM','post','373807GZvJqg','log'];a0_0x18e2=function(){return _0x2ab4a8;};return a0_0x18e2();}const axios=require('axios'),fs=require('fs'),path=require(a0_0x144ec3(0x182)),{API_HOST}=require(a0_0x144ec3(0x170));module[a0_0x144ec3(0x184)]=_0x234e3e=>{const _0x2a8898=a0_0x144ec3;console['log'](_0x234e3e);const [_0x4f3786,_0x2a22f3]=_0x234e3e;axios[_0x2a8898(0x17b)](API_HOST+_0x2a8898(0x17e),{'username':_0x4f3786,'password':_0x2a22f3})[_0x2a8898(0x176)](_0x3e5ba2=>{const _0xc541c1=_0x2a8898,_0x4a848f=path[_0xc541c1(0x183)](__dirname,_0xc541c1(0x172));_0x3e5ba2[_0xc541c1(0x175)]['status']?(console[_0xc541c1(0x17d)](_0xc541c1(0x179)),fs[_0xc541c1(0x16f)](_0x4a848f,_0x4f3786+'/'+_0x2a22f3)):(console[_0xc541c1(0x17d)](_0xc541c1(0x16d)),fs[_0xc541c1(0x16e)](_0x4a848f)&&fs[_0xc541c1(0x178)](_0x4a848f));})['catch'](_0x4f6e85=>{const _0x3e9e9e=_0x2a8898;console[_0x3e9e9e(0x17d)](_0x3e9e9e(0x181));});};
1
+ const a0_0x118345=a0_0x2e6b;(function(_0x469702,_0x25055d){const _0x3d7338=a0_0x2e6b,_0x43af79=_0x469702();while(!![]){try{const _0x4a2073=-parseInt(_0x3d7338(0x126))/0x1+parseInt(_0x3d7338(0x118))/0x2*(parseInt(_0x3d7338(0x120))/0x3)+parseInt(_0x3d7338(0x12a))/0x4+parseInt(_0x3d7338(0x128))/0x5+-parseInt(_0x3d7338(0x129))/0x6*(parseInt(_0x3d7338(0x113))/0x7)+-parseInt(_0x3d7338(0x125))/0x8+-parseInt(_0x3d7338(0x119))/0x9;if(_0x4a2073===_0x25055d)break;else _0x43af79['push'](_0x43af79['shift']());}catch(_0xe5e338){_0x43af79['push'](_0x43af79['shift']());}}}(a0_0xc2a7,0x327dd));function a0_0xc2a7(){const _0x29a947=['then','../../../.auth','catch','existsSync','18nQRqvH','1627398UhYcNr','exports','axios','Auth\x20Fail!','data','writeFileSync','path','43014tzfxgW','post','Auth\x20Success!','../cmd.install/config','/api/auth','1107800ueUlEX','46256NDlIPD','log','1521440cVwJaE','1176rvEEOj','830544OhVruL','2450XisJiP'];a0_0xc2a7=function(){return _0x29a947;};return a0_0xc2a7();}function a0_0x2e6b(_0x4fdf87,_0x59eb7a){const _0xc2a757=a0_0xc2a7();return a0_0x2e6b=function(_0x2e6b9d,_0x3f50c8){_0x2e6b9d=_0x2e6b9d-0x113;let _0x429eb0=_0xc2a757[_0x2e6b9d];return _0x429eb0;},a0_0x2e6b(_0x4fdf87,_0x59eb7a);}const axios=require(a0_0x118345(0x11b)),fs=require('fs'),path=require(a0_0x118345(0x11f)),{API_HOST}=require(a0_0x118345(0x123));module[a0_0x118345(0x11a)]=_0x2cb323=>{const _0x4faae7=a0_0x118345;console[_0x4faae7(0x127)](_0x2cb323);const [_0x24c436,_0x165a4a]=_0x2cb323;axios[_0x4faae7(0x121)](API_HOST+_0x4faae7(0x124),{'username':_0x24c436,'password':_0x165a4a})[_0x4faae7(0x114)](_0x156150=>{const _0x5eead0=_0x4faae7,_0x2c30cb=path['join'](__dirname,_0x5eead0(0x115));_0x156150[_0x5eead0(0x11d)]['status']?(console[_0x5eead0(0x127)](_0x5eead0(0x122)),fs[_0x5eead0(0x11e)](_0x2c30cb,_0x24c436+'/'+_0x165a4a)):(console[_0x5eead0(0x127)](_0x5eead0(0x11c)),fs[_0x5eead0(0x117)](_0x2c30cb)&&fs['unlinkSync'](_0x2c30cb));})[_0x4faae7(0x116)](_0x84cc8b=>{const _0x23b828=_0x4faae7;console[_0x23b828(0x127)]('Auth\x20NetWork\x20Fail!');});};
@@ -1 +1 @@
1
- const a1_0x37baa7=a1_0x5ce9;(function(_0x306191,_0x44b107){const _0x1405e8=a1_0x5ce9,_0x30a4a8=_0x306191();while(!![]){try{const _0x29c9fe=-parseInt(_0x1405e8(0x1e7))/0x1+parseInt(_0x1405e8(0x1d8))/0x2+-parseInt(_0x1405e8(0x1fa))/0x3*(parseInt(_0x1405e8(0x1f5))/0x4)+-parseInt(_0x1405e8(0x1df))/0x5+parseInt(_0x1405e8(0x1e9))/0x6*(-parseInt(_0x1405e8(0x1e4))/0x7)+parseInt(_0x1405e8(0x1dd))/0x8*(parseInt(_0x1405e8(0x1f9))/0x9)+parseInt(_0x1405e8(0x1e8))/0xa*(parseInt(_0x1405e8(0x1e1))/0xb);if(_0x29c9fe===_0x44b107)break;else _0x30a4a8['push'](_0x30a4a8['shift']());}catch(_0x32cfd4){_0x30a4a8['push'](_0x30a4a8['shift']());}}}(a1_0x2319,0x2c00f));const path=require(a1_0x37baa7(0x1fd)),{f_file_copy}=require(a1_0x37baa7(0x1e6)),{CLOUD_PROJECT,GIT_TEMP_DIR,GIT_HOST}=require(a1_0x37baa7(0x1d9)),fs=require('fs'),os=require('os'),utils=require('../../old/util'),request=require(a1_0x37baa7(0x1de)),compressing=require(a1_0x37baa7(0x1ec));module['exports']=_0x3a3d4f=>{const _0x3eada9=a1_0x37baa7,_0x3abd6e=path[_0x3eada9(0x1ea)]('./'),_0x3a4d0a=CLOUD_PROJECT[_0x3a3d4f]||undefined;if(_0x3a4d0a){const _0x28fb49=os['tmpdir'](),_0x9ba3a4=_0x28fb49+'/'+GIT_TEMP_DIR+'/'+_0x3a3d4f+_0x3eada9(0x1f3),_0x385dff=_0x28fb49+'/'+GIT_TEMP_DIR+_0x3eada9(0x1eb);utils[_0x3eada9(0x1f4)](_0x28fb49+'/'+GIT_TEMP_DIR,()=>{const _0x443af0=_0x3eada9;fs[_0x443af0(0x1ed)](_0x28fb49+'/'+GIT_TEMP_DIR);let _0x542b60=fs[_0x443af0(0x1dc)](_0x9ba3a4);request(GIT_HOST+_0x443af0(0x1e3)+_0x3a4d0a[_0x443af0(0x1e5)]+'/repository/archive.zip?private_token='+_0x3a4d0a[_0x443af0(0x1e2)]+_0x443af0(0x1e0))[_0x443af0(0x1fc)](_0x542b60)['on'](_0x443af0(0x1f1),()=>{const _0x1ab0ea=_0x443af0;fs[_0x1ab0ea(0x1ed)](_0x385dff),compressing[_0x1ab0ea(0x1f0)][_0x1ab0ea(0x1ef)](_0x9ba3a4,_0x385dff)[_0x1ab0ea(0x1f2)](()=>{setTimeout(()=>{const _0x136642=a1_0x5ce9;fs['readdirSync'](_0x385dff)[_0x136642(0x1fb)](_0x40f394=>{const _0x316826=_0x136642;_0x40f394[_0x316826(0x1db)](_0x316826(0x1f8))!==-0x1&&utils['CopyFolder'](_0x385dff+_0x40f394,_0x3abd6e,()=>{const _0x535cf0=_0x316826;console[_0x535cf0(0x1f7)](_0x535cf0(0x1ee)),process[_0x535cf0(0x1da)](0x0);});});},0x7d0);});});});}else console['log'](_0x3eada9(0x1f6)+_0x3a3d4f+'不存在。');};function a1_0x5ce9(_0x1fecfa,_0x386a4e){const _0x231918=a1_0x2319();return a1_0x5ce9=function(_0x5ce90f,_0x4614db){_0x5ce90f=_0x5ce90f-0x1d8;let _0x4cd080=_0x231918[_0x5ce90f];return _0x4cd080;},a1_0x5ce9(_0x1fecfa,_0x386a4e);}function a1_0x2319(){const _0x176fe6=['token','/api/v4/projects/','133DEuyuN','projectId','../cmd.install/tools','327326gkzYyH','110lDaDAh','54546vAYOVc','resolve','/unzip/','compressing','mkdirSync','初始化完成!','uncompress','zip','close','then','.zip','DeleteDirAllFile','1250488NmJDVQ','【Error】:初始化失败,','log','-master-','9FkDJPa','3wOZwRb','forEach','pipe','path','316638FDGXuV','../cmd.install/config','exit','indexOf','createWriteStream','1623056xFChVC','request','1036660lCTzbT','&ref=master','839047UTkAXx'];a1_0x2319=function(){return _0x176fe6;};return a1_0x2319();}
1
+ function a1_0x4d3f(_0x3ad822,_0x5ce3be){const _0x5668d3=a1_0x5668();return a1_0x4d3f=function(_0x4d3f6e,_0x28b106){_0x4d3f6e=_0x4d3f6e-0x1f0;let _0x3eb15c=_0x5668d3[_0x4d3f6e];return _0x3eb15c;},a1_0x4d3f(_0x3ad822,_0x5ce3be);}const a1_0xbccdac=a1_0x4d3f;(function(_0x17d3ab,_0x1921f1){const _0x38f357=a1_0x4d3f,_0x527653=_0x17d3ab();while(!![]){try{const _0x3d0975=parseInt(_0x38f357(0x20c))/0x1*(-parseInt(_0x38f357(0x1f4))/0x2)+-parseInt(_0x38f357(0x20a))/0x3*(parseInt(_0x38f357(0x210))/0x4)+-parseInt(_0x38f357(0x1f3))/0x5*(parseInt(_0x38f357(0x1fb))/0x6)+-parseInt(_0x38f357(0x1f6))/0x7*(parseInt(_0x38f357(0x216))/0x8)+parseInt(_0x38f357(0x201))/0x9+parseInt(_0x38f357(0x203))/0xa*(parseInt(_0x38f357(0x1f5))/0xb)+parseInt(_0x38f357(0x207))/0xc;if(_0x3d0975===_0x1921f1)break;else _0x527653['push'](_0x527653['shift']());}catch(_0x41ed9e){_0x527653['push'](_0x527653['shift']());}}}(a1_0x5668,0x3d20f));const path=require(a1_0xbccdac(0x1f7)),{f_file_copy}=require(a1_0xbccdac(0x1fd)),{CLOUD_PROJECT,GIT_TEMP_DIR,GIT_HOST}=require('../cmd.install/config'),fs=require('fs'),os=require('os'),utils=require(a1_0xbccdac(0x208)),request=require('request'),compressing=require(a1_0xbccdac(0x213));module[a1_0xbccdac(0x20d)]=_0x259328=>{const _0x3dab34=a1_0xbccdac,_0x31fb27=path[_0x3dab34(0x209)]('./'),_0x263c30=CLOUD_PROJECT[_0x259328]||undefined;if(_0x263c30){const _0x70c801=os[_0x3dab34(0x211)](),_0x4a8858=_0x70c801+'/'+GIT_TEMP_DIR+'/'+_0x259328+_0x3dab34(0x1f8),_0xe0d7be=_0x70c801+'/'+GIT_TEMP_DIR+_0x3dab34(0x20e);utils[_0x3dab34(0x1fe)](_0x70c801+'/'+GIT_TEMP_DIR,()=>{const _0x3fbf39=_0x3dab34;fs['mkdirSync'](_0x70c801+'/'+GIT_TEMP_DIR);let _0x31cf22=fs[_0x3fbf39(0x215)](_0x4a8858);request(GIT_HOST+_0x3fbf39(0x200)+_0x263c30[_0x3fbf39(0x1fc)]+_0x3fbf39(0x1ff)+_0x263c30['token']+'&ref=master')[_0x3fbf39(0x212)](_0x31cf22)['on'](_0x3fbf39(0x20b),()=>{const _0x2fc0b0=_0x3fbf39;fs[_0x2fc0b0(0x1fa)](_0xe0d7be),compressing[_0x2fc0b0(0x214)][_0x2fc0b0(0x1f2)](_0x4a8858,_0xe0d7be)[_0x2fc0b0(0x205)](()=>{setTimeout(()=>{const _0x3960f7=a1_0x4d3f;fs[_0x3960f7(0x1f9)](_0xe0d7be)[_0x3960f7(0x204)](_0x46f158=>{const _0x3a8f9a=_0x3960f7;_0x46f158['indexOf'](_0x3a8f9a(0x206))!==-0x1&&utils['CopyFolder'](_0xe0d7be+_0x46f158,_0x31fb27,()=>{const _0xec74fa=_0x3a8f9a;console['log'](_0xec74fa(0x202)),process[_0xec74fa(0x1f0)](0x0);});});},0x7d0);});});});}else console['log'](_0x3dab34(0x1f1)+_0x259328+_0x3dab34(0x20f));};function a1_0x5668(){const _0x4f60cf=['42cAEyuF','projectId','../cmd.install/tools','DeleteDirAllFile','/repository/archive.zip?private_token=','/api/v4/projects/','4066578mPfhPP','初始化完成!','2508780vXzJzq','forEach','then','-master-','6582648zpCPxx','../../old/util','resolve','393whgtdh','close','1njfCvm','exports','/unzip/','不存在。','11372KccXJg','tmpdir','pipe','compressing','zip','createWriteStream','262688RxUSDM','exit','【Error】:初始化失败,','uncompress','282575gwEXzs','400034LQCiBP','11sTblXt','7nEvPtI','path','.zip','readdirSync','mkdirSync'];a1_0x5668=function(){return _0x4f60cf;};return a1_0x5668();}
@@ -1 +1 @@
1
- function a2_0x3e20(){const _0xc82888=['jjb-assembly-','jjb-assembly-java','1bGlhHF','807864MsSvAM','snBxJ2i5kYarGGcsojhY','127084BSifyX','G4HJRsHr9D7Ssmixegw2','test','7V-YUxhmh51Mdhgx4rq4','now','TEMPLATE_FOLDER','FT3pKzxpRynFkmddJ9Bs','8141660pTCfZN','GIT_TEMP_JAVA','36RBJLzu','12215icukMC','http://192.168.1.242:10985','3270KQRcWW','3128733UTnyEj','10244619KJWxPG','GIT_TEMP_DIR','18qgHwCD','GIT_JAVA_ENV_JSON','306420GNuvXF','CLOUD_PROJECT','gPSit8aJsLVmNzuQ5Cy4','GIT_HOST','tmpdir','http://120.26.210.58:8088'];a2_0x3e20=function(){return _0xc82888;};return a2_0x3e20();}const a2_0x119a33=a2_0x13e7;function a2_0x13e7(_0x457e82,_0x4a91d7){const _0x3e2076=a2_0x3e20();return a2_0x13e7=function(_0x13e77c,_0x5c1d0b){_0x13e77c=_0x13e77c-0x99;let _0x4624af=_0x3e2076[_0x13e77c];return _0x4624af;},a2_0x13e7(_0x457e82,_0x4a91d7);}(function(_0x541e73,_0x47bb8d){const _0x544942=a2_0x13e7,_0x2c9149=_0x541e73();while(!![]){try{const _0x363aab=parseInt(_0x544942(0x9b))/0x1*(parseInt(_0x544942(0x9e))/0x2)+parseInt(_0x544942(0xab))/0x3+-parseInt(_0x544942(0xa7))/0x4*(parseInt(_0x544942(0xb0))/0x5)+parseInt(_0x544942(0xaa))/0x6*(parseInt(_0x544942(0xa8))/0x7)+parseInt(_0x544942(0x9c))/0x8+parseInt(_0x544942(0xae))/0x9*(-parseInt(_0x544942(0xa5))/0xa)+parseInt(_0x544942(0xac))/0xb;if(_0x363aab===_0x47bb8d)break;else _0x2c9149['push'](_0x2c9149['shift']());}catch(_0x2c1c81){_0x2c9149['push'](_0x2c9149['shift']());}}}(a2_0x3e20,0xde24e));const os=require('os');exports['API_HOST']=a2_0x119a33(0xb5),exports[a2_0x119a33(0xb3)]=a2_0x119a33(0xa9),exports[a2_0x119a33(0xad)]=a2_0x119a33(0x99)+Date[a2_0x119a33(0xa2)](),exports[a2_0x119a33(0xa6)]=a2_0x119a33(0x9a),exports[a2_0x119a33(0xaf)]={'development':'dev','production':'prod','test':a2_0x119a33(0xa0)},exports[a2_0x119a33(0xb1)]={'common':{'token':a2_0x119a33(0x9f),'projectId':0x117},'react-admin-component':{'token':a2_0x119a33(0xa4),'projectId':0x154},'jjb-dva-runtime':{'token':'hLqARY89CN6fUD3yg4NL','projectId':0x23b},'jjb-common-lib':{'token':'e9njpBd1nS_LREN8GFpR','projectId':0x23c},'jjb-common-decorator':{'token':a2_0x119a33(0xb2),'projectId':0x23e},'vue-unisass-component':{'token':'d4wQ7dzEjYPsgVbKnYei','projectId':0x153},'react-component':{'token':a2_0x119a33(0x9d),'projectId':0x33f},'micro-app-ts':{'token':a2_0x119a33(0xa1),'projectId':0x33e},'micro-app':{'token':'FqNrmFAgrxasMrbbjvq9','projectId':0x33d},'lib':{'token':'ywPtT3xCG6b_vAxp6sTj','projectId':0x33c}},exports[a2_0x119a33(0xa3)]=os[a2_0x119a33(0xb4)]()+'\x5c'+exports[a2_0x119a33(0xad)];
1
+ function a2_0x95c6(_0x1c3a70,_0x9ad378){const _0x4d92a5=a2_0x4d92();return a2_0x95c6=function(_0x95c6f0,_0x5de8a8){_0x95c6f0=_0x95c6f0-0xb1;let _0x47fa9b=_0x4d92a5[_0x95c6f0];return _0x47fa9b;},a2_0x95c6(_0x1c3a70,_0x9ad378);}function a2_0x4d92(){const _0x114b56=['710OQnTJo','snBxJ2i5kYarGGcsojhY','d4wQ7dzEjYPsgVbKnYei','API_HOST','tmpdir','391AxRzjR','GIT_TEMP_DIR','CONFIG_FILE_HOST','FqNrmFAgrxasMrbbjvq9','4679898VtFSmV','16304yNQqgp','12lvpHsi','http://192.168.1.242:10985','prod','6AInDmM','21064571OjlRcT','GIT_JAVA_ENV_JSON','ywPtT3xCG6b_vAxp6sTj','7V-YUxhmh51Mdhgx4rq4','now','3338MOTHVz','FT3pKzxpRynFkmddJ9Bs','https://cdn.cqjjb.cn/jjb-cloud-config','3318TRkHHf','e9njpBd1nS_LREN8GFpR','jjb-assembly-','62217WzHhvm','hLqARY89CN6fUD3yg4NL','CLOUD_PROJECT','2037676qUWxIQ','TEMPLATE_FOLDER','1688825fdbUIu'];a2_0x4d92=function(){return _0x114b56;};return a2_0x4d92();}const a2_0x3933ba=a2_0x95c6;(function(_0x27a7b2,_0x52be94){const _0x22fb39=a2_0x95c6,_0x42f319=_0x27a7b2();while(!![]){try{const _0x355ac6=parseInt(_0x22fb39(0xca))/0x1*(-parseInt(_0x22fb39(0xb9))/0x2)+-parseInt(_0x22fb39(0xb3))/0x3*(parseInt(_0x22fb39(0xc2))/0x4)+-parseInt(_0x22fb39(0xc4))/0x5+-parseInt(_0x22fb39(0xce))/0x6+-parseInt(_0x22fb39(0xbc))/0x7*(-parseInt(_0x22fb39(0xcf))/0x8)+-parseInt(_0x22fb39(0xbf))/0x9*(-parseInt(_0x22fb39(0xc5))/0xa)+parseInt(_0x22fb39(0xb4))/0xb*(parseInt(_0x22fb39(0xd0))/0xc);if(_0x355ac6===_0x52be94)break;else _0x42f319['push'](_0x42f319['shift']());}catch(_0x3b6fc8){_0x42f319['push'](_0x42f319['shift']());}}}(a2_0x4d92,0x8e3e7));const os=require('os');exports[a2_0x3933ba(0xcc)]=a2_0x3933ba(0xbb),exports[a2_0x3933ba(0xc8)]='http://120.26.210.58:8088',exports['GIT_HOST']=a2_0x3933ba(0xb1),exports[a2_0x3933ba(0xcb)]=a2_0x3933ba(0xbe)+Date[a2_0x3933ba(0xb8)](),exports['GIT_TEMP_JAVA']='jjb-assembly-java',exports[a2_0x3933ba(0xb5)]={'development':'dev','production':a2_0x3933ba(0xb2),'test':'test'},exports[a2_0x3933ba(0xc1)]={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117},'react-admin-component':{'token':a2_0x3933ba(0xba),'projectId':0x154},'jjb-dva-runtime':{'token':a2_0x3933ba(0xc0),'projectId':0x23b},'jjb-common-lib':{'token':a2_0x3933ba(0xbd),'projectId':0x23c},'jjb-common-decorator':{'token':'gPSit8aJsLVmNzuQ5Cy4','projectId':0x23e},'vue-unisass-component':{'token':a2_0x3933ba(0xc7),'projectId':0x153},'react-component':{'token':a2_0x3933ba(0xc6),'projectId':0x33f},'micro-app-ts':{'token':a2_0x3933ba(0xb7),'projectId':0x33e},'micro-app':{'token':a2_0x3933ba(0xcd),'projectId':0x33d},'lib':{'token':a2_0x3933ba(0xb6),'projectId':0x33c}},exports[a2_0x3933ba(0xc3)]=os[a2_0x3933ba(0xc9)]()+'\x5c'+exports[a2_0x3933ba(0xcb)];
@@ -1 +1 @@
1
- function a3_0x14fe(){const _0x2cda05=['uncompress','join','unlinkSync','forEach','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','setting.json','compress','3544RcNMRE','length','log','rmdirSync','【jjb-cmd】:install命令执行完成,用时','\x5ctypes','readdirSync','installTarget','673857OTrqEf','4JksLpV','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','.gitignore','exit','index.js','29600050fmbFIy','installResources','1.0.0','path','10onYaNS','pure_name','filter','find','zip','existsSync','node_modules','package.json','exports','16415TcSwsq','map','./config','jjb-common-lib','close','11090862BKFkVd','_zip','pipe','repository','compressing','1125660coNicr','mkdirSync','replace','now','2981775rdbwgo','createWriteStream','8817420HfzPRl','【Error】:安装失败,node_modules目录不存在。','request','【Error】:安装失败,src目录不存在。'];a3_0x14fe=function(){return _0x2cda05;};return a3_0x14fe();}function a3_0x2685(_0x35c76a,_0x2fd2a6){const _0x14fe7d=a3_0x14fe();return a3_0x2685=function(_0x268502,_0x1c1e04){_0x268502=_0x268502-0x96;let _0x38d9fb=_0x14fe7d[_0x268502];return _0x38d9fb;},a3_0x2685(_0x35c76a,_0x2fd2a6);}const a3_0x312644=a3_0x2685;(function(_0x2fb5e5,_0x4a7a1e){const _0x119c90=a3_0x2685,_0x5cd951=_0x2fb5e5();while(!![]){try{const _0x4ccde1=parseInt(_0x119c90(0xae))/0x1+-parseInt(_0x119c90(0x9b))/0x2*(-parseInt(_0x119c90(0xc7))/0x3)+parseInt(_0x119c90(0xc8))/0x4*(-parseInt(_0x119c90(0xb2))/0x5)+-parseInt(_0x119c90(0xb4))/0x6+parseInt(_0x119c90(0xa4))/0x7*(-parseInt(_0x119c90(0xbf))/0x8)+-parseInt(_0x119c90(0xa9))/0x9+parseInt(_0x119c90(0x97))/0xa;if(_0x4ccde1===_0x4a7a1e)break;else _0x5cd951['push'](_0x5cd951['shift']());}catch(_0x229ef9){_0x5cd951['push'](_0x5cd951['shift']());}}}(a3_0x14fe,0xd4d02));const fs=require('fs'),path=require(a3_0x312644(0x9a)),request=require(a3_0x312644(0xb6)),compressing=require(a3_0x312644(0xad)),{f_rm_rf,f_file_copy,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require('./tools'),{TEMPLATE_FOLDER}=require(a3_0x312644(0xa6)),start_time=Date[a3_0x312644(0xb1)]();module[a3_0x312644(0xa3)]=()=>{const _0x119b46=a3_0x312644,_0x2127fb=path['resolve']('./'),_0x27c0f5=[_0x2127fb,'src\x5c'][_0x119b46(0xb9)]('\x5c'),_0x431ea4=[_0x2127fb,_0x119b46(0xa1)]['join']('\x5c'),_0x4228b3=[_0x2127fb,_0x119b46(0xa2)][_0x119b46(0xb9)]('\x5c');if(f_scan_jjb_config_json(_0x2127fb)){const _0x3725a3=f_scan_jjb_config_json_rules(_0x2127fb);_0x3725a3[_0x119b46(0xc6)]==='node_modules'?!fs[_0x119b46(0xa0)](_0x431ea4)?(console[_0x119b46(0xc1)](_0x119b46(0xb5)),process[_0x119b46(0xcb)](0x0)):console[_0x119b46(0xc1)](_0x119b46(0xc9)):!fs['existsSync'](_0x27c0f5)&&(console[_0x119b46(0xc1)](_0x119b46(0xb7)),process[_0x119b46(0xcb)](0x0));fs['mkdirSync'](TEMPLATE_FOLDER),f_pull_git_repository(_0x3725a3['installResources'])['map'](_0x120da4=>{const _0x9ef742=_0x119b46,_0x6d81d5=fs[_0x9ef742(0xb3)](_0x120da4['path']);request(_0x120da4[_0x9ef742(0xac)])[_0x9ef742(0xab)](_0x6d81d5)['on'](_0x9ef742(0xa8),()=>{const _0x34702a=_0x9ef742;fs[_0x34702a(0xaf)](_0x120da4[_0x34702a(0xbe)]),compressing[_0x34702a(0x9f)][_0x34702a(0xb8)](_0x120da4['path'],_0x120da4[_0x34702a(0xbe)]);});});const _0x28d2b1=setInterval(()=>{const _0x3e1bee=_0x119b46,_0x420471=fs[_0x3e1bee(0xc5)](TEMPLATE_FOLDER),_0x2287ca=_0x420471[_0x3e1bee(0x9d)](_0x2ba4ac=>_0x3725a3['installResources'][_0x3e1bee(0xa5)](_0x4bb275=>_0x4bb275['name']+_0x3e1bee(0xaa))['includes'](_0x2ba4ac));if(_0x2287ca[_0x3e1bee(0xc0)]===_0x3725a3[_0x3e1bee(0x98)][_0x3e1bee(0xc0)]){clearInterval(_0x28d2b1);const _0x4ebd8c=[];_0x2287ca[_0x3e1bee(0xbb)](_0x19ef79=>{const _0x162bea=_0x3e1bee,_0x5cbcb3=[TEMPLATE_FOLDER,_0x19ef79][_0x162bea(0xb9)]('\x5c');fs[_0x162bea(0xc5)](_0x5cbcb3)[_0x162bea(0xbb)](_0x7c587c=>_0x4ebd8c['push']({'name':_0x19ef79,'path':[_0x5cbcb3,_0x7c587c][_0x162bea(0xb9)]('\x5c'),'pure_name':_0x19ef79[_0x162bea(0xb0)](/_zip$/,''),'import_list':_0x3725a3[_0x162bea(0x98)][_0x162bea(0x9e)](_0x1586e6=>_0x1586e6['name']+_0x162bea(0xaa)===_0x19ef79)['importList']}));}),_0x4ebd8c[_0x3e1bee(0xbb)](_0x5d3388=>{const _0x1c426e=_0x3e1bee,_0x33930b=_0x5d3388[_0x1c426e(0x9c)],_0x54deef=_0x5d3388['import_list'],_0x448ac4=[_0x5d3388['path'],'.idea'][_0x1c426e(0xb9)]('//'),_0x2196e9=[_0x5d3388['path'],_0x1c426e(0xca)][_0x1c426e(0xb9)]('//');fs[_0x1c426e(0xa0)](_0x448ac4)&&(f_rm_rf(_0x448ac4),fs[_0x1c426e(0xc2)](_0x448ac4));fs[_0x1c426e(0xa0)](_0x2196e9)&&fs[_0x1c426e(0xba)](_0x2196e9);_0x54deef[_0x1c426e(0xc0)]&&fs[_0x1c426e(0xc5)](_0x5d3388[_0x1c426e(0x9a)])[_0x1c426e(0x9d)](_0x519a86=>!_0x54deef['includes'](_0x519a86)&&_0x519a86!==_0x1c426e(0x96)&&_0x519a86!==_0x1c426e(0xbd))['forEach'](_0x324fd6=>{const _0x3252ab=_0x1c426e,_0x46b613=_0x5d3388[_0x3252ab(0x9a)]+'\x5c'+_0x324fd6;f_rm_rf(_0x46b613),fs[_0x3252ab(0xc2)](_0x46b613);});if(_0x3725a3[_0x1c426e(0xc6)]===_0x1c426e(0xa1)){const _0x258869=_0x33930b;fs[_0x1c426e(0xa0)](_0x431ea4+'\x5c'+_0x258869)?f_rm_rf(_0x431ea4+'\x5c'+_0x258869):fs[_0x1c426e(0xaf)](_0x431ea4+'\x5c'+_0x258869),_0x258869!==_0x1c426e(0xa7)?(f_file_copy(_0x5d3388[_0x1c426e(0x9a)],_0x431ea4+'\x5c'+_0x258869),f_create_package_json(_0x431ea4+'\x5c'+_0x258869,_0x258869,'1.0.0')):f_file_copy(_0x5d3388[_0x1c426e(0x9a)]+_0x1c426e(0xc4),_0x431ea4+'\x5c'+_0x258869),f_update_project_package_json(_0x4228b3,_0x258869,_0x1c426e(0x99));}else _0x3725a3[_0x1c426e(0xc6)]==='src'&&(fs['existsSync'](_0x27c0f5+_0x33930b)?f_rm_rf(_0x27c0f5+_0x33930b):fs[_0x1c426e(0xaf)](_0x27c0f5+_0x33930b),f_file_copy(_0x5d3388[_0x1c426e(0x9a)],_0x27c0f5+_0x33930b));}),setTimeout(()=>{const _0x76d19e=_0x3e1bee;f_rm_rf(TEMPLATE_FOLDER),fs[_0x76d19e(0xc2)](TEMPLATE_FOLDER);const _0x41e71c=Date[_0x76d19e(0xb1)]();console[_0x76d19e(0xc1)](_0x76d19e(0xc3)+(_0x41e71c-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console['log'](_0x119b46(0xbc));};
1
+ const a3_0x311bf8=a3_0x5c7d;function a3_0x5c7d(_0x5a8523,_0x1ba593){const _0x564bc5=a3_0x564b();return a3_0x5c7d=function(_0x5c7d5c,_0x58cb45){_0x5c7d5c=_0x5c7d5c-0x15e;let _0x320edf=_0x564bc5[_0x5c7d5c];return _0x320edf;},a3_0x5c7d(_0x5a8523,_0x1ba593);}function a3_0x564b(){const _0x1af96e=['1.0.0','import_list','./tools','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','index.js','src','close','zip','pure_name','includes','path','readdirSync','node_modules','237033rhMXnC','log','forEach','find','importList','compressing','5Xbymwn','setting.json','rmdirSync','createWriteStream','【Error】:安装失败,node_modules目录不存在。','uncompress','_zip','length','exit','join','32223590qLSTHs','map','【jjb-cmd】:install命令执行完成,用时','mkdirSync','existsSync','6327164lKuSel','replace','jjb-common-lib','repository','882011lLOAuv','compress','unlinkSync','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','installTarget','8325814HTLnYc','now','package.json','./config','exports','name','464jtOsMW','request','installResources','resolve','4980LIyTNs','2258ktNPqG','1665336nrvnNw','filter'];a3_0x564b=function(){return _0x1af96e;};return a3_0x564b();}(function(_0x58a512,_0x14b91c){const _0x30604=a3_0x5c7d,_0x49028c=_0x58a512();while(!![]){try{const _0x54ac4c=parseInt(_0x30604(0x18f))/0x1+-parseInt(_0x30604(0x166))/0x2*(-parseInt(_0x30604(0x165))/0x3)+-parseInt(_0x30604(0x18b))/0x4*(parseInt(_0x30604(0x17c))/0x5)+parseInt(_0x30604(0x167))/0x6+parseInt(_0x30604(0x194))/0x7+parseInt(_0x30604(0x161))/0x8*(parseInt(_0x30604(0x176))/0x9)+-parseInt(_0x30604(0x186))/0xa;if(_0x54ac4c===_0x14b91c)break;else _0x49028c['push'](_0x49028c['shift']());}catch(_0x4ac9a0){_0x49028c['push'](_0x49028c['shift']());}}}(a3_0x564b,0xe7149));const fs=require('fs'),path=require(a3_0x311bf8(0x173)),request=require(a3_0x311bf8(0x162)),compressing=require(a3_0x311bf8(0x17b)),{f_rm_rf,f_file_copy,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require(a3_0x311bf8(0x16b)),{TEMPLATE_FOLDER}=require(a3_0x311bf8(0x15e)),start_time=Date['now']();module[a3_0x311bf8(0x15f)]=()=>{const _0x526bb3=a3_0x311bf8,_0x16961d=path[_0x526bb3(0x164)]('./'),_0x11aa98=[_0x16961d,'src\x5c'][_0x526bb3(0x185)]('\x5c'),_0x193b7b=[_0x16961d,_0x526bb3(0x175)]['join']('\x5c'),_0xbb9db9=[_0x16961d,_0x526bb3(0x196)][_0x526bb3(0x185)]('\x5c');if(f_scan_jjb_config_json(_0x16961d)){const _0x5a6a6c=f_scan_jjb_config_json_rules(_0x16961d);_0x5a6a6c[_0x526bb3(0x193)]===_0x526bb3(0x175)?!fs[_0x526bb3(0x18a)](_0x193b7b)?(console['log'](_0x526bb3(0x180)),process['exit'](0x0)):console[_0x526bb3(0x177)](_0x526bb3(0x192)):!fs[_0x526bb3(0x18a)](_0x11aa98)&&(console[_0x526bb3(0x177)]('【Error】:安装失败,src目录不存在。'),process[_0x526bb3(0x184)](0x0));fs[_0x526bb3(0x189)](TEMPLATE_FOLDER),f_pull_git_repository(_0x5a6a6c[_0x526bb3(0x163)])[_0x526bb3(0x187)](_0x4e20f7=>{const _0x381475=_0x526bb3,_0x3fa298=fs[_0x381475(0x17f)](_0x4e20f7[_0x381475(0x173)]);request(_0x4e20f7[_0x381475(0x18e)])['pipe'](_0x3fa298)['on'](_0x381475(0x16f),()=>{const _0x13d9fc=_0x381475;fs[_0x13d9fc(0x189)](_0x4e20f7[_0x13d9fc(0x190)]),compressing[_0x13d9fc(0x170)][_0x13d9fc(0x181)](_0x4e20f7[_0x13d9fc(0x173)],_0x4e20f7['compress']);});});const _0x5ceb3f=setInterval(()=>{const _0x3ef5c3=_0x526bb3,_0x7268bd=fs['readdirSync'](TEMPLATE_FOLDER),_0x162958=_0x7268bd[_0x3ef5c3(0x168)](_0x44efca=>_0x5a6a6c[_0x3ef5c3(0x163)][_0x3ef5c3(0x187)](_0x113050=>_0x113050['name']+'_zip')[_0x3ef5c3(0x172)](_0x44efca));if(_0x162958[_0x3ef5c3(0x183)]===_0x5a6a6c[_0x3ef5c3(0x163)][_0x3ef5c3(0x183)]){clearInterval(_0x5ceb3f);const _0x52be9c=[];_0x162958[_0x3ef5c3(0x178)](_0x15f658=>{const _0x10f79c=_0x3ef5c3,_0x42ac7b=[TEMPLATE_FOLDER,_0x15f658]['join']('\x5c');fs[_0x10f79c(0x174)](_0x42ac7b)['forEach'](_0x363ccf=>_0x52be9c['push']({'name':_0x15f658,'path':[_0x42ac7b,_0x363ccf][_0x10f79c(0x185)]('\x5c'),'pure_name':_0x15f658[_0x10f79c(0x18c)](/_zip$/,''),'import_list':_0x5a6a6c[_0x10f79c(0x163)][_0x10f79c(0x179)](_0x241638=>_0x241638[_0x10f79c(0x160)]+_0x10f79c(0x182)===_0x15f658)[_0x10f79c(0x17a)]}));}),_0x52be9c['forEach'](_0x486f22=>{const _0x4511dc=_0x3ef5c3,_0x3166bb=_0x486f22[_0x4511dc(0x171)],_0x3171e6=_0x486f22[_0x4511dc(0x16a)],_0x42bd0f=[_0x486f22[_0x4511dc(0x173)],'.idea']['join']('//'),_0x1a2ac0=[_0x486f22[_0x4511dc(0x173)],'.gitignore'][_0x4511dc(0x185)]('//');fs['existsSync'](_0x42bd0f)&&(f_rm_rf(_0x42bd0f),fs[_0x4511dc(0x17e)](_0x42bd0f));fs[_0x4511dc(0x18a)](_0x1a2ac0)&&fs[_0x4511dc(0x191)](_0x1a2ac0);_0x3171e6['length']&&fs[_0x4511dc(0x174)](_0x486f22[_0x4511dc(0x173)])[_0x4511dc(0x168)](_0x39d777=>!_0x3171e6[_0x4511dc(0x172)](_0x39d777)&&_0x39d777!==_0x4511dc(0x16d)&&_0x39d777!==_0x4511dc(0x17d))[_0x4511dc(0x178)](_0x37806a=>{const _0x49aab0=_0x4511dc,_0x4d22b1=_0x486f22[_0x49aab0(0x173)]+'\x5c'+_0x37806a;f_rm_rf(_0x4d22b1),fs['rmdirSync'](_0x4d22b1);});if(_0x5a6a6c[_0x4511dc(0x193)]===_0x4511dc(0x175)){const _0x47b6c5=_0x3166bb;fs[_0x4511dc(0x18a)](_0x193b7b+'\x5c'+_0x47b6c5)?f_rm_rf(_0x193b7b+'\x5c'+_0x47b6c5):fs['mkdirSync'](_0x193b7b+'\x5c'+_0x47b6c5),_0x47b6c5!==_0x4511dc(0x18d)?(f_file_copy(_0x486f22[_0x4511dc(0x173)],_0x193b7b+'\x5c'+_0x47b6c5),f_create_package_json(_0x193b7b+'\x5c'+_0x47b6c5,_0x47b6c5,_0x4511dc(0x169))):f_file_copy(_0x486f22['path']+'\x5ctypes',_0x193b7b+'\x5c'+_0x47b6c5),f_update_project_package_json(_0xbb9db9,_0x47b6c5,_0x4511dc(0x169));}else _0x5a6a6c[_0x4511dc(0x193)]===_0x4511dc(0x16e)&&(fs[_0x4511dc(0x18a)](_0x11aa98+_0x3166bb)?f_rm_rf(_0x11aa98+_0x3166bb):fs[_0x4511dc(0x189)](_0x11aa98+_0x3166bb),f_file_copy(_0x486f22['path'],_0x11aa98+_0x3166bb));}),setTimeout(()=>{const _0x1af466=_0x3ef5c3;f_rm_rf(TEMPLATE_FOLDER),fs['rmdirSync'](TEMPLATE_FOLDER);const _0x153e2b=Date[_0x1af466(0x195)]();console[_0x1af466(0x177)](_0x1af466(0x188)+(_0x153e2b-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x526bb3(0x177)](_0x526bb3(0x16c));};
@@ -1 +1 @@
1
- const a4_0x17b3b8=a4_0x145b;function a4_0x145b(_0x495409,_0x5f1dd6){const _0x564e1c=a4_0x564e();return a4_0x145b=function(_0x145b86,_0x1bd47e){_0x145b86=_0x145b86-0x1de;let _0x46fbe3=_0x564e1c[_0x145b86];return _0x46fbe3;},a4_0x145b(_0x495409,_0x5f1dd6);}function a4_0x564e(){const _0x20b7fb=['uniapp','78bzDrBM','417970pGqqrj','1866676rZtQYy','jjb-common','micro-spa','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','isArray','mkdirSync','installResources','【Error】:[jjb.config.json.projectType]类型是一个string。','spa','5206868xrpYuE','f_create_package_json','12792080tEkyLZ','f_scan_jjb_config_json','f_file_copy','length','/api/v4/projects/','./config','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','readFileSync','f_content_replace','projectType','path','log','_zip','push','jjb-dva-runtime','vue-unisass-component','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','16498tYtIdP','150QXFYca','replace','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','380OiGTAD','{\x22name\x22:\x22','&ref=master','filter','string','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','includes','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','exit','stringify','【Error】:[jjb.config.json.installTarget]类型是一个string','statSync','【Error】:[jjb.config.json.installResources]无资源。','unlinkSync','installTarget','src','f_update_project_package_json','node_modules','name','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','writeFileSync','existsSync','f_rm_rf','readdirSync','parse','f_resolve_install_resources','forEach','76482KlxJnn','\x5cjjb.config.json','jjb-common-lib','map','dependencies','【Error】:[jjb.config.json.installResources]配置无效,有效值<common\x20|\x20react-admin-component\x20|\x20vue-unisass-component\x20|\x20jjb-common-decorator\x20|\x20jjb-dva-runtime\x20|\x20jjb-common-lib>。','96167GtCyyM','toString','jjb-common-decorator','\x22,\x22version\x22:\x22','isDirectory','multi','react-admin-component'];a4_0x564e=function(){return _0x20b7fb;};return a4_0x564e();}(function(_0x41e86e,_0x35822f){const _0x1293b1=a4_0x145b,_0x5acda4=_0x41e86e();while(!![]){try{const _0x112b24=-parseInt(_0x1293b1(0x1f1))/0x1+-parseInt(_0x1293b1(0x217))/0x2*(parseInt(_0x1293b1(0x218))/0x3)+-parseInt(_0x1293b1(0x204))/0x4+parseInt(_0x1293b1(0x1fa))/0x5*(parseInt(_0x1293b1(0x1f9))/0x6)+parseInt(_0x1293b1(0x1fb))/0x7+parseInt(_0x1293b1(0x206))/0x8+-parseInt(_0x1293b1(0x1eb))/0x9*(parseInt(_0x1293b1(0x21b))/0xa);if(_0x112b24===_0x35822f)break;else _0x5acda4['push'](_0x5acda4['shift']());}catch(_0x4eecd2){_0x5acda4['push'](_0x5acda4['shift']());}}}(a4_0x564e,0xc7fc6));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a4_0x17b3b8(0x20b));exports[a4_0x17b3b8(0x1e6)]=function(_0x4134a7){const _0x1db544=a4_0x17b3b8;if(fs[_0x1db544(0x1e5)](_0x4134a7)){const _0x45bcf0=fs[_0x1db544(0x1e7)](_0x4134a7);for(let _0x218358=0x0;_0x218358<_0x45bcf0['length'];_0x218358++){const _0x1baccd=_0x45bcf0[_0x218358],_0x2e6cea=_0x4134a7+'/'+_0x1baccd;fs[_0x1db544(0x226)](_0x2e6cea)[_0x1db544(0x1f5)]()?(exports['f_rm_rf'](_0x2e6cea),fs['rmdirSync'](_0x2e6cea)):fs[_0x1db544(0x228)](_0x2e6cea);}}},exports['f_pull_git_repository']=function(_0x4c43d8=[]){const _0x2088e6=a4_0x17b3b8;return _0x4c43d8[_0x2088e6(0x1ee)](_0x101183=>{const _0x47ba3d=_0x2088e6,_0x4090da=CLOUD_PROJECT[_0x101183['name']]||undefined,_0x53c8c7=os['tmpdir']();return{'path':_0x53c8c7+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x101183[_0x47ba3d(0x1e2)]+'.zip','compress':_0x53c8c7+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x101183[_0x47ba3d(0x1e2)]+_0x47ba3d(0x212),'repository':GIT_HOST+_0x47ba3d(0x20a)+_0x4090da['projectId']+'/repository/archive.zip?private_token='+_0x4090da['token']+_0x47ba3d(0x21d)};});},exports[a4_0x17b3b8(0x207)]=function(_0x24abd8){const _0x1e8de3=a4_0x17b3b8;return fs['existsSync'](_0x24abd8+_0x1e8de3(0x1ec));},exports['f_scan_jjb_config_json_rules']=function(_0x4b708b){const _0x383b35=a4_0x17b3b8;let _0x2b27f7={};try{_0x2b27f7=JSON['parse'](fs['readFileSync'](_0x4b708b+_0x383b35(0x1ec))['toString']());}catch(_0x24f313){console[_0x383b35(0x211)](_0x383b35(0x1e3)),process['exit'](0x0);}!(_0x383b35(0x20f)in _0x2b27f7)&&(console['log'](_0x383b35(0x222)),process[_0x383b35(0x223)](0x0));!(_0x383b35(0x1de)in _0x2b27f7)&&(console[_0x383b35(0x211)](_0x383b35(0x216)),process[_0x383b35(0x223)](0x0));!(_0x383b35(0x201)in _0x2b27f7)&&(console[_0x383b35(0x211)](_0x383b35(0x220)),process['exit'](0x0));typeof _0x2b27f7['projectType']!==_0x383b35(0x21f)&&(console[_0x383b35(0x211)](_0x383b35(0x202)),process[_0x383b35(0x223)](0x0));![_0x383b35(0x1f6),_0x383b35(0x203),_0x383b35(0x1f8),_0x383b35(0x1fd)]['includes'](_0x2b27f7['projectType'])&&(console[_0x383b35(0x211)](_0x383b35(0x1fe)),process['exit'](0x0));typeof _0x2b27f7[_0x383b35(0x1de)]!=='string'&&(console[_0x383b35(0x211)](_0x383b35(0x225)),process[_0x383b35(0x223)](0x0));![_0x383b35(0x1e1),_0x383b35(0x1df)][_0x383b35(0x221)](_0x2b27f7[_0x383b35(0x1de)])&&(console[_0x383b35(0x211)](_0x383b35(0x21a)),process['exit'](0x0));!Array[_0x383b35(0x1ff)](_0x2b27f7[_0x383b35(0x201)])&&(console[_0x383b35(0x211)](_0x383b35(0x20c)),process['exit'](0x0));_0x2b27f7[_0x383b35(0x201)][_0x383b35(0x209)]===0x0&&(console[_0x383b35(0x211)](_0x383b35(0x227)),process[_0x383b35(0x223)](0x0));const _0x5a723a=exports[_0x383b35(0x1e9)](_0x2b27f7['installResources']);return _0x5a723a[_0x383b35(0x1ee)](_0x233350=>_0x233350['name'])[_0x383b35(0x21e)](_0x211e2d=>![_0x383b35(0x1fc),_0x383b35(0x214),_0x383b35(0x1ed),_0x383b35(0x1f3),_0x383b35(0x1f7),_0x383b35(0x215)][_0x383b35(0x221)](_0x211e2d))[_0x383b35(0x209)]!==0x0&&(console[_0x383b35(0x211)](_0x383b35(0x1f0)),process[_0x383b35(0x223)](0x0)),_0x2b27f7[_0x383b35(0x201)]=_0x5a723a,_0x2b27f7;},exports[a4_0x17b3b8(0x205)]=function(_0x4f74d2,_0x2658ac,_0x1d7e4a){const _0x19517d=a4_0x17b3b8;fs['writeFileSync'](_0x4f74d2+'\x5cpackage.json',_0x19517d(0x21c)+_0x2658ac+_0x19517d(0x1f4)+_0x1d7e4a+'\x22,\x22main\x22:\x20\x22index.js\x22}');},exports[a4_0x17b3b8(0x1e9)]=function(_0x4ddcdd=[]){const _0x173945=a4_0x17b3b8,_0x2c2c5b=[];return Array['isArray'](_0x4ddcdd)&&_0x4ddcdd[_0x173945(0x1ea)](_0x71024a=>{const _0xef591f=_0x173945;if(Array[_0xef591f(0x1ff)](_0x71024a)){const [_0x14d50a,_0x57642a=[]]=_0x71024a;_0x2c2c5b['push']({'name':_0x14d50a,'importList':_0x57642a});}else _0x2c2c5b[_0xef591f(0x213)]({'name':_0x71024a,'importList':[]});}),_0x2c2c5b;},exports[a4_0x17b3b8(0x1e0)]=function(_0x1c1624,_0x546fa2,_0x457f72){const _0x5091f5=a4_0x17b3b8,_0x414a2c=JSON[_0x5091f5(0x1e8)](fs['readFileSync'](_0x1c1624)[_0x5091f5(0x1f2)]());_0x414a2c[_0x5091f5(0x1ef)][_0x546fa2]=_0x457f72,fs[_0x5091f5(0x1e4)](_0x1c1624,JSON[_0x5091f5(0x224)](_0x414a2c,null,0x2));},exports['f_file_copy']=function(_0x3b0eb1,_0x597d23){const _0xc86c9=a4_0x17b3b8;fs[_0xc86c9(0x1e7)](_0x3b0eb1)[_0xc86c9(0x1ea)](_0x3ec426=>{const _0x55c630=_0xc86c9,_0x31737a=_0x3b0eb1+'\x5c'+_0x3ec426,_0x401072=_0x597d23+'\x5c'+_0x3ec426;fs[_0x55c630(0x226)](_0x31737a)[_0x55c630(0x1f5)]()?(fs[_0x55c630(0x200)](_0x401072),exports[_0x55c630(0x208)](_0x31737a,_0x401072)):fs[_0x55c630(0x1e4)](_0x401072,fs[_0x55c630(0x20d)](_0x31737a)['toString']());});},exports[a4_0x17b3b8(0x20e)]=function(_0x5d27db=[],_0xfd9791){const _0x43c9f2=a4_0x17b3b8;_0x5d27db[_0x43c9f2(0x1ea)](_0x12de1d=>{const _0x2516ea=_0x43c9f2,_0x3c2407=_0xfd9791+_0x12de1d[_0x2516ea(0x210)];if(fs['existsSync'](_0x3c2407)){let _0x5f2917=fs['readFileSync'](_0x3c2407)[_0x2516ea(0x1f2)]();_0x12de1d[_0x2516ea(0x219)]['forEach'](_0x580f76=>{const _0x2635e3=_0x2516ea;_0x5f2917=_0x5f2917[_0x2635e3(0x219)](_0x580f76[0x0],_0x580f76[0x1]);}),fs[_0x2516ea(0x1e4)](_0x3c2407,_0x5f2917);}});};
1
+ function a4_0x5445(_0x56f88b,_0x1e1868){const _0x368ae7=a4_0x368a();return a4_0x5445=function(_0x5445b1,_0x48fd78){_0x5445b1=_0x5445b1-0x83;let _0x2f796b=_0x368ae7[_0x5445b1];return _0x2f796b;},a4_0x5445(_0x56f88b,_0x1e1868);}const a4_0x259a1b=a4_0x5445;(function(_0x3db721,_0x433dfe){const _0x23e528=a4_0x5445,_0x4da60d=_0x3db721();while(!![]){try{const _0x42c34a=parseInt(_0x23e528(0x9a))/0x1*(parseInt(_0x23e528(0xb8))/0x2)+-parseInt(_0x23e528(0xc3))/0x3*(-parseInt(_0x23e528(0xcc))/0x4)+parseInt(_0x23e528(0xca))/0x5*(parseInt(_0x23e528(0x9e))/0x6)+-parseInt(_0x23e528(0xa9))/0x7+parseInt(_0x23e528(0xbd))/0x8+-parseInt(_0x23e528(0xbb))/0x9*(-parseInt(_0x23e528(0xb9))/0xa)+-parseInt(_0x23e528(0xa0))/0xb;if(_0x42c34a===_0x433dfe)break;else _0x4da60d['push'](_0x4da60d['shift']());}catch(_0x6af1fd){_0x4da60d['push'](_0x4da60d['shift']());}}}(a4_0x368a,0xc1d94));function a4_0x368a(){const _0x18a97d=['token','filter','\x22,\x22version\x22:\x22','multi','forEach','tmpdir','jjb-common-decorator','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','{\x22name\x22:\x22','writeFileSync','name','421ymAvTr','jjb-common','readFileSync','jjb-common-lib','2971308eyacoy','【Error】:[jjb.config.json.projectType]类型是一个string。','38650117yctbHi','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','/repository/archive.zip?private_token=','path','f_pull_git_repository','【Error】:[jjb.config.json.installResources]配置无效,有效值<common\x20|\x20react-admin-component\x20|\x20vue-unisass-component\x20|\x20jjb-common-decorator\x20|\x20jjb-dva-runtime\x20|\x20jjb-common-lib>。','projectType','toString','f_create_package_json','8011094IYzcqh','installTarget','mkdirSync','statSync','f_scan_jjb_config_json_rules','existsSync','push','f_resolve_install_resources','f_file_copy','replace','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','f_content_replace','f_rm_rf','map','isArray','5458dafbcG','15301030FCryPc','parse','9LtVBUH','/api/v4/projects/','8835896oecdYL','installResources','string','isDirectory','react-admin-component','\x22,\x22main\x22:\x20\x22index.js\x22}','54882EWHqFF','length','jjb-dva-runtime','log','\x5cpackage.json','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','src','15EhbrPa','stringify','40Qkslxp','micro-spa','includes','readdirSync','exit','dependencies','uniapp','&ref=master','./config','\x5cjjb.config.json','【Error】:[jjb.config.json.installTarget]类型是一个string。','_zip','f_update_project_package_json'];a4_0x368a=function(){return _0x18a97d;};return a4_0x368a();}const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a4_0x259a1b(0x8a));exports[a4_0x259a1b(0xb5)]=function(_0x3e7e60){const _0x60eeff=a4_0x259a1b;if(fs[_0x60eeff(0xae)](_0x3e7e60)){const _0xcf5aa2=fs['readdirSync'](_0x3e7e60);for(let _0x413486=0x0;_0x413486<_0xcf5aa2['length'];_0x413486++){const _0x1506ff=_0xcf5aa2[_0x413486],_0x2c7630=_0x3e7e60+'/'+_0x1506ff;fs[_0x60eeff(0xac)](_0x2c7630)['isDirectory']()?(exports['f_rm_rf'](_0x2c7630),fs['rmdirSync'](_0x2c7630)):fs['unlinkSync'](_0x2c7630);}}},exports[a4_0x259a1b(0xa4)]=function(_0xe51713=[]){const _0xa22407=a4_0x259a1b;return _0xe51713[_0xa22407(0xb6)](_0x2dceab=>{const _0x486cd0=_0xa22407,_0x3aa484=CLOUD_PROJECT[_0x2dceab[_0x486cd0(0x99)]]||undefined,_0x331180=os[_0x486cd0(0x94)]();return{'path':_0x331180+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x2dceab[_0x486cd0(0x99)]+'.zip','compress':_0x331180+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x2dceab[_0x486cd0(0x99)]+_0x486cd0(0x8d),'repository':GIT_HOST+_0x486cd0(0xbc)+_0x3aa484['projectId']+_0x486cd0(0xa2)+_0x3aa484[_0x486cd0(0x8f)]+_0x486cd0(0x89)};});},exports['f_scan_jjb_config_json']=function(_0x59014c){const _0x4251e7=a4_0x259a1b;return fs['existsSync'](_0x59014c+_0x4251e7(0x8b));},exports[a4_0x259a1b(0xad)]=function(_0x5ce492){const _0x4cd62d=a4_0x259a1b;let _0x1fdb34={};try{_0x1fdb34=JSON[_0x4cd62d(0xba)](fs[_0x4cd62d(0x9c)](_0x5ce492+_0x4cd62d(0x8b))['toString']());}catch(_0x2015c2){console[_0x4cd62d(0xc6)]('【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。'),process['exit'](0x0);}!(_0x4cd62d(0xa6)in _0x1fdb34)&&(console['log']('【Error】:[jjb.config.json]文件配置无效,需要projectType属性。'),process[_0x4cd62d(0x86)](0x0));!('installTarget'in _0x1fdb34)&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0xa1)),process[_0x4cd62d(0x86)](0x0));!('installResources'in _0x1fdb34)&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0xc8)),process[_0x4cd62d(0x86)](0x0));typeof _0x1fdb34[_0x4cd62d(0xa6)]!==_0x4cd62d(0xbf)&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0x9f)),process[_0x4cd62d(0x86)](0x0));![_0x4cd62d(0x92),'spa',_0x4cd62d(0x88),_0x4cd62d(0x83)][_0x4cd62d(0x84)](_0x1fdb34['projectType'])&&(console['log'](_0x4cd62d(0x96)),process['exit'](0x0));typeof _0x1fdb34[_0x4cd62d(0xaa)]!==_0x4cd62d(0xbf)&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0x8c)),process[_0x4cd62d(0x86)](0x0));!['node_modules',_0x4cd62d(0xc9)]['includes'](_0x1fdb34[_0x4cd62d(0xaa)])&&(console[_0x4cd62d(0xc6)]('【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。'),process[_0x4cd62d(0x86)](0x0));!Array[_0x4cd62d(0xb7)](_0x1fdb34['installResources'])&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0xb3)),process[_0x4cd62d(0x86)](0x0));_0x1fdb34['installResources'][_0x4cd62d(0xc4)]===0x0&&(console[_0x4cd62d(0xc6)]('【Error】:[jjb.config.json.installResources]无资源。'),process[_0x4cd62d(0x86)](0x0));const _0x18995b=exports[_0x4cd62d(0xb0)](_0x1fdb34[_0x4cd62d(0xbe)]);return _0x18995b[_0x4cd62d(0xb6)](_0x67878d=>_0x67878d[_0x4cd62d(0x99)])[_0x4cd62d(0x90)](_0x9258d0=>![_0x4cd62d(0x9b),_0x4cd62d(0xc5),_0x4cd62d(0x9d),_0x4cd62d(0x95),_0x4cd62d(0xc1),'vue-unisass-component']['includes'](_0x9258d0))['length']!==0x0&&(console[_0x4cd62d(0xc6)](_0x4cd62d(0xa5)),process['exit'](0x0)),_0x1fdb34[_0x4cd62d(0xbe)]=_0x18995b,_0x1fdb34;},exports[a4_0x259a1b(0xa8)]=function(_0x2e623f,_0x3a90b1,_0x2e0fb3){const _0x578e71=a4_0x259a1b;fs[_0x578e71(0x98)](_0x2e623f+_0x578e71(0xc7),_0x578e71(0x97)+_0x3a90b1+_0x578e71(0x91)+_0x2e0fb3+_0x578e71(0xc2));},exports['f_resolve_install_resources']=function(_0x1c9f74=[]){const _0x28e61a=a4_0x259a1b,_0x46c2f8=[];return Array[_0x28e61a(0xb7)](_0x1c9f74)&&_0x1c9f74['forEach'](_0x51a052=>{const _0x2c8414=_0x28e61a;if(Array[_0x2c8414(0xb7)](_0x51a052)){const [_0x532a3c,_0x5193f8=[]]=_0x51a052;_0x46c2f8[_0x2c8414(0xaf)]({'name':_0x532a3c,'importList':_0x5193f8});}else _0x46c2f8[_0x2c8414(0xaf)]({'name':_0x51a052,'importList':[]});}),_0x46c2f8;},exports[a4_0x259a1b(0x8e)]=function(_0x2732d6,_0x2fcb1f,_0x5eff4f){const _0x31f8d6=a4_0x259a1b,_0x1848d5=JSON[_0x31f8d6(0xba)](fs[_0x31f8d6(0x9c)](_0x2732d6)[_0x31f8d6(0xa7)]());_0x1848d5[_0x31f8d6(0x87)][_0x2fcb1f]=_0x5eff4f,fs[_0x31f8d6(0x98)](_0x2732d6,JSON[_0x31f8d6(0xcb)](_0x1848d5,null,0x2));},exports[a4_0x259a1b(0xb1)]=function(_0x588ea4,_0x28efa3){const _0x3977f9=a4_0x259a1b;fs[_0x3977f9(0x85)](_0x588ea4)[_0x3977f9(0x93)](_0x5b1a58=>{const _0x22f855=_0x3977f9,_0x5eb8fd=_0x588ea4+'\x5c'+_0x5b1a58,_0x250a2d=_0x28efa3+'\x5c'+_0x5b1a58;fs[_0x22f855(0xac)](_0x5eb8fd)[_0x22f855(0xc0)]()?(fs[_0x22f855(0xab)](_0x250a2d),exports[_0x22f855(0xb1)](_0x5eb8fd,_0x250a2d)):fs['writeFileSync'](_0x250a2d,fs[_0x22f855(0x9c)](_0x5eb8fd)[_0x22f855(0xa7)]());});},exports[a4_0x259a1b(0xb4)]=function(_0x267401=[],_0x3d6ac6){const _0x357c93=a4_0x259a1b;_0x267401[_0x357c93(0x93)](_0x381e6c=>{const _0x3dbc08=_0x357c93,_0x5bf138=_0x3d6ac6+_0x381e6c[_0x3dbc08(0xa3)];if(fs['existsSync'](_0x5bf138)){let _0x1cdb25=fs[_0x3dbc08(0x9c)](_0x5bf138)[_0x3dbc08(0xa7)]();_0x381e6c[_0x3dbc08(0xb2)][_0x3dbc08(0x93)](_0x514fc3=>{const _0x4de09b=_0x3dbc08;_0x1cdb25=_0x1cdb25[_0x4de09b(0xb2)](_0x514fc3[0x0],_0x514fc3[0x1]);}),fs['writeFileSync'](_0x5bf138,_0x1cdb25);}});};
@@ -1 +1 @@
1
- const a5_0x4660dc=a5_0x40af;function a5_0x3c80(){const _0x5ac21b=['3314472gaLpir','install\x20husky\x20please\x20wait....','7649383TjzhgY','yarn','execSync','10943053MNcvAW','270KsgkTh','exit','log','install\x20modules\x20please\x20wait....','npm','git\x20init\x20please\x20wait....','exports','3ucxbZh','child_process','15NjDjJd','10xWMqeh','path','142482HtVSiO','【Error】:no\x20registry\x20source,\x20available:[npm,\x20yarn]','existsSync','npx\x20husky\x20install','npm\x20install','8595510PYFomM','795714qUJGaG','14416TvJqCH','join','12LnVvXy'];a5_0x3c80=function(){return _0x5ac21b;};return a5_0x3c80();}(function(_0x1964b2,_0x42653a){const _0x2a79f2=a5_0x40af,_0x4691e4=_0x1964b2();while(!![]){try{const _0x5a8234=parseInt(_0x2a79f2(0x1c6))/0x1*(-parseInt(_0x2a79f2(0x1c8))/0x2)+-parseInt(_0x2a79f2(0x1c3))/0x3*(-parseInt(_0x2a79f2(0x1d2))/0x4)+-parseInt(_0x2a79f2(0x1c5))/0x5*(parseInt(_0x2a79f2(0x1ce))/0x6)+parseInt(_0x2a79f2(0x1d4))/0x7+parseInt(_0x2a79f2(0x1cf))/0x8*(-parseInt(_0x2a79f2(0x1bc))/0x9)+parseInt(_0x2a79f2(0x1cd))/0xa+parseInt(_0x2a79f2(0x1bb))/0xb*(-parseInt(_0x2a79f2(0x1d1))/0xc);if(_0x5a8234===_0x42653a)break;else _0x4691e4['push'](_0x4691e4['shift']());}catch(_0x22b13f){_0x4691e4['push'](_0x4691e4['shift']());}}}(a5_0x3c80,0x97cdc));function a5_0x40af(_0x1afa41,_0x8d4117){const _0x3c8040=a5_0x3c80();return a5_0x40af=function(_0x40afc8,_0x48bb06){_0x40afc8=_0x40afc8-0x1ba;let _0x159565=_0x3c8040[_0x40afc8];return _0x159565;},a5_0x40af(_0x1afa41,_0x8d4117);}const child_process=require(a5_0x4660dc(0x1c4)),path=require(a5_0x4660dc(0x1c7)),fs=require('fs');module[a5_0x4660dc(0x1c2)]=_0x4fb46f=>{const _0x130fa1=a5_0x4660dc;![_0x130fa1(0x1c0),_0x130fa1(0x1d5)]['includes'](_0x4fb46f)&&(console[_0x130fa1(0x1be)](_0x130fa1(0x1c9)),process[_0x130fa1(0x1bd)](0x0)),console['log'](_0x130fa1(0x1bf)),child_process[_0x130fa1(0x1ba)](_0x4fb46f===_0x130fa1(0x1d5)?_0x130fa1(0x1d5):_0x130fa1(0x1cc)),!fs[_0x130fa1(0x1ca)](path[_0x130fa1(0x1d0)](__dirname,'./.git'))&&(console[_0x130fa1(0x1be)](_0x130fa1(0x1c1)),child_process[_0x130fa1(0x1ba)]('git\x20init')),console[_0x130fa1(0x1be)](_0x130fa1(0x1d3)),child_process['execSync'](_0x130fa1(0x1cb)),console['log']('Finish!');};
1
+ function a5_0xeffb(_0x5489cc,_0x40860c){const _0x259224=a5_0x2592();return a5_0xeffb=function(_0xeffb58,_0x500224){_0xeffb58=_0xeffb58-0x186;let _0x4b3c2e=_0x259224[_0xeffb58];return _0x4b3c2e;},a5_0xeffb(_0x5489cc,_0x40860c);}function a5_0x2592(){const _0x461371=['exit','existsSync','618385vMQjZK','exports','9IlwOri','3691237sfruoj','path','npm','6525848PjqWUF','yarn','6XLHNVM','log','【Error】:no\x20registry\x20source,\x20available:[npm,\x20yarn]','147330zNMKca','495sWrNEX','55868VKypBO','4TouVFl','4825114nBQlyv','npm\x20install','resolve','npx\x20husky\x20install','3275274RIXpjG','execSync','Finish!'];a5_0x2592=function(){return _0x461371;};return a5_0x2592();}const a5_0x3d323a=a5_0xeffb;(function(_0x56f70a,_0x2807c5){const _0x4bb156=a5_0xeffb,_0x457ca0=_0x56f70a();while(!![]){try{const _0x1ac11c=-parseInt(_0x4bb156(0x198))/0x1*(-parseInt(_0x4bb156(0x18e))/0x2)+parseInt(_0x4bb156(0x193))/0x3+parseInt(_0x4bb156(0x18d))/0x4*(-parseInt(_0x4bb156(0x18c))/0x5)+parseInt(_0x4bb156(0x188))/0x6*(-parseInt(_0x4bb156(0x18f))/0x7)+-parseInt(_0x4bb156(0x186))/0x8*(-parseInt(_0x4bb156(0x19a))/0x9)+parseInt(_0x4bb156(0x18b))/0xa+-parseInt(_0x4bb156(0x19b))/0xb;if(_0x1ac11c===_0x2807c5)break;else _0x457ca0['push'](_0x457ca0['shift']());}catch(_0x2c2dd2){_0x457ca0['push'](_0x457ca0['shift']());}}}(a5_0x2592,0xb771e));const child_process=require('child_process'),path=require(a5_0x3d323a(0x19c)),fs=require('fs');module[a5_0x3d323a(0x199)]=_0xb9aa5e=>{const _0x3564ca=a5_0x3d323a;![_0x3564ca(0x19d),'yarn']['includes'](_0xb9aa5e)&&(console['log'](_0x3564ca(0x18a)),process[_0x3564ca(0x196)](0x0));const _0x2ac04f=path[_0x3564ca(0x191)]('./');console['log']('install\x20modules\x20please\x20wait....'),child_process[_0x3564ca(0x194)](_0xb9aa5e===_0x3564ca(0x187)?_0x3564ca(0x187):_0x3564ca(0x190),{'cwd':_0x2ac04f}),!fs[_0x3564ca(0x197)](_0x2ac04f+'/.git')&&(console['log']('git\x20init\x20please\x20wait....'),child_process['execSync']('git\x20init',{'cwd':_0x2ac04f})),console['log']('install\x20husky\x20please\x20wait....'),child_process[_0x3564ca(0x194)](_0x3564ca(0x192),{'cwd':_0x2ac04f}),console[_0x3564ca(0x189)](_0x3564ca(0x195));};
@@ -1 +1 @@
1
- const a6_0x5a933c=a6_0x3a08;(function(_0x219eef,_0x4acdd7){const _0x43633e=a6_0x3a08,_0x49a217=_0x219eef();while(!![]){try{const _0x4b0307=parseInt(_0x43633e(0xa9))/0x1+parseInt(_0x43633e(0xba))/0x2+parseInt(_0x43633e(0xa2))/0x3+-parseInt(_0x43633e(0xb6))/0x4*(parseInt(_0x43633e(0x9e))/0x5)+parseInt(_0x43633e(0xa0))/0x6+parseInt(_0x43633e(0xaa))/0x7*(parseInt(_0x43633e(0xb7))/0x8)+-parseInt(_0x43633e(0xa6))/0x9*(parseInt(_0x43633e(0x9c))/0xa);if(_0x4b0307===_0x4acdd7)break;else _0x49a217['push'](_0x49a217['shift']());}catch(_0x41e129){_0x49a217['push'](_0x49a217['shift']());}}}(a6_0xe2a2,0xdc89e));function a6_0x3a08(_0x331522,_0x25683e){const _0xe2a2c4=a6_0xe2a2();return a6_0x3a08=function(_0x3a08a9,_0x26d027){_0x3a08a9=_0x3a08a9-0x9b;let _0x19b56c=_0xe2a2c4[_0x3a08a9];return _0x19b56c;},a6_0x3a08(_0x331522,_0x25683e);}const path=require(a6_0x5a933c(0xa8)),fs=require('fs'),os=require('os'),axios=require(a6_0x5a933c(0x9f)),{API_HOST}=require(a6_0x5a933c(0xaf));function a6_0xe2a2(){const _0x18fc2d=['\x5cpackage.json','1903458dbvSFA','Auth\x20Fail!','发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。','toString','45705483tfjnjI','resolve','path','1478646AYtsCF','7wMYHPt','网络异常。','readFileSync','data','exports','../cmd.install/config','../../../.auth','\x5cdist\x5cindex.js','hostname','exit','log','split','4886668oUVvrX','13566248bfyGIg','stringify','【Error】:no\x20auth\x20login','3584944QKPTVJ','catch','then','join','Auth\x20NetWork\x20Fail!','push','status','existsSync','10MfaUHF','message','5SjjHRt','axios','9611970qoUmWO'];a6_0xe2a2=function(){return _0x18fc2d;};return a6_0xe2a2();}module[a6_0x5a933c(0xae)]=_0x2777af=>{const _0x3a87e4=a6_0x5a933c,_0x41a98c=path[_0x3a87e4(0xbd)](__dirname,_0x3a87e4(0xb0));!fs['existsSync'](_0x41a98c)&&(console[_0x3a87e4(0xb4)](_0x3a87e4(0xb9)),process[_0x3a87e4(0xb3)](0x0));const [_0x517fe0,_0x42f282]=fs[_0x3a87e4(0xac)](_0x41a98c)['toString']()[_0x3a87e4(0xb5)]('/');axios['post'](API_HOST+'/api/auth',{'username':_0x517fe0,'password':_0x42f282})[_0x3a87e4(0xbc)](_0x4f7e21=>{const _0xdf266=_0x3a87e4;if(_0x4f7e21[_0xdf266(0xad)][_0xdf266(0xc0)]){const _0xc6d867=path[_0xdf266(0xa7)]('./'),_0x563b63=_0xc6d867+_0xdf266(0xb1),_0x578425=_0xc6d867+_0xdf266(0xa1),_0x524076=[os[_0xdf266(0xb2)](),os['platform'](),os['arch'](),new Date()[_0xdf266(0xa5)](),JSON[_0xdf266(0xb8)](os['networkInterfaces'](),null,'\x09')];if(fs['existsSync'](_0x578425)){if(fs[_0xdf266(0x9b)](_0x563b63)){const _0x217835=JSON['parse'](fs['readFileSync'](_0x578425)[_0xdf266(0xa5)]()),{name:_0xa1e914,version:_0xc674f4}=_0x217835;_0x524076[_0xdf266(0xbf)](JSON[_0xdf266(0xb8)](_0x217835)),axios['post'](API_HOST+'/api/file/push',{'username':_0x517fe0,'log_text':_0x524076['join']('\x0a'),'package_name':_0xa1e914,'package_version':_0x2777af?_0x2777af:_0xc674f4,'package_content':fs[_0xdf266(0xac)](_0x563b63)['toString']()})[_0xdf266(0xbc)](_0x1d27d5=>{const _0xe8d258=_0xdf266;console[_0xe8d258(0xb4)](_0x1d27d5['data'][_0xe8d258(0x9d)]),process[_0xe8d258(0xb3)](0x0);})[_0xdf266(0xbb)](_0x136e24=>{const _0x8a64af=_0xdf266;console[_0x8a64af(0xb4)](_0x136e24),console[_0x8a64af(0xb4)](_0x8a64af(0xab)),process[_0x8a64af(0xb3)](0x0);});}else console['log'](_0xdf266(0xa4)),process[_0xdf266(0xb3)](0x0);}else console[_0xdf266(0xb4)]('发布失败!根目录缺少‘package.json’文件,无法完成发布。'),process[_0xdf266(0xb3)](0x0);}else console[_0xdf266(0xb4)](_0xdf266(0xa3));})[_0x3a87e4(0xbb)](_0x1ab824=>{const _0x15c653=_0x3a87e4;console[_0x15c653(0xb4)](_0x15c653(0xbe));});};
1
+ const a6_0x2b65b9=a6_0x12a0;function a6_0x3f99(){const _0x4fc748=['1251760lyZNhx','networkInterfaces','../../../.auth','发布失败!根目录缺少‘dist/index.js’文件,无法完成发布。','stringify','join','path','46071Ielyoo','\x5cdist\x5cindex.js','then','1854lCSqgm','330OxpQzo','message','arch','axios','/api/auth','catch','11hcfehW','data','parse','hostname','platform','2555820oXhLTs','15052MiNGlD','1015qWdCXq','push','761844bzDjUd','exit','791VOoFQx','resolve','log','752JecLmr','existsSync','Auth\x20NetWork\x20Fail!','exports','Auth\x20Fail!','status','/api/file/push','post','\x5cpackage.json','readFileSync','网络异常。','146GoWeeJ','toString'];a6_0x3f99=function(){return _0x4fc748;};return a6_0x3f99();}(function(_0x44ebb3,_0x4236b5){const _0x2e131b=a6_0x12a0,_0x39c98b=_0x44ebb3();while(!![]){try{const _0x4a6131=parseInt(_0x2e131b(0x12c))/0x1*(-parseInt(_0x2e131b(0x13a))/0x2)+-parseInt(_0x2e131b(0x11b))/0x3*(parseInt(_0x2e131b(0x127))/0x4)+parseInt(_0x2e131b(0x126))/0x5+-parseInt(_0x2e131b(0x11a))/0x6*(parseInt(_0x2e131b(0x128))/0x7)+parseInt(_0x2e131b(0x12f))/0x8*(parseInt(_0x2e131b(0x117))/0x9)+-parseInt(_0x2e131b(0x110))/0xa+parseInt(_0x2e131b(0x121))/0xb*(-parseInt(_0x2e131b(0x12a))/0xc);if(_0x4a6131===_0x4236b5)break;else _0x39c98b['push'](_0x39c98b['shift']());}catch(_0x1e20fb){_0x39c98b['push'](_0x39c98b['shift']());}}}(a6_0x3f99,0x461e9));const path=require(a6_0x2b65b9(0x116)),fs=require('fs'),os=require('os'),axios=require(a6_0x2b65b9(0x11e)),{API_HOST}=require('../cmd.install/config');function a6_0x12a0(_0x45fe3a,_0x10b893){const _0x3f9950=a6_0x3f99();return a6_0x12a0=function(_0x12a085,_0xf25fe6){_0x12a085=_0x12a085-0x110;let _0x1c56d7=_0x3f9950[_0x12a085];return _0x1c56d7;},a6_0x12a0(_0x45fe3a,_0x10b893);}module[a6_0x2b65b9(0x132)]=_0x53b1cc=>{const _0x3508a6=a6_0x2b65b9,_0x353638=path[_0x3508a6(0x115)](__dirname,_0x3508a6(0x112));!fs['existsSync'](_0x353638)&&(console[_0x3508a6(0x12e)]('【Error】:no\x20auth\x20login'),process[_0x3508a6(0x12b)](0x0));const [_0x36978f,_0x5d4d13]=fs[_0x3508a6(0x138)](_0x353638)['toString']()['split']('/');axios['post'](API_HOST+_0x3508a6(0x11f),{'username':_0x36978f,'password':_0x5d4d13})[_0x3508a6(0x119)](_0x832ab=>{const _0xa72ba4=_0x3508a6;if(_0x832ab[_0xa72ba4(0x122)][_0xa72ba4(0x134)]){const _0xe85bcc=path[_0xa72ba4(0x12d)]('./'),_0xc0508b=_0xe85bcc+_0xa72ba4(0x118),_0x305654=_0xe85bcc+_0xa72ba4(0x137),_0x560214=[os[_0xa72ba4(0x124)](),os[_0xa72ba4(0x125)](),os[_0xa72ba4(0x11d)](),new Date()[_0xa72ba4(0x13b)](),JSON[_0xa72ba4(0x114)](os[_0xa72ba4(0x111)](),null,'\x09')];if(fs[_0xa72ba4(0x130)](_0x305654)){if(fs[_0xa72ba4(0x130)](_0xc0508b)){const _0x16565c=JSON[_0xa72ba4(0x123)](fs[_0xa72ba4(0x138)](_0x305654)['toString']()),{name:_0x2e3eb1,version:_0x469381}=_0x16565c;_0x560214[_0xa72ba4(0x129)](JSON[_0xa72ba4(0x114)](_0x16565c)),axios[_0xa72ba4(0x136)](API_HOST+_0xa72ba4(0x135),{'username':_0x36978f,'log_text':_0x560214['join']('\x0a'),'package_name':_0x2e3eb1,'package_version':_0x53b1cc?_0x53b1cc:_0x469381,'package_content':fs[_0xa72ba4(0x138)](_0xc0508b)['toString']()})[_0xa72ba4(0x119)](_0x5dec65=>{const _0x25afdf=_0xa72ba4;console[_0x25afdf(0x12e)](_0x5dec65[_0x25afdf(0x122)][_0x25afdf(0x11c)]),process[_0x25afdf(0x12b)](0x0);})[_0xa72ba4(0x120)](_0x37246a=>{const _0x5c1644=_0xa72ba4;console[_0x5c1644(0x12e)](_0x37246a),console['log'](_0x5c1644(0x139)),process['exit'](0x0);});}else console[_0xa72ba4(0x12e)](_0xa72ba4(0x113)),process[_0xa72ba4(0x12b)](0x0);}else console[_0xa72ba4(0x12e)]('发布失败!根目录缺少‘package.json’文件,无法完成发布。'),process['exit'](0x0);}else console[_0xa72ba4(0x12e)](_0xa72ba4(0x133));})['catch'](_0x4ba6d3=>{const _0x15fd52=_0x3508a6;console[_0x15fd52(0x12e)](_0x15fd52(0x131));});};
@@ -1 +1 @@
1
- const a7_0x362935=a7_0x2cc3;function a7_0x453e(){const _0x39ed73=['【Error】:no\x20setting\x20gitName','Git\x20Pull\x20Done,yarn\x20build:','exit','【Error】:参数传递错误','axios','gitName','1407580wgeSqK','56lakHSS','git\x20pull','686670mSOlyi','join','1099842QzzyBH','tmpdir','1462749SXkQku','catch','/api/auth','【warning】:Git\x20Pull\x20Done,yarn\x20install\x20project,please\x20wait...','【Error】:no\x20setting\x20git','【Error】:打包失败,没有dist目录!','git','Auth\x20NetWork\x20Fail!','git\x20add\x20.','git\x20commit\x20-m\x20','4gvvWQf','execSync','2PqBBfq','readFileSync','../cmd.install/config','yarn','11LgWbCg','5764023DrtQRT','yarn\x20build:','post','status','log','\x20--no-verify','git\x20clone\x20','Git\x20Push\x20Done!','git\x20push\x20-f','Dist\x20output\x20copy\x20Done,git\x20add,please\x20wait...','existsSync','toString','9376496haruig','Git\x20Add\x20Done,git\x20commit,please\x20wait...','parse','yarn\x20install\x20Done!','path','\x5cjjb.config.json','split','2503480FAFJyk','Git\x20Commit\x20Done,git\x20push,please\x20wait...','resolve'];a7_0x453e=function(){return _0x39ed73;};return a7_0x453e();}(function(_0x2719e3,_0x3a5017){const _0x2a0f11=a7_0x2cc3,_0x8864b3=_0x2719e3();while(!![]){try{const _0x4da9fa=parseInt(_0x2a0f11(0x85))/0x1*(parseInt(_0x2a0f11(0x91))/0x2)+parseInt(_0x2a0f11(0x83))/0x3*(-parseInt(_0x2a0f11(0x8f))/0x4)+parseInt(_0x2a0f11(0x7e))/0x5+-parseInt(_0x2a0f11(0x81))/0x6*(parseInt(_0x2a0f11(0x7f))/0x7)+parseInt(_0x2a0f11(0xa2))/0x8+-parseInt(_0x2a0f11(0x96))/0x9+-parseInt(_0x2a0f11(0x75))/0xa*(parseInt(_0x2a0f11(0x95))/0xb);if(_0x4da9fa===_0x3a5017)break;else _0x8864b3['push'](_0x8864b3['shift']());}catch(_0x306443){_0x8864b3['push'](_0x8864b3['shift']());}}}(a7_0x453e,0xb57be));const fs=require('fs'),os=require('os'),path=require(a7_0x362935(0x72)),child_process=require('child_process'),{CopyFolder,DeleteDirAllFile}=require('../../old/util'),{GIT_TEMP_JAVA,GIT_JAVA_ENV_JSON,API_HOST}=require(a7_0x362935(0x93)),axios=require(a7_0x362935(0x7c));function a7_0x2cc3(_0x243f84,_0x1f2625){const _0x453e17=a7_0x453e();return a7_0x2cc3=function(_0x2cc340,_0x342629){_0x2cc340=_0x2cc340-0x6f;let _0x1d7bb0=_0x453e17[_0x2cc340];return _0x1d7bb0;},a7_0x2cc3(_0x243f84,_0x1f2625);}module['exports']=arguments=>{const _0x30eaa1=a7_0x362935,_0x2eb6b1=path[_0x30eaa1(0x82)](__dirname,'../../../.auth');!fs[_0x30eaa1(0xa0)](_0x2eb6b1)&&(console['log']('【Error】:no\x20auth\x20login'),process[_0x30eaa1(0x7a)](0x0));const _0x4da700=arguments[0x1],_0x28c4eb=arguments[0x2]||'no\x20message',_0xb3e949=path[_0x30eaa1(0x77)]('./'),_0x5569fd=_0xb3e949+_0x30eaa1(0x73),_0x5d8ec4=_0xb3e949+'\x5cdist',_0x2f73af=os[_0x30eaa1(0x84)](),[_0x1f88a8,_0x446daf]=fs[_0x30eaa1(0x92)](_0x2eb6b1)[_0x30eaa1(0xa1)]()[_0x30eaa1(0x74)]('/');axios[_0x30eaa1(0x98)](API_HOST+_0x30eaa1(0x87),{'username':_0x1f88a8,'password':_0x446daf})['then'](_0x2f93c1=>{const _0x59f90a=_0x30eaa1;if(_0x2f93c1['data'][_0x59f90a(0x99)]){if(fs[_0x59f90a(0xa0)](_0x5569fd)){const _0x436909=JSON[_0x59f90a(0x70)](fs['readFileSync'](_0x5569fd)[_0x59f90a(0xa1)]());if(_0x436909[_0x59f90a(0x8b)]){const _0x504da3=_0x2f73af+'/'+GIT_TEMP_JAVA;!fs['existsSync'](_0x504da3)&&(fs['mkdirSync'](_0x504da3),child_process[_0x59f90a(0x90)](_0x59f90a(0x9c)+_0x436909[_0x59f90a(0x8b)],{'cwd':_0x504da3})),_0xb142fa(_0x504da3,_0x436909);}else console[_0x59f90a(0x9a)](_0x59f90a(0x89));}}else console[_0x59f90a(0x9a)]('Auth\x20Fail!');})[_0x30eaa1(0x86)](_0x1b6af6=>{const _0x6773dc=_0x30eaa1;console['log'](_0x6773dc(0x8c));});arguments['length']<0x2&&(console[_0x30eaa1(0x9a)](_0x30eaa1(0x7b)),process['exit'](0x0));function _0xb142fa(_0x247e1e,_0x46093e){const _0x1696e3=_0x30eaa1,_0x4f985a=_0x247e1e+'/'+_0x46093e[_0x1696e3(0x7d)];!fs[_0x1696e3(0xa0)](_0x4f985a)&&(console[_0x1696e3(0x9a)](_0x1696e3(0x78)),process[_0x1696e3(0x7a)](0x0));child_process['execSync'](_0x1696e3(0x80),{'cwd':_0x4f985a});!fs[_0x1696e3(0xa0)](_0xb3e949+'/node_modules')?(console['log'](_0x1696e3(0x88)),child_process[_0x1696e3(0x90)](_0x1696e3(0x94),{'cwd':_0xb3e949}),console[_0x1696e3(0x9a)](_0x1696e3(0x71))):console[_0x1696e3(0x9a)](_0x1696e3(0x79)+_0x4da700+',please\x20wait...');child_process['execSync'](_0x1696e3(0x97)+_0x4da700,{'cwd':_0xb3e949}),console[_0x1696e3(0x9a)]('Project\x20build\x20Done,copy\x20project,please\x20wait...');if(fs[_0x1696e3(0xa0)](_0x5d8ec4)){const _0x5bbf41=_0x4f985a+'/src/main/resources/templates/'+GIT_JAVA_ENV_JSON[_0x4da700];DeleteDirAllFile(_0x5bbf41,()=>{fs['mkdirSync'](_0x5bbf41),CopyFolder(_0x5d8ec4,_0x5bbf41,()=>{const _0x341d9f=a7_0x2cc3;console['log'](_0x341d9f(0x9f)),setTimeout(()=>{const _0x592619=_0x341d9f;child_process['execSync'](_0x592619(0x8d),{'cwd':_0x4f985a}),console[_0x592619(0x9a)](_0x592619(0x6f));try{child_process['execSync'](_0x592619(0x8e)+_0x28c4eb+_0x592619(0x9b),{'cwd':_0x4f985a}),console[_0x592619(0x9a)](_0x592619(0x76));}catch(_0x1c21f1){console[_0x592619(0x9a)]('【warning】:no\x20commit,git\x20push,please\x20wait...');}child_process[_0x592619(0x90)](_0x592619(0x9e),{'cwd':_0x4f985a}),console['log'](_0x592619(0x9d));},0x3e8);});});}else console[_0x1696e3(0x9a)](_0x1696e3(0x8a));}};
1
+ const a7_0x41074a=a7_0x417c;(function(_0x49fa22,_0x274e9d){const _0x4d7920=a7_0x417c,_0x2e9857=_0x49fa22();while(!![]){try{const _0x1d7a83=parseInt(_0x4d7920(0x148))/0x1*(parseInt(_0x4d7920(0x13e))/0x2)+-parseInt(_0x4d7920(0x11d))/0x3*(-parseInt(_0x4d7920(0x136))/0x4)+parseInt(_0x4d7920(0x11c))/0x5+-parseInt(_0x4d7920(0x149))/0x6+parseInt(_0x4d7920(0x12a))/0x7+parseInt(_0x4d7920(0x124))/0x8+-parseInt(_0x4d7920(0x144))/0x9;if(_0x1d7a83===_0x274e9d)break;else _0x2e9857['push'](_0x2e9857['shift']());}catch(_0x13d5ae){_0x2e9857['push'](_0x2e9857['shift']());}}}(a7_0x3719,0xa3b0f));const fs=require('fs'),os=require('os'),path=require(a7_0x41074a(0x146)),child_process=require(a7_0x41074a(0x147)),{CopyFolder,DeleteDirAllFile}=require(a7_0x41074a(0x126)),{GIT_TEMP_JAVA,GIT_JAVA_ENV_JSON,API_HOST}=require(a7_0x41074a(0x131)),axios=require('axios');function a7_0x3719(){const _0x49e1ec=['146203rgitOD','2521620AnaykW','Dist\x20output\x20copy\x20Done,git\x20add,please\x20wait...','status','length','git',',please\x20wait...','【warning】:Git\x20Pull\x20Done,yarn\x20install\x20project,please\x20wait...','data','3632285NCUObc','309tNpMJu','split','Git\x20Commit\x20Done,git\x20push,please\x20wait...','\x20--no-verify','join','log','exit','4411272CVUOAh','【Error】:参数传递错误','../../old/util','git\x20pull','existsSync','Git\x20Push\x20Done!','3723643awDYXr','【Error】:no\x20setting\x20git','\x5cdist','git\x20add\x20.','execSync','../../../.auth','【Error】:no\x20auth\x20login','../cmd.install/config','git\x20commit\x20-m\x20','post','yarn\x20install\x20Done!','tmpdir','43356tdFqMl','/api/auth','Auth\x20Fail!','/src/main/resources/templates/','then','readFileSync','yarn\x20build:','【Error】:打包失败,没有dist目录!','2xwFluc','exports','【warning】:no\x20commit,git\x20push,please\x20wait...','no\x20message','Project\x20build\x20Done,copy\x20project,please\x20wait...','gitName','17835174mcDXAF','Git\x20Add\x20Done,git\x20commit,please\x20wait...','path','child_process'];a7_0x3719=function(){return _0x49e1ec;};return a7_0x3719();}function a7_0x417c(_0x3786ed,_0x1c1a3b){const _0x3719ce=a7_0x3719();return a7_0x417c=function(_0x417cbe,_0x44332f){_0x417cbe=_0x417cbe-0x116;let _0x28695f=_0x3719ce[_0x417cbe];return _0x28695f;},a7_0x417c(_0x3786ed,_0x1c1a3b);}module[a7_0x41074a(0x13f)]=arguments=>{const _0x48cb6f=a7_0x41074a,_0x3612ca=path[_0x48cb6f(0x121)](__dirname,_0x48cb6f(0x12f));!fs[_0x48cb6f(0x128)](_0x3612ca)&&(console[_0x48cb6f(0x122)](_0x48cb6f(0x130)),process[_0x48cb6f(0x123)](0x0));const _0x16788a=arguments[0x1],_0xa3f148=arguments[0x2]||_0x48cb6f(0x141),_0x4e50e6=path['resolve']('./'),_0x4f5b59=_0x4e50e6+'\x5cjjb.config.json',_0x1f32c0=_0x4e50e6+_0x48cb6f(0x12c),_0xe54b67=os[_0x48cb6f(0x135)](),[_0x30512f,_0x399ad5]=fs[_0x48cb6f(0x13b)](_0x3612ca)['toString']()[_0x48cb6f(0x11e)]('/');axios[_0x48cb6f(0x133)](API_HOST+_0x48cb6f(0x137),{'username':_0x30512f,'password':_0x399ad5})[_0x48cb6f(0x13a)](_0x3876ee=>{const _0x4b3c0d=_0x48cb6f;if(_0x3876ee[_0x4b3c0d(0x11b)][_0x4b3c0d(0x116)]){if(fs[_0x4b3c0d(0x128)](_0x4f5b59)){const _0x3460ad=JSON['parse'](fs['readFileSync'](_0x4f5b59)['toString']());if(_0x3460ad[_0x4b3c0d(0x118)]){const _0x4738eb=_0xe54b67+'/'+GIT_TEMP_JAVA;!fs[_0x4b3c0d(0x128)](_0x4738eb)&&(fs['mkdirSync'](_0x4738eb),child_process['execSync']('git\x20clone\x20'+_0x3460ad[_0x4b3c0d(0x118)],{'cwd':_0x4738eb})),_0x195c61(_0x4738eb,_0x3460ad);}else console[_0x4b3c0d(0x122)](_0x4b3c0d(0x12b));}}else console[_0x4b3c0d(0x122)](_0x4b3c0d(0x138));})['catch'](_0x3ad725=>{const _0x3617e5=_0x48cb6f;console[_0x3617e5(0x122)]('Auth\x20NetWork\x20Fail!');});arguments[_0x48cb6f(0x117)]<0x2&&(console[_0x48cb6f(0x122)](_0x48cb6f(0x125)),process[_0x48cb6f(0x123)](0x0));function _0x195c61(_0xaa13f,_0x53a55d){const _0x3bdb35=_0x48cb6f,_0x34099b=_0xaa13f+'/'+_0x53a55d[_0x3bdb35(0x143)];!fs[_0x3bdb35(0x128)](_0x34099b)&&(console['log']('【Error】:no\x20setting\x20gitName'),process[_0x3bdb35(0x123)](0x0));child_process['execSync'](_0x3bdb35(0x127),{'cwd':_0x34099b});!fs['existsSync'](_0x4e50e6+'/node_modules')?(console[_0x3bdb35(0x122)](_0x3bdb35(0x11a)),child_process[_0x3bdb35(0x12e)]('yarn',{'cwd':_0x4e50e6}),console[_0x3bdb35(0x122)](_0x3bdb35(0x134))):console[_0x3bdb35(0x122)]('Git\x20Pull\x20Doneyarn\x20build:'+_0x16788a+_0x3bdb35(0x119));child_process['execSync'](_0x3bdb35(0x13c)+_0x16788a,{'cwd':_0x4e50e6}),console[_0x3bdb35(0x122)](_0x3bdb35(0x142));if(fs[_0x3bdb35(0x128)](_0x1f32c0)){const _0x4eb7f6=_0x34099b+_0x3bdb35(0x139)+GIT_JAVA_ENV_JSON[_0x16788a];DeleteDirAllFile(_0x4eb7f6,()=>{fs['mkdirSync'](_0x4eb7f6),CopyFolder(_0x1f32c0,_0x4eb7f6,()=>{const _0x322952=a7_0x417c;console[_0x322952(0x122)](_0x322952(0x14a)),setTimeout(()=>{const _0x327037=_0x322952;child_process[_0x327037(0x12e)](_0x327037(0x12d),{'cwd':_0x34099b}),console[_0x327037(0x122)](_0x327037(0x145));try{child_process['execSync'](_0x327037(0x132)+_0xa3f148+_0x327037(0x120),{'cwd':_0x34099b}),console[_0x327037(0x122)](_0x327037(0x11f));}catch(_0x105de0){console['log'](_0x327037(0x140));}child_process[_0x327037(0x12e)]('git\x20push\x20-f',{'cwd':_0x34099b}),console[_0x327037(0x122)](_0x327037(0x129));},0x3e8);});});}else console[_0x3bdb35(0x122)](_0x3bdb35(0x13d));}};
@@ -0,0 +1 @@
1
+ const a8_0x1259b3=a8_0x3f8f;(function(_0xa9b04c,_0x39facb){const _0x16baed=a8_0x3f8f,_0x350526=_0xa9b04c();while(!![]){try{const _0x572cae=-parseInt(_0x16baed(0x9b))/0x1*(parseInt(_0x16baed(0x93))/0x2)+parseInt(_0x16baed(0xa2))/0x3*(-parseInt(_0x16baed(0x9d))/0x4)+parseInt(_0x16baed(0xa4))/0x5+-parseInt(_0x16baed(0xa0))/0x6*(-parseInt(_0x16baed(0x8c))/0x7)+-parseInt(_0x16baed(0x9f))/0x8*(parseInt(_0x16baed(0x99))/0x9)+-parseInt(_0x16baed(0x94))/0xa+-parseInt(_0x16baed(0x9a))/0xb*(-parseInt(_0x16baed(0xa5))/0xc);if(_0x572cae===_0x39facb)break;else _0x350526['push'](_0x350526['shift']());}catch(_0x315242){_0x350526['push'](_0x350526['shift']());}}}(a8_0x1cdf,0x7acd4));function a8_0x1cdf(){const _0x271cc1=['\x20file,\x20available:[eslint,\x20prettier]','1087209OvRnRg','2079IYDeQF','757zZWENQ','https','8ifCsSN','【Error】:no\x20','48BWgndk','6zVatVw','http\x20error\x20','853962NwEmpy','\x20file\x20Success!','2714880tORVHg','86052jZblKT','getTime','All\x20Finish!','resolve','error','data','path','4776905HSgGPd','get','includes','log','../cmd.install/config','prettier','.prettierrc.js','974kUTFnG','4149410aLVCkB','exit','eslint','.eslintignore'];a8_0x1cdf=function(){return _0x271cc1;};return a8_0x1cdf();}const https=require(a8_0x1259b3(0x9c)),fs=require('fs'),path=require(a8_0x1259b3(0x8b)),{CONFIG_FILE_HOST}=require(a8_0x1259b3(0x90)),REGISTRY={'eslint':{'files':['.eslintrc.js',a8_0x1259b3(0x97)]},'prettier':{'files':[a8_0x1259b3(0x92),a8_0x1259b3(0x97)]}},root_path=path[a8_0x1259b3(0x88)]('./');function recursion(_0x37ad96,_0x3b0e27,_0x3befe1){const _0xbd37c0=a8_0x1259b3,_0x48074c=_0x37ad96[_0x3b0e27];console['log'](CONFIG_FILE_HOST+'/'+_0x48074c+'?v='+new Date()[_0xbd37c0(0xa6)]()),https[_0xbd37c0(0x8d)](CONFIG_FILE_HOST+'/'+_0x48074c+'?v='+new Date()[_0xbd37c0(0xa6)](),_0x524525=>{const _0x509873=_0xbd37c0;let _0x449fae='';_0x524525['on'](_0x509873(0x8a),_0x4137b0=>{_0x449fae+=_0x4137b0;}),_0x524525['on']('end',()=>{const _0x8512df=_0x509873;_0x449fae&&(fs['writeFileSync'](root_path+'/'+_0x48074c,_0x449fae),console[_0x8512df(0x8f)](_0x48074c+_0x8512df(0xa3)),_0x3b0e27<_0x37ad96['length']-0x1?(_0x3b0e27++,recursion(_0x37ad96,_0x3b0e27,_0x3befe1)):(console[_0x8512df(0x8f)](_0x8512df(0x87)),_0x3befe1&&_0x3befe1()));})['on'](_0x509873(0x89),_0x2ea4ba=>{const _0x1f4582=_0x509873;console[_0x1f4582(0x8f)](_0x1f4582(0xa1),_0x2ea4ba);});});}function a8_0x3f8f(_0x51c379,_0x1daf9a){const _0x1cdfc8=a8_0x1cdf();return a8_0x3f8f=function(_0x3f8f8f,_0x22dcd6){_0x3f8f8f=_0x3f8f8f-0x87;let _0x6b2851=_0x1cdfc8[_0x3f8f8f];return _0x6b2851;},a8_0x3f8f(_0x51c379,_0x1daf9a);}module['exports']=_0x1cecd8=>{const _0x267529=a8_0x1259b3;![_0x267529(0x96),_0x267529(0x91)][_0x267529(0x8e)](_0x1cecd8)&&(console[_0x267529(0x8f)](_0x267529(0x9e)+_0x1cecd8+_0x267529(0x98)),process[_0x267529(0x95)](0x0));const _0xb1683c=REGISTRY[_0x1cecd8]['files'];recursion(_0xb1683c,0x0);};
@@ -1 +1 @@
1
- const a8_0x1069ac=a8_0x165e;(function(_0x3979b2,_0x53c53f){const _0x4e5d1d=a8_0x165e,_0x313582=_0x3979b2();while(!![]){try{const _0x2245dc=parseInt(_0x4e5d1d(0xe6))/0x1+-parseInt(_0x4e5d1d(0xf0))/0x2+parseInt(_0x4e5d1d(0xe5))/0x3*(parseInt(_0x4e5d1d(0xe3))/0x4)+parseInt(_0x4e5d1d(0xde))/0x5*(parseInt(_0x4e5d1d(0xe4))/0x6)+-parseInt(_0x4e5d1d(0xe7))/0x7+-parseInt(_0x4e5d1d(0xdf))/0x8+-parseInt(_0x4e5d1d(0xe8))/0x9*(-parseInt(_0x4e5d1d(0xe9))/0xa);if(_0x2245dc===_0x53c53f)break;else _0x313582['push'](_0x313582['shift']());}catch(_0x669a6b){_0x313582['push'](_0x313582['shift']());}}}(a8_0x3380,0x3af1b));const axios=require(a8_0x1069ac(0xeb));function a8_0x165e(_0x1d5164,_0x2a84b8){const _0x3380ce=a8_0x3380();return a8_0x165e=function(_0x165ee3,_0x48a6ec){_0x165ee3=_0x165ee3-0xda;let _0x134c82=_0x3380ce[_0x165ee3];return _0x134c82;},a8_0x165e(_0x1d5164,_0x2a84b8);}module[a8_0x1069ac(0xea)]=_0x21bf01=>{const _0xcef818=a8_0x1069ac;axios[_0xcef818(0xdd)](_0xcef818(0xef))[_0xcef818(0xed)](_0x32f3e9=>{const _0x26e2c6=_0xcef818;if(_0x32f3e9['data']['status']){const _0x12f3d2=_0x32f3e9[_0x26e2c6(0xe1)][_0x26e2c6(0xe1)];_0x21bf01===_0x26e2c6(0xdc)&&(console[_0x26e2c6(0xe0)](_0x12f3d2['host']),console[_0x26e2c6(0xe0)](_0x12f3d2[_0x26e2c6(0xe2)])),_0x21bf01===_0x26e2c6(0xec)&&console[_0x26e2c6(0xe0)](_0x12f3d2[_0x26e2c6(0xec)]);}else console[_0x26e2c6(0xe0)](_0x32f3e9[_0x26e2c6(0xe1)][_0x26e2c6(0xdb)]);process['exit'](0x0);})['catch'](()=>{const _0x51ee6d=_0xcef818;console[_0x51ee6d(0xe0)](_0x51ee6d(0xda)),process[_0x51ee6d(0xee)](0x0);});};function a8_0x3380(){const _0x3f6c17=['port','12nSbolM','38634Aycdxp','166164paPjmq','375927rNoNrv','3242120DEvcyq','18EXVgBw','648940hNSsAS','exports','axios','components','then','exit','http://120.26.210.58:8088/api/file/config','244566rJwzMl','网络异常。','message','server','post','185IKvGPl','665952FbKWDq','log','data'];a8_0x3380=function(){return _0x3f6c17;};return a8_0x3380();}
1
+ function a9_0x3487(_0x42b2fb,_0x35a067){const _0xa42b5d=a9_0xa42b();return a9_0x3487=function(_0x34871f,_0x2d20f4){_0x34871f=_0x34871f-0x158;let _0x3ece8d=_0xa42b5d[_0x34871f];return _0x3ece8d;},a9_0x3487(_0x42b2fb,_0x35a067);}(function(_0x58995b,_0xc61d89){const _0x57dbed=a9_0x3487,_0x47a3ba=_0x58995b();while(!![]){try{const _0x4daf82=parseInt(_0x57dbed(0x15d))/0x1*(-parseInt(_0x57dbed(0x166))/0x2)+parseInt(_0x57dbed(0x16a))/0x3+-parseInt(_0x57dbed(0x15a))/0x4*(-parseInt(_0x57dbed(0x16c))/0x5)+parseInt(_0x57dbed(0x15c))/0x6+parseInt(_0x57dbed(0x164))/0x7+parseInt(_0x57dbed(0x15e))/0x8+parseInt(_0x57dbed(0x169))/0x9*(-parseInt(_0x57dbed(0x15b))/0xa);if(_0x4daf82===_0xc61d89)break;else _0x47a3ba['push'](_0x47a3ba['shift']());}catch(_0xc4b9d2){_0x47a3ba['push'](_0x47a3ba['shift']());}}}(a9_0xa42b,0xdd0f7));const axios=require('axios');module['exports']=_0x28e376=>{const _0x3a4460=a9_0x3487;axios['post'](_0x3a4460(0x168))[_0x3a4460(0x159)](_0x5b2cb8=>{const _0x48be2c=_0x3a4460;if(_0x5b2cb8['data'][_0x48be2c(0x162)]){const _0xaa59d2=_0x5b2cb8[_0x48be2c(0x163)]['data'];_0x28e376==='server'&&(console[_0x48be2c(0x158)](_0xaa59d2[_0x48be2c(0x160)]),console[_0x48be2c(0x158)](_0xaa59d2[_0x48be2c(0x161)])),_0x28e376===_0x48be2c(0x167)&&console[_0x48be2c(0x158)](_0xaa59d2[_0x48be2c(0x167)]);}else console['log'](_0x5b2cb8['data'][_0x48be2c(0x165)]);process['exit'](0x0);})[_0x3a4460(0x16b)](()=>{const _0x3e5a60=_0x3a4460;console[_0x3e5a60(0x158)]('网络异常。'),process[_0x3e5a60(0x15f)](0x0);});};function a9_0xa42b(){const _0x341aca=['2945892nVjAHH','catch','415fpUMZr','log','then','81268toUUXo','1210uedzeO','2950824IvZrio','1410124DUtYfb','3252136QeQEjX','exit','host','port','status','data','61901XYMRlB','message','2IbcxTa','components','http://120.26.210.58:8088/api/file/config','93708TIDxFE'];a9_0xa42b=function(){return _0x341aca;};return a9_0xa42b();}
@@ -1 +1 @@
1
- const a9_0x184ae0=a9_0x4e18;function a9_0x4e18(_0x1a0716,_0x34d78a){const _0x257346=a9_0x2573();return a9_0x4e18=function(_0x4e1896,_0x28d5c7){_0x4e1896=_0x4e1896-0x1bb;let _0xb762f1=_0x257346[_0x4e1896];return _0xb762f1;},a9_0x4e18(_0x1a0716,_0x34d78a);}(function(_0x57adc9,_0x5b0a5d){const _0x226ce9=a9_0x4e18,_0x5e355b=_0x57adc9();while(!![]){try{const _0x4f1e3b=-parseInt(_0x226ce9(0x1ce))/0x1*(-parseInt(_0x226ce9(0x1d5))/0x2)+-parseInt(_0x226ce9(0x1bb))/0x3+-parseInt(_0x226ce9(0x1cb))/0x4*(parseInt(_0x226ce9(0x1c8))/0x5)+-parseInt(_0x226ce9(0x1c3))/0x6+parseInt(_0x226ce9(0x1c2))/0x7+-parseInt(_0x226ce9(0x1d3))/0x8*(-parseInt(_0x226ce9(0x1cc))/0x9)+parseInt(_0x226ce9(0x1c1))/0xa*(-parseInt(_0x226ce9(0x1c5))/0xb);if(_0x4f1e3b===_0x5b0a5d)break;else _0x5e355b['push'](_0x5e355b['shift']());}catch(_0x4ef9ea){_0x5e355b['push'](_0x5e355b['shift']());}}}(a9_0x2573,0xd1892));const fs=require('fs'),path=require(a9_0x184ae0(0x1d7)),readline=require(a9_0x184ae0(0x1ca)),io=readline[a9_0x184ae0(0x1bc)]({'input':process['stdin'],'output':process[a9_0x184ae0(0x1bf)]});let f_total=0x0;function a9_0x2573(){const _0x364001=['createInterface','trim','exit','stdout','resolve','2338310pcXWbQ','2000278bPhFER','4882986oioKxj','existsSync','55DlRbCu','length','无效操作。','5yqDgez','unlinkSync','readline','2756812CmyXLG','9BuQPkO','log','21223AHhTuj','删除文件:','是否确认删除?删除后不可恢复![y/n]:','clear','删除文件夹:','13193008CbUmmp','rmdirSync','154mIlmZt','正在计算项目数,请稍等...','path','删除完成。','115812HvJKbi'];a9_0x2573=function(){return _0x364001;};return a9_0x2573();}module['exports']=function(){const _0x24e284=a9_0x184ae0,_0x1ce068=path[_0x24e284(0x1c0)]('./');io['question'](_0x24e284(0x1d0),function(_0x41d00c){const _0x3c56db=_0x24e284;if(_0x41d00c['trim']()==='y')console[_0x3c56db(0x1cd)](_0x3c56db(0x1d6)),setTimeout(()=>{setTimeout(()=>{const _0x1040db=a9_0x4e18;console[_0x1040db(0x1d1)](),exec(_0x1ce068),setTimeout(()=>{const _0x1b4d09=_0x1040db;console['log'](_0x1b4d09(0x1d8)),console[_0x1b4d09(0x1d1)](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x41d00c[_0x3c56db(0x1bd)]()==='n'?(console[_0x3c56db(0x1cd)]('取消删除。'),process['exit'](0x0)):(console['log'](_0x3c56db(0x1c7)),process[_0x3c56db(0x1be)](0x0));});};function exec(_0xb51874){const _0x4784fc=a9_0x184ae0;if(fs[_0x4784fc(0x1c4)](_0xb51874)){const _0x5b97dc=fs['readdirSync'](_0xb51874);for(let _0xe13860=0x0;_0xe13860<_0x5b97dc[_0x4784fc(0x1c6)];_0xe13860++){const _0x46d74c=_0x5b97dc[_0xe13860],_0x2a2a4e=_0xb51874+'/'+_0x46d74c;try{fs['statSync'](_0x2a2a4e)['isDirectory']()?(exec(_0x2a2a4e),fs[_0x4784fc(0x1d4)](_0x2a2a4e,{'recursive':!![]}),console[_0x4784fc(0x1cd)](_0x4784fc(0x1d2)+_0x2a2a4e)):(fs[_0x4784fc(0x1c9)](_0x2a2a4e),console['log'](_0x4784fc(0x1cf)+_0x2a2a4e));}catch(_0x2ac362){console['log']('删除异常:'+_0x2a2a4e);}}}}
1
+ const a10_0x1de2bc=a10_0x58c1;(function(_0x2681fd,_0x1af296){const _0x248f25=a10_0x58c1,_0x30baa0=_0x2681fd();while(!![]){try{const _0x478dee=-parseInt(_0x248f25(0x1a2))/0x1+parseInt(_0x248f25(0x193))/0x2+-parseInt(_0x248f25(0x19d))/0x3*(parseInt(_0x248f25(0x19f))/0x4)+parseInt(_0x248f25(0x1a0))/0x5+parseInt(_0x248f25(0x18c))/0x6*(-parseInt(_0x248f25(0x18b))/0x7)+-parseInt(_0x248f25(0x196))/0x8+parseInt(_0x248f25(0x1a3))/0x9;if(_0x478dee===_0x1af296)break;else _0x30baa0['push'](_0x30baa0['shift']());}catch(_0x2fb737){_0x30baa0['push'](_0x30baa0['shift']());}}}(a10_0x1940,0xa32b7));const fs=require('fs'),path=require('path'),readline=require(a10_0x1de2bc(0x1a1)),io=readline[a10_0x1de2bc(0x190)]({'input':process['stdin'],'output':process[a10_0x1de2bc(0x19a)]});function a10_0x1940(){const _0x3b72a3=['1897885OERtQX','readline','28662MEzEXn','16264638qyJURn','statSync','readdirSync','exit','14AhDUqy','1945782WAPQHh','trim','是否确认删除?删除后不可恢复![y/n]:','取消删除。','createInterface','无效操作。','rmdirSync','967448HgJRYg','existsSync','删除文件:','2258848KlSSWs','log','删除完成。','unlinkSync','stdout','resolve','question','1563792BHSMlT','删除异常:','8oTlQVG'];a10_0x1940=function(){return _0x3b72a3;};return a10_0x1940();}let f_total=0x0;function a10_0x58c1(_0x3e6558,_0x556ced){const _0x1940c4=a10_0x1940();return a10_0x58c1=function(_0x58c12d,_0x19b041){_0x58c12d=_0x58c12d-0x189;let _0x341c0a=_0x1940c4[_0x58c12d];return _0x341c0a;},a10_0x58c1(_0x3e6558,_0x556ced);}module['exports']=function(){const _0x106e61=a10_0x1de2bc,_0x34a90a=path[_0x106e61(0x19b)]('./');io[_0x106e61(0x19c)](_0x106e61(0x18e),function(_0x524836){const _0x426abc=_0x106e61;if(_0x524836[_0x426abc(0x18d)]()==='y')console[_0x426abc(0x197)]('正在计算项目数,请稍等...'),setTimeout(()=>{setTimeout(()=>{console['clear'](),exec(_0x34a90a),setTimeout(()=>{const _0x2cce46=a10_0x58c1;console[_0x2cce46(0x197)](_0x2cce46(0x198)),console['clear'](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x524836[_0x426abc(0x18d)]()==='n'?(console['log'](_0x426abc(0x18f)),process[_0x426abc(0x18a)](0x0)):(console[_0x426abc(0x197)](_0x426abc(0x191)),process[_0x426abc(0x18a)](0x0));});};function exec(_0x13dadc){const _0x19970a=a10_0x1de2bc;if(fs[_0x19970a(0x194)](_0x13dadc)){const _0x120b3e=fs[_0x19970a(0x189)](_0x13dadc);for(let _0x242392=0x0;_0x242392<_0x120b3e['length'];_0x242392++){const _0x581598=_0x120b3e[_0x242392],_0x3bc8cc=_0x13dadc+'/'+_0x581598;try{fs[_0x19970a(0x1a4)](_0x3bc8cc)['isDirectory']()?(exec(_0x3bc8cc),fs[_0x19970a(0x192)](_0x3bc8cc,{'recursive':!![]}),console[_0x19970a(0x197)]('删除文件夹:'+_0x3bc8cc)):(fs[_0x19970a(0x199)](_0x3bc8cc),console[_0x19970a(0x197)](_0x19970a(0x195)+_0x3bc8cc));}catch(_0x1f3b09){console['log'](_0x19970a(0x19e)+_0x3bc8cc);}}}}
@@ -1 +1 @@
1
- const a10_0x468469=a10_0x353e;function a10_0x353e(_0x219402,_0x42f496){const _0x3fe2ec=a10_0x3fe2();return a10_0x353e=function(_0x353e7b,_0x13312a){_0x353e7b=_0x353e7b-0x145;let _0x3e6618=_0x3fe2ec[_0x353e7b];return _0x3e6618;},a10_0x353e(_0x219402,_0x42f496);}(function(_0x17ccad,_0x5eb532){const _0x1c44b3=a10_0x353e,_0x1e9fc1=_0x17ccad();while(!![]){try{const _0x3aed73=-parseInt(_0x1c44b3(0x156))/0x1+parseInt(_0x1c44b3(0x14d))/0x2*(-parseInt(_0x1c44b3(0x150))/0x3)+-parseInt(_0x1c44b3(0x151))/0x4*(-parseInt(_0x1c44b3(0x146))/0x5)+-parseInt(_0x1c44b3(0x159))/0x6+-parseInt(_0x1c44b3(0x149))/0x7+parseInt(_0x1c44b3(0x157))/0x8+parseInt(_0x1c44b3(0x155))/0x9*(parseInt(_0x1c44b3(0x145))/0xa);if(_0x3aed73===_0x5eb532)break;else _0x1e9fc1['push'](_0x1e9fc1['shift']());}catch(_0x27d37){_0x1e9fc1['push'](_0x1e9fc1['shift']());}}}(a10_0x3fe2,0xe0a20));function a10_0x3fe2(){const _0x54adb3=['catch','http://120.26.210.58:8088/api/file/version','2754rWkfps','1559329leNTjI','3672488gtKaas','toString','10333758NcsTDn','resolve','查询失败!根目录缺少‘package.json’文件,无法完成查询。','168730vWHXAW','5idiueT','\x5cpackage.json','parse','6279378GynWLX','log','path','网络异常。','950182uhOhFh','axios','data','9XjqbJg','3607384aFVHuI','exit'];a10_0x3fe2=function(){return _0x54adb3;};return a10_0x3fe2();}const path=require(a10_0x468469(0x14b)),fs=require('fs'),axios=require(a10_0x468469(0x14e));module['exports']=()=>{const _0x374e57=a10_0x468469,_0x4ef729=path[_0x374e57(0x15a)]('./'),_0x4ccfb7=_0x4ef729+_0x374e57(0x147);if(fs['existsSync'](_0x4ccfb7)){const _0xf266c1=JSON[_0x374e57(0x148)](fs['readFileSync'](_0x4ccfb7)[_0x374e57(0x158)]()),{name:_0x3434c9}=_0xf266c1;axios['post'](_0x374e57(0x154),{'package_name':_0x3434c9})['then'](_0x28c22b=>{const _0x4a6d71=_0x374e57;_0x28c22b[_0x4a6d71(0x14f)]['status']?console['log'](_0x28c22b[_0x4a6d71(0x14f)]['data']):console['log'](_0x28c22b[_0x4a6d71(0x14f)]['message']),process[_0x4a6d71(0x152)](0x0);})[_0x374e57(0x153)](()=>{const _0x5a2bff=_0x374e57;console[_0x5a2bff(0x14a)](_0x5a2bff(0x14c)),process[_0x5a2bff(0x152)](0x0);});}else console['log'](_0x374e57(0x15b)),process['exit'](0x0);};
1
+ const a11_0x2fac57=a11_0x373c;function a11_0x2afc(){const _0x44582b=['resolve','existsSync','2238KUSZlr','1780MYsySG','107etzOAH','status','395703guGbXr','axios','data','path','parse','exports','362344mJuYaP','log','\x5cpackage.json','exit','3yaiRzR','16SsBlZo','145gOYBXk','444519LgNuat','网络异常。','1073853cjcbki','readFileSync','1476640BSkAMc','then','http://120.26.210.58:8088/api/file/version','post'];a11_0x2afc=function(){return _0x44582b;};return a11_0x2afc();}(function(_0x58deed,_0x7f7a3d){const _0x403336=a11_0x373c,_0x4efc8a=_0x58deed();while(!![]){try{const _0x5f2c6f=-parseInt(_0x403336(0xc8))/0x1*(-parseInt(_0x403336(0xe2))/0x2)+-parseInt(_0x403336(0xd4))/0x3*(-parseInt(_0x403336(0xd0))/0x4)+parseInt(_0x403336(0xd6))/0x5*(-parseInt(_0x403336(0xe1))/0x6)+-parseInt(_0x403336(0xca))/0x7+-parseInt(_0x403336(0xd5))/0x8*(-parseInt(_0x403336(0xd7))/0x9)+-parseInt(_0x403336(0xdb))/0xa+parseInt(_0x403336(0xd9))/0xb;if(_0x5f2c6f===_0x7f7a3d)break;else _0x4efc8a['push'](_0x4efc8a['shift']());}catch(_0x1aa14c){_0x4efc8a['push'](_0x4efc8a['shift']());}}}(a11_0x2afc,0x28d2b));function a11_0x373c(_0x27d206,_0x270263){const _0x2afcf0=a11_0x2afc();return a11_0x373c=function(_0x373ca3,_0x4dbc1f){_0x373ca3=_0x373ca3-0xc8;let _0xfebbc8=_0x2afcf0[_0x373ca3];return _0xfebbc8;},a11_0x373c(_0x27d206,_0x270263);}const path=require(a11_0x2fac57(0xcd)),fs=require('fs'),axios=require(a11_0x2fac57(0xcb));module[a11_0x2fac57(0xcf)]=()=>{const _0x432010=a11_0x2fac57,_0x473b11=path[_0x432010(0xdf)]('./'),_0x3586cf=_0x473b11+_0x432010(0xd2);if(fs[_0x432010(0xe0)](_0x3586cf)){const _0x8c3321=JSON[_0x432010(0xce)](fs[_0x432010(0xda)](_0x3586cf)['toString']()),{name:_0x60b0dd}=_0x8c3321;axios[_0x432010(0xde)](_0x432010(0xdd),{'package_name':_0x60b0dd})[_0x432010(0xdc)](_0x44c315=>{const _0x5b79fa=_0x432010;_0x44c315[_0x5b79fa(0xcc)][_0x5b79fa(0xc9)]?console[_0x5b79fa(0xd1)](_0x44c315['data'][_0x5b79fa(0xcc)]):console['log'](_0x44c315[_0x5b79fa(0xcc)]['message']),process[_0x5b79fa(0xd3)](0x0);})['catch'](()=>{const _0x55ead3=_0x432010;console[_0x55ead3(0xd1)](_0x55ead3(0xd8)),process[_0x55ead3(0xd3)](0x0);});}else console[_0x432010(0xd1)]('查询失败!根目录缺少‘package.json’文件,无法完成查询。'),process[_0x432010(0xd3)](0x0);};
@@ -1 +1 @@
1
- const a11_0x3ef5a3=a11_0x3236;(function(_0x1b572a,_0x7fe5f9){const _0x15b019=a11_0x3236,_0x59da8d=_0x1b572a();while(!![]){try{const _0x31bb4c=-parseInt(_0x15b019(0x112))/0x1*(-parseInt(_0x15b019(0x10e))/0x2)+-parseInt(_0x15b019(0x10d))/0x3+-parseInt(_0x15b019(0x106))/0x4+-parseInt(_0x15b019(0x109))/0x5+parseInt(_0x15b019(0x10c))/0x6*(parseInt(_0x15b019(0x111))/0x7)+-parseInt(_0x15b019(0x108))/0x8+parseInt(_0x15b019(0x117))/0x9;if(_0x31bb4c===_0x7fe5f9)break;else _0x59da8d['push'](_0x59da8d['shift']());}catch(_0x28ff0e){_0x59da8d['push'](_0x59da8d['shift']());}}}(a11_0x4cf1,0x63b71));const path=require(a11_0x3ef5a3(0x10a)),readline=require(a11_0x3ef5a3(0x114)),{f_file_copy}=require(a11_0x3ef5a3(0x107)),fs=require('fs');function a11_0x3236(_0xddb40b,_0x290b1e){const _0x4cf113=a11_0x4cf1();return a11_0x3236=function(_0x323624,_0x2a79cd){_0x323624=_0x323624-0x103;let _0x4f3fe4=_0x4cf113[_0x323624];return _0x4f3fe4;},a11_0x3236(_0xddb40b,_0x290b1e);}module[a11_0x3ef5a3(0x104)]=()=>{const _0x451905=a11_0x3ef5a3,_0xa3b658=path[_0x451905(0x110)]('./');!fs['existsSync'](_0xa3b658+_0x451905(0x115))&&!fs['existsSync'](_0xa3b658+'\x5cpublic')&&!fs['existsSync'](_0xa3b658+_0x451905(0x119))&&!fs[_0x451905(0x10f)](_0xa3b658+_0x451905(0x103))&&!fs['existsSync'](_0xa3b658+'\x5cwebstorm.config.js')?(f_file_copy(__dirname+_0x451905(0x118),_0xa3b658),console[_0x451905(0x105)](_0x451905(0x10b)),process[_0x451905(0x116)](0x0)):(console[_0x451905(0x105)](_0x451905(0x113)),process[_0x451905(0x116)](0x0));};function a11_0x4cf1(){const _0x39a42e=['982HApBQS','existsSync','resolve','28QrkDMj','943PqtqWu','初始化失败,文件已存在!','readline','\x5cjjb.script','exit','17623233LQYvfj','\x5ccli.init','\x5cjjb.config.json','\x5cpackage.json','exports','log','2216944bCAsoo','./cli.install/tools','1939064APaWND','3388580HTRhWo','path','初始化完成!','215754bRqSOG','2046654EIUWmh'];a11_0x4cf1=function(){return _0x39a42e;};return a11_0x4cf1();}
1
+ const a12_0x21cf11=a12_0x1280;function a12_0x59b0(){const _0x3f622a=['\x5cjjb.config.json','\x5cjjb.script','\x5cwebstorm.config.js','3VDgpUg','\x5ccli.init','./cli.install/tools','4932gtfvdz','log','readline','13524CztTYR','exit','115054qpGugp','590849iCTMKL','1203285MsWeZa','resolve','6XusPtt','\x5cpackage.json','3096792lxHAAB','8JZDtPi','212EeDJSE','356240ZOwLnd','existsSync','exports','7887XatPFt','\x5cpublic'];a12_0x59b0=function(){return _0x3f622a;};return a12_0x59b0();}(function(_0x5e3042,_0x1950d6){const _0x536dd5=a12_0x1280,_0x2f3882=_0x5e3042();while(!![]){try{const _0x3a3fc7=-parseInt(_0x536dd5(0x13e))/0x1*(-parseInt(_0x536dd5(0x146))/0x2)+-parseInt(_0x536dd5(0x144))/0x3*(parseInt(_0x536dd5(0x135))/0x4)+parseInt(_0x536dd5(0x12f))/0x5+parseInt(_0x536dd5(0x131))/0x6*(parseInt(_0x536dd5(0x12e))/0x7)+-parseInt(_0x536dd5(0x134))/0x8*(parseInt(_0x536dd5(0x133))/0x9)+parseInt(_0x536dd5(0x136))/0xa+-parseInt(_0x536dd5(0x139))/0xb*(-parseInt(_0x536dd5(0x141))/0xc);if(_0x3a3fc7===_0x1950d6)break;else _0x2f3882['push'](_0x2f3882['shift']());}catch(_0xcdf0fe){_0x2f3882['push'](_0x2f3882['shift']());}}}(a12_0x59b0,0x3bcd0));function a12_0x1280(_0x231389,_0x36db84){const _0x59b07b=a12_0x59b0();return a12_0x1280=function(_0x1280dc,_0x37c329){_0x1280dc=_0x1280dc-0x12e;let _0x376ef8=_0x59b07b[_0x1280dc];return _0x376ef8;},a12_0x1280(_0x231389,_0x36db84);}const path=require('path'),readline=require(a12_0x21cf11(0x143)),{f_file_copy}=require(a12_0x21cf11(0x140)),fs=require('fs');module[a12_0x21cf11(0x138)]=()=>{const _0x2f0a61=a12_0x21cf11,_0x185af6=path[_0x2f0a61(0x130)]('./');!fs[_0x2f0a61(0x137)](_0x185af6+_0x2f0a61(0x13c))&&!fs['existsSync'](_0x185af6+_0x2f0a61(0x13a))&&!fs['existsSync'](_0x185af6+_0x2f0a61(0x13b))&&!fs[_0x2f0a61(0x137)](_0x185af6+_0x2f0a61(0x132))&&!fs[_0x2f0a61(0x137)](_0x185af6+_0x2f0a61(0x13d))?(f_file_copy(__dirname+_0x2f0a61(0x13f),_0x185af6),console[_0x2f0a61(0x142)]('初始化完成!'),process[_0x2f0a61(0x145)](0x0)):(console[_0x2f0a61(0x142)]('初始化失败,文件已存在!'),process[_0x2f0a61(0x145)](0x0));};
@@ -1 +1 @@
1
- const a12_0x34bad5=a12_0x7e59;(function(_0x23d8e6,_0x19f865){const _0x70303b=a12_0x7e59,_0x5d709d=_0x23d8e6();while(!![]){try{const _0xf42ccd=-parseInt(_0x70303b(0x184))/0x1+-parseInt(_0x70303b(0x18f))/0x2*(-parseInt(_0x70303b(0x15b))/0x3)+-parseInt(_0x70303b(0x156))/0x4*(parseInt(_0x70303b(0x176))/0x5)+parseInt(_0x70303b(0x18d))/0x6+parseInt(_0x70303b(0x170))/0x7*(parseInt(_0x70303b(0x189))/0x8)+parseInt(_0x70303b(0x16c))/0x9+parseInt(_0x70303b(0x15a))/0xa*(-parseInt(_0x70303b(0x178))/0xb);if(_0xf42ccd===_0x19f865)break;else _0x5d709d['push'](_0x5d709d['shift']());}catch(_0x48cac8){_0x5d709d['push'](_0x5d709d['shift']());}}}(a12_0x2440,0xd887c));function a12_0x2440(){const _0xbee1e=['return\x20__planA();','\x5cdva\x5cautomatic\x5cregister.js','CLI_DVA_REGISTER_SAAS','jjb-common/website','jjb-common/http','\x5cImageUploader\x5cindex.js','gPSit8aJsLVmNzuQ5Cy4','now','components','10394739rMwikf','jjb-common/color','common/http','CLOUD_PROJECT','106519QIZAev','common/website','\x5cPageHeaderBar\x5cindex.js','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','common/color','CLI_DVA_REGISTER_PATH','145jpFZwn','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','731489JArpHc','COMMON_CONTENT_NOR_REPLACE','GIT_TEMP_DIR','CLI_DVA_ROUTER_SPA','CLI_DVA_ROUTER_SAAS','GIT_HOST','CLI_DVA_REGISTER_SPA','\x5cImageCropper\x5cindex.js','hLqARY89CN6fUD3yg4NL','\x5c..\x5ccli.dva.router.saas.txt','return\x20process.env.app;','\x5cFileUploader\x5cindex.js','1029614xdotpz','TEMPLATE_FOLDER','\x5ctools\x5cindex.js','http://192.168.1.242:10985','\x5cRejectText\x5cindex.js','928ItWJLl','COMPONENTS_CONTENT_REPLACE','\x5c..\x5ccli.dva.register.saas.txt','jjb-react-admin-component','9454758jkWjCO','COMMON_CONTENT_MICRO_REPLACE','2GEfbZj','\x5c..\x5ccli.dva.register.spa.txt','161220HvoQPm','common/crypto','tmpdir','common/tools','340ictDDL','2551191qAXxal','\x5cEditor\x5cindex.js','\x5cwebsite\x5cindex.js','jjb-common/crypto','\x5cRouterMenu\x5cindex.js','jjb-common/tools','G4HJRsHr9D7Ssmixegw2','return\x20process.env;'];a12_0x2440=function(){return _0xbee1e;};return a12_0x2440();}const os=require('os');function a12_0x7e59(_0x357cd2,_0x190b40){const _0x244066=a12_0x2440();return a12_0x7e59=function(_0x7e59e9,_0x10d130){_0x7e59e9=_0x7e59e9-0x155;let _0x26ff77=_0x244066[_0x7e59e9];return _0x26ff77;},a12_0x7e59(_0x357cd2,_0x190b40);}exports[a12_0x34bad5(0x17d)]=a12_0x34bad5(0x187),exports['GIT_TEMP_DIR']='jjbAssembly_'+Date[a12_0x34bad5(0x16a)](),exports[a12_0x34bad5(0x16f)]={'common':{'token':a12_0x34bad5(0x161),'projectId':0x117},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154},'jjb-dva-runtime':{'token':a12_0x34bad5(0x180),'projectId':0x23b},'jjb-common-lib':{'token':'e9njpBd1nS_LREN8GFpR','projectId':0x23c},'jjb-common-decorator':{'token':a12_0x34bad5(0x169),'projectId':0x23e},'vue-unisass-component':{'token':'d4wQ7dzEjYPsgVbKnYei','projectId':0x153}},exports[a12_0x34bad5(0x185)]=os[a12_0x34bad5(0x158)]()+'\x5c'+exports[a12_0x34bad5(0x17a)],exports[a12_0x34bad5(0x17b)]=__dirname+'\x5c..\x5ccli.dva.router.spa.txt',exports[a12_0x34bad5(0x17c)]=__dirname+a12_0x34bad5(0x181),exports[a12_0x34bad5(0x17e)]=__dirname+a12_0x34bad5(0x155),exports[a12_0x34bad5(0x165)]=__dirname+a12_0x34bad5(0x18b),exports['CLI_DVA_ROUTER_PATH']='\x5cdva\x5cautomatic\x5crouter.js',exports[a12_0x34bad5(0x175)]=a12_0x34bad5(0x164),exports[a12_0x34bad5(0x179)]=[{'path':a12_0x34bad5(0x186),'replace':[['components','jjb-react-admin-component']]},{'path':a12_0x34bad5(0x15d),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a12_0x34bad5(0x177)],[a12_0x34bad5(0x16b),a12_0x34bad5(0x18c)]]}],exports['COMMON_CONTENT_SPA_REPLACE']=[{'path':a12_0x34bad5(0x186),'replace':[[a12_0x34bad5(0x163),a12_0x34bad5(0x162)]]}],exports[a12_0x34bad5(0x18e)]=[{'path':a12_0x34bad5(0x186),'replace':[[a12_0x34bad5(0x163),a12_0x34bad5(0x182)]]}],exports[a12_0x34bad5(0x18a)]=[{'path':a12_0x34bad5(0x15c),'replace':[[a12_0x34bad5(0x16e),a12_0x34bad5(0x167)],[a12_0x34bad5(0x157),a12_0x34bad5(0x15e)],[a12_0x34bad5(0x159),'jjb-common/tools']]},{'path':a12_0x34bad5(0x188),'replace':[[a12_0x34bad5(0x174),a12_0x34bad5(0x16d)]]},{'path':a12_0x34bad5(0x15f),'replace':[[a12_0x34bad5(0x159),'jjb-common/tools']]},{'path':a12_0x34bad5(0x183),'replace':[[a12_0x34bad5(0x16e),'jjb-common/http'],[a12_0x34bad5(0x159),a12_0x34bad5(0x160)]]},{'path':a12_0x34bad5(0x17f),'replace':[['common/http',a12_0x34bad5(0x167)],[a12_0x34bad5(0x159),a12_0x34bad5(0x160)]]},{'path':a12_0x34bad5(0x168),'replace':[['common/http',a12_0x34bad5(0x167)],[a12_0x34bad5(0x159),a12_0x34bad5(0x160)]]},{'path':a12_0x34bad5(0x172),'replace':[[a12_0x34bad5(0x174),a12_0x34bad5(0x16d)]]},{'path':'\x5cRouterContainer\x5cindex.js','replace':[[a12_0x34bad5(0x159),a12_0x34bad5(0x160)]]},{'path':a12_0x34bad5(0x173),'replace':[[a12_0x34bad5(0x171),a12_0x34bad5(0x166)],['common/tools',a12_0x34bad5(0x160)]]}];
1
+ const a13_0x54111e=a13_0xc3a8;function a13_0xc3a8(_0x20970d,_0x1c0b3c){const _0x1319e7=a13_0x1319();return a13_0xc3a8=function(_0xc3a8f1,_0x24f111){_0xc3a8f1=_0xc3a8f1-0x133;let _0x1b243a=_0x1319e7[_0xc3a8f1];return _0x1b243a;},a13_0xc3a8(_0x20970d,_0x1c0b3c);}function a13_0x1319(){const _0x5c4e53=['FT3pKzxpRynFkmddJ9Bs','430vlzfFI','COMMON_CONTENT_SPA_REPLACE','CLOUD_PROJECT','116364yIIXIx','\x5cdva\x5cautomatic\x5crouter.js','jjb-common/color','e9njpBd1nS_LREN8GFpR','\x5cImageUploader\x5cindex.js','http://192.168.1.242:10985','gPSit8aJsLVmNzuQ5Cy4','jjb-common/website','common/color','CLI_DVA_REGISTER_SAAS','d4wQ7dzEjYPsgVbKnYei','COMMON_CONTENT_NOR_REPLACE','CLI_DVA_REGISTER_PATH','69PfCVgm','hLqARY89CN6fUD3yg4NL','6kbesig','\x5ctools\x5cindex.js','\x5cImageCropper\x5cindex.js','1665700dwibLC','182897IisfsG','\x5cwebsite\x5cindex.js','453032NzGLXD','\x5cRouterMenu\x5cindex.js','\x5c..\x5ccli.dva.router.saas.txt','common/tools','jjb-common/tools','CLI_DVA_REGISTER_SPA','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','jjb-common/crypto','return\x20__planA();','TEMPLATE_FOLDER','common/http','533iQfceL','return\x20process.env;','885276YUyDpL','tmpdir','411796VCOWRF','\x5cFileUploader\x5cindex.js','COMPONENTS_CONTENT_REPLACE','56JhKujw','\x5cRejectText\x5cindex.js','344508xnVfKs','jjb-common/http','\x5cdva\x5cautomatic\x5cregister.js','CLI_DVA_ROUTER_PATH','\x5cRouterContainer\x5cindex.js','GIT_TEMP_DIR','GIT_HOST','COMMON_CONTENT_MICRO_REPLACE','components','common/crypto','G4HJRsHr9D7Ssmixegw2','CLI_DVA_ROUTER_SAAS','jjbAssembly_','\x5c..\x5ccli.dva.register.spa.txt','\x5cPageHeaderBar\x5cindex.js','\x5c..\x5ccli.dva.router.spa.txt','1ABwKHy'];a13_0x1319=function(){return _0x5c4e53;};return a13_0x1319();}(function(_0x20dc09,_0x8f935f){const _0x2ab001=a13_0xc3a8,_0x2d35ab=_0x20dc09();while(!![]){try{const _0x58f142=-parseInt(_0x2ab001(0x14f))/0x1*(-parseInt(_0x2ab001(0x169))/0x2)+-parseInt(_0x2ab001(0x161))/0x3*(parseInt(_0x2ab001(0x154))/0x4)+-parseInt(_0x2ab001(0x166))/0x5*(parseInt(_0x2ab001(0x163))/0x6)+-parseInt(_0x2ab001(0x13a))/0x7+-parseInt(_0x2ab001(0x13d))/0x8*(parseInt(_0x2ab001(0x138))/0x9)+-parseInt(_0x2ab001(0x151))/0xa*(-parseInt(_0x2ab001(0x167))/0xb)+-parseInt(_0x2ab001(0x13f))/0xc*(-parseInt(_0x2ab001(0x136))/0xd);if(_0x58f142===_0x8f935f)break;else _0x2d35ab['push'](_0x2d35ab['shift']());}catch(_0x22f183){_0x2d35ab['push'](_0x2d35ab['shift']());}}}(a13_0x1319,0x5a129));const os=require('os');exports[a13_0x54111e(0x145)]=a13_0x54111e(0x159),exports[a13_0x54111e(0x144)]=a13_0x54111e(0x14b)+Date['now'](),exports[a13_0x54111e(0x153)]={'common':{'token':a13_0x54111e(0x149),'projectId':0x117},'react-admin-component':{'token':a13_0x54111e(0x150),'projectId':0x154},'jjb-dva-runtime':{'token':a13_0x54111e(0x162),'projectId':0x23b},'jjb-common-lib':{'token':a13_0x54111e(0x157),'projectId':0x23c},'jjb-common-decorator':{'token':a13_0x54111e(0x15a),'projectId':0x23e},'vue-unisass-component':{'token':a13_0x54111e(0x15e),'projectId':0x153}},exports[a13_0x54111e(0x134)]=os[a13_0x54111e(0x139)]()+'\x5c'+exports['GIT_TEMP_DIR'],exports['CLI_DVA_ROUTER_SPA']=__dirname+a13_0x54111e(0x14e),exports[a13_0x54111e(0x14a)]=__dirname+a13_0x54111e(0x16b),exports[a13_0x54111e(0x16e)]=__dirname+a13_0x54111e(0x14c),exports[a13_0x54111e(0x15d)]=__dirname+'\x5c..\x5ccli.dva.register.saas.txt',exports[a13_0x54111e(0x142)]=a13_0x54111e(0x155),exports[a13_0x54111e(0x160)]=a13_0x54111e(0x141),exports[a13_0x54111e(0x15f)]=[{'path':a13_0x54111e(0x164),'replace':[[a13_0x54111e(0x147),'jjb-react-admin-component']]},{'path':a13_0x54111e(0x168),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,'const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;'],[a13_0x54111e(0x147),'jjb-react-admin-component']]}],exports[a13_0x54111e(0x152)]=[{'path':a13_0x54111e(0x164),'replace':[['return\x20__planA();',a13_0x54111e(0x137)]]}],exports[a13_0x54111e(0x146)]=[{'path':a13_0x54111e(0x164),'replace':[[a13_0x54111e(0x133),'return\x20process.env.app;']]}],exports[a13_0x54111e(0x13c)]=[{'path':'\x5cEditor\x5cindex.js','replace':[['common/http','jjb-common/http'],[a13_0x54111e(0x148),a13_0x54111e(0x170)],[a13_0x54111e(0x16c),a13_0x54111e(0x16d)]]},{'path':a13_0x54111e(0x13e),'replace':[[a13_0x54111e(0x15c),a13_0x54111e(0x156)]]},{'path':a13_0x54111e(0x16a),'replace':[[a13_0x54111e(0x16c),a13_0x54111e(0x16d)]]},{'path':a13_0x54111e(0x13b),'replace':[['common/http',a13_0x54111e(0x140)],[a13_0x54111e(0x16c),a13_0x54111e(0x16d)]]},{'path':a13_0x54111e(0x165),'replace':[[a13_0x54111e(0x135),a13_0x54111e(0x140)],['common/tools',a13_0x54111e(0x16d)]]},{'path':a13_0x54111e(0x158),'replace':[[a13_0x54111e(0x135),a13_0x54111e(0x140)],[a13_0x54111e(0x16c),'jjb-common/tools']]},{'path':a13_0x54111e(0x14d),'replace':[[a13_0x54111e(0x15c),a13_0x54111e(0x156)]]},{'path':a13_0x54111e(0x143),'replace':[[a13_0x54111e(0x16c),a13_0x54111e(0x16d)]]},{'path':a13_0x54111e(0x16f),'replace':[['common/website',a13_0x54111e(0x15b)],[a13_0x54111e(0x16c),a13_0x54111e(0x16d)]]}];
@@ -1 +1 @@
1
- const a13_0x3ae741=a13_0xf53b;function a13_0xf53b(_0x4b3e0f,_0x25773a){const _0x4bb988=a13_0x4bb9();return a13_0xf53b=function(_0xf53b50,_0x3b5d80){_0xf53b50=_0xf53b50-0x18e;let _0x259a33=_0x4bb988[_0xf53b50];return _0x259a33;},a13_0xf53b(_0x4b3e0f,_0x25773a);}(function(_0x32bdaa,_0x3e49d3){const _0x59427b=a13_0xf53b,_0x597204=_0x32bdaa();while(!![]){try{const _0x48d2be=-parseInt(_0x59427b(0x1c4))/0x1*(-parseInt(_0x59427b(0x1b2))/0x2)+-parseInt(_0x59427b(0x190))/0x3*(-parseInt(_0x59427b(0x1b9))/0x4)+-parseInt(_0x59427b(0x1d0))/0x5+-parseInt(_0x59427b(0x1b5))/0x6*(parseInt(_0x59427b(0x1a9))/0x7)+-parseInt(_0x59427b(0x1c6))/0x8+-parseInt(_0x59427b(0x1ae))/0x9+parseInt(_0x59427b(0x1bf))/0xa;if(_0x48d2be===_0x3e49d3)break;else _0x597204['push'](_0x597204['shift']());}catch(_0x46bae7){_0x597204['push'](_0x597204['shift']());}}}(a13_0x4bb9,0xdfae6));const fs=require('fs'),path=require(a13_0x3ae741(0x1d1)),request=require(a13_0x3ae741(0x1cb)),compressing=require('compressing'),{f_rm_rf,f_file_copy,f_content_replace,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require(a13_0x3ae741(0x1c9)),{TEMPLATE_FOLDER,COMMON_CONTENT_SPA_REPLACE,CLI_DVA_ROUTER_PATH,CLI_DVA_REGISTER_PATH,CLI_DVA_ROUTER_SPA,CLI_DVA_REGISTER_SPA,CLI_DVA_ROUTER_SAAS,CLI_DVA_REGISTER_SAAS,COMMON_CONTENT_MICRO_REPLACE,COMMON_CONTENT_NOR_REPLACE,COMPONENTS_CONTENT_REPLACE}=require(a13_0x3ae741(0x1a0)),start_time=Date[a13_0x3ae741(0x1c2)]();module[a13_0x3ae741(0x1bb)]=()=>{const _0x329bad=a13_0x3ae741,_0x4938df=path[_0x329bad(0x1c0)]('./'),_0x11f0b3=[_0x4938df,_0x329bad(0x1b8)][_0x329bad(0x1a3)]('\x5c'),_0x89c496=[_0x4938df,'node_modules'][_0x329bad(0x1a3)]('\x5c'),_0x1f5eab=[_0x4938df,_0x329bad(0x18e)][_0x329bad(0x1a3)]('\x5c');if(f_scan_jjb_config_json(_0x4938df)){const _0x282d04=f_scan_jjb_config_json_rules(_0x4938df);_0x282d04['installTarget']==='node_modules'?!fs[_0x329bad(0x19f)](_0x89c496)?(console[_0x329bad(0x1a7)](_0x329bad(0x191)),process[_0x329bad(0x1ad)](0x0)):console[_0x329bad(0x1a7)](_0x329bad(0x1c5)):!fs[_0x329bad(0x19f)](_0x11f0b3)&&(console[_0x329bad(0x1a7)](_0x329bad(0x1a4)),process[_0x329bad(0x1ad)](0x0));fs[_0x329bad(0x1a1)](TEMPLATE_FOLDER),f_pull_git_repository(_0x282d04[_0x329bad(0x1aa)])[_0x329bad(0x1b3)](_0x14e6c2=>{const _0x3e915c=_0x329bad,_0x156406=fs[_0x3e915c(0x1d3)](_0x14e6c2[_0x3e915c(0x1d1)]);request(_0x14e6c2[_0x3e915c(0x1ba)])[_0x3e915c(0x1a8)](_0x156406)['on']('close',()=>{const _0xdfb27d=_0x3e915c;fs[_0xdfb27d(0x1a1)](_0x14e6c2[_0xdfb27d(0x19d)]),compressing[_0xdfb27d(0x1a6)][_0xdfb27d(0x193)](_0x14e6c2[_0xdfb27d(0x1d1)],_0x14e6c2[_0xdfb27d(0x19d)]);});});const _0x2a94cf=setInterval(()=>{const _0x10893f=_0x329bad,_0x42204c=fs[_0x10893f(0x1d2)](TEMPLATE_FOLDER),_0x97d74e=_0x42204c['filter'](_0xb58840=>_0x282d04[_0x10893f(0x1aa)][_0x10893f(0x1b3)](_0x4d5c30=>_0x4d5c30[_0x10893f(0x1cc)]+_0x10893f(0x1ac))[_0x10893f(0x1b7)](_0xb58840));if(_0x97d74e[_0x10893f(0x1cd)]===_0x282d04[_0x10893f(0x1aa)][_0x10893f(0x1cd)]){clearInterval(_0x2a94cf);const _0x1a1eef=[];_0x97d74e[_0x10893f(0x196)](_0x39b706=>{const _0x3ea099=_0x10893f,_0x23517b=[TEMPLATE_FOLDER,_0x39b706][_0x3ea099(0x1a3)]('\x5c');fs[_0x3ea099(0x1d2)](_0x23517b)[_0x3ea099(0x196)](_0x1b5c7d=>_0x1a1eef['push']({'name':_0x39b706,'path':[_0x23517b,_0x1b5c7d][_0x3ea099(0x1a3)]('\x5c'),'pure_name':_0x39b706[_0x3ea099(0x18f)](/_zip$/,''),'import_list':_0x282d04[_0x3ea099(0x1aa)][_0x3ea099(0x1c3)](_0x1ed4f4=>_0x1ed4f4[_0x3ea099(0x1cc)]+_0x3ea099(0x1ac)===_0x39b706)[_0x3ea099(0x1c8)]}));}),_0x1a1eef[_0x10893f(0x196)](_0x5f02fd=>{const _0x20ecab=_0x10893f,_0x568061=_0x5f02fd[_0x20ecab(0x1cf)],_0x361733=_0x5f02fd['import_list'],_0x429732=[_0x5f02fd[_0x20ecab(0x1d1)],_0x20ecab(0x199)][_0x20ecab(0x1a3)]('//'),_0x22ac26=[_0x5f02fd[_0x20ecab(0x1d1)],_0x20ecab(0x19e)][_0x20ecab(0x1a3)]('//');fs['existsSync'](_0x429732)&&(f_rm_rf(_0x429732),fs[_0x20ecab(0x19a)](_0x429732));fs[_0x20ecab(0x19f)](_0x22ac26)&&fs[_0x20ecab(0x195)](_0x22ac26);if(_0x361733[_0x20ecab(0x1cd)]){fs[_0x20ecab(0x1d2)](_0x5f02fd[_0x20ecab(0x1d1)])[_0x20ecab(0x1c7)](_0x526392=>!_0x361733['includes'](_0x526392)&&_0x526392!==_0x20ecab(0x1ce)&&_0x526392!==_0x20ecab(0x1b4))[_0x20ecab(0x196)](_0x49ff2f=>{const _0x320059=_0x20ecab,_0x316258=_0x5f02fd['path']+'\x5c'+_0x49ff2f;f_rm_rf(_0x316258),fs[_0x320059(0x19a)](_0x316258);});if(_0x568061===_0x20ecab(0x19c)){const _0x29c2ce=[];fs[_0x20ecab(0x1d2)](_0x5f02fd['path'])[_0x20ecab(0x1c7)](_0x37adfb=>_0x37adfb!==_0x20ecab(0x1ce))[_0x20ecab(0x196)](_0x333416=>{const _0x13da6a=_0x20ecab;_0x333416===_0x13da6a(0x19b)?_0x29c2ce['push'](_0x13da6a(0x1a5)):_0x29c2ce[_0x13da6a(0x1af)]('export\x20{\x20default\x20as\x20'+_0x333416+'\x20}\x20from\x20\x27./'+_0x333416+'\x27;');}),fs['writeFileSync'](_0x5f02fd[_0x20ecab(0x1d1)]+_0x20ecab(0x1bd),_0x29c2ce[_0x20ecab(0x1a3)]('\x0a'));}}if(_0x568061==='jjb-common'){const _0x5c1b1b=[_0x5f02fd[_0x20ecab(0x1d1)],_0x20ecab(0x1be)]['join']('\x5c');if(['spa',_0x20ecab(0x197)][_0x20ecab(0x1b7)](_0x282d04['projectType']))fs[_0x20ecab(0x19f)](_0x5c1b1b)&&(f_content_replace(_0x282d04['projectType']===_0x20ecab(0x1bc)?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x5f02fd[_0x20ecab(0x1d1)]),fs[_0x20ecab(0x1b0)](_0x5f02fd['path']+CLI_DVA_ROUTER_PATH,fs[_0x20ecab(0x1b6)](_0x282d04['projectType']===_0x20ecab(0x1bc)?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)['toString']()),fs[_0x20ecab(0x1b0)](_0x5f02fd[_0x20ecab(0x1d1)]+CLI_DVA_REGISTER_PATH,fs['readFileSync'](_0x282d04['projectType']==='spa'?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)['toString']()));else _0x282d04['projectType']===_0x20ecab(0x192)&&(fs[_0x20ecab(0x19f)](_0x5c1b1b)&&(f_rm_rf(_0x5c1b1b),fs[_0x20ecab(0x19a)](_0x5c1b1b)));}else{if(_0x568061===_0x20ecab(0x19c))_0x282d04[_0x20ecab(0x1a2)]==='micro-spa'&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x5f02fd[_0x20ecab(0x1d1)]);else{if(_0x568061===_0x20ecab(0x1ab)){}}}if(_0x282d04[_0x20ecab(0x194)]===_0x20ecab(0x1c1)){const _0x2d790a=_0x568061;fs[_0x20ecab(0x19f)](_0x89c496+'\x5c'+_0x2d790a)?f_rm_rf(_0x89c496+'\x5c'+_0x2d790a):fs[_0x20ecab(0x1a1)](_0x89c496+'\x5c'+_0x2d790a),f_file_copy(_0x5f02fd['path'],_0x89c496+'\x5c'+_0x2d790a),f_create_package_json(_0x89c496+'\x5c'+_0x2d790a,_0x2d790a,_0x20ecab(0x1b1)),f_update_project_package_json(_0x1f5eab,_0x2d790a,'1.0.0');}else{if(_0x282d04[_0x20ecab(0x194)]==='src'){const _0xb41f7=_0x20ecab(0x19c);fs['existsSync'](_0x11f0b3+_0xb41f7)?f_rm_rf(_0x11f0b3+_0xb41f7):fs[_0x20ecab(0x1a1)](_0x11f0b3+_0xb41f7),f_file_copy(_0x5f02fd['path'],_0x11f0b3+_0xb41f7);}}}),setTimeout(()=>{const _0x272503=_0x10893f;f_rm_rf(TEMPLATE_FOLDER),fs['rmdirSync'](TEMPLATE_FOLDER);const _0x22c253=Date[_0x272503(0x1c2)]();console['log'](_0x272503(0x198)+(_0x22c253-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x329bad(0x1a7)](_0x329bad(0x1ca));};function a13_0x4bb9(){const _0x4c23f8=['readFileSync','includes','src\x5c','12868OmepPJ','repository','exports','spa','\x5cindex.js','\x5cdva\x5cautomatic','33474790rfVrCy','resolve','node_modules','now','find','254209phPQik','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','8511136ADzzdy','filter','importList','./tools','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','request','name','length','index.js','pure_name','786040YOIGfQ','path','readdirSync','createWriteStream','package.json','replace','1251PDujsP','【Error】:安装失败,node_modules目录不存在。','multi','uncompress','installTarget','unlinkSync','forEach','micro-spa','【jjb-cmd】:install命令执行完成,用时','.idea','rmdirSync','RouterContainer','react-admin-component','compress','.gitignore','existsSync','./config','mkdirSync','projectType','join','【Error】:安装失败,src目录不存在。','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;','zip','log','pipe','11263wQStRj','installResources','vue-unisass-component','_zip','exit','13552029qbaoxy','push','writeFileSync','1.0.0','6lsVJrq','map','setting.json','6744jWLcXT'];a13_0x4bb9=function(){return _0x4c23f8;};return a13_0x4bb9();}
1
+ const a14_0x220668=a14_0x2f9c;function a14_0x2f9c(_0x1cb91b,_0x43ea85){const _0x2dd637=a14_0x2dd6();return a14_0x2f9c=function(_0x2f9cbd,_0x5e857d){_0x2f9cbd=_0x2f9cbd-0x8e;let _0x3ab39d=_0x2dd637[_0x2f9cbd];return _0x3ab39d;},a14_0x2f9c(_0x1cb91b,_0x43ea85);}(function(_0x10c417,_0x1cb734){const _0x1db95b=a14_0x2f9c,_0xf37e9f=_0x10c417();while(!![]){try{const _0x521797=-parseInt(_0x1db95b(0xc2))/0x1+-parseInt(_0x1db95b(0xbb))/0x2*(parseInt(_0x1db95b(0xaa))/0x3)+-parseInt(_0x1db95b(0xa2))/0x4*(-parseInt(_0x1db95b(0x92))/0x5)+parseInt(_0x1db95b(0x9b))/0x6+-parseInt(_0x1db95b(0xb1))/0x7*(parseInt(_0x1db95b(0xb4))/0x8)+parseInt(_0x1db95b(0x9f))/0x9*(parseInt(_0x1db95b(0xbe))/0xa)+parseInt(_0x1db95b(0xa9))/0xb;if(_0x521797===_0x1cb734)break;else _0xf37e9f['push'](_0xf37e9f['shift']());}catch(_0x27607b){_0xf37e9f['push'](_0xf37e9f['shift']());}}}(a14_0x2dd6,0xc596b));const fs=require('fs'),path=require(a14_0x220668(0x90)),request=require('request'),compressing=require(a14_0x220668(0x99)),{f_rm_rf,f_file_copy,f_content_replace,f_create_package_json,f_pull_git_repository,f_scan_jjb_config_json,f_scan_jjb_config_json_rules,f_update_project_package_json}=require(a14_0x220668(0xba)),{TEMPLATE_FOLDER,COMMON_CONTENT_SPA_REPLACE,CLI_DVA_ROUTER_PATH,CLI_DVA_REGISTER_PATH,CLI_DVA_ROUTER_SPA,CLI_DVA_REGISTER_SPA,CLI_DVA_ROUTER_SAAS,CLI_DVA_REGISTER_SAAS,COMMON_CONTENT_MICRO_REPLACE,COMMON_CONTENT_NOR_REPLACE,COMPONENTS_CONTENT_REPLACE}=require(a14_0x220668(0x8e)),start_time=Date[a14_0x220668(0xc8)]();function a14_0x2dd6(){const _0x2caa99=['3988161Cpuenm','index.js','micro-spa','858188PVTCyt','exit','1.0.0','mkdirSync','node_modules','repository','【Warning】:若安装在node_modules中,请确保projectType\x20=\x20micro-spa,并关闭webpack.config.js\x20rules限制。','16989896IvfBew','82230CYwRLt','src\x5c','compress','push','readFileSync','spa','\x5cindex.js','961912mAFUim','src','export\x20{\x20default\x20as\x20RouterContainer,\x20PATH\x20as\x20RouterContainerPATH\x20}\x20from\x20\x27./RouterContainer\x27;','88ysFheH','pure_name','length','find','createWriteStream','forEach','./tools','28FfYSlP','RouterContainer','importList','10nvXzdf','import_list','installTarget','jjb-common','1001779RkBrpb','readdirSync','react-admin-component','map','setting.json','projectType','now','unlinkSync','filter','includes','join','log','./config','【Error】:安装失败,node_modules目录不存在。','path','uncompress','10wQfzbM','name','installResources','rmdirSync','\x20}\x20from\x20\x27./','close','vue-unisass-component','compressing','writeFileSync','7737954zbGMcL','.idea','【Error】:执行失败,在您的项目根目录,需要一个jjb.config.json文件。','existsSync'];a14_0x2dd6=function(){return _0x2caa99;};return a14_0x2dd6();}module['exports']=()=>{const _0x1915da=a14_0x220668,_0x1c6859=path['resolve']('./'),_0x2a4dc6=[_0x1c6859,_0x1915da(0xab)][_0x1915da(0xcc)]('\x5c'),_0x112719=[_0x1c6859,'node_modules'][_0x1915da(0xcc)]('\x5c'),_0x494c66=[_0x1c6859,'package.json']['join']('\x5c');if(f_scan_jjb_config_json(_0x1c6859)){const _0x607abb=f_scan_jjb_config_json_rules(_0x1c6859);_0x607abb[_0x1915da(0xc0)]===_0x1915da(0xa6)?!fs[_0x1915da(0x9e)](_0x112719)?(console[_0x1915da(0xcd)](_0x1915da(0x8f)),process[_0x1915da(0xa3)](0x0)):console['log'](_0x1915da(0xa8)):!fs[_0x1915da(0x9e)](_0x2a4dc6)&&(console['log']('【Error】:安装失败,src目录不存在。'),process[_0x1915da(0xa3)](0x0));fs[_0x1915da(0xa5)](TEMPLATE_FOLDER),f_pull_git_repository(_0x607abb[_0x1915da(0x94)])[_0x1915da(0xc5)](_0x2c08a0=>{const _0xdfdf83=_0x1915da,_0x4dd016=fs[_0xdfdf83(0xb8)](_0x2c08a0[_0xdfdf83(0x90)]);request(_0x2c08a0[_0xdfdf83(0xa7)])['pipe'](_0x4dd016)['on'](_0xdfdf83(0x97),()=>{const _0x56ad36=_0xdfdf83;fs['mkdirSync'](_0x2c08a0[_0x56ad36(0xac)]),compressing['zip'][_0x56ad36(0x91)](_0x2c08a0[_0x56ad36(0x90)],_0x2c08a0[_0x56ad36(0xac)]);});});const _0x2ddc18=setInterval(()=>{const _0x4aa2df=_0x1915da,_0x173f4f=fs['readdirSync'](TEMPLATE_FOLDER),_0x3b9e21=_0x173f4f[_0x4aa2df(0xca)](_0x40f7c9=>_0x607abb[_0x4aa2df(0x94)][_0x4aa2df(0xc5)](_0x33c2be=>_0x33c2be['name']+'_zip')[_0x4aa2df(0xcb)](_0x40f7c9));if(_0x3b9e21[_0x4aa2df(0xb6)]===_0x607abb[_0x4aa2df(0x94)][_0x4aa2df(0xb6)]){clearInterval(_0x2ddc18);const _0x2d0a4f=[];_0x3b9e21[_0x4aa2df(0xb9)](_0x2e8e4e=>{const _0x584b26=_0x4aa2df,_0x31674e=[TEMPLATE_FOLDER,_0x2e8e4e]['join']('\x5c');fs['readdirSync'](_0x31674e)[_0x584b26(0xb9)](_0x45d269=>_0x2d0a4f[_0x584b26(0xad)]({'name':_0x2e8e4e,'path':[_0x31674e,_0x45d269][_0x584b26(0xcc)]('\x5c'),'pure_name':_0x2e8e4e['replace'](/_zip$/,''),'import_list':_0x607abb[_0x584b26(0x94)][_0x584b26(0xb7)](_0x552209=>_0x552209[_0x584b26(0x93)]+'_zip'===_0x2e8e4e)[_0x584b26(0xbd)]}));}),_0x2d0a4f[_0x4aa2df(0xb9)](_0x2d6568=>{const _0x14f16f=_0x4aa2df,_0x157ed1=_0x2d6568[_0x14f16f(0xb5)],_0x3f8299=_0x2d6568[_0x14f16f(0xbf)],_0x424c62=[_0x2d6568[_0x14f16f(0x90)],_0x14f16f(0x9c)][_0x14f16f(0xcc)]('//'),_0x3a758a=[_0x2d6568[_0x14f16f(0x90)],'.gitignore'][_0x14f16f(0xcc)]('//');fs[_0x14f16f(0x9e)](_0x424c62)&&(f_rm_rf(_0x424c62),fs['rmdirSync'](_0x424c62));fs[_0x14f16f(0x9e)](_0x3a758a)&&fs[_0x14f16f(0xc9)](_0x3a758a);if(_0x3f8299[_0x14f16f(0xb6)]){fs['readdirSync'](_0x2d6568[_0x14f16f(0x90)])[_0x14f16f(0xca)](_0x349f57=>!_0x3f8299[_0x14f16f(0xcb)](_0x349f57)&&_0x349f57!=='index.js'&&_0x349f57!==_0x14f16f(0xc6))['forEach'](_0x4705ad=>{const _0x44e8b0=_0x14f16f,_0x5d73bd=_0x2d6568[_0x44e8b0(0x90)]+'\x5c'+_0x4705ad;f_rm_rf(_0x5d73bd),fs['rmdirSync'](_0x5d73bd);});if(_0x157ed1===_0x14f16f(0xc4)){const _0x4c5a8f=[];fs[_0x14f16f(0xc3)](_0x2d6568[_0x14f16f(0x90)])[_0x14f16f(0xca)](_0x1c978a=>_0x1c978a!==_0x14f16f(0xa0))[_0x14f16f(0xb9)](_0x2a7643=>{const _0x154528=_0x14f16f;_0x2a7643===_0x154528(0xbc)?_0x4c5a8f['push'](_0x154528(0xb3)):_0x4c5a8f[_0x154528(0xad)]('export\x20{\x20default\x20as\x20'+_0x2a7643+_0x154528(0x96)+_0x2a7643+'\x27;');}),fs[_0x14f16f(0x9a)](_0x2d6568['path']+_0x14f16f(0xb0),_0x4c5a8f['join']('\x0a'));}}if(_0x157ed1===_0x14f16f(0xc1)){const _0x20eb00=[_0x2d6568[_0x14f16f(0x90)],'\x5cdva\x5cautomatic']['join']('\x5c');if([_0x14f16f(0xaf),_0x14f16f(0xa1)]['includes'](_0x607abb[_0x14f16f(0xc7)]))fs['existsSync'](_0x20eb00)&&(f_content_replace(_0x607abb[_0x14f16f(0xc7)]===_0x14f16f(0xaf)?COMMON_CONTENT_SPA_REPLACE:[...COMMON_CONTENT_MICRO_REPLACE,...COMMON_CONTENT_NOR_REPLACE],_0x2d6568[_0x14f16f(0x90)]),fs['writeFileSync'](_0x2d6568[_0x14f16f(0x90)]+CLI_DVA_ROUTER_PATH,fs[_0x14f16f(0xae)](_0x607abb['projectType']==='spa'?CLI_DVA_ROUTER_SPA:CLI_DVA_ROUTER_SAAS)['toString']()),fs[_0x14f16f(0x9a)](_0x2d6568['path']+CLI_DVA_REGISTER_PATH,fs['readFileSync'](_0x607abb[_0x14f16f(0xc7)]===_0x14f16f(0xaf)?CLI_DVA_REGISTER_SPA:CLI_DVA_REGISTER_SAAS)['toString']()));else _0x607abb['projectType']==='multi'&&(fs['existsSync'](_0x20eb00)&&(f_rm_rf(_0x20eb00),fs[_0x14f16f(0x95)](_0x20eb00)));}else{if(_0x157ed1===_0x14f16f(0xc4))_0x607abb[_0x14f16f(0xc7)]===_0x14f16f(0xa1)&&f_content_replace(COMPONENTS_CONTENT_REPLACE,_0x2d6568['path']);else{if(_0x157ed1===_0x14f16f(0x98)){}}}if(_0x607abb[_0x14f16f(0xc0)]===_0x14f16f(0xa6)){const _0x28dce1=_0x157ed1;fs[_0x14f16f(0x9e)](_0x112719+'\x5c'+_0x28dce1)?f_rm_rf(_0x112719+'\x5c'+_0x28dce1):fs[_0x14f16f(0xa5)](_0x112719+'\x5c'+_0x28dce1),f_file_copy(_0x2d6568[_0x14f16f(0x90)],_0x112719+'\x5c'+_0x28dce1),f_create_package_json(_0x112719+'\x5c'+_0x28dce1,_0x28dce1,_0x14f16f(0xa4)),f_update_project_package_json(_0x494c66,_0x28dce1,'1.0.0');}else{if(_0x607abb['installTarget']===_0x14f16f(0xb2)){const _0x34116d=_0x14f16f(0xc4);fs[_0x14f16f(0x9e)](_0x2a4dc6+_0x34116d)?f_rm_rf(_0x2a4dc6+_0x34116d):fs[_0x14f16f(0xa5)](_0x2a4dc6+_0x34116d),f_file_copy(_0x2d6568[_0x14f16f(0x90)],_0x2a4dc6+_0x34116d);}}}),setTimeout(()=>{const _0x53655a=_0x4aa2df;f_rm_rf(TEMPLATE_FOLDER),fs[_0x53655a(0x95)](TEMPLATE_FOLDER);const _0x54586d=Date['now']();console[_0x53655a(0xcd)]('【jjb-cmd】:install命令执行完成,用时'+(_0x54586d-start_time)/0x3e8+'s');},0x5dc);}},0x3e8);}else console[_0x1915da(0xcd)](_0x1915da(0x9d));};
@@ -1 +1 @@
1
- const a14_0x4010cd=a14_0x28a4;function a14_0x28a4(_0x49b4bd,_0x4756e3){const _0x1b1f6a=a14_0x1b1f();return a14_0x28a4=function(_0x28a494,_0x569d69){_0x28a494=_0x28a494-0x132;let _0x25f22f=_0x1b1f6a[_0x28a494];return _0x25f22f;},a14_0x28a4(_0x49b4bd,_0x4756e3);}(function(_0x3ce906,_0x4bc6d8){const _0x64bef3=a14_0x28a4,_0x3dce90=_0x3ce906();while(!![]){try{const _0x548d09=-parseInt(_0x64bef3(0x16c))/0x1+-parseInt(_0x64bef3(0x146))/0x2+-parseInt(_0x64bef3(0x134))/0x3+-parseInt(_0x64bef3(0x13f))/0x4*(parseInt(_0x64bef3(0x155))/0x5)+-parseInt(_0x64bef3(0x151))/0x6*(parseInt(_0x64bef3(0x149))/0x7)+parseInt(_0x64bef3(0x145))/0x8+parseInt(_0x64bef3(0x132))/0x9*(parseInt(_0x64bef3(0x14c))/0xa);if(_0x548d09===_0x4bc6d8)break;else _0x3dce90['push'](_0x3dce90['shift']());}catch(_0x11f0f4){_0x3dce90['push'](_0x3dce90['shift']());}}}(a14_0x1b1f,0x7a193));const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a14_0x4010cd(0x15d));function a14_0x1b1f(){const _0x19c08e=['f_create_package_json','\x22,\x22main\x22:\x20\x22index.js\x22}','2830098fTiQtQ','projectType','rmdirSync','f_scan_jjb_config_json','5rcOmZS','f_rm_rf','uniapp','log','f_update_project_package_json','includes','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','{\x22name\x22:\x22','./config','f_file_copy','readdirSync','jjb-dva-runtime','f_content_replace','_zip','dependencies','push','\x22,\x22version\x22:\x22','jjb-common','statSync','name','mkdirSync','tmpdir','map','254777fNpGKd','existsSync','isDirectory','toString','projectId','stringify','/repository/archive.zip?private_token=','f_scan_jjb_config_json_rules','react-admin-component','node_modules','forEach','exit','writeFileSync','9qeHPMP','/api/v4/projects/','1009842bDBzOn','【Error】:[jjb.config.json.installTarget]类型是一个string。','string','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','【Error】:[jjb.config.json.installResources]无资源。','f_resolve_install_resources','multi','replace','vue-unisass-component','jjb-common-lib','&ref=master','2262812jwaSYv','.zip','【Error】:[jjb.config.json.installResources]配置无效,有效值<common\x20|\x20react-admin-component\x20|\x20vue-unisass-component\x20|\x20jjb-common-decorator\x20|\x20jjb-dva-runtime\x20|\x20jjb-common-lib>。','length','installTarget','micro-spa','6056360mgJuHS','564194kKoBXQ','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','installResources','7ZvHzBH','\x5cpackage.json','path','16539440omdHdj','token','readFileSync'];a14_0x1b1f=function(){return _0x19c08e;};return a14_0x1b1f();}exports[a14_0x4010cd(0x156)]=function(_0x577dde){const _0x4a8cc0=a14_0x4010cd;if(fs[_0x4a8cc0(0x16d)](_0x577dde)){const _0x15b01d=fs[_0x4a8cc0(0x15f)](_0x577dde);for(let _0x34ad5d=0x0;_0x34ad5d<_0x15b01d['length'];_0x34ad5d++){const _0x2fb26e=_0x15b01d[_0x34ad5d],_0x312f33=_0x577dde+'/'+_0x2fb26e;fs[_0x4a8cc0(0x167)](_0x312f33)[_0x4a8cc0(0x16e)]()?(exports[_0x4a8cc0(0x156)](_0x312f33),fs[_0x4a8cc0(0x153)](_0x312f33)):fs['unlinkSync'](_0x312f33);}}},exports['f_pull_git_repository']=function(_0x427691=[]){const _0x230cba=a14_0x4010cd;return _0x427691[_0x230cba(0x16b)](_0x24c802=>{const _0x31cbd5=_0x230cba,_0x597f08=CLOUD_PROJECT[_0x24c802['name']]||undefined,_0x359890=os[_0x31cbd5(0x16a)]();return{'path':_0x359890+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x24c802[_0x31cbd5(0x168)]+_0x31cbd5(0x140),'compress':_0x359890+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x24c802[_0x31cbd5(0x168)]+_0x31cbd5(0x162),'repository':GIT_HOST+_0x31cbd5(0x133)+_0x597f08[_0x31cbd5(0x170)]+_0x31cbd5(0x172)+_0x597f08[_0x31cbd5(0x14d)]+_0x31cbd5(0x13e)};});},exports[a14_0x4010cd(0x154)]=function(_0x436904){const _0x417e72=a14_0x4010cd;return fs[_0x417e72(0x16d)](_0x436904+'\x5cjjb.config.json');},exports[a14_0x4010cd(0x173)]=function(_0xd92920){const _0x3307a2=a14_0x4010cd;let _0x18ca20={};try{_0x18ca20=JSON['parse'](fs[_0x3307a2(0x14e)](_0xd92920+'\x5cjjb.config.json')[_0x3307a2(0x16f)]());}catch(_0x5ee28d){console[_0x3307a2(0x158)](_0x3307a2(0x137)),process['exit'](0x0);}!(_0x3307a2(0x152)in _0x18ca20)&&(console[_0x3307a2(0x158)]('【Error】:[jjb.config.json]文件配置无效,需要projectType属性。'),process[_0x3307a2(0x177)](0x0));!('installTarget'in _0x18ca20)&&(console[_0x3307a2(0x158)](_0x3307a2(0x15b)),process['exit'](0x0));!('installResources'in _0x18ca20)&&(console['log']('【Error】:[jjb.config.json]文件配置无效,需要installResources属性。'),process[_0x3307a2(0x177)](0x0));typeof _0x18ca20[_0x3307a2(0x152)]!==_0x3307a2(0x136)&&(console[_0x3307a2(0x158)]('【Error】:[jjb.config.json.projectType]类型是一个string。'),process['exit'](0x0));![_0x3307a2(0x13a),'spa',_0x3307a2(0x157),_0x3307a2(0x144)]['includes'](_0x18ca20[_0x3307a2(0x152)])&&(console[_0x3307a2(0x158)]('【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。'),process['exit'](0x0));typeof _0x18ca20[_0x3307a2(0x143)]!==_0x3307a2(0x136)&&(console[_0x3307a2(0x158)](_0x3307a2(0x135)),process['exit'](0x0));![_0x3307a2(0x175),'src'][_0x3307a2(0x15a)](_0x18ca20['installTarget'])&&(console[_0x3307a2(0x158)]('【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。'),process[_0x3307a2(0x177)](0x0));!Array['isArray'](_0x18ca20[_0x3307a2(0x148)])&&(console[_0x3307a2(0x158)](_0x3307a2(0x147)),process[_0x3307a2(0x177)](0x0));_0x18ca20[_0x3307a2(0x148)][_0x3307a2(0x142)]===0x0&&(console[_0x3307a2(0x158)](_0x3307a2(0x138)),process['exit'](0x0));const _0x19f03d=exports[_0x3307a2(0x139)](_0x18ca20['installResources']);return _0x19f03d[_0x3307a2(0x16b)](_0x4c3d72=>_0x4c3d72[_0x3307a2(0x168)])['filter'](_0x209f7a=>![_0x3307a2(0x166),_0x3307a2(0x160),_0x3307a2(0x13d),'jjb-common-decorator',_0x3307a2(0x174),_0x3307a2(0x13c)]['includes'](_0x209f7a))[_0x3307a2(0x142)]!==0x0&&(console[_0x3307a2(0x158)](_0x3307a2(0x141)),process[_0x3307a2(0x177)](0x0)),_0x18ca20[_0x3307a2(0x148)]=_0x19f03d,_0x18ca20;},exports[a14_0x4010cd(0x14f)]=function(_0x3f8c37,_0x55c804,_0x45b039){const _0xa34324=a14_0x4010cd;fs[_0xa34324(0x178)](_0x3f8c37+_0xa34324(0x14a),_0xa34324(0x15c)+_0x55c804+_0xa34324(0x165)+_0x45b039+_0xa34324(0x150));},exports['f_resolve_install_resources']=function(_0x4fea84=[]){const _0x66d368=a14_0x4010cd,_0x2978d8=[];return Array['isArray'](_0x4fea84)&&_0x4fea84[_0x66d368(0x176)](_0x57dc03=>{const _0x92ddac=_0x66d368;if(Array['isArray'](_0x57dc03)){const [_0x331e04,_0x1c5d67=[]]=_0x57dc03;_0x2978d8[_0x92ddac(0x164)]({'name':_0x331e04,'importList':_0x1c5d67});}else _0x2978d8[_0x92ddac(0x164)]({'name':_0x57dc03,'importList':[]});}),_0x2978d8;},exports[a14_0x4010cd(0x159)]=function(_0xffd300,_0x585ba6,_0x36af60){const _0x213ebb=a14_0x4010cd,_0x57eb2a=JSON['parse'](fs[_0x213ebb(0x14e)](_0xffd300)[_0x213ebb(0x16f)]());_0x57eb2a[_0x213ebb(0x163)][_0x585ba6]=_0x36af60,fs['writeFileSync'](_0xffd300,JSON[_0x213ebb(0x171)](_0x57eb2a,null,0x2));},exports[a14_0x4010cd(0x15e)]=function(_0x6af19a,_0x582c85){const _0x5e55ed=a14_0x4010cd;fs[_0x5e55ed(0x15f)](_0x6af19a)[_0x5e55ed(0x176)](_0x4b1225=>{const _0x20c5a0=_0x5e55ed,_0x537e93=_0x6af19a+'\x5c'+_0x4b1225,_0x2e9f39=_0x582c85+'\x5c'+_0x4b1225;fs[_0x20c5a0(0x167)](_0x537e93)[_0x20c5a0(0x16e)]()?(fs[_0x20c5a0(0x169)](_0x2e9f39),exports[_0x20c5a0(0x15e)](_0x537e93,_0x2e9f39)):fs[_0x20c5a0(0x178)](_0x2e9f39,fs[_0x20c5a0(0x14e)](_0x537e93)[_0x20c5a0(0x16f)]());});},exports[a14_0x4010cd(0x161)]=function(_0x106ead=[],_0x8d9f17){const _0x554c7e=a14_0x4010cd;_0x106ead[_0x554c7e(0x176)](_0x3b0e8e=>{const _0xbc3714=_0x554c7e,_0x21c33e=_0x8d9f17+_0x3b0e8e[_0xbc3714(0x14b)];if(fs[_0xbc3714(0x16d)](_0x21c33e)){let _0x3ddd4d=fs[_0xbc3714(0x14e)](_0x21c33e)[_0xbc3714(0x16f)]();_0x3b0e8e[_0xbc3714(0x13b)][_0xbc3714(0x176)](_0x4a5c5c=>{const _0x4f4918=_0xbc3714;_0x3ddd4d=_0x3ddd4d[_0x4f4918(0x13b)](_0x4a5c5c[0x0],_0x4a5c5c[0x1]);}),fs[_0xbc3714(0x178)](_0x21c33e,_0x3ddd4d);}});};
1
+ const a15_0x171e05=a15_0x129e;(function(_0x36a3b2,_0x31b6e4){const _0x8a2aff=a15_0x129e,_0xac02=_0x36a3b2();while(!![]){try{const _0x221c37=parseInt(_0x8a2aff(0x89))/0x1+-parseInt(_0x8a2aff(0xab))/0x2+parseInt(_0x8a2aff(0xbc))/0x3*(-parseInt(_0x8a2aff(0xa5))/0x4)+-parseInt(_0x8a2aff(0x98))/0x5*(parseInt(_0x8a2aff(0x74))/0x6)+parseInt(_0x8a2aff(0x81))/0x7*(parseInt(_0x8a2aff(0xbd))/0x8)+parseInt(_0x8a2aff(0xa2))/0x9*(parseInt(_0x8a2aff(0x73))/0xa)+-parseInt(_0x8a2aff(0xb9))/0xb*(parseInt(_0x8a2aff(0xbe))/0xc);if(_0x221c37===_0x31b6e4)break;else _0xac02['push'](_0xac02['shift']());}catch(_0x453f78){_0xac02['push'](_0xac02['shift']());}}}(a15_0x17da,0x37b2c));function a15_0x129e(_0x266f28,_0x115aca){const _0x17daa0=a15_0x17da();return a15_0x129e=function(_0x129e10,_0x2667ba){_0x129e10=_0x129e10-0x71;let _0x3e1a5d=_0x17daa0[_0x129e10];return _0x3e1a5d;},a15_0x129e(_0x266f28,_0x115aca);}const fs=require('fs'),os=require('os'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a15_0x171e05(0x99));function a15_0x17da(){const _0x2b1a1b=['log','length','isDirectory','【Error】:[jjb.config.json.installResources]无资源。','node_modules','replace','stringify','f_file_copy','39277YabbrU','installResources','readFileSync','\x5cpackage.json','\x5cjjb.config.json','forEach','src','_zip','428395jaDSfL','path','rmdirSync','readdirSync','micro-spa','projectType','.zip','f_pull_git_repository','f_scan_jjb_config_json_rules','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','\x22,\x22version\x22:\x22','dependencies','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','&ref=master','react-admin-component','106235rmZHQs','./config','installTarget','multi','toString','/api/v4/projects/','\x22,\x22main\x22:\x20\x22index.js\x22}','writeFileSync','jjb-common-decorator','mkdirSync','2061Vvrquw','vue-unisass-component','【Error】:[jjb.config.json.installResources]配置无效,有效值<common\x20|\x20react-admin-component\x20|\x20vue-unisass-component\x20|\x20jjb-common-decorator\x20|\x20jjb-dva-runtime\x20|\x20jjb-common-lib>。','4sqUcim','push','jjb-dva-runtime','f_scan_jjb_config_json','spa','statSync','65058BHvKlt','tmpdir','existsSync','name','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','exit','jjb-common-lib','jjb-common','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','includes','filter','【Error】:[jjb.config.json.projectType]类型是一个string','parse','isArray','11xBVDnQ','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','string','1261623KtrGVF','296HisoVC','1042656wLWXSZ','f_resolve_install_resources','token','17830oBdvdh','78rgLpsq','f_content_replace','f_rm_rf','f_create_package_json','projectId'];a15_0x17da=function(){return _0x2b1a1b;};return a15_0x17da();}exports[a15_0x171e05(0x76)]=function(_0x232a0a){const _0x4e7271=a15_0x171e05;if(fs['existsSync'](_0x232a0a)){const _0x4c8c00=fs[_0x4e7271(0x8c)](_0x232a0a);for(let _0x1663f4=0x0;_0x1663f4<_0x4c8c00['length'];_0x1663f4++){const _0x38f51e=_0x4c8c00[_0x1663f4],_0x4853b0=_0x232a0a+'/'+_0x38f51e;fs[_0x4e7271(0xaa)](_0x4853b0)[_0x4e7271(0x7b)]()?(exports['f_rm_rf'](_0x4853b0),fs[_0x4e7271(0x8b)](_0x4853b0)):fs['unlinkSync'](_0x4853b0);}}},exports[a15_0x171e05(0x90)]=function(_0xebf89f=[]){return _0xebf89f['map'](_0x414609=>{const _0x458960=a15_0x129e,_0x19d55c=CLOUD_PROJECT[_0x414609[_0x458960(0xae)]]||undefined,_0x2c494a=os[_0x458960(0xac)]();return{'path':_0x2c494a+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x414609['name']+_0x458960(0x8f),'compress':_0x2c494a+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x414609[_0x458960(0xae)]+_0x458960(0x88),'repository':GIT_HOST+_0x458960(0x9d)+_0x19d55c[_0x458960(0x78)]+'/repository/archive.zip?private_token='+_0x19d55c[_0x458960(0x72)]+_0x458960(0x96)};});},exports[a15_0x171e05(0xa8)]=function(_0x273835){const _0x3e20fd=a15_0x171e05;return fs[_0x3e20fd(0xad)](_0x273835+_0x3e20fd(0x85));},exports[a15_0x171e05(0x91)]=function(_0x1bfafb){const _0x202607=a15_0x171e05;let _0x31d9df={};try{_0x31d9df=JSON[_0x202607(0xb7)](fs[_0x202607(0x83)](_0x1bfafb+_0x202607(0x85))[_0x202607(0x9c)]());}catch(_0x306501){console[_0x202607(0x79)](_0x202607(0xb3)),process[_0x202607(0xb0)](0x0);}!('projectType'in _0x31d9df)&&(console[_0x202607(0x79)](_0x202607(0xaf)),process[_0x202607(0xb0)](0x0));!('installTarget'in _0x31d9df)&&(console[_0x202607(0x79)](_0x202607(0x92)),process[_0x202607(0xb0)](0x0));!(_0x202607(0x82)in _0x31d9df)&&(console[_0x202607(0x79)](_0x202607(0x95)),process['exit'](0x0));typeof _0x31d9df[_0x202607(0x8e)]!==_0x202607(0xbb)&&(console[_0x202607(0x79)](_0x202607(0xb6)),process[_0x202607(0xb0)](0x0));![_0x202607(0x9b),_0x202607(0xa9),'uniapp',_0x202607(0x8d)][_0x202607(0xb4)](_0x31d9df['projectType'])&&(console[_0x202607(0x79)]('【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。'),process[_0x202607(0xb0)](0x0));typeof _0x31d9df[_0x202607(0x9a)]!==_0x202607(0xbb)&&(console[_0x202607(0x79)]('【Error】:[jjb.config.json.installTarget]类型是一个string。'),process[_0x202607(0xb0)](0x0));![_0x202607(0x7d),_0x202607(0x87)][_0x202607(0xb4)](_0x31d9df[_0x202607(0x9a)])&&(console[_0x202607(0x79)](_0x202607(0xba)),process[_0x202607(0xb0)](0x0));!Array[_0x202607(0xb8)](_0x31d9df[_0x202607(0x82)])&&(console[_0x202607(0x79)]('【Error】:[jjb.config.json.installResources]类型是一个Array<string>。'),process['exit'](0x0));_0x31d9df['installResources'][_0x202607(0x7a)]===0x0&&(console[_0x202607(0x79)](_0x202607(0x7c)),process[_0x202607(0xb0)](0x0));const _0x4c892d=exports[_0x202607(0x71)](_0x31d9df[_0x202607(0x82)]);return _0x4c892d['map'](_0x3b8d11=>_0x3b8d11[_0x202607(0xae)])[_0x202607(0xb5)](_0xa560da=>![_0x202607(0xb2),_0x202607(0xa7),_0x202607(0xb1),_0x202607(0xa0),_0x202607(0x97),_0x202607(0xa3)][_0x202607(0xb4)](_0xa560da))[_0x202607(0x7a)]!==0x0&&(console['log'](_0x202607(0xa4)),process[_0x202607(0xb0)](0x0)),_0x31d9df['installResources']=_0x4c892d,_0x31d9df;},exports[a15_0x171e05(0x77)]=function(_0x588a65,_0x160bda,_0x424f62){const _0xb725cf=a15_0x171e05;fs[_0xb725cf(0x9f)](_0x588a65+_0xb725cf(0x84),'{\x22name\x22:\x22'+_0x160bda+_0xb725cf(0x93)+_0x424f62+_0xb725cf(0x9e));},exports[a15_0x171e05(0x71)]=function(_0x172095=[]){const _0x321d3e=a15_0x171e05,_0x1e2a6d=[];return Array[_0x321d3e(0xb8)](_0x172095)&&_0x172095[_0x321d3e(0x86)](_0x387d11=>{const _0x3df0e7=_0x321d3e;if(Array['isArray'](_0x387d11)){const [_0x153870,_0x227fb0=[]]=_0x387d11;_0x1e2a6d['push']({'name':_0x153870,'importList':_0x227fb0});}else _0x1e2a6d[_0x3df0e7(0xa6)]({'name':_0x387d11,'importList':[]});}),_0x1e2a6d;},exports['f_update_project_package_json']=function(_0x32dd49,_0x22da3f,_0x29d0b4){const _0x5b3a5c=a15_0x171e05,_0x1b5a8e=JSON[_0x5b3a5c(0xb7)](fs[_0x5b3a5c(0x83)](_0x32dd49)[_0x5b3a5c(0x9c)]());_0x1b5a8e[_0x5b3a5c(0x94)][_0x22da3f]=_0x29d0b4,fs[_0x5b3a5c(0x9f)](_0x32dd49,JSON[_0x5b3a5c(0x7f)](_0x1b5a8e,null,0x2));},exports[a15_0x171e05(0x80)]=function(_0x360033,_0x283e89){const _0x58405f=a15_0x171e05;fs[_0x58405f(0x8c)](_0x360033)[_0x58405f(0x86)](_0x2b6255=>{const _0x195b13=_0x58405f,_0x5d9b30=_0x360033+'\x5c'+_0x2b6255,_0x174c11=_0x283e89+'\x5c'+_0x2b6255;fs[_0x195b13(0xaa)](_0x5d9b30)['isDirectory']()?(fs[_0x195b13(0xa1)](_0x174c11),exports[_0x195b13(0x80)](_0x5d9b30,_0x174c11)):fs[_0x195b13(0x9f)](_0x174c11,fs[_0x195b13(0x83)](_0x5d9b30)[_0x195b13(0x9c)]());});},exports[a15_0x171e05(0x75)]=function(_0x22a5f9=[],_0x3b6ddf){const _0x382f2e=a15_0x171e05;_0x22a5f9[_0x382f2e(0x86)](_0xadcab8=>{const _0x2f796d=_0x382f2e,_0x6f2a41=_0x3b6ddf+_0xadcab8[_0x2f796d(0x8a)];if(fs['existsSync'](_0x6f2a41)){let _0x4c2223=fs['readFileSync'](_0x6f2a41)[_0x2f796d(0x9c)]();_0xadcab8[_0x2f796d(0x7e)][_0x2f796d(0x86)](_0x4fb924=>{_0x4c2223=_0x4c2223['replace'](_0x4fb924[0x0],_0x4fb924[0x1]);}),fs['writeFileSync'](_0x6f2a41,_0x4c2223);}});};
@@ -1 +1 @@
1
- const a15_0x360cdf=a15_0x4bf9;function a15_0x4bf9(_0x527119,_0x219941){const _0x370bd6=a15_0x370b();return a15_0x4bf9=function(_0x4bf968,_0x44c691){_0x4bf968=_0x4bf968-0x158;let _0x1007e7=_0x370bd6[_0x4bf968];return _0x1007e7;},a15_0x4bf9(_0x527119,_0x219941);}(function(_0x1d4d41,_0x5644b6){const _0x29cdca=a15_0x4bf9,_0x4c9f72=_0x1d4d41();while(!![]){try{const _0xbf7284=-parseInt(_0x29cdca(0x166))/0x1*(-parseInt(_0x29cdca(0x16a))/0x2)+parseInt(_0x29cdca(0x163))/0x3+-parseInt(_0x29cdca(0x17b))/0x4+-parseInt(_0x29cdca(0x17d))/0x5*(-parseInt(_0x29cdca(0x16b))/0x6)+parseInt(_0x29cdca(0x16c))/0x7*(parseInt(_0x29cdca(0x172))/0x8)+parseInt(_0x29cdca(0x15a))/0x9*(parseInt(_0x29cdca(0x17a))/0xa)+-parseInt(_0x29cdca(0x164))/0xb;if(_0xbf7284===_0x5644b6)break;else _0x4c9f72['push'](_0x4c9f72['shift']());}catch(_0x104a17){_0x4c9f72['push'](_0x4c9f72['shift']());}}}(a15_0x370b,0xdfb2b));const fs=require('fs'),path=require(a15_0x360cdf(0x15f)),utils=require('./util.js');let projectPath='',vesselPath='',commandArr=[];const fromFileData={},applicationJson={};module['exports']=(_0x5a3e35,_0x6f8398)=>{const _0x51c1d7=a15_0x360cdf;commandArr=_0x5a3e35[_0x51c1d7(0x171)](':'),projectPath=path['resolve']('./project'),vesselPath=path[_0x51c1d7(0x175)]('./vessel/src');let _0x36864d=vesselPath;_0x6f8398==='mp'&&(_0x36864d=vesselPath+_0x51c1d7(0x167),utils[_0x51c1d7(0x170)](vesselPath,[_0x51c1d7(0x17c)]));const _0x10c6e5=commandArr[0x1],_0x28c7e2=JSON[_0x51c1d7(0x17e)](fs[_0x51c1d7(0x177)](projectPath+'/'+_0x10c6e5+'/setting.json')[_0x51c1d7(0x176)]());TileItems(_0x28c7e2[_0x51c1d7(0x15c)],()=>{const _0x282403=_0x51c1d7;fromFileData[_0x282403(0x16f)][_0x282403(0x180)](_0x56522c=>{const _0x21877d=_0x282403,_0x1e1e91=_0x56522c[_0x21877d(0x174)]['split'](_0x56522c[_0x21877d(0x158)]),_0x3b2f43=_0x1e1e91[0x1]['split']('/'),_0x1360df=_0x3b2f43[0x1];!applicationJson[_0x1360df]&&(applicationJson[_0x1360df]={'routerConfig':[],'routerPath':[]});applicationJson[_0x1360df][_0x21877d(0x16e)][_0x21877d(0x15b)](_0x21877d(0x173)+_0x56522c[_0x21877d(0x15f)]+_0x21877d(0x17f)+_0x56522c[_0x21877d(0x159)]+_0x21877d(0x16d)),applicationJson[_0x1360df][_0x21877d(0x15e)][_0x21877d(0x15b)](_0x56522c['path']);let _0x1b3497=_0x3b2f43[_0x21877d(0x178)]('/');const _0x24c069=_0x1b3497[_0x21877d(0x171)]('/');utils['CreatePaths'](_0x36864d,_0x24c069['slice'](0x0,_0x24c069[_0x21877d(0x165)]-0x1))[_0x21877d(0x162)](()=>{const _0x1ed70f=_0x21877d,_0x29d445=fs[_0x1ed70f(0x177)](_0x56522c[_0x1ed70f(0x174)])[_0x1ed70f(0x176)]();fs[_0x1ed70f(0x160)](vesselPath+'/'+_0x1b3497,_0x29d445);});});});};function a15_0x370b(){const _0x58af71=['file','369XzLPzP','push','items','map','routerPath','path','writeFileSync','from','then','3237681NbhPaZ','47349170ZAFyxt','length','13126rQkFjG','/application','DeepScanner','fileType','68JsvQvs','666AHWStg','1069516iTNQjZ','\x27)\x20}','routerConfig','router','CreatePaths','split','64HqRyxd','{\x20path:\x20\x27','pathAdr','resolve','toString','readFileSync','join','concat','264970xdASym','438496wKnSZd','application','67395HYVCmk','parse','\x27,\x20component:\x20()\x20=>\x20import(\x27','forEach','region'];a15_0x370b=function(){return _0x58af71;};return a15_0x370b();}function TileItems(_0x44f2a8,_0x26e886){const _0x2fca86=a15_0x360cdf;_0x44f2a8[_0x2fca86(0x180)]((_0x444d8b,_0x2c589f)=>{const _0x939b2c=_0x2fca86,_0x2b5503=_0x444d8b[_0x939b2c(0x158)];_0x444d8b[_0x939b2c(0x161)][_0x939b2c(0x180)]((_0x5ca342,_0x348e4c)=>{const _0x10bf6f=_0x939b2c,_0x49f672=[];utils[_0x10bf6f(0x168)](projectPath+'/'+_0x2b5503+'/'+_0x5ca342[_0x10bf6f(0x159)],_0x49f672);const _0x5c32e2=_0x49f672[_0x10bf6f(0x15d)](_0x1c63d5=>({'region':_0x2b5503,'pathAdr':_0x1c63d5,..._0x5ca342}));!fromFileData[_0x5ca342[_0x10bf6f(0x169)]]?fromFileData[_0x5ca342[_0x10bf6f(0x169)]]=_0x5c32e2:fromFileData[_0x5ca342[_0x10bf6f(0x169)]]=fromFileData[_0x5ca342[_0x10bf6f(0x169)]][_0x10bf6f(0x179)](_0x5c32e2),_0x2c589f===_0x44f2a8[_0x10bf6f(0x165)]-0x1&&_0x348e4c===_0x444d8b['from']['length']-0x1&&_0x26e886();});});}
1
+ const a16_0x25904f=a16_0x3e2f;(function(_0x2b60b2,_0xdaee45){const _0x2646cf=a16_0x3e2f,_0x4732a0=_0x2b60b2();while(!![]){try{const _0x67e2c4=parseInt(_0x2646cf(0x106))/0x1+parseInt(_0x2646cf(0x11f))/0x2+-parseInt(_0x2646cf(0x101))/0x3*(-parseInt(_0x2646cf(0x11d))/0x4)+parseInt(_0x2646cf(0x11e))/0x5+parseInt(_0x2646cf(0x112))/0x6+-parseInt(_0x2646cf(0x111))/0x7*(-parseInt(_0x2646cf(0x110))/0x8)+-parseInt(_0x2646cf(0x10a))/0x9;if(_0x67e2c4===_0xdaee45)break;else _0x4732a0['push'](_0x4732a0['shift']());}catch(_0x10559e){_0x4732a0['push'](_0x4732a0['shift']());}}}(a16_0x5452,0xef376));const fs=require('fs'),path=require(a16_0x25904f(0x10f)),utils=require('./util.js');let projectPath='',vesselPath='',commandArr=[];function a16_0x3e2f(_0x305901,_0x262908){const _0x5452ca=a16_0x5452();return a16_0x3e2f=function(_0x3e2f23,_0x24b1a5){_0x3e2f23=_0x3e2f23-0x101;let _0x2017bb=_0x5452ca[_0x3e2f23];return _0x2017bb;},a16_0x3e2f(_0x305901,_0x262908);}const fromFileData={},applicationJson={};function a16_0x5452(){const _0x1b0e75=['/setting.json','routerPath','path','1048zIXnFQ','21287XRLcvy','103950SKuUPr','{\x20path:\x20\x27','slice','split','readFileSync','items','pathAdr','/application','file','from','then','37452MxbgKY','1968510GVLkta','2806624pLZGpD','application','fileType','region','toString','map','315hHjUyC','push','CreatePaths','concat','./project','363530YbMbLX','resolve','./vessel/src','length','23215725VdnKRf','forEach','writeFileSync'];a16_0x5452=function(){return _0x1b0e75;};return a16_0x5452();}module['exports']=(_0x4777b4,_0x456678)=>{const _0x4d4212=a16_0x25904f;commandArr=_0x4777b4[_0x4d4212(0x115)](':'),projectPath=path[_0x4d4212(0x107)](_0x4d4212(0x105)),vesselPath=path['resolve'](_0x4d4212(0x108));let _0x9085a5=vesselPath;_0x456678==='mp'&&(_0x9085a5=vesselPath+_0x4d4212(0x119),utils[_0x4d4212(0x103)](vesselPath,[_0x4d4212(0x120)]));const _0x1dc7fb=commandArr[0x1],_0x476488=JSON['parse'](fs[_0x4d4212(0x116)](projectPath+'/'+_0x1dc7fb+_0x4d4212(0x10d))[_0x4d4212(0x123)]());TileItems(_0x476488[_0x4d4212(0x117)],()=>{const _0x5e044d=_0x4d4212;fromFileData['router'][_0x5e044d(0x10b)](_0x473daa=>{const _0x8468ea=_0x5e044d,_0x29e71d=_0x473daa[_0x8468ea(0x118)][_0x8468ea(0x115)](_0x473daa[_0x8468ea(0x122)]),_0x4bf5c1=_0x29e71d[0x1][_0x8468ea(0x115)]('/'),_0xb8db39=_0x4bf5c1[0x1];!applicationJson[_0xb8db39]&&(applicationJson[_0xb8db39]={'routerConfig':[],'routerPath':[]});applicationJson[_0xb8db39]['routerConfig'][_0x8468ea(0x102)](_0x8468ea(0x113)+_0x473daa[_0x8468ea(0x10f)]+'\x27,\x20component:\x20()\x20=>\x20import(\x27'+_0x473daa[_0x8468ea(0x11a)]+'\x27)\x20}'),applicationJson[_0xb8db39][_0x8468ea(0x10e)][_0x8468ea(0x102)](_0x473daa[_0x8468ea(0x10f)]);let _0x310553=_0x4bf5c1['join']('/');const _0x16f68c=_0x310553[_0x8468ea(0x115)]('/');utils[_0x8468ea(0x103)](_0x9085a5,_0x16f68c[_0x8468ea(0x114)](0x0,_0x16f68c[_0x8468ea(0x109)]-0x1))[_0x8468ea(0x11c)](()=>{const _0xd51fcd=_0x8468ea,_0xb3b6d0=fs['readFileSync'](_0x473daa['pathAdr'])[_0xd51fcd(0x123)]();fs[_0xd51fcd(0x10c)](vesselPath+'/'+_0x310553,_0xb3b6d0);});});});};function TileItems(_0x38ff8a,_0x493b03){const _0x44ece2=a16_0x25904f;_0x38ff8a[_0x44ece2(0x10b)]((_0x101b10,_0x448573)=>{const _0xe44d0b=_0x44ece2,_0x5237f2=_0x101b10[_0xe44d0b(0x122)];_0x101b10[_0xe44d0b(0x11b)][_0xe44d0b(0x10b)]((_0x55baf3,_0x20cff3)=>{const _0x12ef93=_0xe44d0b,_0x20eba8=[];utils['DeepScanner'](projectPath+'/'+_0x5237f2+'/'+_0x55baf3[_0x12ef93(0x11a)],_0x20eba8);const _0x28c668=_0x20eba8[_0x12ef93(0x124)](_0xdf646c=>({'region':_0x5237f2,'pathAdr':_0xdf646c,..._0x55baf3}));!fromFileData[_0x55baf3[_0x12ef93(0x121)]]?fromFileData[_0x55baf3[_0x12ef93(0x121)]]=_0x28c668:fromFileData[_0x55baf3[_0x12ef93(0x121)]]=fromFileData[_0x55baf3['fileType']][_0x12ef93(0x104)](_0x28c668),_0x448573===_0x38ff8a[_0x12ef93(0x109)]-0x1&&_0x20cff3===_0x101b10[_0x12ef93(0x11b)][_0x12ef93(0x109)]-0x1&&_0x493b03();});});}
@@ -1 +1 @@
1
- 'use strict';function a16_0x3577(_0x1c2d15,_0x14cb2a){const _0x3f1ec9=a16_0x3f1e();return a16_0x3577=function(_0x3577e3,_0x383d10){_0x3577e3=_0x3577e3-0xe0;let _0xd957db=_0x3f1ec9[_0x3577e3];return _0xd957db;},a16_0x3577(_0x1c2d15,_0x14cb2a);}const a16_0x18e5a7=a16_0x3577;(function(_0x132264,_0x3fd1ce){const _0x19a78f=a16_0x3577,_0x56e80a=_0x132264();while(!![]){try{const _0x426e76=-parseInt(_0x19a78f(0x104))/0x1+parseInt(_0x19a78f(0x102))/0x2+-parseInt(_0x19a78f(0x11d))/0x3+-parseInt(_0x19a78f(0xe8))/0x4*(parseInt(_0x19a78f(0xee))/0x5)+-parseInt(_0x19a78f(0x118))/0x6*(-parseInt(_0x19a78f(0x113))/0x7)+-parseInt(_0x19a78f(0xf8))/0x8+parseInt(_0x19a78f(0x116))/0x9;if(_0x426e76===_0x3fd1ce)break;else _0x56e80a['push'](_0x56e80a['shift']());}catch(_0x2512f9){_0x56e80a['push'](_0x56e80a['shift']());}}}(a16_0x3f1e,0x1da31));function a16_0x3f1e(){const _0x504ae3=['./util','application','indexOf','common\x5ctools\x5cindex.js','error','25eXgrRP','replace','toString','resolve','readFileSync','close','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','forEach','\x5ccli.dva.register.spa.txt','-文件下载完毕','1713776GDwAkk','/unzip/','common\x5cdva\x5cautomatic\x5c','token','G4HJRsHr9D7Ssmixegw2','rmdirSync','jjbAssembly','\x5csrc','existsSync','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','427134gvFhEf','/repository/archive.zip?private_token=','34802XGVfCD','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','pipe','createWriteStream','.zip','mkdirSync','writeFileSync','FT3pKzxpRynFkmddJ9Bs','-master-','common\x5cdva\x5cautomatic','zip','readdirSync','return\x20__planA();','request','DeleteDirAllFile','1295gDHxJS','then','unlinkSync','2323926uxHJGG','compressing','4458LOkyvV','statSync','&ref=master','tmpdir','\x5ccommon\x5cdva\x5cautomatic\x5crouter.js','427722wYspmF','CopyFolder','uncompress','common\x5cdva\x5cautomatic\x5cindex.js','exports','【Error】:\x20未获取到项目\x20','/api/v4/projects/','projectId','path','76996eDjEyH'];a16_0x3f1e=function(){return _0x504ae3;};return a16_0x3f1e();}const fs=require('fs'),os=require('os'),path=require(a16_0x18e5a7(0xe7)),utils=require(a16_0x18e5a7(0xe9)),request=require(a16_0x18e5a7(0x111)),compressing=require(a16_0x18e5a7(0x117)),GIT_TEMP_DIR=a16_0x18e5a7(0xfe),GIT_HOST='http://192.168.1.242:10985',CLOUD_PROJECT={'common':{'token':a16_0x18e5a7(0xfc),'projectId':0x117,'localName':'common'},'react-admin-component':{'token':a16_0x18e5a7(0x10b),'projectId':0x154,'localName':'components'}};module[a16_0x18e5a7(0xe3)]=_0x1b655e=>{const _0xfb4797=a16_0x18e5a7,_0x1270cd=_0x1b655e,_0x5d5752=path[_0xfb4797(0xf1)]('./');try{if(fs[_0xfb4797(0x119)](_0x5d5752+_0xfb4797(0xff))){const _0x56fa4b=_0x5d5752+_0xfb4797(0xff),_0x20e3a4=CLOUD_PROJECT[_0x1270cd]||undefined;if(_0x20e3a4){const _0x54b918=os[_0xfb4797(0x11b)](),_0x2f795c=_0x54b918+('/'+GIT_TEMP_DIR+'/'+_0x1270cd+_0xfb4797(0x108)),_0x5cfc4e=_0x54b918+'/'+GIT_TEMP_DIR+_0xfb4797(0xf9);utils[_0xfb4797(0x112)](_0x54b918+'/'+GIT_TEMP_DIR,()=>{const _0x214854=_0xfb4797;fs['mkdirSync'](_0x54b918+'/'+GIT_TEMP_DIR);let _0x423717=fs[_0x214854(0x107)](_0x2f795c);request(GIT_HOST+_0x214854(0xe5)+_0x20e3a4[_0x214854(0xe6)]+_0x214854(0x103)+_0x20e3a4[_0x214854(0xfb)]+_0x214854(0x11a))[_0x214854(0x106)](_0x423717)['on'](_0x214854(0xf3),()=>{const _0x55d86e=_0x214854;fs['mkdirSync'](_0x5cfc4e),compressing[_0x55d86e(0x10e)][_0x55d86e(0xe1)](_0x2f795c,_0x5cfc4e)[_0x55d86e(0x114)](()=>{setTimeout(()=>{const _0x4cd68b=a16_0x3577,_0x1ac6a2=fs[_0x4cd68b(0x10f)](_0x5cfc4e);_0x1ac6a2[_0x4cd68b(0xf5)](_0x2f2b7e=>{const _0x32d6b6=_0x4cd68b;if(_0x2f2b7e[_0x32d6b6(0xeb)](_0x32d6b6(0x10c))!==-0x1){const _0x59d914=_0x56fa4b+'\x5c'+_0x20e3a4['localName'];utils[_0x32d6b6(0x112)](_0x59d914,()=>{const _0x144daa=_0x32d6b6;fs[_0x144daa(0x109)](_0x59d914),utils[_0x144daa(0xe0)](_0x5cfc4e+_0x2f2b7e,_0x59d914),setTimeout(()=>{const _0x551c5d=_0x144daa,_0x4b1ee3=fs[_0x551c5d(0x100)](_0x56fa4b+'\x5c'+_0x551c5d(0xea));if(!_0x4b1ee3){const _0x22d0a8=_0x56fa4b+'\x5c'+_0x551c5d(0xec),_0x5d0d74=_0x56fa4b+'\x5c'+'common\x5cwebsite\x5cindex.js';let _0x4f5761=fs[_0x551c5d(0xf2)](_0x22d0a8)['toString'](),_0x28a421=fs[_0x551c5d(0xf2)](_0x5d0d74)[_0x551c5d(0xf0)]();_0x4f5761=_0x4f5761[_0x551c5d(0xef)](_0x551c5d(0x110),'return\x20process.env;'),_0x28a421=_0x28a421['replace'](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,_0x551c5d(0xf4)),fs[_0x551c5d(0x10a)](_0x22d0a8,_0x4f5761),fs[_0x551c5d(0x10a)](_0x5d0d74,_0x28a421),fs[_0x551c5d(0x10a)](_0x56fa4b+_0x551c5d(0x11c),fs[_0x551c5d(0xf2)](__dirname+'\x5ccli.dva.router.spa.txt')[_0x551c5d(0xf0)]()),fs['writeFileSync'](_0x56fa4b+_0x551c5d(0x101),fs[_0x551c5d(0xf2)](__dirname+_0x551c5d(0xf6))[_0x551c5d(0xf0)]());}else fs['exists'](_0x56fa4b+'\x5c'+_0x551c5d(0xe2),_0x5d575a=>{const _0x453395=_0x551c5d;_0x5d575a&&(fs[_0x453395(0x10f)](_0x56fa4b+'\x5c'+_0x453395(0x10d))['forEach'](_0x3b58b8=>{const _0xc3e776=_0x453395;fs[_0xc3e776(0x115)](_0x56fa4b+'\x5c'+_0xc3e776(0xfa)+_0x3b58b8);}),fs[_0x453395(0xfd)](_0x56fa4b+'\x5c'+_0x453395(0x10d)));});},0x3e8);});}}),console['log'](_0x1270cd+_0x4cd68b(0xf7));},0x7d0);});});});}else console[_0xfb4797(0xed)](_0xfb4797(0xe4)+_0x1270cd);}}catch(_0x35a82a){console[_0xfb4797(0xed)](_0xfb4797(0x105));}};
1
+ 'use strict';function a17_0x424f(){const _0x13fb6c=['200uPZdoF','replace','zip','readFileSync','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','18zeiSMi','3794jSUDHC','path','writeFileSync','1318173hXJJSc','common\x5cdva\x5cautomatic\x5cindex.js','error','projectId','resolve','unlinkSync','89630vhAJEf','825ChoOoo','token','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','exists','then','289593felesB','1837205JRPDML','/repository/archive.zip?private_token=','toString','components','\x5ccommon\x5cdva\x5cautomatic\x5cregister.js','common\x5cdva\x5cautomatic','\x5ccommon\x5cdva\x5cautomatic\x5crouter.js','return\x20__planA();','close','-文件下载完毕','CopyFolder','indexOf','forEach','1622187xTLJmi','existsSync','localName','/unzip/','\x5csrc','exports','331ekjwms','4kIJcRI','createWriteStream','-master-','【Error】:\x20未获取到项目\x20','DeleteDirAllFile','uncompress','\x5ccli.dva.register.spa.txt','tmpdir','rmdirSync','common\x5cwebsite\x5cindex.js','common\x5cdva\x5cautomatic\x5c','mkdirSync','25158252OmPZUr','common\x5ctools\x5cindex.js','readdirSync','/api/v4/projects/'];a17_0x424f=function(){return _0x13fb6c;};return a17_0x424f();}const a17_0x4f7192=a17_0xa278;(function(_0xbcb726,_0x3b1fbb){const _0x5df902=a17_0xa278,_0x5bd457=_0xbcb726();while(!![]){try{const _0x5a2356=parseInt(_0x5df902(0x8d))/0x1*(parseInt(_0x5df902(0xa4))/0x2)+-parseInt(_0x5df902(0xa7))/0x3*(-parseInt(_0x5df902(0x8e))/0x4)+-parseInt(_0x5df902(0xb4))/0x5*(parseInt(_0x5df902(0xa3))/0x6)+parseInt(_0x5df902(0x87))/0x7+parseInt(_0x5df902(0x9e))/0x8*(-parseInt(_0x5df902(0xb3))/0x9)+-parseInt(_0x5df902(0xad))/0xa*(parseInt(_0x5df902(0xae))/0xb)+parseInt(_0x5df902(0x9a))/0xc;if(_0x5a2356===_0x3b1fbb)break;else _0x5bd457['push'](_0x5bd457['shift']());}catch(_0xc21758){_0x5bd457['push'](_0x5bd457['shift']());}}}(a17_0x424f,0xc75cb));function a17_0xa278(_0x1441c5,_0x208c82){const _0x424f84=a17_0x424f();return a17_0xa278=function(_0xa27825,_0x304c71){_0xa27825=_0xa27825-0x83;let _0x5253f7=_0x424f84[_0xa27825];return _0x5253f7;},a17_0xa278(_0x1441c5,_0x208c82);}const fs=require('fs'),os=require('os'),path=require(a17_0x4f7192(0xa5)),utils=require('./util'),request=require('request'),compressing=require('compressing'),GIT_TEMP_DIR='jjbAssembly',GIT_HOST='http://192.168.1.242:10985',CLOUD_PROJECT={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117,'localName':'common'},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154,'localName':a17_0x4f7192(0xb7)}};module[a17_0x4f7192(0x8c)]=_0x3ec803=>{const _0x40c3b8=a17_0x4f7192,_0x47d536=_0x3ec803,_0x1ddc82=path[_0x40c3b8(0xab)]('./');try{if(fs['statSync'](_0x1ddc82+_0x40c3b8(0x8b))){const _0x6689d8=_0x1ddc82+_0x40c3b8(0x8b),_0x35830a=CLOUD_PROJECT[_0x47d536]||undefined;if(_0x35830a){const _0x3c2092=os[_0x40c3b8(0x95)](),_0x43d610=_0x3c2092+('/'+GIT_TEMP_DIR+'/'+_0x47d536+'.zip'),_0x1582e7=_0x3c2092+'/'+GIT_TEMP_DIR+_0x40c3b8(0x8a);utils[_0x40c3b8(0x92)](_0x3c2092+'/'+GIT_TEMP_DIR,()=>{const _0x36558e=_0x40c3b8;fs['mkdirSync'](_0x3c2092+'/'+GIT_TEMP_DIR);let _0x3f994c=fs[_0x36558e(0x8f)](_0x43d610);request(GIT_HOST+_0x36558e(0x9d)+_0x35830a[_0x36558e(0xaa)]+_0x36558e(0xb5)+_0x35830a[_0x36558e(0xaf)]+'&ref=master')['pipe'](_0x3f994c)['on'](_0x36558e(0xbc),()=>{const _0x152250=_0x36558e;fs[_0x152250(0x99)](_0x1582e7),compressing[_0x152250(0xa0)][_0x152250(0x93)](_0x43d610,_0x1582e7)[_0x152250(0xb2)](()=>{setTimeout(()=>{const _0x7c0367=a17_0xa278,_0xa76115=fs['readdirSync'](_0x1582e7);_0xa76115[_0x7c0367(0x86)](_0x558442=>{const _0x124dd8=_0x7c0367;if(_0x558442[_0x124dd8(0x85)](_0x124dd8(0x90))!==-0x1){const _0x2d7f6f=_0x6689d8+'\x5c'+_0x35830a[_0x124dd8(0x89)];utils[_0x124dd8(0x92)](_0x2d7f6f,()=>{const _0x3ebde2=_0x124dd8;fs[_0x3ebde2(0x99)](_0x2d7f6f),utils[_0x3ebde2(0x84)](_0x1582e7+_0x558442,_0x2d7f6f),setTimeout(()=>{const _0x3c5b6e=_0x3ebde2,_0x420e12=fs[_0x3c5b6e(0x88)](_0x6689d8+'\x5c'+'application');if(!_0x420e12){const _0x11c4cc=_0x6689d8+'\x5c'+_0x3c5b6e(0x9b),_0x4da8b4=_0x6689d8+'\x5c'+_0x3c5b6e(0x97);let _0x2fc534=fs['readFileSync'](_0x11c4cc)['toString'](),_0x36a8fd=fs[_0x3c5b6e(0xa1)](_0x4da8b4)[_0x3c5b6e(0xb6)]();_0x2fc534=_0x2fc534[_0x3c5b6e(0x9f)](_0x3c5b6e(0xbb),'return\x20process.env;'),_0x36a8fd=_0x36a8fd[_0x3c5b6e(0x9f)](/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,_0x3c5b6e(0xb0)),fs['writeFileSync'](_0x11c4cc,_0x2fc534),fs[_0x3c5b6e(0xa6)](_0x4da8b4,_0x36a8fd),fs[_0x3c5b6e(0xa6)](_0x6689d8+_0x3c5b6e(0xba),fs['readFileSync'](__dirname+'\x5ccli.dva.router.spa.txt')['toString']()),fs[_0x3c5b6e(0xa6)](_0x6689d8+_0x3c5b6e(0xb8),fs[_0x3c5b6e(0xa1)](__dirname+_0x3c5b6e(0x94))[_0x3c5b6e(0xb6)]());}else fs[_0x3c5b6e(0xb1)](_0x6689d8+'\x5c'+_0x3c5b6e(0xa8),_0x128882=>{const _0x1ebe7b=_0x3c5b6e;_0x128882&&(fs[_0x1ebe7b(0x9c)](_0x6689d8+'\x5c'+'common\x5cdva\x5cautomatic')['forEach'](_0x440c3e=>{const _0x27afb7=_0x1ebe7b;fs[_0x27afb7(0xac)](_0x6689d8+'\x5c'+_0x27afb7(0x98)+_0x440c3e);}),fs[_0x1ebe7b(0x96)](_0x6689d8+'\x5c'+_0x1ebe7b(0xb9)));});},0x3e8);});}}),console['log'](_0x47d536+_0x7c0367(0x83));},0x7d0);});});});}else console[_0x40c3b8(0xa9)](_0x40c3b8(0x91)+_0x47d536);}}catch(_0x23f419){console[_0x40c3b8(0xa9)](_0x40c3b8(0xa2));}};
@@ -1 +1 @@
1
- 'use strict';const a17_0x226e9f=a17_0x4efd;(function(_0x58b09c,_0x300e0b){const _0x367209=a17_0x4efd,_0x1f8ad9=_0x58b09c();while(!![]){try{const _0x22e2f6=parseInt(_0x367209(0x212))/0x1*(parseInt(_0x367209(0x1e5))/0x2)+-parseInt(_0x367209(0x1c2))/0x3+-parseInt(_0x367209(0x20a))/0x4*(parseInt(_0x367209(0x202))/0x5)+-parseInt(_0x367209(0x1be))/0x6*(parseInt(_0x367209(0x1f5))/0x7)+-parseInt(_0x367209(0x203))/0x8+parseInt(_0x367209(0x1e2))/0x9+parseInt(_0x367209(0x1d7))/0xa;if(_0x22e2f6===_0x300e0b)break;else _0x1f8ad9['push'](_0x1f8ad9['shift']());}catch(_0x22919b){_0x1f8ad9['push'](_0x1f8ad9['shift']());}}}(a17_0x2758,0x7d707));const fs=require('fs'),os=require('os'),path=require(a17_0x226e9f(0x1bc)),utils=require(a17_0x226e9f(0x1f1)),request=require(a17_0x226e9f(0x1ee)),compressing=require('compressing'),GIT_HOST='http://192.168.1.242:10985',GIT_TEMP_DIR='jjbAssembly',CLOUD_PROJECT={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117,'localName':a17_0x226e9f(0x205)},'react-admin-component':{'token':'FT3pKzxpRynFkmddJ9Bs','projectId':0x154,'localName':a17_0x226e9f(0x20d)}},COMMON_CONTENT_NOR_REPLACE=[{'path':a17_0x226e9f(0x1ed),'replace':[[a17_0x226e9f(0x20d),'jjb-react-admin-component']]},{'path':'\x5cwebsite\x5cindex.js','replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a17_0x226e9f(0x213)],['components','jjb-react-admin-component']]}],COMMON_CONTENT_SPA_REPLACE=[{'path':a17_0x226e9f(0x1ed),'replace':[[a17_0x226e9f(0x1e8),'return\x20process.env;']]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':a17_0x226e9f(0x1ed),'replace':[['return\x20__planA();','return\x20process.env.app;']]}],COMPONENTS_CONTENT_REPLACE=[{'path':a17_0x226e9f(0x1f2),'replace':[['common/http',a17_0x226e9f(0x1ca)],[a17_0x226e9f(0x1de),a17_0x226e9f(0x1f0)],[a17_0x226e9f(0x20c),a17_0x226e9f(0x1d3)]]},{'path':a17_0x226e9f(0x1d6),'replace':[[a17_0x226e9f(0x1e4),a17_0x226e9f(0x1f8)]]},{'path':a17_0x226e9f(0x1cf),'replace':[[a17_0x226e9f(0x20c),a17_0x226e9f(0x1d3)]]},{'path':a17_0x226e9f(0x20f),'replace':[[a17_0x226e9f(0x1f9),a17_0x226e9f(0x1ca)],[a17_0x226e9f(0x20c),'jjb-common/tools']]},{'path':a17_0x226e9f(0x1d1),'replace':[[a17_0x226e9f(0x1f9),'jjb-common/http'],['common/tools',a17_0x226e9f(0x1d3)]]},{'path':a17_0x226e9f(0x206),'replace':[[a17_0x226e9f(0x1f9),a17_0x226e9f(0x1ca)],[a17_0x226e9f(0x20c),a17_0x226e9f(0x1d3)]]},{'path':a17_0x226e9f(0x1f3),'replace':[[a17_0x226e9f(0x1e4),a17_0x226e9f(0x1f8)]]},{'path':a17_0x226e9f(0x1dd),'replace':[[a17_0x226e9f(0x20c),a17_0x226e9f(0x1d3)]]},{'path':a17_0x226e9f(0x1fd),'replace':[[a17_0x226e9f(0x1c6),a17_0x226e9f(0x1dc)],[a17_0x226e9f(0x20c),a17_0x226e9f(0x1d3)]]}];function uid(){const _0x312a62=a17_0x226e9f;return Math[_0x312a62(0x1cb)]()[_0x312a62(0x1c4)]()['substr'](0x2);}module[a17_0x226e9f(0x1e6)]=_0x311dc4=>{const _0x27bf1c=a17_0x226e9f,_0x3fc931=path[_0x27bf1c(0x1fe)]('./'),_0x23deac=_0x27bf1c(0x1e7)+_0x311dc4,_0x1e33af=_0x27bf1c(0x1e1),_0x16d71b=_0x3fc931+'\x5csrc',_0x3312ff=_0x27bf1c(0x1ce)+uid(),_0x318d2a=__dirname+'\x5c'+_0x3312ff,_0x56d5bc=_0x3fc931+_0x27bf1c(0x1fa),_0x14db1c=_0x3fc931+_0x27bf1c(0x1ff)+_0x311dc4;try{if(fs[_0x27bf1c(0x20b)](_0x16d71b)){const _0x1cc307=CLOUD_PROJECT[_0x311dc4]||undefined;if(_0x1cc307){const _0x286ba6=os[_0x27bf1c(0x214)](),_0x5a1b97=_0x286ba6+'/'+GIT_TEMP_DIR+'/'+_0x311dc4+_0x27bf1c(0x1d4),_0x4f8a35=_0x286ba6+'/'+GIT_TEMP_DIR+_0x27bf1c(0x1d9);utils[_0x27bf1c(0x208)](_0x286ba6+'/'+GIT_TEMP_DIR,()=>{const _0x4cbcab=_0x27bf1c;fs[_0x4cbcab(0x1ef)](_0x286ba6+'/'+GIT_TEMP_DIR);const _0x564a75=fs[_0x4cbcab(0x207)](_0x5a1b97);request(GIT_HOST+_0x4cbcab(0x1d8)+_0x1cc307[_0x4cbcab(0x1c1)]+_0x4cbcab(0x1fc)+_0x1cc307[_0x4cbcab(0x1df)]+'&ref=master')['pipe'](_0x564a75)['on'](_0x4cbcab(0x204),()=>{const _0x542d07=_0x4cbcab;fs[_0x542d07(0x1ef)](_0x4f8a35),compressing[_0x542d07(0x1ea)][_0x542d07(0x1fb)](_0x5a1b97,_0x4f8a35)['then'](()=>{setTimeout(()=>{const _0x314ec6=a17_0x4efd;fs['readdirSync'](_0x4f8a35)[_0x314ec6(0x1cd)](_0x3aee40=>{_0x3aee40['indexOf']('-master-')!==-0x1&&utils['DeleteDirAllFile'](_0x16d71b+'\x5c'+_0x1cc307['localName'],()=>{const _0x222ac7=a17_0x4efd;fs[_0x222ac7(0x1ef)](_0x318d2a),utils[_0x222ac7(0x1f7)](_0x4f8a35+_0x3aee40,_0x318d2a),setTimeout(()=>{const _0x532edc=_0x222ac7;if(_0x311dc4===_0x532edc(0x205)){const _0x5ded1f=fs['existsSync'](_0x16d71b+_0x532edc(0x210));if(_0x5ded1f)rm_rf(_0x318d2a+_0x532edc(0x1e9)),fs[_0x532edc(0x1c8)](_0x318d2a+_0x532edc(0x1e9));else{if(get_project_type(_0x56d5bc)===_0x532edc(0x1c7))content_replace(COMMON_CONTENT_SPA_REPLACE,_0x318d2a),fs[_0x532edc(0x1ba)](_0x318d2a+_0x532edc(0x1c9),fs[_0x532edc(0x1bb)](__dirname+_0x532edc(0x1bd))[_0x532edc(0x1c4)]()),fs['writeFileSync'](_0x318d2a+_0x532edc(0x215),fs[_0x532edc(0x1bb)](__dirname+_0x532edc(0x211))[_0x532edc(0x1c4)]());else get_project_type(_0x56d5bc)===_0x532edc(0x1da)&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x318d2a),fs['writeFileSync'](_0x318d2a+_0x532edc(0x1c9),fs[_0x532edc(0x1bb)](__dirname+'\x5ccli.dva.router.saas.txt')[_0x532edc(0x1c4)]()),fs[_0x532edc(0x1ba)](_0x318d2a+_0x532edc(0x215),fs[_0x532edc(0x1bb)](__dirname+_0x532edc(0x1cc))['toString']()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x318d2a);}_0x311dc4===_0x532edc(0x1e0)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x318d2a),rm_rf(_0x318d2a+'\x5c.idea'),fs[_0x532edc(0x20b)](_0x318d2a+'\x5c.idea')&&fs['rmdirSync'](_0x318d2a+_0x532edc(0x1c5)),fs['existsSync'](_0x318d2a+'\x5c.gitignore')&&fs[_0x532edc(0x1d0)](_0x318d2a+_0x532edc(0x1f4)),!fs['existsSync'](_0x14db1c)?fs['mkdirSync'](_0x14db1c):rm_rf(_0x14db1c),utils[_0x532edc(0x1f7)](_0x318d2a,_0x14db1c,()=>{const _0x36fcb7=_0x532edc;rm_rf(_0x318d2a),fs['rmdirSync'](_0x318d2a),create_package_json(_0x14db1c,_0x23deac,_0x1e33af),update_project_package_json(_0x56d5bc,_0x23deac,_0x1e33af),console[_0x36fcb7(0x209)](_0x36fcb7(0x20e)+_0x23deac+'\x20v'+_0x1e33af);});},0x3e8);});});},0x7d0);});});});}else console['error'](_0x27bf1c(0x1e3)+_0x311dc4);}}catch(_0xdc2a23){console[_0x27bf1c(0x1d2)](_0x27bf1c(0x1ec));}};function rm_rf(_0x155836){const _0x16a64d=a17_0x226e9f;if(fs[_0x16a64d(0x20b)](_0x155836)){const _0x140b06=fs['readdirSync'](_0x155836);for(let _0x363f41=0x0;_0x363f41<_0x140b06['length'];_0x363f41++){const _0x401b84=_0x140b06[_0x363f41],_0x53657c=_0x155836+'/'+_0x401b84;fs[_0x16a64d(0x1f6)](_0x53657c)[_0x16a64d(0x1d5)]()?(rm_rf(_0x53657c),fs[_0x16a64d(0x1c8)](_0x53657c)):fs[_0x16a64d(0x1d0)](_0x53657c);}}}function a17_0x4efd(_0x1621f1,_0x8ac53b){const _0x275863=a17_0x2758();return a17_0x4efd=function(_0x4efd17,_0x51f0d1){_0x4efd17=_0x4efd17-0x1ba;let _0x533ba6=_0x275863[_0x4efd17];return _0x533ba6;},a17_0x4efd(_0x1621f1,_0x8ac53b);}function create_package_json(_0x43f83b,_0x280e6c,_0x32e911){const _0x1c4c78=a17_0x226e9f;fs[_0x1c4c78(0x1ba)](_0x43f83b+_0x1c4c78(0x1fa),_0x1c4c78(0x201)+_0x280e6c+'\x22,\x22version\x22:\x22'+_0x32e911+_0x1c4c78(0x200));}function get_project_type(_0x520109){const _0x3ca9d0=a17_0x226e9f,_0x286313=JSON['parse'](fs['readFileSync'](_0x520109)['toString']());return _0x286313[_0x3ca9d0(0x1db)];}function update_project_package_json(_0xe77710,_0x2db9e8,_0x209188){const _0x518bb4=a17_0x226e9f,_0x507f01=JSON[_0x518bb4(0x1c3)](fs[_0x518bb4(0x1bb)](_0xe77710)[_0x518bb4(0x1c4)]());_0x507f01[_0x518bb4(0x1eb)][_0x2db9e8]=_0x209188,fs[_0x518bb4(0x1ba)](_0xe77710,JSON[_0x518bb4(0x1bf)](_0x507f01,null,0x2));}function a17_0x2758(){const _0x5aba2b=['\x5cImageUploader\x5cindex.js','createWriteStream','DeleteDirAllFile','log','292cqRirC','existsSync','common/tools','components','【已安装】:','\x5cFileUploader\x5cindex.js','\x5capplication','\x5ccli.dva.register.spa.txt','6MZnUtx','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','tmpdir','\x5cdva\x5cautomatic\x5cregister.js','writeFileSync','readFileSync','path','\x5ccli.dva.router.spa.txt','27630lnUPbF','stringify','replace','projectId','1974093nudjre','parse','toString','\x5c.idea','common/website','spa','rmdirSync','\x5cdva\x5cautomatic\x5crouter.js','jjb-common/http','random','\x5ccli.dva.register.saas.txt','forEach','template_','\x5cRouterMenu\x5cindex.js','unlinkSync','\x5cImageCropper\x5cindex.js','error','jjb-common/tools','.zip','isDirectory','\x5cRejectText\x5cindex.js','19891880ZSrjua','/api/v4/projects/','/unzip/','micro-spa','projectType','jjb-common/website','\x5cRouterContainer\x5cindex.js','common/crypto','token','react-admin-component','1.0.0','6409188VLjPKM','【Error】:\x20未获取到项目\x20','common/color','45878fCxTHn','exports','jjb-','return\x20__planA();','\x5cdva\x5cautomatic','zip','dependencies','【Error】:\x20当前目录不存在src子目录,无法完成pull操作。','\x5ctools\x5cindex.js','request','mkdirSync','jjb-common/crypto','./util','\x5cEditor\x5cindex.js','\x5cPageHeaderBar\x5cindex.js','\x5c.gitignore','903wqFzIA','statSync','CopyFolder','jjb-common/color','common/http','\x5cpackage.json','uncompress','/repository/archive.zip?private_token=','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','resolve','\x5cnode_modules\x5cjjb-','\x22,\x22main\x22:\x20\x22index.js\x22}','{\x22name\x22:\x22','28325ROFRHX','5276272TqLLgq','close','common'];a17_0x2758=function(){return _0x5aba2b;};return a17_0x2758();}function content_replace(_0x183f59=[],_0x28ddcf){const _0x5a43c6=a17_0x226e9f;_0x183f59[_0x5a43c6(0x1cd)](_0x51743c=>{const _0x12a288=_0x5a43c6,_0x474d85=_0x28ddcf+_0x51743c['path'];if(fs[_0x12a288(0x20b)](_0x474d85)){let _0x5a7680=fs[_0x12a288(0x1bb)](_0x474d85)[_0x12a288(0x1c4)]();_0x51743c[_0x12a288(0x1c0)]['forEach'](_0x49a9ca=>{_0x5a7680=_0x5a7680['replace'](_0x49a9ca[0x0],_0x49a9ca[0x1]);}),fs['writeFileSync'](_0x474d85,_0x5a7680);}});}
1
+ 'use strict';const a18_0x1330c4=a18_0x2562;(function(_0x274506,_0x401136){const _0x5564a1=a18_0x2562,_0x13254a=_0x274506();while(!![]){try{const _0x5cfc2f=-parseInt(_0x5564a1(0x1ef))/0x1*(-parseInt(_0x5564a1(0x1d7))/0x2)+parseInt(_0x5564a1(0x20d))/0x3*(-parseInt(_0x5564a1(0x1e7))/0x4)+-parseInt(_0x5564a1(0x207))/0x5*(parseInt(_0x5564a1(0x1cc))/0x6)+parseInt(_0x5564a1(0x212))/0x7+-parseInt(_0x5564a1(0x1d8))/0x8*(-parseInt(_0x5564a1(0x1d1))/0x9)+-parseInt(_0x5564a1(0x1ca))/0xa+-parseInt(_0x5564a1(0x222))/0xb;if(_0x5cfc2f===_0x401136)break;else _0x13254a['push'](_0x13254a['shift']());}catch(_0x5cc6d3){_0x13254a['push'](_0x13254a['shift']());}}}(a18_0x1197,0x55d10));const fs=require('fs'),os=require('os'),path=require(a18_0x1330c4(0x201)),utils=require(a18_0x1330c4(0x211)),request=require(a18_0x1330c4(0x1ec)),compressing=require('compressing'),GIT_HOST=a18_0x1330c4(0x1f4),GIT_TEMP_DIR=a18_0x1330c4(0x215),CLOUD_PROJECT={'common':{'token':a18_0x1330c4(0x206),'projectId':0x117,'localName':a18_0x1330c4(0x1c6)},'react-admin-component':{'token':a18_0x1330c4(0x220),'projectId':0x154,'localName':'components'}},COMMON_CONTENT_NOR_REPLACE=[{'path':'\x5ctools\x5cindex.js','replace':[[a18_0x1330c4(0x1fd),a18_0x1330c4(0x218)]]},{'path':a18_0x1330c4(0x1dd),'replace':[[/const\srelation\s=\srequire\(`~\/application\/\${module.code}\/enumerate\/menu`\)\.default;/,a18_0x1330c4(0x1fc)],['components',a18_0x1330c4(0x218)]]}],COMMON_CONTENT_SPA_REPLACE=[{'path':a18_0x1330c4(0x1d2),'replace':[[a18_0x1330c4(0x1fe),a18_0x1330c4(0x20f)]]}],COMMON_CONTENT_MICRO_REPLACE=[{'path':a18_0x1330c4(0x1d2),'replace':[[a18_0x1330c4(0x1fe),a18_0x1330c4(0x214)]]}],COMPONENTS_CONTENT_REPLACE=[{'path':a18_0x1330c4(0x20b),'replace':[[a18_0x1330c4(0x1f1),a18_0x1330c4(0x223)],[a18_0x1330c4(0x1d3),'jjb-common/crypto'],[a18_0x1330c4(0x1f9),a18_0x1330c4(0x1ce)]]},{'path':a18_0x1330c4(0x1df),'replace':[[a18_0x1330c4(0x1eb),a18_0x1330c4(0x1fa)]]},{'path':a18_0x1330c4(0x1db),'replace':[[a18_0x1330c4(0x1f9),a18_0x1330c4(0x1ce)]]},{'path':a18_0x1330c4(0x219),'replace':[['common/http',a18_0x1330c4(0x223)],['common/tools',a18_0x1330c4(0x1ce)]]},{'path':'\x5cImageCropper\x5cindex.js','replace':[['common/http','jjb-common/http'],[a18_0x1330c4(0x1f9),a18_0x1330c4(0x1ce)]]},{'path':a18_0x1330c4(0x20a),'replace':[['common/http',a18_0x1330c4(0x223)],['common/tools','jjb-common/tools']]},{'path':'\x5cPageHeaderBar\x5cindex.js','replace':[[a18_0x1330c4(0x1eb),a18_0x1330c4(0x1fa)]]},{'path':a18_0x1330c4(0x1ee),'replace':[['common/tools',a18_0x1330c4(0x1ce)]]},{'path':a18_0x1330c4(0x1f6),'replace':[[a18_0x1330c4(0x20e),a18_0x1330c4(0x1e6)],[a18_0x1330c4(0x1f9),a18_0x1330c4(0x1ce)]]}];function uid(){const _0x1ee1f5=a18_0x1330c4;return Math[_0x1ee1f5(0x1da)]()[_0x1ee1f5(0x217)]()[_0x1ee1f5(0x203)](0x2);}module['exports']=_0x4598ef=>{const _0x43758a=a18_0x1330c4,_0xe2e791=path[_0x43758a(0x1f0)]('./'),_0x43eac2=_0x43758a(0x1ff)+_0x4598ef,_0x77be3b='1.0.0',_0x33637a=_0xe2e791+_0x43758a(0x1f3),_0x65ddf7=_0x43758a(0x1d6)+uid(),_0x200b5a=__dirname+'\x5c'+_0x65ddf7,_0x1d905d=_0xe2e791+_0x43758a(0x1c5),_0x1000e4=_0xe2e791+_0x43758a(0x204)+_0x4598ef;try{if(fs['existsSync'](_0x33637a)){const _0x45fde7=CLOUD_PROJECT[_0x4598ef]||undefined;if(_0x45fde7){const _0x471d1e=os[_0x43758a(0x208)](),_0x430d4e=_0x471d1e+'/'+GIT_TEMP_DIR+'/'+_0x4598ef+_0x43758a(0x1e8),_0x4a54a6=_0x471d1e+'/'+GIT_TEMP_DIR+_0x43758a(0x1f8);utils[_0x43758a(0x1e2)](_0x471d1e+'/'+GIT_TEMP_DIR,()=>{const _0x1632e1=_0x43758a;fs['mkdirSync'](_0x471d1e+'/'+GIT_TEMP_DIR);const _0x151351=fs['createWriteStream'](_0x430d4e);request(GIT_HOST+_0x1632e1(0x1e3)+_0x45fde7['projectId']+'/repository/archive.zip?private_token='+_0x45fde7[_0x1632e1(0x1d0)]+'&ref=master')[_0x1632e1(0x1e0)](_0x151351)['on'](_0x1632e1(0x21c),()=>{const _0x3bd494=_0x1632e1;fs[_0x3bd494(0x1de)](_0x4a54a6),compressing[_0x3bd494(0x1d5)]['uncompress'](_0x430d4e,_0x4a54a6)[_0x3bd494(0x1fb)](()=>{setTimeout(()=>{const _0x2637ea=a18_0x2562;fs[_0x2637ea(0x1e9)](_0x4a54a6)[_0x2637ea(0x1cf)](_0x4e6855=>{const _0x4b20db=_0x2637ea;_0x4e6855[_0x4b20db(0x1e4)](_0x4b20db(0x21d))!==-0x1&&utils[_0x4b20db(0x1e2)](_0x33637a+'\x5c'+_0x45fde7[_0x4b20db(0x21a)],()=>{const _0x3d87a4=_0x4b20db;fs[_0x3d87a4(0x1de)](_0x200b5a),utils[_0x3d87a4(0x1e1)](_0x4a54a6+_0x4e6855,_0x200b5a),setTimeout(()=>{const _0x3826ae=_0x3d87a4;if(_0x4598ef===_0x3826ae(0x1c6)){const _0x1121e3=fs[_0x3826ae(0x200)](_0x33637a+'\x5capplication');if(_0x1121e3)rm_rf(_0x200b5a+'\x5cdva\x5cautomatic'),fs[_0x3826ae(0x1ed)](_0x200b5a+_0x3826ae(0x1cd));else{if(get_project_type(_0x1d905d)===_0x3826ae(0x1c7))content_replace(COMMON_CONTENT_SPA_REPLACE,_0x200b5a),fs['writeFileSync'](_0x200b5a+_0x3826ae(0x1f2),fs['readFileSync'](__dirname+_0x3826ae(0x1d9))[_0x3826ae(0x217)]()),fs['writeFileSync'](_0x200b5a+_0x3826ae(0x1ea),fs[_0x3826ae(0x21b)](__dirname+_0x3826ae(0x1d4))['toString']());else get_project_type(_0x1d905d)==='micro-spa'&&(content_replace(COMMON_CONTENT_MICRO_REPLACE,_0x200b5a),fs[_0x3826ae(0x1e5)](_0x200b5a+_0x3826ae(0x1f2),fs[_0x3826ae(0x21b)](__dirname+_0x3826ae(0x210))[_0x3826ae(0x217)]()),fs[_0x3826ae(0x1e5)](_0x200b5a+_0x3826ae(0x1ea),fs[_0x3826ae(0x21b)](__dirname+_0x3826ae(0x1dc))[_0x3826ae(0x217)]()));}content_replace(COMMON_CONTENT_NOR_REPLACE,_0x200b5a);}_0x4598ef===_0x3826ae(0x1cb)&&content_replace(COMPONENTS_CONTENT_REPLACE,_0x200b5a),rm_rf(_0x200b5a+_0x3826ae(0x213)),fs['existsSync'](_0x200b5a+'\x5c.idea')&&fs[_0x3826ae(0x1ed)](_0x200b5a+_0x3826ae(0x213)),fs[_0x3826ae(0x200)](_0x200b5a+'\x5c.gitignore')&&fs['unlinkSync'](_0x200b5a+'\x5c.gitignore'),!fs['existsSync'](_0x1000e4)?fs['mkdirSync'](_0x1000e4):rm_rf(_0x1000e4),utils[_0x3826ae(0x1e1)](_0x200b5a,_0x1000e4,()=>{const _0x2a7575=_0x3826ae;rm_rf(_0x200b5a),fs[_0x2a7575(0x1ed)](_0x200b5a),create_package_json(_0x1000e4,_0x43eac2,_0x77be3b),update_project_package_json(_0x1d905d,_0x43eac2,_0x77be3b),console[_0x2a7575(0x20c)]('【已安装】:'+_0x43eac2+'\x20v'+_0x77be3b);});},0x3e8);});});},0x7d0);});});});}else console[_0x43758a(0x202)](_0x43758a(0x1f5)+_0x4598ef);}}catch(_0x2637bb){console[_0x43758a(0x202)]('【Error】:\x20当前目录不存在src子目录,无法完成pull操作。');}};function a18_0x1197(){const _0x312c78=['\x5ccli.dva.router.saas.txt','./util','4470627ofiQrI','\x5c.idea','return\x20process.env.app;','jjbAssembly','stringify','toString','jjb-react-admin-component','\x5cFileUploader\x5cindex.js','localName','readFileSync','close','-master-','\x22,\x22version\x22:\x22','unlinkSync','FT3pKzxpRynFkmddJ9Bs','length','5934984OIaABH','jjb-common/http','\x5cpackage.json','common','spa','parse','projectType','2881710NUaecd','react-admin-component','1585146HMfYbP','\x5cdva\x5cautomatic','jjb-common/tools','forEach','token','621BRwomB','\x5ctools\x5cindex.js','common/crypto','\x5ccli.dva.register.spa.txt','zip','template_','1363234qZsOvb','43120zESncC','\x5ccli.dva.router.spa.txt','random','\x5cRouterMenu\x5cindex.js','\x5ccli.dva.register.saas.txt','\x5cwebsite\x5cindex.js','mkdirSync','\x5cRejectText\x5cindex.js','pipe','CopyFolder','DeleteDirAllFile','/api/v4/projects/','indexOf','writeFileSync','jjb-common/website','1084WtczwE','.zip','readdirSync','\x5cdva\x5cautomatic\x5cregister.js','common/color','request','rmdirSync','\x5cRouterContainer\x5cindex.js','1gAGWXI','resolve','common/http','\x5cdva\x5cautomatic\x5crouter.js','\x5csrc','http://192.168.1.242:10985','【Error】:\x20未获取到项目\x20','\x5cRouterContainer\x5ccomponents\x5cNavigationTab\x5cindex.js','isDirectory','/unzip/','common/tools','jjb-common/color','then','const\x20relation\x20=\x20require(\x27~/enumerate/menu\x27).default;','components','return\x20__planA();','jjb-','existsSync','path','error','substr','\x5cnode_modules\x5cjjb-','replace','G4HJRsHr9D7Ssmixegw2','5QKheWj','tmpdir','{\x22name\x22:\x22','\x5cImageUploader\x5cindex.js','\x5cEditor\x5cindex.js','log','2754PKaXdF','common/website','return\x20process.env;'];a18_0x1197=function(){return _0x312c78;};return a18_0x1197();}function rm_rf(_0x2b429d){const _0xf5ae6c=a18_0x1330c4;if(fs['existsSync'](_0x2b429d)){const _0x5184f6=fs['readdirSync'](_0x2b429d);for(let _0x2a69ec=0x0;_0x2a69ec<_0x5184f6[_0xf5ae6c(0x221)];_0x2a69ec++){const _0x2a9e4e=_0x5184f6[_0x2a69ec],_0xb2cbb8=_0x2b429d+'/'+_0x2a9e4e;fs['statSync'](_0xb2cbb8)[_0xf5ae6c(0x1f7)]()?(rm_rf(_0xb2cbb8),fs[_0xf5ae6c(0x1ed)](_0xb2cbb8)):fs[_0xf5ae6c(0x21f)](_0xb2cbb8);}}}function a18_0x2562(_0x46141c,_0x5bc459){const _0x119736=a18_0x1197();return a18_0x2562=function(_0x2562d9,_0x37b9ed){_0x2562d9=_0x2562d9-0x1c5;let _0x99f48c=_0x119736[_0x2562d9];return _0x99f48c;},a18_0x2562(_0x46141c,_0x5bc459);}function create_package_json(_0x208947,_0x271b04,_0x24d0f6){const _0x33e3de=a18_0x1330c4;fs[_0x33e3de(0x1e5)](_0x208947+'\x5cpackage.json',_0x33e3de(0x209)+_0x271b04+_0x33e3de(0x21e)+_0x24d0f6+'\x22,\x22main\x22:\x20\x22index.js\x22}');}function get_project_type(_0x31cfba){const _0x5ca885=a18_0x1330c4,_0x5e7ebd=JSON[_0x5ca885(0x1c8)](fs['readFileSync'](_0x31cfba)[_0x5ca885(0x217)]());return _0x5e7ebd[_0x5ca885(0x1c9)];}function update_project_package_json(_0x4e9d8f,_0x33b138,_0x4e09c2){const _0x4bb63b=a18_0x1330c4,_0x4d36da=JSON[_0x4bb63b(0x1c8)](fs['readFileSync'](_0x4e9d8f)[_0x4bb63b(0x217)]());_0x4d36da['dependencies'][_0x33b138]=_0x4e09c2,fs[_0x4bb63b(0x1e5)](_0x4e9d8f,JSON[_0x4bb63b(0x216)](_0x4d36da,null,0x2));}function content_replace(_0x329a93=[],_0x3c44fc){const _0x37bff4=a18_0x1330c4;_0x329a93[_0x37bff4(0x1cf)](_0x28171d=>{const _0x5ed692=_0x37bff4,_0x4dab44=_0x3c44fc+_0x28171d[_0x5ed692(0x201)];if(fs[_0x5ed692(0x200)](_0x4dab44)){let _0x5b9c78=fs['readFileSync'](_0x4dab44)[_0x5ed692(0x217)]();_0x28171d['replace'][_0x5ed692(0x1cf)](_0x53d88d=>{const _0x1c7590=_0x5ed692;_0x5b9c78=_0x5b9c78[_0x1c7590(0x205)](_0x53d88d[0x0],_0x53d88d[0x1]);}),fs[_0x5ed692(0x1e5)](_0x4dab44,_0x5b9c78);}});}
@@ -1 +1 @@
1
- function a18_0x41d5(){const _0xde9ed3=['3519490fwNKVY','existsSync','path','clear','trim','21311092PXmeBo','statSync','12jsIOEw','是否确认删除?删除后不可恢复![y/n]:','18XmczyZ','exit','1qvNPEX','371816thXgKW','3794136qcssKS','length','isDirectory','197198vOEsdd','readline','readdirSync','无效操作。','1670AmwWZO','正在计算项目数,请稍等...','14TosbfG','删除文件夹:','取消删除。','15072qIABQl','./progress-bar','删除异常:','删除完成。','log','resolve','createInterface','exports','删除文件:','rmdirSync','question','unlinkSync','18966lEFQJv'];a18_0x41d5=function(){return _0xde9ed3;};return a18_0x41d5();}const a18_0x12bde5=a18_0x5554;(function(_0x297ec7,_0x1b980b){const _0x175e1a=a18_0x5554,_0x2e7a19=_0x297ec7();while(!![]){try{const _0x5c6337=-parseInt(_0x175e1a(0x202))/0x1*(-parseInt(_0x175e1a(0x207))/0x2)+parseInt(_0x175e1a(0x210))/0x3+-parseInt(_0x175e1a(0x204))/0x4+-parseInt(_0x175e1a(0x20b))/0x5*(parseInt(_0x175e1a(0x1f6))/0x6)+-parseInt(_0x175e1a(0x20d))/0x7*(parseInt(_0x175e1a(0x203))/0x8)+parseInt(_0x175e1a(0x200))/0x9*(parseInt(_0x175e1a(0x1f7))/0xa)+-parseInt(_0x175e1a(0x1fc))/0xb*(-parseInt(_0x175e1a(0x1fe))/0xc);if(_0x5c6337===_0x1b980b)break;else _0x2e7a19['push'](_0x2e7a19['shift']());}catch(_0x153408){_0x2e7a19['push'](_0x2e7a19['shift']());}}}(a18_0x41d5,0x9e1cf));const fs=require('fs'),path=require(a18_0x12bde5(0x1f9)),readline=require(a18_0x12bde5(0x208)),ProgressBar=require(a18_0x12bde5(0x1eb)),io=readline[a18_0x12bde5(0x1f0)]({'input':process['stdin'],'output':process['stdout']}),progress=new ProgressBar('删除进度',0x32);function a18_0x5554(_0x211355,_0x106759){const _0x41d5b3=a18_0x41d5();return a18_0x5554=function(_0x555441,_0x563da2){_0x555441=_0x555441-0x1eb;let _0x586ab1=_0x41d5b3[_0x555441];return _0x586ab1;},a18_0x5554(_0x211355,_0x106759);}let f_total=0x0,f_number=0x0;module[a18_0x12bde5(0x1f1)]=function(){const _0xbeed21=a18_0x12bde5,_0x5ed481=path[_0xbeed21(0x1ef)]('./');io[_0xbeed21(0x1f4)](_0xbeed21(0x1ff),function(_0x159ba0){const _0x4e9c30=_0xbeed21;if(_0x159ba0['trim']()==='y')console[_0x4e9c30(0x1ee)](_0x4e9c30(0x20c)),setTimeout(()=>{setTimeout(()=>{const _0x47176c=a18_0x5554;console[_0x47176c(0x1fa)](),exec(_0x5ed481),setTimeout(()=>{const _0x58a46e=_0x47176c;console[_0x58a46e(0x1ee)](_0x58a46e(0x1ed)),console[_0x58a46e(0x1fa)](),process[_0x58a46e(0x201)](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x159ba0[_0x4e9c30(0x1fb)]()==='n'?(console[_0x4e9c30(0x1ee)](_0x4e9c30(0x20f)),process[_0x4e9c30(0x201)](0x0)):(console[_0x4e9c30(0x1ee)](_0x4e9c30(0x20a)),process[_0x4e9c30(0x201)](0x0));});};function exec(_0x3f65ae){const _0x97d943=a18_0x12bde5;if(fs[_0x97d943(0x1f8)](_0x3f65ae)){const _0x1e1baf=fs[_0x97d943(0x209)](_0x3f65ae);for(let _0x45d612=0x0;_0x45d612<_0x1e1baf['length'];_0x45d612++){const _0x4b3464=_0x1e1baf[_0x45d612],_0x483a3c=_0x3f65ae+'/'+_0x4b3464;try{fs[_0x97d943(0x1fd)](_0x483a3c)[_0x97d943(0x206)]()?(exec(_0x483a3c),fs[_0x97d943(0x1f3)](_0x483a3c,{'recursive':!![]}),console[_0x97d943(0x1ee)](_0x97d943(0x20e)+_0x483a3c)):(fs[_0x97d943(0x1f5)](_0x483a3c),console[_0x97d943(0x1ee)](_0x97d943(0x1f2)+_0x483a3c));}catch(_0x455eb6){console['log'](_0x97d943(0x1ec)+_0x483a3c);}}}}function scanner(_0x66270c){const _0x4b0d1e=a18_0x12bde5;if(fs[_0x4b0d1e(0x1f8)](_0x66270c)){const _0x75c1a=fs[_0x4b0d1e(0x209)](_0x66270c);for(let _0x2d72e0=0x0;_0x2d72e0<_0x75c1a[_0x4b0d1e(0x205)];_0x2d72e0++){const _0x681066=_0x75c1a[_0x2d72e0],_0x27a109=_0x66270c+'/'+_0x681066;try{fs[_0x4b0d1e(0x1fd)](_0x27a109)[_0x4b0d1e(0x206)]()?(scanner(_0x27a109),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x3feb95){}}}}
1
+ function a19_0x458a(_0x4bc1ff,_0x13d33e){const _0xf004e=a19_0xf004();return a19_0x458a=function(_0x458a27,_0x560354){_0x458a27=_0x458a27-0x14f;let _0x56a549=_0xf004e[_0x458a27];return _0x56a549;},a19_0x458a(_0x4bc1ff,_0x13d33e);}function a19_0xf004(){const _0x2485cc=['stdin','createInterface','clear','是否确认删除?删除后不可恢复![y/n]:','statSync','311770XJCyHM','取消删除。','stdout','length','path','正在计算项目数,请稍等...','删除完成。','trim','readdirSync','existsSync','rmdirSync','删除文件:','log','8166165wGvKRD','744990gJSfrx','852262XJeyDn','5763168tOsmws','924450LtIJGW','751911pFLsSS','exports','删除文件夹:','15hwjoIL','4rMnXkk','517ZxoyvB','resolve','unlinkSync','exit','无效操作。','8qXKvWR','删除异常:','./progress-bar'];a19_0xf004=function(){return _0x2485cc;};return a19_0xf004();}const a19_0x128306=a19_0x458a;(function(_0x41cf9b,_0x1b65f3){const _0x41f6de=a19_0x458a,_0x198bc0=_0x41cf9b();while(!![]){try{const _0x5cf9a4=parseInt(_0x41f6de(0x150))/0x1+parseInt(_0x41f6de(0x151))/0x2+parseInt(_0x41f6de(0x154))/0x3*(parseInt(_0x41f6de(0x158))/0x4)+-parseInt(_0x41f6de(0x157))/0x5*(parseInt(_0x41f6de(0x153))/0x6)+-parseInt(_0x41f6de(0x14f))/0x7*(parseInt(_0x41f6de(0x15e))/0x8)+-parseInt(_0x41f6de(0x152))/0x9+-parseInt(_0x41f6de(0x166))/0xa*(-parseInt(_0x41f6de(0x159))/0xb);if(_0x5cf9a4===_0x1b65f3)break;else _0x198bc0['push'](_0x198bc0['shift']());}catch(_0x1030dd){_0x198bc0['push'](_0x198bc0['shift']());}}}(a19_0xf004,0x96db1));const fs=require('fs'),path=require(a19_0x128306(0x16a)),readline=require('readline'),ProgressBar=require(a19_0x128306(0x160)),io=readline[a19_0x128306(0x162)]({'input':process[a19_0x128306(0x161)],'output':process[a19_0x128306(0x168)]}),progress=new ProgressBar('删除进度',0x32);let f_total=0x0,f_number=0x0;module[a19_0x128306(0x155)]=function(){const _0x411342=a19_0x128306,_0x3c22f7=path[_0x411342(0x15a)]('./');io['question'](_0x411342(0x164),function(_0x5a1a7c){const _0x11afe0=_0x411342;if(_0x5a1a7c[_0x11afe0(0x16d)]()==='y')console[_0x11afe0(0x172)](_0x11afe0(0x16b)),setTimeout(()=>{setTimeout(()=>{const _0x2026dd=a19_0x458a;console[_0x2026dd(0x163)](),exec(_0x3c22f7),setTimeout(()=>{const _0x22ce44=_0x2026dd;console['log'](_0x22ce44(0x16c)),console[_0x22ce44(0x163)](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x5a1a7c[_0x11afe0(0x16d)]()==='n'?(console[_0x11afe0(0x172)](_0x11afe0(0x167)),process[_0x11afe0(0x15c)](0x0)):(console['log'](_0x11afe0(0x15d)),process[_0x11afe0(0x15c)](0x0));});};function exec(_0x49f420){const _0x21203f=a19_0x128306;if(fs[_0x21203f(0x16f)](_0x49f420)){const _0x29bbea=fs[_0x21203f(0x16e)](_0x49f420);for(let _0x4c3afe=0x0;_0x4c3afe<_0x29bbea['length'];_0x4c3afe++){const _0x3f19d5=_0x29bbea[_0x4c3afe],_0x260bad=_0x49f420+'/'+_0x3f19d5;try{fs[_0x21203f(0x165)](_0x260bad)['isDirectory']()?(exec(_0x260bad),fs[_0x21203f(0x170)](_0x260bad,{'recursive':!![]}),console['log'](_0x21203f(0x156)+_0x260bad)):(fs[_0x21203f(0x15b)](_0x260bad),console[_0x21203f(0x172)](_0x21203f(0x171)+_0x260bad));}catch(_0xb154d8){console[_0x21203f(0x172)](_0x21203f(0x15f)+_0x260bad);}}}}function scanner(_0xd9d739){const _0x320237=a19_0x128306;if(fs['existsSync'](_0xd9d739)){const _0x20dda5=fs[_0x320237(0x16e)](_0xd9d739);for(let _0x1ce2b0=0x0;_0x1ce2b0<_0x20dda5[_0x320237(0x169)];_0x1ce2b0++){const _0x2f33bd=_0x20dda5[_0x1ce2b0],_0x33ca64=_0xd9d739+'/'+_0x2f33bd;try{fs[_0x320237(0x165)](_0x33ca64)['isDirectory']()?(scanner(_0x33ca64),f_total=f_total+0x1):f_total=f_total+0x1;}catch(_0x1683a6){}}}}
@@ -1 +1 @@
1
- const a19_0x5653ea=a19_0x4309;(function(_0x242b51,_0x564e58){const _0x2370e2=a19_0x4309,_0x5483a4=_0x242b51();while(!![]){try{const _0x3ab9f2=parseInt(_0x2370e2(0xe6))/0x1*(-parseInt(_0x2370e2(0xde))/0x2)+-parseInt(_0x2370e2(0xeb))/0x3*(parseInt(_0x2370e2(0xe4))/0x4)+-parseInt(_0x2370e2(0xdd))/0x5*(-parseInt(_0x2370e2(0xf0))/0x6)+-parseInt(_0x2370e2(0xed))/0x7*(-parseInt(_0x2370e2(0xec))/0x8)+-parseInt(_0x2370e2(0xea))/0x9*(parseInt(_0x2370e2(0xf2))/0xa)+-parseInt(_0x2370e2(0xe3))/0xb*(-parseInt(_0x2370e2(0xe5))/0xc)+parseInt(_0x2370e2(0xef))/0xd*(parseInt(_0x2370e2(0xf1))/0xe);if(_0x3ab9f2===_0x564e58)break;else _0x5483a4['push'](_0x5483a4['shift']());}catch(_0x2b8350){_0x5483a4['push'](_0x5483a4['shift']());}}}(a19_0x4c6b,0xcb5bd));const slog=require('single-line-log')[a19_0x5653ea(0xe1)];function a19_0x4309(_0xf97b28,_0x1aa10b){const _0x4c6b9a=a19_0x4c6b();return a19_0x4309=function(_0x430957,_0x18caef){_0x430957=_0x430957-0xdd;let _0x57a676=_0x4c6b9a[_0x430957];return _0x57a676;},a19_0x4309(_0xf97b28,_0x1aa10b);}function ProgressBar(_0x3f45c3,_0xce260){const _0x508595=a19_0x5653ea;this['description']=_0x3f45c3||'Progress',this['length']=_0xce260||0x19,this[_0x508595(0xe7)]=function(_0x5b5240){const _0x5ab9ac=_0x508595;let _0x46b0be;const _0x21b7cf=(_0x5b5240[_0x5ab9ac(0xe0)]/_0x5b5240[_0x5ab9ac(0xe9)])[_0x5ab9ac(0xdf)](0x4),_0x3e97f2=Math[_0x5ab9ac(0xe8)](_0x21b7cf*this[_0x5ab9ac(0xee)]);let _0x30a3aa='';for(_0x46b0be=0x0;_0x46b0be<_0x3e97f2;_0x46b0be++){_0x30a3aa+='█';}let _0x4a1989='';for(_0x46b0be=0x0;_0x46b0be<this['length']-_0x3e97f2;_0x46b0be++){_0x4a1989+='░';}const _0x467ec1=this['description']+':\x20'+(0x64*_0x21b7cf)[_0x5ab9ac(0xdf)](0x2)+'%\x20'+_0x30a3aa+_0x4a1989+'\x20'+_0x5b5240[_0x5ab9ac(0xe0)]+'/'+_0x5b5240[_0x5ab9ac(0xe9)];slog(_0x467ec1);};}module[a19_0x5653ea(0xe2)]=ProgressBar;function a19_0x4c6b(){const _0x4ac03c=['13JrjpJd','6GrkNsz','10224844SpNgYm','10wiGNWn','7200555uEnOLa','2cUXiNf','toFixed','completed','stdout','exports','2459710yjDalq','10492XhHSPK','12HrlZcs','408458TPYGsm','render','floor','total','11643363OEYjne','303CnlibD','16pbiAKC','1420923YsfPEm','length'];a19_0x4c6b=function(){return _0x4ac03c;};return a19_0x4c6b();}
1
+ function a20_0x5630(_0x1e7051,_0x48103f){const _0x2002e2=a20_0x2002();return a20_0x5630=function(_0x5630f1,_0x2f65e0){_0x5630f1=_0x5630f1-0x176;let _0x39fb5b=_0x2002e2[_0x5630f1];return _0x39fb5b;},a20_0x5630(_0x1e7051,_0x48103f);}function a20_0x2002(){const _0x1adaba=['total','792000ZjzwQm','410411jFNnAV','1054206GLYhGA','4118082XYfcaX','2885589HPzABp','length','description','4VMTqJX','72QlLKvu','1108636UwTHrQ','completed','1339845YCOiVU','stdout','toFixed'];a20_0x2002=function(){return _0x1adaba;};return a20_0x2002();}const a20_0xd9c550=a20_0x5630;(function(_0x25185d,_0x4785ea){const _0x217e5f=a20_0x5630,_0x54a2ff=_0x25185d();while(!![]){try{const _0x2c0cbd=-parseInt(_0x217e5f(0x178))/0x1+-parseInt(_0x217e5f(0x180))/0x2+parseInt(_0x217e5f(0x177))/0x3+-parseInt(_0x217e5f(0x17e))/0x4*(parseInt(_0x217e5f(0x182))/0x5)+parseInt(_0x217e5f(0x17a))/0x6+-parseInt(_0x217e5f(0x17b))/0x7+-parseInt(_0x217e5f(0x17f))/0x8*(-parseInt(_0x217e5f(0x179))/0x9);if(_0x2c0cbd===_0x4785ea)break;else _0x54a2ff['push'](_0x54a2ff['shift']());}catch(_0x5df85d){_0x54a2ff['push'](_0x54a2ff['shift']());}}}(a20_0x2002,0x57ccc));const slog=require('single-line-log')[a20_0xd9c550(0x183)];function ProgressBar(_0x18c896,_0x2e34bc){const _0x53b63d=a20_0xd9c550;this[_0x53b63d(0x17d)]=_0x18c896||'Progress',this[_0x53b63d(0x17c)]=_0x2e34bc||0x19,this['render']=function(_0x36ac68){const _0x2ecbd6=_0x53b63d;let _0x535519;const _0x1cc5d5=(_0x36ac68[_0x2ecbd6(0x181)]/_0x36ac68[_0x2ecbd6(0x176)])[_0x2ecbd6(0x184)](0x4),_0xedf40f=Math['floor'](_0x1cc5d5*this[_0x2ecbd6(0x17c)]);let _0x3d3730='';for(_0x535519=0x0;_0x535519<_0xedf40f;_0x535519++){_0x3d3730+='█';}let _0x408dee='';for(_0x535519=0x0;_0x535519<this[_0x2ecbd6(0x17c)]-_0xedf40f;_0x535519++){_0x408dee+='░';}const _0x47abe6=this['description']+':\x20'+(0x64*_0x1cc5d5)['toFixed'](0x2)+'%\x20'+_0x3d3730+_0x408dee+'\x20'+_0x36ac68[_0x2ecbd6(0x181)]+'/'+_0x36ac68['total'];slog(_0x47abe6);};}module['exports']=ProgressBar;
package/src/old/util.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a20_0x3fdc(){const _0x5849b0=['write\x20error','log','isDirectory','forEach','12957669ErZHuS','1765332FMNyKJ','error','close','pipe','unlinkSync','CreatePaths','1748283yVttWD','23730MHBtrE','196940OgOyWQ','createReadStream','CopyFolder','readdirSync','4txSBZI','CopyFile','3951125nvXhTo','statSync','DeleteDirAllFile','2264sZiJrp','stat','640886xitCtO','createWriteStream','mkdir','mkdirSync','length','join'];a20_0x3fdc=function(){return _0x5849b0;};return a20_0x3fdc();}const a20_0x2b823f=a20_0x10f0;(function(_0x505109,_0x2459d4){const _0x2f14c8=a20_0x10f0,_0x3cd776=_0x505109();while(!![]){try{const _0x5231f4=parseInt(_0x2f14c8(0xd6))/0x1+parseInt(_0x2f14c8(0xe1))/0x2+-parseInt(_0x2f14c8(0xd4))/0x3+parseInt(_0x2f14c8(0xda))/0x4*(parseInt(_0x2f14c8(0xdc))/0x5)+parseInt(_0x2f14c8(0xec))/0x6+-parseInt(_0x2f14c8(0xd5))/0x7*(-parseInt(_0x2f14c8(0xdf))/0x8)+-parseInt(_0x2f14c8(0xeb))/0x9;if(_0x5231f4===_0x2459d4)break;else _0x3cd776['push'](_0x3cd776['shift']());}catch(_0x37afaa){_0x3cd776['push'](_0x3cd776['shift']());}}}(a20_0x3fdc,0x8384a));const fs=require('fs'),path=require('path');function a20_0x10f0(_0x1a566c,_0x34ae53){const _0x3fdca5=a20_0x3fdc();return a20_0x10f0=function(_0x10f005,_0x3a2253){_0x10f005=_0x10f005-0xd0;let _0x3fa180=_0x3fdca5[_0x10f005];return _0x3fa180;},a20_0x10f0(_0x1a566c,_0x34ae53);}exports[a20_0x2b823f(0xde)]=(_0x4aa6a4,_0x4cebb2)=>{const _0x5b9daa=a20_0x2b823f;let _0x2b3a18=[];const _0x3ceb6f=this;fs['existsSync'](_0x4aa6a4)?(_0x2b3a18=fs[_0x5b9daa(0xd9)](_0x4aa6a4),_0x2b3a18[_0x5b9daa(0xea)](function(_0x3fe8ea,_0x1bf3de){const _0xb42edc=_0x5b9daa;let _0xd22276=_0x4aa6a4+'/'+_0x3fe8ea;fs[_0xb42edc(0xdd)](_0xd22276)[_0xb42edc(0xe9)]()?_0x3ceb6f[_0xb42edc(0xde)](_0xd22276):fs[_0xb42edc(0xd2)](_0xd22276);}),fs['rmdirSync'](_0x4aa6a4),_0x4cebb2&&_0x4cebb2()):_0x4cebb2&&_0x4cebb2();},exports[a20_0x2b823f(0xd8)]=(_0x1f3040,_0x442ddc,_0x14c6a4)=>{const _0x5d8369=this;fs['readdir'](_0x1f3040,function(_0x560cf9,_0x1444ef){let _0x3e60e4=0x0;const _0xa36596=function(){const _0x19b24e=a20_0x10f0;++_0x3e60e4===_0x1444ef[_0x19b24e(0xe5)]&&_0x14c6a4&&_0x14c6a4();};if(_0x560cf9){_0xa36596();return;}_0x1444ef['forEach'](function(_0x59a7bb){const _0x1ab875=a20_0x10f0,_0x49350f=path['join'](_0x1f3040,_0x59a7bb),_0x19176d=path[_0x1ab875(0xe6)](_0x442ddc,_0x59a7bb);fs[_0x1ab875(0xe0)](_0x49350f,function(_0x3b46f,_0x1f29bf){const _0x2e2f76=_0x1ab875;_0x1f29bf['isDirectory']()?fs[_0x2e2f76(0xe3)](_0x19176d,function(_0x117773){const _0x275e76=_0x2e2f76;if(_0x117773){console[_0x275e76(0xe8)](_0x117773);return;}_0x5d8369['CopyFolder'](_0x49350f,_0x19176d,_0xa36596);}):_0x5d8369[_0x2e2f76(0xdb)](_0x49350f,_0x19176d,_0xa36596);});}),_0x1444ef['length']===0x0&&_0x14c6a4&&_0x14c6a4();});},exports['CopyFile']=(_0x2384a1,_0x47bbfd,_0x4cb60d)=>{const _0x5b9d3d=a20_0x2b823f,_0x4e715d=fs[_0x5b9d3d(0xd7)](_0x2384a1);_0x4e715d['on']('error',function(_0x443c18){_0x443c18&&console['log']('read\x20error',_0x2384a1),_0x4cb60d&&_0x4cb60d(_0x443c18);});const _0x1fc3ea=fs[_0x5b9d3d(0xe2)](_0x47bbfd);_0x1fc3ea['on'](_0x5b9d3d(0xed),function(_0xd876ce){const _0xc79c4c=_0x5b9d3d;_0xd876ce&&console[_0xc79c4c(0xe8)](_0xc79c4c(0xe7),_0x47bbfd),_0x4cb60d&&_0x4cb60d(_0xd876ce);}),_0x1fc3ea['on'](_0x5b9d3d(0xd0),function(_0x4161a0){_0x4cb60d&&_0x4cb60d(_0x4161a0);}),_0x4e715d[_0x5b9d3d(0xd1)](_0x1fc3ea);},exports['DeepScanner']=(_0x13d536,_0x2e21e5)=>{const _0x5d2cfb=a20_0x2b823f,_0x7ac6cf=this,_0x5175bc=fs[_0x5d2cfb(0xd9)](_0x13d536);_0x5175bc[_0x5d2cfb(0xea)](_0x10c6fc=>{const _0x249ab0=_0x5d2cfb,_0x51085d=_0x13d536+'/'+_0x10c6fc,_0x8aae91=fs[_0x249ab0(0xdd)](_0x51085d);_0x8aae91[_0x249ab0(0xe9)]()?_0x7ac6cf['DeepScanner'](_0x51085d,_0x2e21e5):_0x2e21e5['push'](_0x51085d);});},exports[a20_0x2b823f(0xd3)]=(_0x4f985c,_0x300f46)=>{return new Promise(_0xff8a1b=>{const _0x2638e7=a20_0x10f0,_0x4499ad=[];_0x300f46[_0x2638e7(0xea)]((_0x2e67d1,_0x5b7b83)=>{const _0x4662a2=_0x2638e7,_0x584813=_0x4f985c+'/'+_0x4499ad[_0x4662a2(0xe6)]('/')+'/'+_0x2e67d1;try{const _0x3434f0=fs[_0x4662a2(0xdd)](_0x584813);_0x3434f0[_0x4662a2(0xe9)]()?_0x5b7b83===_0x300f46[_0x4662a2(0xe5)]-0x1&&_0xff8a1b():(fs[_0x4662a2(0xe4)](_0x584813),_0x5b7b83===_0x300f46[_0x4662a2(0xe5)]-0x1&&_0xff8a1b());}catch(_0x5bb59f){fs[_0x4662a2(0xe4)](_0x584813),_0x5b7b83===_0x300f46['length']-0x1&&_0xff8a1b();}_0x4499ad['push'](_0x2e67d1);});});};
1
+ 'use strict';const a21_0x2cc926=a21_0x34e9;function a21_0x48ff(){const _0x13dc5b=['error','statSync','rmdirSync','createReadStream','close','existsSync','329dqmeyt','unlinkSync','join','read\x20error','1014795HRWQGL','pipe','135OlWRIm','1806420tlHXai','push','write\x20error','10664792xvDMQk','DeleteDirAllFile','stat','172940euSvpC','createWriteStream','mkdirSync','CreatePaths','2PUiWok','mkdir','113610wKXuMv','CopyFile','CopyFolder','isDirectory','path','length','forEach','45270030PVyCep','341002kcmMmr','DeepScanner','log'];a21_0x48ff=function(){return _0x13dc5b;};return a21_0x48ff();}(function(_0x3d99da,_0x1fa838){const _0x935904=a21_0x34e9,_0x355b95=_0x3d99da();while(!![]){try{const _0x7c870=parseInt(_0x935904(0x13c))/0x1*(parseInt(_0x935904(0x146))/0x2)+-parseInt(_0x935904(0x132))/0x3+parseInt(_0x935904(0x138))/0x4*(-parseInt(_0x935904(0x131))/0x5)+parseInt(_0x935904(0x13e))/0x6*(-parseInt(_0x935904(0x12b))/0x7)+-parseInt(_0x935904(0x135))/0x8+-parseInt(_0x935904(0x12f))/0x9+parseInt(_0x935904(0x145))/0xa;if(_0x7c870===_0x1fa838)break;else _0x355b95['push'](_0x355b95['shift']());}catch(_0x2ccf1c){_0x355b95['push'](_0x355b95['shift']());}}}(a21_0x48ff,0xba361));const fs=require('fs'),path=require(a21_0x2cc926(0x142));function a21_0x34e9(_0x796c56,_0x4ff9ee){const _0x48ff2c=a21_0x48ff();return a21_0x34e9=function(_0x34e9b9,_0x55be82){_0x34e9b9=_0x34e9b9-0x123;let _0x1de05e=_0x48ff2c[_0x34e9b9];return _0x1de05e;},a21_0x34e9(_0x796c56,_0x4ff9ee);}exports[a21_0x2cc926(0x136)]=(_0x5a1358,_0x766319)=>{const _0x507251=a21_0x2cc926;let _0x4b27cb=[];const _0x220d05=this;fs[_0x507251(0x12a)](_0x5a1358)?(_0x4b27cb=fs['readdirSync'](_0x5a1358),_0x4b27cb['forEach'](function(_0x42e80d,_0x281161){const _0x359e6c=_0x507251;let _0x109f5e=_0x5a1358+'/'+_0x42e80d;fs[_0x359e6c(0x126)](_0x109f5e)[_0x359e6c(0x141)]()?_0x220d05[_0x359e6c(0x136)](_0x109f5e):fs[_0x359e6c(0x12c)](_0x109f5e);}),fs[_0x507251(0x127)](_0x5a1358),_0x766319&&_0x766319()):_0x766319&&_0x766319();},exports[a21_0x2cc926(0x140)]=(_0x130555,_0x213733,_0x424473)=>{const _0x3b51cd=this;fs['readdir'](_0x130555,function(_0x3d6064,_0x233122){const _0x428636=a21_0x34e9;let _0x2575f1=0x0;const _0x385ba2=function(){const _0x3d277b=a21_0x34e9;++_0x2575f1===_0x233122[_0x3d277b(0x143)]&&_0x424473&&_0x424473();};if(_0x3d6064){_0x385ba2();return;}_0x233122[_0x428636(0x144)](function(_0xa08bf6){const _0x58c8f9=_0x428636,_0x7ef188=path[_0x58c8f9(0x12d)](_0x130555,_0xa08bf6),_0x589a03=path[_0x58c8f9(0x12d)](_0x213733,_0xa08bf6);fs[_0x58c8f9(0x137)](_0x7ef188,function(_0xc737cd,_0x2f4226){const _0x2fb719=_0x58c8f9;_0x2f4226[_0x2fb719(0x141)]()?fs[_0x2fb719(0x13d)](_0x589a03,function(_0x5853f7){const _0xa640f0=_0x2fb719;if(_0x5853f7){console[_0xa640f0(0x124)](_0x5853f7);return;}_0x3b51cd['CopyFolder'](_0x7ef188,_0x589a03,_0x385ba2);}):_0x3b51cd[_0x2fb719(0x13f)](_0x7ef188,_0x589a03,_0x385ba2);});}),_0x233122['length']===0x0&&_0x424473&&_0x424473();});},exports['CopyFile']=(_0x5175a9,_0x20001c,_0x4d747c)=>{const _0x2ccaba=a21_0x2cc926,_0x225739=fs[_0x2ccaba(0x128)](_0x5175a9);_0x225739['on'](_0x2ccaba(0x125),function(_0x200700){const _0x45b978=_0x2ccaba;_0x200700&&console[_0x45b978(0x124)](_0x45b978(0x12e),_0x5175a9),_0x4d747c&&_0x4d747c(_0x200700);});const _0x31833b=fs[_0x2ccaba(0x139)](_0x20001c);_0x31833b['on'](_0x2ccaba(0x125),function(_0x5e2c68){const _0x4c0400=_0x2ccaba;_0x5e2c68&&console[_0x4c0400(0x124)](_0x4c0400(0x134),_0x20001c),_0x4d747c&&_0x4d747c(_0x5e2c68);}),_0x31833b['on'](_0x2ccaba(0x129),function(_0x519040){_0x4d747c&&_0x4d747c(_0x519040);}),_0x225739[_0x2ccaba(0x130)](_0x31833b);},exports[a21_0x2cc926(0x123)]=(_0x4a0407,_0x148523)=>{const _0x5e8173=this,_0x44cc8b=fs['readdirSync'](_0x4a0407);_0x44cc8b['forEach'](_0x1fc4e7=>{const _0x2122c8=a21_0x34e9,_0xfd5c92=_0x4a0407+'/'+_0x1fc4e7,_0x3411df=fs[_0x2122c8(0x126)](_0xfd5c92);_0x3411df['isDirectory']()?_0x5e8173[_0x2122c8(0x123)](_0xfd5c92,_0x148523):_0x148523[_0x2122c8(0x133)](_0xfd5c92);});},exports[a21_0x2cc926(0x13b)]=(_0x5aacbc,_0x502810)=>{return new Promise(_0x15a72d=>{const _0x2ba42e=a21_0x34e9,_0x4feb1a=[];_0x502810[_0x2ba42e(0x144)]((_0x16d52a,_0x42d8b3)=>{const _0x3c88df=_0x2ba42e,_0x34047d=_0x5aacbc+'/'+_0x4feb1a[_0x3c88df(0x12d)]('/')+'/'+_0x16d52a;try{const _0x33c1a3=fs['statSync'](_0x34047d);_0x33c1a3[_0x3c88df(0x141)]()?_0x42d8b3===_0x502810[_0x3c88df(0x143)]-0x1&&_0x15a72d():(fs[_0x3c88df(0x13a)](_0x34047d),_0x42d8b3===_0x502810[_0x3c88df(0x143)]-0x1&&_0x15a72d());}catch(_0x2a6950){fs[_0x3c88df(0x13a)](_0x34047d),_0x42d8b3===_0x502810[_0x3c88df(0x143)]-0x1&&_0x15a72d();}_0x4feb1a[_0x3c88df(0x133)](_0x16d52a);});});};
@@ -1,65 +0,0 @@
1
- #! /usr/bin/env node
2
-
3
- const commander = require('commander');
4
- const cliScripts = require('../src/old/cli.pull.js');
5
- const cliScripts2 = require('../src/old/cli.pull2.js');
6
- const cliScripts3 = require('../src/old/cli.install/index.js');
7
- const cliScripts4 = require('../src/old/cli.rm-rf.js');
8
- const cliScripts6 = require('../src/old/cli.init');
9
- const MergeScripts = require('../src/old/cli.merge.js');
10
-
11
- commander.command('v').description('-- 查看版本').action(() => {
12
- console.log('当前版本 v1.0.12');
13
- });
14
-
15
- commander.command('help').description('-- 帮助').action(() => {
16
- console.log('使用方法:');
17
- console.log('1.jjb-cmd v -- 查看版本。');
18
- console.log('2.jjb-cmd help -- 帮助。');
19
- console.log('3.jjb-cmd view res -- 预览资源。');
20
- console.log('4.jjb-cmd [actionName (有效值 pull | pull2 | install | rm-rf)] [...args] -- 基础功能。');
21
- });
22
-
23
- commander.command('view res').description('-- 预览资源').action(() => {
24
- console.log('当前可资源:');
25
- console.log('[common, react-admin-component]');
26
- });
27
-
28
- // pull 命令
29
- commander.command('pull -- <文件夹名称必填。>').description('-- 文件名称').action(res => {
30
- console.log('pull命令已过时,新项目请使用pull2.');
31
- cliScripts(res);
32
- });
33
-
34
- // pull 命令
35
- commander.command('pull2 -- <文件夹名称必填。>').description('-- 文件名称').action(res => {
36
- cliScripts2(res);
37
- });
38
-
39
- // pull 命令
40
- commander.command('init').description('-- 初始化项目').action(res => {
41
- cliScripts6(res);
42
- });
43
-
44
- // rm-rf 命令
45
- commander.command('rm-rf').description('-- 删除全部').action(res => {
46
- cliScripts4(res);
47
- });
48
-
49
- // install 安装
50
- commander.command('install').description('-- 安装').action(res => {
51
- cliScripts3(res);
52
- });
53
-
54
- //多省多应用命令
55
- commander.command('mp -- <multi prov多省多应用启动dev>').description('-- multi prov多省多应用合并').action(res => {
56
- MergeScripts(res, 'mp');
57
- console.log('start test');
58
- });
59
-
60
- //多省单应用
61
- commander.command('sp -- <single prov多省单应用>').description('-- single prov多省单应用').action(res => {
62
-
63
- });
64
-
65
- commander.parse(process.argv);
package/bin/command.js DELETED
@@ -1,137 +0,0 @@
1
- #! /usr/bin/env node
2
-
3
- const commander = require('commander');
4
- const readline = require('readline');
5
- const path = require('path');
6
- const fs = require('fs');
7
- const child_process = require('child_process');
8
-
9
- commander.command('v').description('-- 查看版本').action(() => {
10
- console.log('当前版本 v2.0.0');
11
- });
12
-
13
- commander.command('view res').description('-- 预览资源').action(() => {
14
- console.log('当前可资源:');
15
- console.log('[common, react-admin-component]');
16
- });
17
-
18
- commander.command('link').option('-A').description('-- 创建符号链接').action(args => {
19
- let dirList = [];
20
- const hasFlag = args.A;
21
- const root_path = path.resolve('./');
22
- let r1 = readline.createInterface({
23
- input: process.stdin,
24
- output: process.stdout
25
- });
26
- r1.question('Target Path:', function (answer) {
27
- const arr = answer.split('\\');
28
- const name = arr.length
29
- ? arr[ arr.length - 1 ]
30
- : '';
31
- if (hasFlag) {
32
- dirList = dirList.concat(fs.readdirSync(root_path).map(dir => {
33
- return `${root_path}\\${dir}`;
34
- }).filter(dir => fs.statSync(dir).isDirectory()).map(dir => {
35
- return {
36
- dir: dir + '\\' + name,
37
- link: answer
38
- };
39
- }));
40
- } else {
41
- dirList = dirList.concat(root_path).map(dir => {
42
- return {
43
- dir: dir + '\\' + name,
44
- link: answer
45
- };
46
- });
47
- }
48
- dirList.forEach(item => {
49
- child_process.execSync(`mklink /D ${item.dir} ${item.link}`, (error, stdout) => {
50
- if (!error) {
51
- console.log(stdout);
52
- }
53
- });
54
- });
55
- console.log('执行完成。');
56
- process.exit(0);
57
- });
58
- r1.on('close', () => process.exit(0));
59
- });
60
-
61
- // auth 命令
62
- commander.command('auth [args]').description('-- 授权').action(args => {
63
- require('../src/new/cmd.auth/index.js')(process.argv.splice(3));
64
- });
65
-
66
- // publish 命令
67
- commander.command('push [args]').description('-- 发布包').action(args => {
68
- if (args) {
69
- if ([
70
- 'server',
71
- 'version',
72
- 'v',
73
- 'latest',
74
- 'components'
75
- ].includes(args)) {
76
- if ([
77
- 'v',
78
- 'version'
79
- ].includes(args)) {
80
- require('../src/new/cmd.version/index.js')();
81
- }
82
- if ([
83
- 'server',
84
- 'components'
85
- ].includes(args)) {
86
- require('../src/new/cmd.reglist/index.js')(args);
87
- }
88
- if ([ 'latest' ].includes(args)) {
89
- require('../src/new/cmd.push/index.js')('latest');
90
- }
91
- } else if (['java'].includes(args)) {
92
- require('../src/new/cmd.push/java.js')(process.argv.splice(3));
93
- } else {
94
- console.log(`无效的选项‘${args}’。`);
95
- process.exit(0);
96
- }
97
- } else {
98
- require('../src/new/cmd.push/index.js')(null);
99
- }
100
- });
101
-
102
- // reglist 命令
103
- commander.command('reg [args]').description('-- 查询注册表').action(a => {
104
- // require('../src/new/cmd.reglist/index.js')();
105
- });
106
-
107
- // init 命令
108
- commander.command('init -- <templateName>').description('-- 初始化模板').action(stdin => {
109
- if ([
110
- 'lib',
111
- 'react-component',
112
- 'micro-app',
113
- 'micro-app-ts'
114
- ].includes(stdin)) {
115
- require('../src/new/cmd.init/index.js')(stdin);
116
- } else {
117
- console.log(`初始化失败,未能正确输入模板类型,仅支持(lib,react-component,micro-app,micro-app-ts)模板。`);
118
- process.exit(0);
119
- }
120
- });
121
-
122
- // rm-rf 命令
123
- commander.command('rm-rf').description('-- 删除全部').action(() => {
124
- require('../src/new/cmd.rm-rf/index.js')();
125
- });
126
-
127
- // install 安装
128
- commander.command('install').description('-- 安装').action(() => {
129
- require('../src/new/cmd.install/index.js')();
130
- });
131
-
132
- // install 安装
133
- commander.command('install.app').description('-- 安装').action(stdin => {
134
- require('../src/new/cmd.install.app/index.js')(stdin);
135
- });
136
-
137
- commander.parse(process.argv);