jjb-cmd 2.3.0 → 2.3.1
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/bin/command.js +12 -0
- package/package.json +1 -1
- package/src/auth.js +1 -1
- package/src/config.js +1 -1
- package/src/publish.js +1 -1
- package/src/push.js +1 -1
- package/src/rm-rf.js +1 -1
- package/src/tools.js +1 -1
package/bin/command.js
CHANGED
@@ -14,6 +14,18 @@ commander.command('v').description('-- 查看版本').action(() => {
|
|
14
14
|
console.log(`当前版本 v${version}`);
|
15
15
|
});
|
16
16
|
|
17
|
+
commander.command('help').description('-- 帮助').action(() => {
|
18
|
+
console.log('jjb-cmd <command>');
|
19
|
+
console.log('');
|
20
|
+
console.log('使用:');
|
21
|
+
console.log('');
|
22
|
+
console.log('jjb-cmd help 帮助');
|
23
|
+
console.log('jjb-cmd version 查看版本');
|
24
|
+
console.log('jjb-cmd push <version> 发布云组件\n\targ1 <version> 发布版本,可设置为latest');
|
25
|
+
console.log('jjb-cmd auth <username> <password> 登录授权\n\targ1 <username> 用户名\n\targ2 <password> 密码');
|
26
|
+
console.log('jjb-cmd push java <env> 推送微应用到服务器\n\targ1 <env> 推送环境');
|
27
|
+
});
|
28
|
+
|
17
29
|
commander.command('pushMessage [args]').description('-- 设置publish提交时是否需要提交信息').action(args => {
|
18
30
|
const package_json_file = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json')).toString());
|
19
31
|
if ([ 'yes', 'no' ].includes(args)) {
|
package/package.json
CHANGED
package/src/auth.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a0_0x5596d5=a0_0x75c0;(function(_0x290fb5,_0x2b5551){const _0x2d3812=a0_0x75c0,_0x2c1280=_0x290fb5();while(!![]){try{const _0x20f045=parseInt(_0x2d3812(0xdc))/0x1+-parseInt(_0x2d3812(0xdf))/0x2+-parseInt(_0x2d3812(0xcf))/0x3+parseInt(_0x2d3812(0xd1))/0x4*(parseInt(_0x2d3812(0xd8))/0x5)+parseInt(_0x2d3812(0xe0))/0x6*(-parseInt(_0x2d3812(0xd6))/0x7)+-parseInt(_0x2d3812(0xce))/0x8+parseInt(_0x2d3812(0xc5))/0x9*(parseInt(_0x2d3812(0xd3))/0xa);if(_0x20f045===_0x2b5551)break;else _0x2c1280['push'](_0x2c1280['shift']());}catch(_0x181f57){_0x2c1280['push'](_0x2c1280['shift']());}}}(a0_0x3b6b,0xe2b46));function a0_0x75c0(_0x50f1a2,_0x4cab82){const _0x3b6b6d=a0_0x3b6b();return a0_0x75c0=function(_0x75c0f8,_0x4fb163){_0x75c0f8=_0x75c0f8-0xc5;let _0x98f8b0=_0x3b6b6d[_0x75c0f8];return _0x98f8b0;},a0_0x75c0(_0x50f1a2,_0x4cab82);}function a0_0x3b6b(){const _0x2ada5f=['5XTtxvN','status','exit','Auth:\x20授权登录!','204774RgOTTw','message','catch','1967278jFUfaY','662334IuVBek','chalk','2412621WOpVki','./config','exports','../.auth','path','log','Auth:\x20登录失败!','data','writeFileSync','1082912ltisFu','5067702KszlYY','axios','3468648ttWRNm','then','120kcsoFY','post','existsSync','35HQiUqU','green'];a0_0x3b6b=function(){return _0x2ada5f;};return a0_0x3b6b();}const axios=require(a0_0x5596d5(0xd0)),chalk=require(a0_0x5596d5(0xe1)),fs=require('fs'),path=require(a0_0x5596d5(0xc9)),{getApiHost}=require(a0_0x5596d5(0xc6));module[a0_0x5596d5(0xc7)]=_0x69565a=>{const _0x565560=a0_0x5596d5;console[_0x565560(0xca)](_0x565560(0xdb));const [_0x54af72,_0x4d0787]=_0x69565a;axios[_0x565560(0xd4)](getApiHost()+'/api/auth',{'username':_0x54af72,'password':_0x4d0787})[_0x565560(0xd2)](_0xa0be07=>{const _0x23b5f9=_0x565560,_0x4bb6f1=path['join'](__dirname,_0x23b5f9(0xc8));_0xa0be07[_0x23b5f9(0xcc)][_0x23b5f9(0xd9)]?(console[_0x23b5f9(0xca)](chalk[_0x23b5f9(0xd7)]('Auth:\x20登录成功,已缓存登录状态!')),fs[_0x23b5f9(0xcd)](_0x4bb6f1,_0x54af72+'/'+_0x4d0787)):(console[_0x23b5f9(0xca)](chalk['red']('Auth:\x20'+_0xa0be07[_0x23b5f9(0xcc)]['message'])),fs[_0x23b5f9(0xd5)](_0x4bb6f1)&&fs['unlinkSync'](_0x4bb6f1),process[_0x23b5f9(0xda)](0x0));})[_0x565560(0xde)](_0x3e011f=>{const _0x5b2ab2=_0x565560;console[_0x5b2ab2(0xca)](chalk[_0x5b2ab2(0xd7)](_0x5b2ab2(0xcb)+_0x3e011f[_0x5b2ab2(0xdd)])),process[_0x5b2ab2(0xda)](0x0);});};
|
package/src/config.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a1_0x41738f=a1_0x7bf8;function a1_0x7bf8(_0x36e17f,_0x5dce6f){const _0x3b81dc=a1_0x3b81();return a1_0x7bf8=function(_0x7bf821,_0x41579c){_0x7bf821=_0x7bf821-0x64;let _0x1ad3f8=_0x3b81dc[_0x7bf821];return _0x1ad3f8;},a1_0x7bf8(_0x36e17f,_0x5dce6f);}(function(_0xc4c526,_0x989541){const _0x3751d4=a1_0x7bf8,_0x3caf25=_0xc4c526();while(!![]){try{const _0x2c2ed0=-parseInt(_0x3751d4(0x6a))/0x1+-parseInt(_0x3751d4(0x71))/0x2*(parseInt(_0x3751d4(0x6f))/0x3)+-parseInt(_0x3751d4(0x6e))/0x4*(parseInt(_0x3751d4(0x86))/0x5)+parseInt(_0x3751d4(0x8b))/0x6*(parseInt(_0x3751d4(0x6c))/0x7)+-parseInt(_0x3751d4(0x8d))/0x8+parseInt(_0x3751d4(0x74))/0x9*(parseInt(_0x3751d4(0x81))/0xa)+-parseInt(_0x3751d4(0x7b))/0xb*(-parseInt(_0x3751d4(0x75))/0xc);if(_0x2c2ed0===_0x989541)break;else _0x3caf25['push'](_0x3caf25['shift']());}catch(_0x65c8d8){_0x3caf25['push'](_0x3caf25['shift']());}}}(a1_0x3b81,0xa341d));function a1_0x3b81(){const _0x2a8d02=['API_HOST','jjb-assembly-','GIT_TEMP_DIR','GIT_TEMP_JAVA','447505HNcQan','http://120.26.210.58:8089','77jLrtKe','tmpdir','4117764wciLkl','1116948xGojJd','readFileSync','6EPnewx','now','e9njpBd1nS_LREN8GFpR','136035XwJUjj','12ivpYhB','join','CONFIG_FILE_HOST','G4HJRsHr9D7Ssmixegw2','snBxJ2i5kYarGGcsojhY','GIT_JAVA_ENV_JSON','34028038OXOPls','https://jcloud.cqjjb.cn','http://192.168.1.242:10985','../package.json','getApiHost','FT3pKzxpRynFkmddJ9Bs','50uqWNbM','TEMPLATE_FOLDER','https://cdn.cqjjb.cn/jjb-cloud-config','ywPtT3xCG6b_vAxp6sTj','env','5HVEhqa','httpMethod','API_HOST_TEST','7V-YUxhmh51Mdhgx4rq4','FqNrmFAgrxasMrbbjvq9','60030ASXTqi','gPSit8aJsLVmNzuQ5Cy4','131944kjGTCQ','http://120.26.210.58:8088','path'];a1_0x3b81=function(){return _0x2a8d02;};return a1_0x3b81();}const os=require('os'),path=require(a1_0x41738f(0x65)),fs=require('fs'),API_HOST=a1_0x41738f(0x64),API_HOST_HTTPS=a1_0x41738f(0x7c),API_HOST_TEST=a1_0x41738f(0x6b);exports[a1_0x41738f(0x77)]=a1_0x41738f(0x83),exports[a1_0x41738f(0x66)]=API_HOST,exports[a1_0x41738f(0x88)]=API_HOST_TEST,exports['GIT_HOST']=a1_0x41738f(0x7d),exports[a1_0x41738f(0x68)]=a1_0x41738f(0x67)+Date[a1_0x41738f(0x72)](),exports[a1_0x41738f(0x69)]='jjb-assembly-java',exports[a1_0x41738f(0x7a)]={'development':'dev','production':'prod','test':'test'},exports['CLOUD_PROJECT']={'common':{'token':a1_0x41738f(0x78),'projectId':0x117},'react-admin-component':{'token':a1_0x41738f(0x80),'projectId':0x154},'jjb-dva-runtime':{'token':'hLqARY89CN6fUD3yg4NL','projectId':0x23b},'jjb-common-lib':{'token':a1_0x41738f(0x73),'projectId':0x23c},'jjb-common-decorator':{'token':a1_0x41738f(0x8c),'projectId':0x23e},'vue-unisass-component':{'token':'d4wQ7dzEjYPsgVbKnYei','projectId':0x153},'react-component':{'token':a1_0x41738f(0x79),'projectId':0x33f},'micro-app-ts':{'token':a1_0x41738f(0x89),'projectId':0x33e},'micro-app':{'token':a1_0x41738f(0x8a),'projectId':0x33d},'lib':{'token':a1_0x41738f(0x84),'projectId':0x33c}},exports[a1_0x41738f(0x82)]=os[a1_0x41738f(0x6d)]()+'\x5c'+exports[a1_0x41738f(0x68)],exports[a1_0x41738f(0x7f)]=()=>{const _0x102604=a1_0x41738f,_0x3e997a=JSON['parse'](fs[_0x102604(0x70)](path[_0x102604(0x76)](__dirname,_0x102604(0x7e)))['toString']());return _0x3e997a[_0x102604(0x85)]==='test'?API_HOST_TEST:_0x3e997a[_0x102604(0x87)]==='http'?API_HOST:API_HOST_HTTPS;};
|
package/src/publish.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const a2_0x4b336d=a2_0xd96c;function a2_0xd96c(_0x4afbf5,_0x45552f){const _0x18aca3=a2_0x18ac();return a2_0xd96c=function(_0xd96cf4,_0x8056c8){_0xd96cf4=_0xd96cf4-0x145;let _0x14c61b=_0x18aca3[_0xd96cf4];return _0x14c61b;},a2_0xd96c(_0x4afbf5,_0x45552f);}(function(_0xd24231,_0x4645fe){const _0x22cfb1=a2_0xd96c,_0x5040ce=_0xd24231();while(!![]){try{const _0x7ce2b2=parseInt(_0x22cfb1(0x18a))/0x1*(-parseInt(_0x22cfb1(0x164))/0x2)+parseInt(_0x22cfb1(0x161))/0x3*(-parseInt(_0x22cfb1(0x145))/0x4)+parseInt(_0x22cfb1(0x183))/0x5+parseInt(_0x22cfb1(0x186))/0x6*(parseInt(_0x22cfb1(0x168))/0x7)+-parseInt(_0x22cfb1(0x17b))/0x8+-parseInt(_0x22cfb1(0x17a))/0x9+-parseInt(_0x22cfb1(0x174))/0xa*(-parseInt(_0x22cfb1(0x171))/0xb);if(_0x7ce2b2===_0x4645fe)break;else _0x5040ce['push'](_0x5040ce['shift']());}catch(_0x1a4458){_0x5040ce['push'](_0x5040ce['shift']());}}}(a2_0x18ac,0x73741));const path=require('path'),fs=require('fs'),os=require('os'),axios=require(a2_0x4b336d(0x155)),chalk=require(a2_0x4b336d(0x178)),readline=require(a2_0x4b336d(0x152)),io=readline[a2_0x4b336d(0x169)]({'input':process['stdin'],'output':process[a2_0x4b336d(0x146)]}),child_process=require(a2_0x4b336d(0x15f)),{getApiHost}=require(a2_0x4b336d(0x16d)),submitFun=function(_0x1899ba,_0x120379){const _0x1aded5=a2_0x4b336d;_0x120379[_0x1aded5(0x182)]=_0x1899ba||_0x1aded5(0x14b),axios['post'](getApiHost()+_0x1aded5(0x18d),_0x120379)['then'](_0x5a44f8=>{const _0x20fb41=_0x1aded5;console[_0x20fb41(0x14d)](chalk['green'](_0x5a44f8['data'][_0x20fb41(0x182)])),process[_0x20fb41(0x17d)](0x0);})[_0x1aded5(0x180)](_0x5e4926=>{const _0x1cd3dd=_0x1aded5;console[_0x1cd3dd(0x14d)](chalk['red'](_0x1cd3dd(0x165)+_0x5e4926[_0x1cd3dd(0x182)])),process['exit'](0x0);});};module[a2_0x4b336d(0x162)]=_0x5d0cdd=>{const _0x4a5250=a2_0x4b336d,_0x3b374c=path[_0x4a5250(0x15c)](__dirname,_0x4a5250(0x153));!fs[_0x4a5250(0x15b)](_0x3b374c)&&(console[_0x4a5250(0x14d)](chalk[_0x4a5250(0x167)](_0x4a5250(0x187))),process['exit'](0x0));const [_0x34ee80,_0x5ed922]=fs[_0x4a5250(0x150)](_0x3b374c)[_0x4a5250(0x177)]()[_0x4a5250(0x18c)]('/');console[_0x4a5250(0x14d)](_0x4a5250(0x16c)),axios['post'](getApiHost()+_0x4a5250(0x14e),{'username':_0x34ee80,'password':_0x5ed922})['then'](_0x1f2e56=>{const _0x17b54c=_0x4a5250;if(_0x1f2e56[_0x17b54c(0x156)]['status']){console[_0x17b54c(0x14d)](chalk[_0x17b54c(0x163)](_0x17b54c(0x173)));const _0x134c68=path[_0x17b54c(0x148)]('./');console[_0x17b54c(0x14d)]('Please\x20wait,\x20build\x20...,'+_0x134c68);fs[_0x17b54c(0x15b)](_0x134c68+'/yarn.lock')?(console[_0x17b54c(0x14d)](chalk[_0x17b54c(0x159)](_0x17b54c(0x16e)),_0x134c68),child_process[_0x17b54c(0x151)](_0x17b54c(0x157),{'cwd':_0x134c68})):(console[_0x17b54c(0x14d)](chalk['blue'](_0x17b54c(0x14a)),_0x134c68),child_process[_0x17b54c(0x151)](_0x17b54c(0x184),{'cwd':_0x134c68}));const _0x79452e=_0x134c68[_0x17b54c(0x176)]('/')!==-0x1?'/':'\x5c',_0x321da3=''+_0x134c68+_0x79452e+_0x17b54c(0x175),_0x1af6cf=''+_0x134c68+_0x79452e+_0x17b54c(0x16a)+_0x79452e+_0x17b54c(0x16f),_0x3a39d9=''+_0x134c68+_0x79452e+_0x17b54c(0x185),_0x343136=''+_0x134c68+_0x79452e+_0x17b54c(0x160),_0x1fbdaa=JSON[_0x17b54c(0x170)](fs['readFileSync'](path['join'](__dirname,_0x17b54c(0x181)))[_0x17b54c(0x177)]()),{version:_0x566d8f}=_0x1fbdaa,_0x4889ca={'username':_0x34ee80,'cmd_version':_0x566d8f,'hostname':os[_0x17b54c(0x154)](),'platform':os[_0x17b54c(0x172)]()};if(fs[_0x17b54c(0x15b)](_0x3a39d9)){if(fs[_0x17b54c(0x15b)](_0x1af6cf)){_0x4889ca[_0x17b54c(0x15e)]=_0x5d0cdd?_0x5d0cdd:0x0,_0x4889ca[_0x17b54c(0x17e)]=fs[_0x17b54c(0x150)](_0x1af6cf)[_0x17b54c(0x177)](),_0x4889ca[_0x17b54c(0x149)]={};const _0x49b6f2=fs[_0x17b54c(0x150)](_0x1af6cf)[_0x17b54c(0x177)](),_0x3032e6=_0x49b6f2['match'](/(window\[).+?(\.componentKey|.+]={)/img);if(_0x3032e6&&_0x3032e6[_0x17b54c(0x15a)]){const _0x44db83=_0x49b6f2[_0x17b54c(0x18b)](/componentKey.+([{,]info:\s{0,}{)/img);if(_0x44db83&&_0x44db83[_0x17b54c(0x15a)]){let _0x5343a2='{';const _0x4baa00=_0x49b6f2[_0x17b54c(0x18c)](_0x44db83[0x0])[0x1];for(let _0xcf997d=0x0;_0xcf997d<_0x4baa00[_0x17b54c(0x15a)];_0xcf997d++){_0x5343a2+=_0x4baa00[_0xcf997d];if(_0x4baa00[_0xcf997d]==='}')try{const _0x4a2877=new Function(_0x17b54c(0x17f)+_0x5343a2)();_0x4889ca['component_config_content']={..._0x4a2877,'defaultSetting':{}};}catch(_0x1a761f){}}}else console[_0x17b54c(0x14d)](chalk[_0x17b54c(0x167)](_0x17b54c(0x158))),process[_0x17b54c(0x17d)](0x0);const _0x53f465=_0x49b6f2[_0x17b54c(0x18b)](/componentKey.+([{,]settings:\s{0,}{)/img);if(_0x53f465&&_0x53f465[_0x17b54c(0x15a)]){let _0x171e26='{';const _0x110fce=_0x49b6f2[_0x17b54c(0x18c)](_0x53f465[0x0])[0x1];for(let _0x38bcf2=0x0;_0x38bcf2<_0x110fce[_0x17b54c(0x15a)];_0x38bcf2++){_0x171e26+=_0x110fce[_0x38bcf2];if(_0x110fce[_0x38bcf2]==='}')try{_0x4889ca[_0x17b54c(0x149)]['defaultSetting']=new Function(_0x17b54c(0x17f)+_0x171e26)();}catch(_0x137a6e){}}_0x4889ca['component_config_content']=JSON['stringify'](_0x4889ca[_0x17b54c(0x149)]);}else console[_0x17b54c(0x14d)](chalk[_0x17b54c(0x167)](_0x17b54c(0x188))),process[_0x17b54c(0x17d)](0x0);}else console[_0x17b54c(0x14d)](chalk[_0x17b54c(0x167)](_0x17b54c(0x166))),process[_0x17b54c(0x17d)](0x0);fs[_0x17b54c(0x15b)](_0x321da3)?_0x4889ca['readme_content']=fs[_0x17b54c(0x150)](_0x321da3)[_0x17b54c(0x177)]():(console[_0x17b54c(0x14d)](chalk[_0x17b54c(0x167)](_0x17b54c(0x189))),process[_0x17b54c(0x17d)](0x0));if(!fs['existsSync'](_0x343136))console[_0x17b54c(0x14d)](_0x17b54c(0x179)),process['exit'](0x0);else{const _0x57e615=fs[_0x17b54c(0x150)](_0x343136);_0x4889ca[_0x17b54c(0x16b)]=Buffer[_0x17b54c(0x14f)](_0x57e615)[_0x17b54c(0x177)]('base64');}_0x1fbdaa['pushMessage']==='no'?submitFun(null,_0x4889ca):io[_0x17b54c(0x17c)](_0x17b54c(0x14c),function(_0x1d3f32){submitFun(_0x1d3f32,_0x4889ca);});}else console[_0x17b54c(0x14d)](chalk[_0x17b54c(0x167)](_0x17b54c(0x147))),process[_0x17b54c(0x17d)](0x0);}else console[_0x17b54c(0x14d)](chalk['red']('Error:\x20组件发布失败!根目录缺少‘package.json’文件!')),process[_0x17b54c(0x17d)](0x0);}else console['log'](chalk[_0x17b54c(0x167)]('Error:\x20授权失败!')),process[_0x17b54c(0x17d)](0x0);})[_0x4a5250(0x180)](_0x2bcbd5=>{const _0x4bfc5c=_0x4a5250;console['log'](chalk[_0x4bfc5c(0x167)](_0x4bfc5c(0x15d)),_0x2bcbd5[_0x4bfc5c(0x182)]),process[_0x4bfc5c(0x17d)](0x0);});};function a2_0x18ac(){const _0x5e1071=['Sudo:\x20yarn\x20build:production','index.js','parse','160633pOSioo','platform','Auth:\x20授权成功!','1190YgEaNY','README.md','indexOf','toString','chalk','Error:\x20请在组件根目录为组件添加一个缩略图“thumbnail.png”文件!','2504979pCdtjQ','6917888QEGVbm','question','exit','package_content','return\x20','catch','../../../package.json','message','1311340FYgdiD','npm\x20run\x20build:production','package.json','3111282uBbRvU','Error:\x20请先登录!','Error:\x20暴露的配置信息中缺少“settings”!','Error:\x20请在组件根目录添加一个README.md说明文件!','41GIPfMb','match','split','/api/file/publish','346036YnkpTG','stdout','Error:\x20组件发布失败!根目录缺少‘dist/index.js’文件!','resolve','component_config_content','Sudo:\x20npm\x20build:production','no\x20message','请输入此次组件发布的信息,按Enter确认:','log','/api/auth','from','readFileSync','execSync','readline','../.auth','hostname','axios','data','yarn\x20build:production','Error:\x20暴露的配置信息中缺少“info”!','blue','length','existsSync','join','Error:\x20授权失败,未知错误!','package_version','child_process','thumbnail.png','21wGhhTu','exports','green','14490PoCyZd','Error:\x20组件发布失败!','Error:\x20请在组件入口文件中添加“window[props.componentKey]”以暴露组件的配置信息!','red','7TMYTCa','createInterface','dist','thumbnail_base64','Auth:\x20正在获取授权!','./config'];a2_0x18ac=function(){return _0x5e1071;};return a2_0x18ac();}
|
package/src/push.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a3_0xea877b=a3_0x4de3;(function(_0x149343,_0x1fa88e){const _0x1cdbe1=a3_0x4de3,_0x49b39f=_0x149343();while(!![]){try{const _0x415ce5=parseInt(_0x1cdbe1(0xf5))/0x1*(-parseInt(_0x1cdbe1(0xfe))/0x2)+parseInt(_0x1cdbe1(0x13f))/0x3*(parseInt(_0x1cdbe1(0x11a))/0x4)+parseInt(_0x1cdbe1(0x13c))/0x5*(-parseInt(_0x1cdbe1(0x102))/0x6)+-parseInt(_0x1cdbe1(0x11b))/0x7*(parseInt(_0x1cdbe1(0xf0))/0x8)+-parseInt(_0x1cdbe1(0x140))/0x9+-parseInt(_0x1cdbe1(0x106))/0xa*(-parseInt(_0x1cdbe1(0x110))/0xb)+parseInt(_0x1cdbe1(0xef))/0xc;if(_0x415ce5===_0x1fa88e)break;else _0x49b39f['push'](_0x49b39f['shift']());}catch(_0x40f646){_0x49b39f['push'](_0x49b39f['shift']());}}}(a3_0x4ddb,0xcc4f9));const fs=require('fs'),os=require('os'),path=require(a3_0xea877b(0x104)),child_process=require(a3_0xea877b(0xf3)),chalk=require(a3_0xea877b(0x121)),{CopyFolder,DeleteDirAllFile}=require(a3_0xea877b(0x12f)),{GIT_TEMP_JAVA,getApiHost}=require('./config'),axios=require('axios');function a3_0x4ddb(){const _0x594d83=['join','./tools','Error:\x20未知错误,未找到“dist”目录!','.html','execSync','log','javaGitBranch','writeFileSync','Sudo:\x20yarn\x20build:','\x5cdist','then','exit','/index.html','length','5LCmCYJ','yarn\x20build:','/start/src/main/resources/templates','108rwluKz','5677056AvKtOg','existsSync','data','forEach','../.auth','41776824RqanBe','184GMqugU','Auth:\x20正在获取授权!','javaGitName','child_process','message','18975rBshSO','Warning:\x20当前应用未安装依赖!即将执行依赖安装命令,请稍等!','Sudo:\x20git\x20checkout\x20','Error:\x20命令参数传递错误!',']\x20未配置“javaGitBranch”,将使用默认分支“master”!','exports','utf-8','Sudo:\x20git\x20add\x20.','\x5cjjb.config.js','122zOZOoz','Log:\x20应用依赖安装完成!','catch','includes','2403474DRKGKX','force','path','readFileSync','80420kqNxxf','mkdirSync','index','Auth:\x20授权成功!','yellow','blue','Sudo:\x20yarn','git\x20pull','\x22no\x20message\x22','Error:\x20“jjb.config.json”中缺少“javaGit”字段!','209aRtPco',']\x20请稍等!','unlinkSync','yarn','Sudo:\x20git\x20pull','git\x20clone\x20','lstatSync','Error:\x20请先登录!','git\x20checkout\x20','green','84196mkhKbJ','415821ioJyIU','Sudo:\x20git\x20commit\x20-m\x20','Sudo:\x20git\x20clone\x20','red','Log:\x20即将进行应用打包\x20[Env#','javaGit','chalk','/node_modules','git\x20push','status','Error:\x20授权失败!','appIdentifier','tmpdir','split','post','Error:\x20','git\x20add\x20.','toString','git\x20commit\x20-m\x20'];a3_0x4ddb=function(){return _0x594d83;};return a3_0x4ddb();}function a3_0x4de3(_0x2b23da,_0x258df1){const _0x4ddb46=a3_0x4ddb();return a3_0x4de3=function(_0x4de34f,_0x61a5d9){_0x4de34f=_0x4de34f-0xee;let _0x1d3220=_0x4ddb46[_0x4de34f];return _0x1d3220;},a3_0x4de3(_0x2b23da,_0x258df1);}function deleteFolderRecursive(_0x57050f){const _0x5552d8=a3_0xea877b;fs[_0x5552d8(0x141)](_0x57050f)&&(fs['readdirSync'](_0x57050f)[_0x5552d8(0x143)](_0x23b834=>{const _0xb97b9e=_0x5552d8,_0x20b253=path[_0xb97b9e(0x12e)](_0x57050f,_0x23b834);fs[_0xb97b9e(0x116)](_0x20b253)['isDirectory']()?deleteFolderRecursive(_0x20b253):fs[_0xb97b9e(0x112)](_0x20b253);}),fs['rmdirSync'](_0x57050f));}module[a3_0xea877b(0xfa)]=arguments=>{const _0x501239=a3_0xea877b,_0x26fa6d=path['join'](__dirname,_0x501239(0xee));!fs['existsSync'](_0x26fa6d)&&(console[_0x501239(0x133)](chalk[_0x501239(0x11e)](_0x501239(0x117))),process[_0x501239(0x139)](0x0));const _0x403e09=arguments[0x1],_0x1bc3aa=arguments[0x2]||_0x501239(0x10e),_0x46c396=arguments[0x3]?arguments[0x3][_0x501239(0x128)]('-'):[],_0x2a3567=path['resolve']('./'),_0x8c685c=_0x2a3567+_0x501239(0xfd),_0x517eaf=_0x2a3567+_0x501239(0x137),_0x2550bb=os[_0x501239(0x127)](),[_0x44ca95,_0x1752f4]=fs[_0x501239(0x105)](_0x26fa6d)[_0x501239(0x12c)]()[_0x501239(0x128)]('/');console['log'](_0x501239(0xf1)),axios[_0x501239(0x129)](getApiHost()+'/api/auth',{'username':_0x44ca95,'password':_0x1752f4})[_0x501239(0x138)](_0x224d27=>{const _0x48fcd8=_0x501239;if(_0x224d27[_0x48fcd8(0x142)][_0x48fcd8(0x124)]){console[_0x48fcd8(0x133)](chalk[_0x48fcd8(0x119)](_0x48fcd8(0x109)));if(!fs['existsSync'](_0x8c685c))console['log'](chalk['red']('Error:\x20当前应用中不存在“jjb.config.json”文件!')),process[_0x48fcd8(0x139)](0x0);else{const _0x49b286=require(_0x8c685c);!_0x49b286['javaGit']&&(console[_0x48fcd8(0x133)](chalk[_0x48fcd8(0x11e)](_0x48fcd8(0x10f))),process[_0x48fcd8(0x139)](0x0));!_0x49b286[_0x48fcd8(0xf2)]&&(console[_0x48fcd8(0x133)](chalk[_0x48fcd8(0x11e)]('Error:\x20“jjb.config.json”中缺少“javaGitName”字段!')),process[_0x48fcd8(0x139)](0x0));const _0x1e9375=_0x2550bb+'/'+GIT_TEMP_JAVA;fs[_0x48fcd8(0x141)](_0x1e9375)&&deleteFolderRecursive(_0x1e9375);fs[_0x48fcd8(0x107)](_0x1e9375);const _0x1039e2=_0x1e9375+'/'+_0x49b286[_0x48fcd8(0xf2)];fs[_0x48fcd8(0x141)](_0x1039e2)?_0x46c396['includes'](_0x48fcd8(0x103))?DeleteDirAllFile(_0x1039e2,()=>{const _0x3a4a8f=_0x48fcd8;console['log'](chalk[_0x3a4a8f(0x10b)](_0x3a4a8f(0x11d)+_0x49b286[_0x3a4a8f(0x120)]),_0x1e9375),child_process[_0x3a4a8f(0x132)](_0x3a4a8f(0x115)+_0x49b286[_0x3a4a8f(0x120)],{'cwd':_0x1e9375});}):(console[_0x48fcd8(0x133)](chalk['blue'](_0x48fcd8(0x11d)+_0x49b286['javaGit']),_0x1e9375),child_process[_0x48fcd8(0x132)](_0x48fcd8(0x115)+_0x49b286[_0x48fcd8(0x120)],{'cwd':_0x1e9375})):(console[_0x48fcd8(0x133)](chalk[_0x48fcd8(0x10b)](_0x48fcd8(0x11d)+_0x49b286[_0x48fcd8(0x120)]),_0x1e9375),child_process['execSync'](_0x48fcd8(0x115)+_0x49b286[_0x48fcd8(0x120)],{'cwd':_0x1e9375})),_0x1c8e76(_0x1e9375,_0x49b286);}}else console['log'](chalk[_0x48fcd8(0x11e)](_0x48fcd8(0x125))),process['exit'](0x0);})[_0x501239(0x100)](_0x13cb0c=>{const _0x298fa6=_0x501239;console[_0x298fa6(0x133)](chalk[_0x298fa6(0x11e)]('Error:\x20授权失败,未知错误!'),_0x13cb0c['message']),process[_0x298fa6(0x139)](0x0);});arguments[_0x501239(0x13b)]<0x2&&(console[_0x501239(0x133)](chalk[_0x501239(0x11e)](_0x501239(0xf8))),process[_0x501239(0x139)](0x0));function _0x1c8e76(_0x43a78d,_0x1b86ad){const _0x2cea73=_0x501239,_0xda0f5b=_0x1b86ad['environment'][_0x403e09],_0x11a398=_0x43a78d+'/'+_0x1b86ad['javaGitName'];!_0xda0f5b[_0x2cea73(0x134)]&&console[_0x2cea73(0x133)](chalk[_0x2cea73(0x10a)]('Warning:\x20当前打包\x20[Env#'+_0x403e09+_0x2cea73(0xf9)));console[_0x2cea73(0x133)](chalk[_0x2cea73(0x10b)](_0x2cea73(0x114)),_0x11a398),child_process[_0x2cea73(0x132)](_0x2cea73(0x10d),{'cwd':_0x11a398});!fs[_0x2cea73(0x141)](_0x2a3567+_0x2cea73(0x122))&&(console[_0x2cea73(0x133)](chalk[_0x2cea73(0x10a)](_0x2cea73(0xf6))),console[_0x2cea73(0x133)](chalk[_0x2cea73(0x10b)](_0x2cea73(0x10c)),_0x2a3567),child_process[_0x2cea73(0x132)](_0x2cea73(0x113),{'cwd':_0x2a3567}),console[_0x2cea73(0x133)](chalk[_0x2cea73(0x119)](_0x2cea73(0xff))));console[_0x2cea73(0x133)](_0x2cea73(0x11f)+_0x403e09+_0x2cea73(0x111)),console[_0x2cea73(0x133)](chalk['blue'](_0x2cea73(0x136)+_0x403e09),_0x2a3567),child_process[_0x2cea73(0x132)](_0x2cea73(0x13d)+_0x403e09,{'cwd':_0x2a3567,'maxBuffer':0x3b9aca00}),console[_0x2cea73(0x133)](chalk[_0x2cea73(0x119)]('Log:\x20应用打包完成!'));if(fs['existsSync'](_0x517eaf)){const _0x531460=_0x1b86ad[_0x2cea73(0x126)],_0x44ba7c=fs[_0x2cea73(0x105)](_0x517eaf+_0x2cea73(0x13a));_0x46c396[_0x2cea73(0x101)](_0x2cea73(0x108))?fs['writeFileSync'](_0x517eaf+_0x2cea73(0x13a),_0x44ba7c,'utf-8'):fs[_0x2cea73(0x135)](_0x517eaf+'/'+_0x531460+_0x2cea73(0x131),_0x44ba7c,'utf-8');const _0x5964e8=_0x11a398+_0x2cea73(0x13e);!fs[_0x2cea73(0x141)](_0x5964e8)&&fs['mkdirSync'](_0x5964e8);const _0x20299c=_0xda0f5b[_0x2cea73(0x134)]?_0xda0f5b['javaGitBranch']:'master';console[_0x2cea73(0x133)](chalk[_0x2cea73(0x10b)](_0x2cea73(0xf7)+_0x20299c),_0x11a398),child_process[_0x2cea73(0x132)](_0x2cea73(0x118)+_0x20299c,{'cwd':_0x11a398});const _0x1ddb44=_0x5964e8+'/'+_0x1b86ad[_0x2cea73(0x126)];DeleteDirAllFile(_0x1ddb44,()=>{const _0x127026=_0x2cea73;fs[_0x127026(0x107)](_0x1ddb44),fs[_0x127026(0x135)](_0x1ddb44+_0x127026(0x131),_0x44ba7c,_0x127026(0xfb)),CopyFolder(_0x517eaf+'\x5c'+_0x1b86ad[_0x127026(0x126)],_0x1ddb44,()=>{setTimeout(()=>{const _0x1784c7=a3_0x4de3;console['log'](chalk[_0x1784c7(0x10b)](_0x1784c7(0x114)),_0x11a398),child_process['execSync'](_0x1784c7(0x10d),{'cwd':_0x11a398}),console[_0x1784c7(0x133)](chalk[_0x1784c7(0x10b)](_0x1784c7(0xfc)),_0x11a398),child_process[_0x1784c7(0x132)](_0x1784c7(0x12b),{'cwd':_0x11a398});try{console[_0x1784c7(0x133)](chalk[_0x1784c7(0x10b)](_0x1784c7(0x11c)+_0x1bc3aa+'\x20--no-verify'),_0x11a398),child_process[_0x1784c7(0x132)](_0x1784c7(0x12d)+_0x1bc3aa+'\x20--no-verify',{'cwd':_0x11a398});}catch(_0x1a41a1){console[_0x1784c7(0x133)](chalk[_0x1784c7(0x11e)](_0x1784c7(0x12a)+_0x1a41a1[_0x1784c7(0xf4)]));}console[_0x1784c7(0x133)](chalk['blue']('Sudo:\x20git\x20push'),_0x11a398),child_process[_0x1784c7(0x132)](_0x1784c7(0x123),{'cwd':_0x11a398});},0x3e8);});});}else console[_0x2cea73(0x133)](chalk['red'](_0x2cea73(0x130))),process[_0x2cea73(0x139)](0x0);}};
|
package/src/rm-rf.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function a4_0x382f(){const _0x902f72=['1187755QztdCJ','1997739jILpsX','删除文件夹:','594284YWvlPZ','正在计算项目数,请稍等...','删除完成。','question','clear','20692719BRpgxw','exit','960533DphWSk','readdirSync','createInterface','删除文件:','trim','568310StkmXB','7613034zGgFHn','stdout','existsSync','删除异常:','path','length','rmdirSync','取消删除。','stdin','log','exports','72IqfVKp','无效操作。','isDirectory','readline','3gDyvGs','是否确认删除?删除后不可恢复![y/n]:'];a4_0x382f=function(){return _0x902f72;};return a4_0x382f();}const a4_0x4ef995=a4_0x415d;(function(_0x28b445,_0x50af4f){const _0x45e344=a4_0x415d,_0x4f5b21=_0x28b445();while(!![]){try{const _0x5988be=-parseInt(_0x45e344(0xec))/0x1*(-parseInt(_0x45e344(0xfd))/0x2)+-parseInt(_0x45e344(0xef))/0x3+parseInt(_0x45e344(0xf1))/0x4+parseInt(_0x45e344(0xee))/0x5+parseInt(_0x45e344(0xfe))/0x6+parseInt(_0x45e344(0xf8))/0x7*(parseInt(_0x45e344(0xe8))/0x8)+-parseInt(_0x45e344(0xf6))/0x9;if(_0x5988be===_0x50af4f)break;else _0x4f5b21['push'](_0x4f5b21['shift']());}catch(_0x582a84){_0x4f5b21['push'](_0x4f5b21['shift']());}}}(a4_0x382f,0xbdc4d));function a4_0x415d(_0x269434,_0x13f965){const _0x382fbd=a4_0x382f();return a4_0x415d=function(_0x415de9,_0x4cfd0b){_0x415de9=_0x415de9-0xe4;let _0x1faf43=_0x382fbd[_0x415de9];return _0x1faf43;},a4_0x415d(_0x269434,_0x13f965);}const fs=require('fs'),path=require(a4_0x4ef995(0x102)),readline=require(a4_0x4ef995(0xeb)),io=readline[a4_0x4ef995(0xfa)]({'input':process[a4_0x4ef995(0xe5)],'output':process[a4_0x4ef995(0xff)]});module[a4_0x4ef995(0xe7)]=function(){const _0x17b3c4=a4_0x4ef995,_0xd39e60=path['resolve']('./');io[_0x17b3c4(0xf4)](_0x17b3c4(0xed),function(_0xe488e6){const _0x1830f3=_0x17b3c4;if(_0xe488e6[_0x1830f3(0xfc)]()==='y')console[_0x1830f3(0xe6)](_0x1830f3(0xf2)),setTimeout(()=>{setTimeout(()=>{const _0x2c409b=a4_0x415d;console[_0x2c409b(0xf5)](),exec(_0xd39e60),setTimeout(()=>{const _0x46a79=_0x2c409b;console['log'](_0x46a79(0xf3)),console['clear'](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0xe488e6['trim']()==='n'?(console[_0x1830f3(0xe6)](_0x1830f3(0xe4)),process[_0x1830f3(0xf7)](0x0)):(console[_0x1830f3(0xe6)](_0x1830f3(0xe9)),process[_0x1830f3(0xf7)](0x0));});};function exec(_0x1315e0){const _0x2eb8bd=a4_0x4ef995;if(fs[_0x2eb8bd(0x100)](_0x1315e0)){const _0xd35f80=fs[_0x2eb8bd(0xf9)](_0x1315e0);for(let _0x214e05=0x0;_0x214e05<_0xd35f80[_0x2eb8bd(0x103)];_0x214e05++){const _0x37cc6f=_0xd35f80[_0x214e05],_0x10c68c=_0x1315e0+'/'+_0x37cc6f;try{fs['statSync'](_0x10c68c)[_0x2eb8bd(0xea)]()?(exec(_0x10c68c),fs[_0x2eb8bd(0x104)](_0x10c68c,{'recursive':!![]}),console[_0x2eb8bd(0xe6)](_0x2eb8bd(0xf0)+_0x10c68c)):(fs['unlinkSync'](_0x10c68c),console[_0x2eb8bd(0xe6)](_0x2eb8bd(0xfb)+_0x10c68c));}catch(_0x1908b9){console[_0x2eb8bd(0xe6)](_0x2eb8bd(0x101)+_0x10c68c);}}}}
|
package/src/tools.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const a5_0x306398=a5_0x13cc;function a5_0x13cc(_0x59af6c,_0x1b33c8){const _0x4ba473=a5_0x4ba4();return a5_0x13cc=function(_0x13cc40,_0x4ce212){_0x13cc40=_0x13cc40-0x109;let _0x5e7883=_0x4ba473[_0x13cc40];return _0x5e7883;},a5_0x13cc(_0x59af6c,_0x1b33c8);}function a5_0x4ba4(){const _0x4ceebf=['DeepScanner','stat','uniapp','writeFileSync','statSync','jjb-common','/api/v4/projects/','write\x20error','&ref=master','\x22,\x22main\x22:\x20\x22index.js\x22}','map','jjb-common-lib','installTarget','dependencies','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','existsSync','name','react-admin-component','67291qoGzdh','6218575hYWcHG','.zip','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','rmdirSync','265361XGACHz','/repository/archive.zip?private_token=','【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>。','node_modules','log','read\x20error','2940696AkPITt','multi','【Error】:[jjb.config.json.installTarget]类型是一个string。','readFileSync','path','4iPDPsM','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','f_update_project_package_json','error','18117084IyfDwP','2SQVLNQ','11WifbPk','token','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','isArray','DeleteDirAllFile','\x5cpackage.json','isDirectory','{\x22name\x22:\x22','mkdirSync','string','projectType','1798206jbuQEH','pipe','tmpdir','2005191iqfweX','CopyFolder','CopyFile','push','spa','length','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','unlinkSync','readdirSync','_zip','parse','exit','20Cteaef','join','createWriteStream','\x5cjjb.config.json','\x22,\x22version\x22:\x22','f_pull_git_repository','584rIsPAK','vue-unisass-component','includes','f_rm_rf','【Error】:[jjb.config.json.installResources]无资源。','f_file_copy','forEach','jjb-common-decorator','createReadStream','f_resolve_install_resources','filter','installResources','toString','f_content_replace','CreatePaths','readdir'];a5_0x4ba4=function(){return _0x4ceebf;};return a5_0x4ba4();}(function(_0xd2395f,_0x3f670a){const _0xf02d05=a5_0x13cc,_0x300a72=_0xd2395f();while(!![]){try{const _0x4fc942=-parseInt(_0xf02d05(0x115))/0x1*(parseInt(_0xf02d05(0x125))/0x2)+-parseInt(_0xf02d05(0x11b))/0x3+parseInt(_0xf02d05(0x120))/0x4*(parseInt(_0xf02d05(0x111))/0x5)+parseInt(_0xf02d05(0x131))/0x6+-parseInt(_0xf02d05(0x110))/0x7*(parseInt(_0xf02d05(0x147))/0x8)+-parseInt(_0xf02d05(0x134))/0x9*(parseInt(_0xf02d05(0x141))/0xa)+-parseInt(_0xf02d05(0x126))/0xb*(-parseInt(_0xf02d05(0x124))/0xc);if(_0x4fc942===_0x3f670a)break;else _0x300a72['push'](_0x300a72['shift']());}catch(_0xef660){_0x300a72['push'](_0x300a72['shift']());}}}(a5_0x4ba4,0xa1309));const fs=require('fs'),os=require('os'),path=require(a5_0x306398(0x11f)),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require('./config');exports[a5_0x306398(0x14a)]=function(_0x4a26ee){const _0x47bc0b=a5_0x306398;if(fs[_0x47bc0b(0x10d)](_0x4a26ee)){const _0x36dd9d=fs[_0x47bc0b(0x13d)](_0x4a26ee);for(let _0x9279b4=0x0;_0x9279b4<_0x36dd9d['length'];_0x9279b4++){const _0x480e4e=_0x36dd9d[_0x9279b4],_0x3511c5=_0x4a26ee+'/'+_0x480e4e;fs[_0x47bc0b(0x15b)](_0x3511c5)[_0x47bc0b(0x12c)]()?(exports['f_rm_rf'](_0x3511c5),fs[_0x47bc0b(0x114)](_0x3511c5)):fs[_0x47bc0b(0x13c)](_0x3511c5);}}},exports[a5_0x306398(0x146)]=function(_0x1095eb=[]){return _0x1095eb['map'](_0x4a5111=>{const _0x30647d=a5_0x13cc,_0x4ede9d=CLOUD_PROJECT[_0x4a5111[_0x30647d(0x10e)]]||undefined,_0x110454=os[_0x30647d(0x133)]();return{'path':_0x110454+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x4a5111[_0x30647d(0x10e)]+_0x30647d(0x112),'compress':_0x110454+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x4a5111[_0x30647d(0x10e)]+_0x30647d(0x13e),'repository':GIT_HOST+_0x30647d(0x15d)+_0x4ede9d['projectId']+_0x30647d(0x116)+_0x4ede9d[_0x30647d(0x127)]+_0x30647d(0x15f)};});},exports['f_scan_jjb_config_json']=function(_0x35ea72){const _0x5b0118=a5_0x306398;return fs[_0x5b0118(0x10d)](_0x35ea72+_0x5b0118(0x144));},exports['f_scan_jjb_config_json_rules']=function(_0x304d4c){const _0x4d20cf=a5_0x306398;let _0x4d836d={};try{_0x4d836d=JSON['parse'](fs[_0x4d20cf(0x11e)](_0x304d4c+'\x5cjjb.config.json')[_0x4d20cf(0x153)]());}catch(_0x583fff){console[_0x4d20cf(0x119)]('【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。'),process['exit'](0x0);}!(_0x4d20cf(0x130)in _0x4d836d)&&(console[_0x4d20cf(0x119)](_0x4d20cf(0x121)),process[_0x4d20cf(0x140)](0x0));!('installTarget'in _0x4d836d)&&(console[_0x4d20cf(0x119)](_0x4d20cf(0x10c)),process['exit'](0x0));!(_0x4d20cf(0x152)in _0x4d836d)&&(console[_0x4d20cf(0x119)](_0x4d20cf(0x13a)),process[_0x4d20cf(0x140)](0x0));typeof _0x4d836d['projectType']!==_0x4d20cf(0x12f)&&(console['log']('【Error】:[jjb.config.json.projectType]类型是一个string。'),process[_0x4d20cf(0x140)](0x0));![_0x4d20cf(0x11c),_0x4d20cf(0x138),_0x4d20cf(0x159),'micro-spa'][_0x4d20cf(0x149)](_0x4d836d[_0x4d20cf(0x130)])&&(console[_0x4d20cf(0x119)](_0x4d20cf(0x128)),process['exit'](0x0));typeof _0x4d836d[_0x4d20cf(0x10a)]!=='string'&&(console['log'](_0x4d20cf(0x11d)),process[_0x4d20cf(0x140)](0x0));![_0x4d20cf(0x118),'src'][_0x4d20cf(0x149)](_0x4d836d[_0x4d20cf(0x10a)])&&(console['log'](_0x4d20cf(0x13b)),process[_0x4d20cf(0x140)](0x0));!Array[_0x4d20cf(0x129)](_0x4d836d[_0x4d20cf(0x152)])&&(console[_0x4d20cf(0x119)](_0x4d20cf(0x113)),process['exit'](0x0));_0x4d836d[_0x4d20cf(0x152)][_0x4d20cf(0x139)]===0x0&&(console[_0x4d20cf(0x119)](_0x4d20cf(0x14b)),process[_0x4d20cf(0x140)](0x0));const _0xec56fb=exports[_0x4d20cf(0x150)](_0x4d836d[_0x4d20cf(0x152)]);return _0xec56fb[_0x4d20cf(0x161)](_0x4fe76b=>_0x4fe76b[_0x4d20cf(0x10e)])[_0x4d20cf(0x151)](_0x2134d5=>![_0x4d20cf(0x15c),'jjb-dva-runtime',_0x4d20cf(0x109),_0x4d20cf(0x14e),_0x4d20cf(0x10f),_0x4d20cf(0x148)][_0x4d20cf(0x149)](_0x2134d5))[_0x4d20cf(0x139)]!==0x0&&(console['log'](_0x4d20cf(0x117)),process[_0x4d20cf(0x140)](0x0)),_0x4d836d['installResources']=_0xec56fb,_0x4d836d;},exports['f_create_package_json']=function(_0x31faa4,_0x5a930f,_0x2607fa){const _0x332e32=a5_0x306398;fs[_0x332e32(0x15a)](_0x31faa4+_0x332e32(0x12b),_0x332e32(0x12d)+_0x5a930f+_0x332e32(0x145)+_0x2607fa+_0x332e32(0x160));},exports[a5_0x306398(0x150)]=function(_0xb5120c=[]){const _0x123fba=[];return Array['isArray'](_0xb5120c)&&_0xb5120c['forEach'](_0x20b84c=>{const _0x5104d7=a5_0x13cc;if(Array[_0x5104d7(0x129)](_0x20b84c)){const [_0x487a5a,_0x36c0dd=[]]=_0x20b84c;_0x123fba[_0x5104d7(0x137)]({'name':_0x487a5a,'importList':_0x36c0dd});}else _0x123fba[_0x5104d7(0x137)]({'name':_0x20b84c,'importList':[]});}),_0x123fba;},exports[a5_0x306398(0x122)]=function(_0x5abad2,_0x23bd1a,_0x2551d6){const _0x76e96f=a5_0x306398,_0x5f84ce=JSON[_0x76e96f(0x13f)](fs[_0x76e96f(0x11e)](_0x5abad2)['toString']());_0x5f84ce[_0x76e96f(0x10b)][_0x23bd1a]=_0x2551d6,fs[_0x76e96f(0x15a)](_0x5abad2,JSON['stringify'](_0x5f84ce,null,0x2));},exports[a5_0x306398(0x14c)]=function(_0xc73a21,_0x3ab418){const _0x45df9a=a5_0x306398;fs['readdirSync'](_0xc73a21)[_0x45df9a(0x14d)](_0x361a12=>{const _0x3b4b1f=_0x45df9a,_0x5bf129=_0xc73a21+'\x5c'+_0x361a12,_0x27e106=_0x3ab418+'\x5c'+_0x361a12;fs[_0x3b4b1f(0x15b)](_0x5bf129)['isDirectory']()?(fs[_0x3b4b1f(0x12e)](_0x27e106),exports[_0x3b4b1f(0x14c)](_0x5bf129,_0x27e106)):fs[_0x3b4b1f(0x15a)](_0x27e106,fs[_0x3b4b1f(0x11e)](_0x5bf129)[_0x3b4b1f(0x153)]());});},exports[a5_0x306398(0x154)]=function(_0x5bb0e7=[],_0x6fe45){_0x5bb0e7['forEach'](_0x315692=>{const _0x2505ea=a5_0x13cc,_0x123d4f=_0x6fe45+_0x315692[_0x2505ea(0x11f)];if(fs[_0x2505ea(0x10d)](_0x123d4f)){let _0x56fc9c=fs[_0x2505ea(0x11e)](_0x123d4f)[_0x2505ea(0x153)]();_0x315692['replace'][_0x2505ea(0x14d)](_0x5c9f2b=>{_0x56fc9c=_0x56fc9c['replace'](_0x5c9f2b[0x0],_0x5c9f2b[0x1]);}),fs[_0x2505ea(0x15a)](_0x123d4f,_0x56fc9c);}});},exports[a5_0x306398(0x12a)]=(_0x40c583,_0x4c7ce9)=>{const _0x48e584=a5_0x306398;let _0x2bca9c=[];const _0x4b3357=this;fs[_0x48e584(0x10d)](_0x40c583)?(_0x2bca9c=fs[_0x48e584(0x13d)](_0x40c583),_0x2bca9c['forEach'](function(_0xac6e9b,_0x2c5168){const _0x467bdc=_0x48e584;let _0x56ced4=_0x40c583+'/'+_0xac6e9b;fs['statSync'](_0x56ced4)[_0x467bdc(0x12c)]()?_0x4b3357['DeleteDirAllFile'](_0x56ced4):fs[_0x467bdc(0x13c)](_0x56ced4);}),fs[_0x48e584(0x114)](_0x40c583),_0x4c7ce9&&_0x4c7ce9()):_0x4c7ce9&&_0x4c7ce9();},exports[a5_0x306398(0x135)]=(_0x47bd94,_0x545e02,_0x49647c)=>{const _0x1d01f6=a5_0x306398,_0x707d16=this;fs[_0x1d01f6(0x156)](_0x47bd94,function(_0x21ef4d,_0x20185f){let _0x1721e8=0x0;const _0x2d8b18=function(){const _0x5ad382=a5_0x13cc;++_0x1721e8===_0x20185f[_0x5ad382(0x139)]&&_0x49647c&&_0x49647c();};if(_0x21ef4d){_0x2d8b18();return;}_0x20185f['forEach'](function(_0x3ff2b7){const _0x506539=a5_0x13cc,_0x31c50c=path[_0x506539(0x142)](_0x47bd94,_0x3ff2b7),_0x42b3c9=path['join'](_0x545e02,_0x3ff2b7);fs[_0x506539(0x158)](_0x31c50c,function(_0x76609a,_0x44c28a){const _0x4fb974=_0x506539;_0x44c28a[_0x4fb974(0x12c)]()?fs['mkdir'](_0x42b3c9,function(_0x180ecd){const _0xb8a7d0=_0x4fb974;if(_0x180ecd){console[_0xb8a7d0(0x119)](_0x180ecd);return;}_0x707d16[_0xb8a7d0(0x135)](_0x31c50c,_0x42b3c9,_0x2d8b18);}):_0x707d16[_0x4fb974(0x136)](_0x31c50c,_0x42b3c9,_0x2d8b18);});}),_0x20185f['length']===0x0&&_0x49647c&&_0x49647c();});},exports[a5_0x306398(0x136)]=(_0x240104,_0x44d49c,_0x598f4f)=>{const _0x3779a7=a5_0x306398,_0x210536=fs[_0x3779a7(0x14f)](_0x240104);_0x210536['on']('error',function(_0x4052d6){const _0x27d59f=_0x3779a7;_0x4052d6&&console[_0x27d59f(0x119)](_0x27d59f(0x11a),_0x240104),_0x598f4f&&_0x598f4f(_0x4052d6);});const _0x281382=fs[_0x3779a7(0x143)](_0x44d49c);_0x281382['on'](_0x3779a7(0x123),function(_0x2aa92a){const _0x251115=_0x3779a7;_0x2aa92a&&console['log'](_0x251115(0x15e),_0x44d49c),_0x598f4f&&_0x598f4f(_0x2aa92a);}),_0x281382['on']('close',function(_0x46f16d){_0x598f4f&&_0x598f4f(_0x46f16d);}),_0x210536[_0x3779a7(0x132)](_0x281382);},exports['DeepScanner']=(_0x58388c,_0x210477)=>{const _0xc9ed58=a5_0x306398,_0x23ec74=this,_0x5b4f17=fs[_0xc9ed58(0x13d)](_0x58388c);_0x5b4f17[_0xc9ed58(0x14d)](_0x5f4e14=>{const _0x49f85f=_0xc9ed58,_0x25a47d=_0x58388c+'/'+_0x5f4e14,_0xd74242=fs[_0x49f85f(0x15b)](_0x25a47d);_0xd74242[_0x49f85f(0x12c)]()?_0x23ec74[_0x49f85f(0x157)](_0x25a47d,_0x210477):_0x210477[_0x49f85f(0x137)](_0x25a47d);});},exports[a5_0x306398(0x155)]=(_0x4c3868,_0x2f4d9c)=>{return new Promise(_0x361f45=>{const _0x4ca9db=a5_0x13cc,_0x38d816=[];_0x2f4d9c[_0x4ca9db(0x14d)]((_0x55bd85,_0x364669)=>{const _0x281a46=_0x4ca9db,_0x400de3=_0x4c3868+'/'+_0x38d816[_0x281a46(0x142)]('/')+'/'+_0x55bd85;try{const _0x2b4620=fs['statSync'](_0x400de3);_0x2b4620[_0x281a46(0x12c)]()?_0x364669===_0x2f4d9c[_0x281a46(0x139)]-0x1&&_0x361f45():(fs[_0x281a46(0x12e)](_0x400de3),_0x364669===_0x2f4d9c['length']-0x1&&_0x361f45());}catch(_0x14703d){fs[_0x281a46(0x12e)](_0x400de3),_0x364669===_0x2f4d9c[_0x281a46(0x139)]-0x1&&_0x361f45();}_0x38d816[_0x281a46(0x137)](_0x55bd85);});});};
|
1
|
+
const a5_0x168a20=a5_0x55b2;function a5_0x55b2(_0x7eec07,_0x232212){const _0x2b1e73=a5_0x2b1e();return a5_0x55b2=function(_0x55b296,_0x21397c){_0x55b296=_0x55b296-0x187;let _0x2edc08=_0x2b1e73[_0x55b296];return _0x2edc08;},a5_0x55b2(_0x7eec07,_0x232212);}(function(_0x1dbc85,_0x45c840){const _0x2c545d=a5_0x55b2,_0x4d702c=_0x1dbc85();while(!![]){try{const _0x3e7abb=-parseInt(_0x2c545d(0x1af))/0x1+-parseInt(_0x2c545d(0x1dd))/0x2*(parseInt(_0x2c545d(0x1ac))/0x3)+-parseInt(_0x2c545d(0x1c5))/0x4*(parseInt(_0x2c545d(0x1bc))/0x5)+-parseInt(_0x2c545d(0x1bf))/0x6*(parseInt(_0x2c545d(0x1ba))/0x7)+parseInt(_0x2c545d(0x194))/0x8*(-parseInt(_0x2c545d(0x19f))/0x9)+-parseInt(_0x2c545d(0x1b7))/0xa+-parseInt(_0x2c545d(0x1be))/0xb*(-parseInt(_0x2c545d(0x1cf))/0xc);if(_0x3e7abb===_0x45c840)break;else _0x4d702c['push'](_0x4d702c['shift']());}catch(_0x4a6562){_0x4d702c['push'](_0x4d702c['shift']());}}}(a5_0x2b1e,0x7486e));const fs=require('fs'),os=require('os'),path=require('path'),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require('./config');exports['f_rm_rf']=function(_0x3a05ea){const _0x192830=a5_0x55b2;if(fs['existsSync'](_0x3a05ea)){const _0x58980d=fs[_0x192830(0x1c3)](_0x3a05ea);for(let _0x5ce90a=0x0;_0x5ce90a<_0x58980d[_0x192830(0x1c4)];_0x5ce90a++){const _0x142afb=_0x58980d[_0x5ce90a],_0x53e3a0=_0x3a05ea+'/'+_0x142afb;fs[_0x192830(0x1c6)](_0x53e3a0)[_0x192830(0x1bb)]()?(exports[_0x192830(0x1c1)](_0x53e3a0),fs[_0x192830(0x1c8)](_0x53e3a0)):fs[_0x192830(0x1a9)](_0x53e3a0);}}},exports['f_pull_git_repository']=function(_0x5617f5=[]){const _0x4247af=a5_0x55b2;return _0x5617f5[_0x4247af(0x1a7)](_0x390e34=>{const _0x11a610=_0x4247af,_0x533037=CLOUD_PROJECT[_0x390e34['name']]||undefined,_0x4751c6=os[_0x11a610(0x1d4)]();return{'path':_0x4751c6+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x390e34[_0x11a610(0x1b1)]+_0x11a610(0x18c),'compress':_0x4751c6+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x390e34[_0x11a610(0x1b1)]+_0x11a610(0x1c7),'repository':GIT_HOST+_0x11a610(0x1d3)+_0x533037[_0x11a610(0x18f)]+_0x11a610(0x1b4)+_0x533037[_0x11a610(0x1b9)]+_0x11a610(0x1db)};});},exports[a5_0x168a20(0x19a)]=function(_0x31cba5){const _0x4a198c=a5_0x168a20;return fs[_0x4a198c(0x1ab)](_0x31cba5+_0x4a198c(0x1b6));},exports['f_scan_jjb_config_json_rules']=function(_0x17f00e){const _0x5a5f23=a5_0x168a20;let _0x4f21ae={};try{_0x4f21ae=JSON[_0x5a5f23(0x19c)](fs[_0x5a5f23(0x1b0)](_0x17f00e+'\x5cjjb.config.json')[_0x5a5f23(0x199)]());}catch(_0x24bdb6){console[_0x5a5f23(0x1d8)](_0x5a5f23(0x1b3)),process['exit'](0x0);}!(_0x5a5f23(0x1ce)in _0x4f21ae)&&(console[_0x5a5f23(0x1d8)]('【Error】:[jjb.config.json]文件配置无效,需要projectType属性。'),process[_0x5a5f23(0x1ad)](0x0));!(_0x5a5f23(0x1ca)in _0x4f21ae)&&(console[_0x5a5f23(0x1d8)]('【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。'),process[_0x5a5f23(0x1ad)](0x0));!('installResources'in _0x4f21ae)&&(console[_0x5a5f23(0x1d8)]('【Error】:[jjb.config.json]文件配置无效,需要installResources属性。'),process[_0x5a5f23(0x1ad)](0x0));typeof _0x4f21ae['projectType']!==_0x5a5f23(0x19b)&&(console['log']('【Error】:[jjb.config.json.projectType]类型是一个string。'),process[_0x5a5f23(0x1ad)](0x0));!['multi',_0x5a5f23(0x1a4),'uniapp',_0x5a5f23(0x196)][_0x5a5f23(0x198)](_0x4f21ae['projectType'])&&(console['log'](_0x5a5f23(0x18d)),process[_0x5a5f23(0x1ad)](0x0));typeof _0x4f21ae[_0x5a5f23(0x1ca)]!==_0x5a5f23(0x19b)&&(console[_0x5a5f23(0x1d8)](_0x5a5f23(0x1d7)),process[_0x5a5f23(0x1ad)](0x0));![_0x5a5f23(0x1a2),_0x5a5f23(0x188)]['includes'](_0x4f21ae[_0x5a5f23(0x1ca)])&&(console['log'](_0x5a5f23(0x1aa)),process[_0x5a5f23(0x1ad)](0x0));!Array['isArray'](_0x4f21ae[_0x5a5f23(0x189)])&&(console[_0x5a5f23(0x1d8)](_0x5a5f23(0x1a3)),process['exit'](0x0));_0x4f21ae['installResources']['length']===0x0&&(console[_0x5a5f23(0x1d8)](_0x5a5f23(0x19d)),process['exit'](0x0));const _0x500d0d=exports[_0x5a5f23(0x1a1)](_0x4f21ae[_0x5a5f23(0x189)]);return _0x500d0d[_0x5a5f23(0x1a7)](_0x18782d=>_0x18782d[_0x5a5f23(0x1b1)])['filter'](_0x218df8=>![_0x5a5f23(0x197),_0x5a5f23(0x192),_0x5a5f23(0x1cb),'jjb-common-decorator',_0x5a5f23(0x1d6),'vue-unisass-component'][_0x5a5f23(0x198)](_0x218df8))['length']!==0x0&&(console[_0x5a5f23(0x1d8)](_0x5a5f23(0x1bd)),process[_0x5a5f23(0x1ad)](0x0)),_0x4f21ae[_0x5a5f23(0x189)]=_0x500d0d,_0x4f21ae;},exports[a5_0x168a20(0x18e)]=function(_0x205b2e,_0x149142,_0x34a9a6){const _0x81b91=a5_0x168a20;fs[_0x81b91(0x1da)](_0x205b2e+'\x5cpackage.json',_0x81b91(0x18a)+_0x149142+'\x22,\x22version\x22:\x22'+_0x34a9a6+_0x81b91(0x1d2));},exports[a5_0x168a20(0x1a1)]=function(_0x3ca8b1=[]){const _0x27d18c=a5_0x168a20,_0x3f5040=[];return Array[_0x27d18c(0x1a0)](_0x3ca8b1)&&_0x3ca8b1[_0x27d18c(0x1d0)](_0x4975b6=>{const _0xc48a02=_0x27d18c;if(Array[_0xc48a02(0x1a0)](_0x4975b6)){const [_0x566da1,_0x3cb474=[]]=_0x4975b6;_0x3f5040[_0xc48a02(0x1a8)]({'name':_0x566da1,'importList':_0x3cb474});}else _0x3f5040[_0xc48a02(0x1a8)]({'name':_0x4975b6,'importList':[]});}),_0x3f5040;},exports[a5_0x168a20(0x1c0)]=function(_0x39d06f,_0x28825a,_0x4fb1a){const _0x4f429d=a5_0x168a20,_0x2fe3f2=JSON[_0x4f429d(0x19c)](fs[_0x4f429d(0x1b0)](_0x39d06f)['toString']());_0x2fe3f2[_0x4f429d(0x1d9)][_0x28825a]=_0x4fb1a,fs['writeFileSync'](_0x39d06f,JSON[_0x4f429d(0x1cd)](_0x2fe3f2,null,0x2));},exports[a5_0x168a20(0x1b5)]=function(_0x43f538,_0x26ffe){const _0x3db4e6=a5_0x168a20;fs[_0x3db4e6(0x1c3)](_0x43f538)['forEach'](_0x3ba17a=>{const _0xe3d42a=_0x3db4e6,_0x4cba45=_0x43f538+'\x5c'+_0x3ba17a,_0x4a2163=_0x26ffe+'\x5c'+_0x3ba17a;fs[_0xe3d42a(0x1c6)](_0x4cba45)[_0xe3d42a(0x1bb)]()?(fs['mkdirSync'](_0x4a2163),exports[_0xe3d42a(0x1b5)](_0x4cba45,_0x4a2163)):fs['writeFileSync'](_0x4a2163,fs[_0xe3d42a(0x1b0)](_0x4cba45)[_0xe3d42a(0x199)]());});},exports[a5_0x168a20(0x1cc)]=function(_0x5b5a60=[],_0x42cd8d){const _0x31b02a=a5_0x168a20;_0x5b5a60[_0x31b02a(0x1d0)](_0x7b634e=>{const _0x321040=_0x31b02a,_0x2a285a=_0x42cd8d+_0x7b634e['path'];if(fs[_0x321040(0x1ab)](_0x2a285a)){let _0x34f83a=fs[_0x321040(0x1b0)](_0x2a285a)[_0x321040(0x199)]();_0x7b634e[_0x321040(0x19e)][_0x321040(0x1d0)](_0x153220=>{const _0x2941d3=_0x321040;_0x34f83a=_0x34f83a[_0x2941d3(0x19e)](_0x153220[0x0],_0x153220[0x1]);}),fs[_0x321040(0x1da)](_0x2a285a,_0x34f83a);}});},exports[a5_0x168a20(0x1d1)]=(_0x4f542b,_0x5b1487)=>{const _0x2ae823=a5_0x168a20;let _0x34b305=[];const _0x59f2ef=this;fs['existsSync'](_0x4f542b)?(_0x34b305=fs[_0x2ae823(0x1c3)](_0x4f542b),_0x34b305[_0x2ae823(0x1d0)](function(_0x483faf,_0x3a8d7f){const _0x293d67=_0x2ae823;let _0x65a332=_0x4f542b+'/'+_0x483faf;fs[_0x293d67(0x1c6)](_0x65a332)[_0x293d67(0x1bb)]()?_0x59f2ef[_0x293d67(0x1d1)](_0x65a332):fs[_0x293d67(0x1a9)](_0x65a332);}),fs[_0x2ae823(0x1c8)](_0x4f542b),_0x5b1487&&_0x5b1487()):_0x5b1487&&_0x5b1487();},exports[a5_0x168a20(0x195)]=(_0x3877c1,_0x3414da,_0xdce585)=>{const _0x491811=a5_0x168a20,_0x7e75ad=this;fs[_0x491811(0x18b)](_0x3877c1,function(_0x1a8b4d,_0x14b9b2){const _0x5c277c=_0x491811;let _0x31b671=0x0;const _0x4e668e=function(){const _0x490726=a5_0x55b2;++_0x31b671===_0x14b9b2[_0x490726(0x1c4)]&&_0xdce585&&_0xdce585();};if(_0x1a8b4d){_0x4e668e();return;}_0x14b9b2[_0x5c277c(0x1d0)](function(_0x454aee){const _0x2b4f54=_0x5c277c,_0x2afe71=path[_0x2b4f54(0x1c2)](_0x3877c1,_0x454aee),_0xc1a4f7=path[_0x2b4f54(0x1c2)](_0x3414da,_0x454aee);fs[_0x2b4f54(0x187)](_0x2afe71,function(_0x3c83e2,_0x5ae8cb){const _0xa5e679=_0x2b4f54;_0x5ae8cb[_0xa5e679(0x1bb)]()?fs[_0xa5e679(0x1b8)](_0xc1a4f7,function(_0x5cfe3b){const _0x37ea0a=_0xa5e679;if(_0x5cfe3b){console['log'](_0x5cfe3b);return;}_0x7e75ad[_0x37ea0a(0x195)](_0x2afe71,_0xc1a4f7,_0x4e668e);}):_0x7e75ad[_0xa5e679(0x1d5)](_0x2afe71,_0xc1a4f7,_0x4e668e);});}),_0x14b9b2[_0x5c277c(0x1c4)]===0x0&&_0xdce585&&_0xdce585();});},exports['CopyFile']=(_0x2c723d,_0x1a0d90,_0x3b3e77)=>{const _0x3a0af7=a5_0x168a20,_0x4b4211=fs[_0x3a0af7(0x1b2)](_0x2c723d);_0x4b4211['on'](_0x3a0af7(0x1a5),function(_0x17a62b){const _0x13f783=_0x3a0af7;_0x17a62b&&console[_0x13f783(0x1d8)](_0x13f783(0x1c9),_0x2c723d),_0x3b3e77&&_0x3b3e77(_0x17a62b);});const _0x52c8d7=fs['createWriteStream'](_0x1a0d90);_0x52c8d7['on']('error',function(_0x21ef22){const _0x1ee662=_0x3a0af7;_0x21ef22&&console[_0x1ee662(0x1d8)](_0x1ee662(0x191),_0x1a0d90),_0x3b3e77&&_0x3b3e77(_0x21ef22);}),_0x52c8d7['on'](_0x3a0af7(0x193),function(_0x574f4e){_0x3b3e77&&_0x3b3e77(_0x574f4e);}),_0x4b4211[_0x3a0af7(0x1dc)](_0x52c8d7);},exports[a5_0x168a20(0x190)]=(_0x5b7281,_0x593c1c)=>{const _0x466654=a5_0x168a20,_0x5100bb=this,_0x4decf3=fs[_0x466654(0x1c3)](_0x5b7281);_0x4decf3[_0x466654(0x1d0)](_0x47df32=>{const _0x47d6ee=_0x466654,_0x5a09e8=_0x5b7281+'/'+_0x47df32,_0x6943b3=fs[_0x47d6ee(0x1c6)](_0x5a09e8);_0x6943b3['isDirectory']()?_0x5100bb['DeepScanner'](_0x5a09e8,_0x593c1c):_0x593c1c[_0x47d6ee(0x1a8)](_0x5a09e8);});},exports[a5_0x168a20(0x1ae)]=(_0x30425f,_0x4a34f6)=>{return new Promise(_0x39bbaf=>{const _0x4477e1=a5_0x55b2,_0x17374b=[];_0x4a34f6[_0x4477e1(0x1d0)]((_0x3382fd,_0x2831f)=>{const _0x195b68=_0x4477e1,_0x3bf3a8=_0x30425f+'/'+_0x17374b[_0x195b68(0x1c2)]('/')+'/'+_0x3382fd;try{const _0x1b553c=fs['statSync'](_0x3bf3a8);_0x1b553c[_0x195b68(0x1bb)]()?_0x2831f===_0x4a34f6['length']-0x1&&_0x39bbaf():(fs[_0x195b68(0x1a6)](_0x3bf3a8),_0x2831f===_0x4a34f6['length']-0x1&&_0x39bbaf());}catch(_0x11ec57){fs[_0x195b68(0x1a6)](_0x3bf3a8),_0x2831f===_0x4a34f6[_0x195b68(0x1c4)]-0x1&&_0x39bbaf();}_0x17374b[_0x195b68(0x1a8)](_0x3382fd);});});};function a5_0x2b1e(){const _0x580aa2=['【Error】:[jjb.config.json.installResources]无资源。','replace','36315ChgWmE','isArray','f_resolve_install_resources','node_modules','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','spa','error','mkdirSync','map','push','unlinkSync','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','existsSync','3NCSdMt','exit','CreatePaths','937070IYaLmM','readFileSync','name','createReadStream','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','/repository/archive.zip?private_token=','f_file_copy','\x5cjjb.config.json','1013340fVNYaR','mkdir','token','14YTtrNb','isDirectory','35NGBOnh','【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>。','11hDlDKl','2416938uxpmsU','f_update_project_package_json','f_rm_rf','join','readdirSync','length','166172YgOGeX','statSync','_zip','rmdirSync','read\x20error','installTarget','jjb-common-lib','f_content_replace','stringify','projectType','52303716LbDBZO','forEach','DeleteDirAllFile','\x22,\x22main\x22:\x20\x22index.js\x22}','/api/v4/projects/','tmpdir','CopyFile','react-admin-component','【Error】:[jjb.config.json.installTarget]类型是一个string。','log','dependencies','writeFileSync','&ref=master','pipe','1887066dMxQIN','stat','src','installResources','{\x22name\x22:\x22','readdir','.zip','【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。','f_create_package_json','projectId','DeepScanner','write\x20error','jjb-dva-runtime','close','1592xxRJeM','CopyFolder','micro-spa','jjb-common','includes','toString','f_scan_jjb_config_json','string','parse'];a5_0x2b1e=function(){return _0x580aa2;};return a5_0x2b1e();}
|