jjb-cmd 2.3.2 → 2.4.0
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 +7 -1
- package/package.json +8 -1
- package/src/auth.js +1 -1
- package/src/code-optimization.js +48 -0
- 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
@@ -20,8 +20,9 @@ commander.command('help').description('-- 帮助').action(() => {
|
|
20
20
|
console.log('使用:');
|
21
21
|
console.log('');
|
22
22
|
console.log('jjb-cmd help 帮助');
|
23
|
+
console.log('jjb-cmd opti 代码优化');
|
23
24
|
console.log('jjb-cmd v 查看版本');
|
24
|
-
console.log('jjb-cmd
|
25
|
+
console.log('jjb-cmd publish <version> 发布云组件\n\targ1 <version> 发布版本,可设置为latest');
|
25
26
|
console.log('jjb-cmd auth <username> <password> 登录授权\n\targ1 <username> 用户名\n\targ2 <password> 密码');
|
26
27
|
console.log('jjb-cmd push java <env> 推送微应用到服务器\n\targ1 <env> 推送环境');
|
27
28
|
});
|
@@ -39,6 +40,11 @@ commander.command('auth [args]').description('-- 授权').action(args => {
|
|
39
40
|
require('../src/auth.js')(process.argv.splice(3));
|
40
41
|
});
|
41
42
|
|
43
|
+
// 优化
|
44
|
+
commander.command('opti').description('-- 代码优化').action(args => {
|
45
|
+
require('../src/code-optimization')();
|
46
|
+
});
|
47
|
+
|
42
48
|
// 发包
|
43
49
|
commander.command('publish [args]').description('-- 发布包').action(args => {
|
44
50
|
require('../src/publish.js')(args);
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"env": "prod",
|
5
5
|
"httpMethod": "http",
|
6
6
|
"pushMessage": "yes",
|
7
|
-
"version": "2.
|
7
|
+
"version": "2.4.0",
|
8
8
|
"description": "jjb-cmd命令行工具",
|
9
9
|
"main": "index.js",
|
10
10
|
"scripts": {
|
@@ -17,7 +17,14 @@
|
|
17
17
|
"author": "jjb-front-team",
|
18
18
|
"license": "MIT",
|
19
19
|
"dependencies": {
|
20
|
+
"@cqsjjb/react-code-optimization": "^0.0.2",
|
20
21
|
"chalk": "2.4.0",
|
22
|
+
"prettier": "^3.3.3",
|
23
|
+
"@babel/traverse": "^7.25.9",
|
24
|
+
"@babel/generator": "^7.26.0",
|
25
|
+
"@babel/parser": "^7.26.1",
|
26
|
+
"@babel/preset-env": "^7.23.2",
|
27
|
+
"@babel/preset-typescript": "^7.23.2",
|
21
28
|
"@babel/core": "^7.19.3",
|
22
29
|
"@babel/preset-react": "^7.18.6",
|
23
30
|
"axios": "^1.1.3",
|
package/src/auth.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a0_0x5215(){const _0x28714f=['146430UwtOrS','exports','11119HqZgaC','join','status','3430HcnsFT','post','log','Auth:\x20登录失败!','exit','3423626isfajn','Auth:\x20登录成功,已缓存登录状态!','4330012OCdxCk','red','30SirDHr','catch','message','Auth:\x20授权登录!','./config','33183SGogAs','data','609aqmGMA','chalk','existsSync','writeFileSync','path','unlinkSync','Auth:\x20','green','4961454imHHFA','../.auth','44248lskThF','axios'];a0_0x5215=function(){return _0x28714f;};return a0_0x5215();}const a0_0x1ecf75=a0_0x435a;(function(_0x4b6a3e,_0x3003d0){const _0x362df2=a0_0x435a,_0x176b70=_0x4b6a3e();while(!![]){try{const _0x2f9c29=-parseInt(_0x362df2(0x149))/0x1+parseInt(_0x362df2(0x151))/0x2+-parseInt(_0x362df2(0x143))/0x3+-parseInt(_0x362df2(0x153))/0x4+parseInt(_0x362df2(0x155))/0x5*(parseInt(_0x362df2(0x147))/0x6)+-parseInt(_0x362df2(0x13b))/0x7*(-parseInt(_0x362df2(0x145))/0x8)+parseInt(_0x362df2(0x139))/0x9*(parseInt(_0x362df2(0x14c))/0xa);if(_0x2f9c29===_0x3003d0)break;else _0x176b70['push'](_0x176b70['shift']());}catch(_0x38d26a){_0x176b70['push'](_0x176b70['shift']());}}}(a0_0x5215,0xd1241));const axios=require(a0_0x1ecf75(0x146)),chalk=require(a0_0x1ecf75(0x13c)),fs=require('fs'),path=require(a0_0x1ecf75(0x13f)),{getApiHost}=require(a0_0x1ecf75(0x138));function a0_0x435a(_0x447faa,_0x4ee1ee){const _0x52156c=a0_0x5215();return a0_0x435a=function(_0x435a7a,_0x5776fb){_0x435a7a=_0x435a7a-0x136;let _0x1d5adf=_0x52156c[_0x435a7a];return _0x1d5adf;},a0_0x435a(_0x447faa,_0x4ee1ee);}module[a0_0x1ecf75(0x148)]=_0x2b76ab=>{const _0x15efbb=a0_0x1ecf75;console[_0x15efbb(0x14e)](_0x15efbb(0x137));const [_0x352ba5,_0x5c8caf]=_0x2b76ab;axios[_0x15efbb(0x14d)](getApiHost()+'/api/auth',{'username':_0x352ba5,'password':_0x5c8caf})['then'](_0x253252=>{const _0x3f094c=_0x15efbb,_0x26b5b3=path[_0x3f094c(0x14a)](__dirname,_0x3f094c(0x144));_0x253252[_0x3f094c(0x13a)][_0x3f094c(0x14b)]?(console[_0x3f094c(0x14e)](chalk[_0x3f094c(0x142)](_0x3f094c(0x152))),fs[_0x3f094c(0x13e)](_0x26b5b3,_0x352ba5+'/'+_0x5c8caf)):(console[_0x3f094c(0x14e)](chalk[_0x3f094c(0x154)](_0x3f094c(0x141)+_0x253252[_0x3f094c(0x13a)]['message'])),fs[_0x3f094c(0x13d)](_0x26b5b3)&&fs[_0x3f094c(0x140)](_0x26b5b3),process[_0x3f094c(0x150)](0x0));})[_0x15efbb(0x156)](_0x2d1e35=>{const _0x11d4ed=_0x15efbb;console[_0x11d4ed(0x14e)](chalk[_0x11d4ed(0x142)](_0x11d4ed(0x14f)+_0x2d1e35[_0x11d4ed(0x136)])),process[_0x11d4ed(0x150)](0x0);});};
|
@@ -0,0 +1,48 @@
|
|
1
|
+
const a1_0x57a530 = a1_0x5189;
|
2
|
+
(function (_0x343088, _0x157b6a) {
|
3
|
+
const _0x58eef2 = a1_0x5189, _0x497601 = _0x343088();
|
4
|
+
while (!![]) {
|
5
|
+
try {
|
6
|
+
const _0x311d74 = -parseInt(_0x58eef2(0x132)) / 0x1 * (-parseInt(_0x58eef2(0x138)) / 0x2) + -parseInt(_0x58eef2(0x133)) / 0x3 * (-parseInt(_0x58eef2(0x143)) / 0x4) + parseInt(_0x58eef2(0x137)) / 0x5 * (-parseInt(_0x58eef2(0x13a)) / 0x6) + parseInt(_0x58eef2(0x130)) / 0x7 + -parseInt(_0x58eef2(0x147)) / 0x8 * (-parseInt(_0x58eef2(0x131)) / 0x9) + parseInt(_0x58eef2(0x144)) / 0xa * (parseInt(_0x58eef2(0x13c)) / 0xb) + -parseInt(_0x58eef2(0x13b)) / 0xc;
|
7
|
+
if (_0x311d74 === _0x157b6a) break; else _0x497601[ 'push' ](_0x497601[ 'shift' ]());
|
8
|
+
} catch (_0x17df20) {
|
9
|
+
_0x497601[ 'push' ](_0x497601[ 'shift' ]());
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}(a1_0x57b7, 0x4e77c));
|
13
|
+
|
14
|
+
function a1_0x57b7() {
|
15
|
+
const _0x4c48c4 = [ '10kvaVeU', '10WAMqzY', 'path', '1213788MZGceV', '13229448VPgvxg', '209fehNeK', 'exit', 'readline', 'log', '@cqsjjb/react-code-optimization', 'createInterface', 'exports', '64564nsUemA', '10910waQoSR', 'resolve', 'trim', '376aINSMU', 'stdin', '3752763fabIEd', '114705bJuXcT', '115151JrABAG', '18aIdwhO', '是否确认优化代码?[y/n]:', 'question', '取消优化。' ];
|
16
|
+
a1_0x57b7 = function () {
|
17
|
+
return _0x4c48c4;
|
18
|
+
};
|
19
|
+
return a1_0x57b7();
|
20
|
+
}
|
21
|
+
|
22
|
+
function a1_0x5189(_0x2d15b4, _0x5ec83c) {
|
23
|
+
const _0x57b760 = a1_0x57b7();
|
24
|
+
return a1_0x5189 = function (_0x51890d, _0x3bbeac) {
|
25
|
+
_0x51890d = _0x51890d - 0x12f;
|
26
|
+
let _0x2cd13e = _0x57b760[ _0x51890d ];
|
27
|
+
return _0x2cd13e;
|
28
|
+
}, a1_0x5189(_0x2d15b4, _0x5ec83c);
|
29
|
+
}
|
30
|
+
|
31
|
+
const path = require(a1_0x57a530(0x139)),
|
32
|
+
readline = require(a1_0x57a530(0x13e)), { bootstrap } = require(a1_0x57a530(0x140)),
|
33
|
+
io = readline[ a1_0x57a530(0x141) ]({
|
34
|
+
'input': process[ a1_0x57a530(0x12f) ],
|
35
|
+
'output': process[ 'stdout' ]
|
36
|
+
});
|
37
|
+
module[ a1_0x57a530(0x142) ] = function () {
|
38
|
+
const _0x5e1185 = a1_0x57a530, _0x30fbeb = path[ _0x5e1185(0x145) ]('./');
|
39
|
+
io[ _0x5e1185(0x135) ](_0x5e1185(0x134), function (_0x4edbbc) {
|
40
|
+
const _0x418207 = _0x5e1185;
|
41
|
+
if (_0x4edbbc[ _0x418207(0x146) ]() === 'y') bootstrap(_0x30fbeb, 0x64, () => {
|
42
|
+
const _0x1aefbb = _0x418207;
|
43
|
+
console[ _0x1aefbb(0x13f) ]('优化完成。'), process[ _0x1aefbb(0x13d) ](0x0);
|
44
|
+
}); else _0x4edbbc[ _0x418207(0x146) ]() === 'n'
|
45
|
+
? (console[ _0x418207(0x13f) ](_0x418207(0x136)), process[ _0x418207(0x13d) ](0x0))
|
46
|
+
: (console[ _0x418207(0x13f) ]('无效操作。'), process[ _0x418207(0x13d) ](0x0));
|
47
|
+
});
|
48
|
+
};
|
package/src/config.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a2_0x45f77f=a2_0x1a65;(function(_0xb184fb,_0x3913a4){const _0x53b5b8=a2_0x1a65,_0x1e7d4a=_0xb184fb();while(!![]){try{const _0xd8418b=parseInt(_0x53b5b8(0x175))/0x1+parseInt(_0x53b5b8(0x185))/0x2*(-parseInt(_0x53b5b8(0x187))/0x3)+-parseInt(_0x53b5b8(0x169))/0x4*(parseInt(_0x53b5b8(0x17c))/0x5)+parseInt(_0x53b5b8(0x17f))/0x6*(parseInt(_0x53b5b8(0x16f))/0x7)+parseInt(_0x53b5b8(0x168))/0x8*(-parseInt(_0x53b5b8(0x182))/0x9)+parseInt(_0x53b5b8(0x176))/0xa+parseInt(_0x53b5b8(0x165))/0xb;if(_0xd8418b===_0x3913a4)break;else _0x1e7d4a['push'](_0x1e7d4a['shift']());}catch(_0x2a2c63){_0x1e7d4a['push'](_0x1e7d4a['shift']());}}}(a2_0x5920,0x8db69));function a2_0x1a65(_0x59f7ea,_0x401eb6){const _0x5920c5=a2_0x5920();return a2_0x1a65=function(_0x1a658f,_0x2628c5){_0x1a658f=_0x1a658f-0x162;let _0x1ee396=_0x5920c5[_0x1a658f];return _0x1ee396;},a2_0x1a65(_0x59f7ea,_0x401eb6);}const os=require('os'),path=require('path'),fs=require('fs'),API_HOST=a2_0x45f77f(0x16a),API_HOST_HTTPS=a2_0x45f77f(0x17a),API_HOST_TEST=a2_0x45f77f(0x164);function a2_0x5920(){const _0x3c11a5=['d4wQ7dzEjYPsgVbKnYei','ywPtT3xCG6b_vAxp6sTj','http://120.26.210.58:8089','6115582imSswy','API_HOST_TEST','CLOUD_PROJECT','9000368WKYTKz','17364RWgvLx','http://120.26.210.58:8088','dev','GIT_HOST','getApiHost','GIT_TEMP_JAVA','7SaoIRy','e9njpBd1nS_LREN8GFpR','FT3pKzxpRynFkmddJ9Bs','jjb-assembly-','CONFIG_FILE_HOST','7V-YUxhmh51Mdhgx4rq4','748053jCZrIP','3580860TJFBDI','tmpdir','TEMPLATE_FOLDER','parse','https://jcloud.cqjjb.cn','gPSit8aJsLVmNzuQ5Cy4','300IIZJAl','toString','API_HOST','1910202FGvrzN','now','join','9ccOVEE','jjb-assembly-java','GIT_JAVA_ENV_JSON','29010VXGdIo','FqNrmFAgrxasMrbbjvq9','3cTsWDG','readFileSync','../package.json','http'];a2_0x5920=function(){return _0x3c11a5;};return a2_0x5920();}exports[a2_0x45f77f(0x173)]='https://cdn.cqjjb.cn/jjb-cloud-config',exports[a2_0x45f77f(0x17e)]=API_HOST,exports[a2_0x45f77f(0x166)]=API_HOST_TEST,exports[a2_0x45f77f(0x16c)]='http://192.168.1.242:10985',exports['GIT_TEMP_DIR']=a2_0x45f77f(0x172)+Date[a2_0x45f77f(0x180)](),exports[a2_0x45f77f(0x16e)]=a2_0x45f77f(0x183),exports[a2_0x45f77f(0x184)]={'development':a2_0x45f77f(0x16b),'production':'prod','test':'test'},exports[a2_0x45f77f(0x167)]={'common':{'token':'G4HJRsHr9D7Ssmixegw2','projectId':0x117},'react-admin-component':{'token':a2_0x45f77f(0x171),'projectId':0x154},'jjb-dva-runtime':{'token':'hLqARY89CN6fUD3yg4NL','projectId':0x23b},'jjb-common-lib':{'token':a2_0x45f77f(0x170),'projectId':0x23c},'jjb-common-decorator':{'token':a2_0x45f77f(0x17b),'projectId':0x23e},'vue-unisass-component':{'token':a2_0x45f77f(0x162),'projectId':0x153},'react-component':{'token':'snBxJ2i5kYarGGcsojhY','projectId':0x33f},'micro-app-ts':{'token':a2_0x45f77f(0x174),'projectId':0x33e},'micro-app':{'token':a2_0x45f77f(0x186),'projectId':0x33d},'lib':{'token':a2_0x45f77f(0x163),'projectId':0x33c}},exports[a2_0x45f77f(0x178)]=os[a2_0x45f77f(0x177)]()+'\x5c'+exports['GIT_TEMP_DIR'],exports[a2_0x45f77f(0x16d)]=()=>{const _0x4821a6=a2_0x45f77f,_0x390f82=JSON[_0x4821a6(0x179)](fs[_0x4821a6(0x188)](path[_0x4821a6(0x181)](__dirname,_0x4821a6(0x189)))[_0x4821a6(0x17d)]());return _0x390f82['env']==='test'?API_HOST_TEST:_0x390f82['httpMethod']===_0x4821a6(0x18a)?API_HOST:API_HOST_HTTPS;};
|
package/src/publish.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a3_0x2d3a(){const _0x1cae2b=['Sudo:\x20yarn\x20build:production','3453399lNGDQq','createInterface','join','pushMessage','match','existsSync','readFileSync','status','defaultSetting','stdin','question','index.js','post','toString','log','chalk','length','readme_content','./config','Error:\x20请在组件入口文件中添加“window[props.componentKey]”以暴露组件的配置信息!','319986Asyaak','dist','4DnazoR','exports','split','stringify','Error:\x20请在组件根目录添加一个README.md说明文件!','catch','Error:\x20授权失败!','path','Please\x20wait,\x20build\x20...,','5271565cuAEXN','15353965WNeLtf','Error:\x20组件发布失败!根目录缺少‘package.json’文件!','Auth:\x20授权成功!','Error:\x20组件发布失败!','blue','base64','Auth:\x20正在获取授权!','Error:\x20暴露的配置信息中缺少“settings”!','then','package.json','thumbnail_base64','exit','14oCDEja','133070XzYTSi','Error:\x20请先登录!','477XEYHRE','6350ZJAAJV','/api/auth','173kJjuYf','child_process','/yarn.lock','../package.json','message','Error:\x20请在组件根目录为组件添加一个缩略图“thumbnail.png”文件!','component_config_content','parse','stdout','yarn\x20build:production','1176296LayoFv','axios','green','from','execSync','Error:\x20暴露的配置信息中缺少“info”!','请输入此次组件发布的信息,按Enter确认:','no\x20message','resolve','red','README.md','Error:\x20组件发布失败!根目录缺少‘dist/index.js’文件!'];a3_0x2d3a=function(){return _0x1cae2b;};return a3_0x2d3a();}const a3_0x502284=a3_0x396c;(function(_0x1b996d,_0x1eb696){const _0x32a1fb=a3_0x396c,_0x376d82=_0x1b996d();while(!![]){try{const _0x43a072=-parseInt(_0x32a1fb(0x1dd))/0x1*(parseInt(_0x32a1fb(0x1db))/0x2)+-parseInt(_0x32a1fb(0x1f4))/0x3*(-parseInt(_0x32a1fb(0x20a))/0x4)+parseInt(_0x32a1fb(0x213))/0x5+-parseInt(_0x32a1fb(0x208))/0x6+parseInt(_0x32a1fb(0x1d7))/0x7*(-parseInt(_0x32a1fb(0x1e7))/0x8)+-parseInt(_0x32a1fb(0x1da))/0x9*(-parseInt(_0x32a1fb(0x1d8))/0xa)+-parseInt(_0x32a1fb(0x214))/0xb;if(_0x43a072===_0x1eb696)break;else _0x376d82['push'](_0x376d82['shift']());}catch(_0xb0117c){_0x376d82['push'](_0x376d82['shift']());}}}(a3_0x2d3a,0x96eee));const path=require(a3_0x502284(0x211)),fs=require('fs'),os=require('os'),axios=require(a3_0x502284(0x1e8)),chalk=require(a3_0x502284(0x203)),readline=require('readline'),io=readline[a3_0x502284(0x1f5)]({'input':process[a3_0x502284(0x1fd)],'output':process[a3_0x502284(0x1e5)]}),child_process=require(a3_0x502284(0x1de)),{getApiHost}=require(a3_0x502284(0x206)),submitFun=function(_0x1c13eb,_0x25924d){const _0x575ef6=a3_0x502284;_0x25924d[_0x575ef6(0x1e1)]=_0x1c13eb||_0x575ef6(0x1ee),axios['post'](getApiHost()+'/api/file/publish',_0x25924d)['then'](_0x1a0c43=>{const _0x4673e5=_0x575ef6;console[_0x4673e5(0x202)](chalk[_0x4673e5(0x1e9)](_0x1a0c43['data'][_0x4673e5(0x1e1)])),process[_0x4673e5(0x1d6)](0x0);})[_0x575ef6(0x20f)](_0x3a4f07=>{const _0x2960ec=_0x575ef6;console['log'](chalk[_0x2960ec(0x1f0)](_0x2960ec(0x217)+_0x3a4f07[_0x2960ec(0x1e1)])),process[_0x2960ec(0x1d6)](0x0);});};function a3_0x396c(_0xbf2ce1,_0x1a697b){const _0x2d3afa=a3_0x2d3a();return a3_0x396c=function(_0x396c41,_0x452481){_0x396c41=_0x396c41-0x1d4;let _0x1ed246=_0x2d3afa[_0x396c41];return _0x1ed246;},a3_0x396c(_0xbf2ce1,_0x1a697b);}module[a3_0x502284(0x20b)]=_0x50ee7d=>{const _0x5c45be=a3_0x502284,_0x1272a5=path[_0x5c45be(0x1f6)](__dirname,'../.auth');!fs[_0x5c45be(0x1f9)](_0x1272a5)&&(console['log'](chalk[_0x5c45be(0x1f0)](_0x5c45be(0x1d9))),process[_0x5c45be(0x1d6)](0x0));const [_0x4948ee,_0x4480f0]=fs[_0x5c45be(0x1fa)](_0x1272a5)[_0x5c45be(0x201)]()[_0x5c45be(0x20c)]('/');console[_0x5c45be(0x202)](_0x5c45be(0x21a)),axios[_0x5c45be(0x200)](getApiHost()+_0x5c45be(0x1dc),{'username':_0x4948ee,'password':_0x4480f0})[_0x5c45be(0x21c)](_0x8d160b=>{const _0x115053=_0x5c45be;if(_0x8d160b['data'][_0x115053(0x1fb)]){console['log'](chalk[_0x115053(0x1e9)](_0x115053(0x216)));const _0x1b9fff=path[_0x115053(0x1ef)]('./');console[_0x115053(0x202)](_0x115053(0x212)+_0x1b9fff);fs[_0x115053(0x1f9)](_0x1b9fff+_0x115053(0x1df))?(console[_0x115053(0x202)](chalk['blue'](_0x115053(0x1f3)),_0x1b9fff),child_process[_0x115053(0x1eb)](_0x115053(0x1e6),{'cwd':_0x1b9fff})):(console[_0x115053(0x202)](chalk[_0x115053(0x218)]('Sudo:\x20npm\x20build:production'),_0x1b9fff),child_process[_0x115053(0x1eb)]('npm\x20run\x20build:production',{'cwd':_0x1b9fff}));const _0x5605df=_0x1b9fff['indexOf']('/')!==-0x1?'/':'\x5c',_0x10ac56=''+_0x1b9fff+_0x5605df+_0x115053(0x1f1),_0x1889ca=''+_0x1b9fff+_0x5605df+_0x115053(0x209)+_0x5605df+_0x115053(0x1ff),_0xffeb3a=''+_0x1b9fff+_0x5605df+_0x115053(0x1d4),_0x2fe279=''+_0x1b9fff+_0x5605df+'thumbnail.png',_0x451d52=JSON[_0x115053(0x1e4)](fs[_0x115053(0x1fa)](path['join'](__dirname,_0x115053(0x1e0)))[_0x115053(0x201)]()),{version:_0x60488a}=_0x451d52,_0x4ee843={'username':_0x4948ee,'cmd_version':_0x60488a,'hostname':os['hostname'](),'platform':os['platform']()};if(fs['existsSync'](_0xffeb3a)){if(fs[_0x115053(0x1f9)](_0x1889ca)){_0x4ee843['package_version']=_0x50ee7d?_0x50ee7d:0x0,_0x4ee843['package_content']=fs[_0x115053(0x1fa)](_0x1889ca)[_0x115053(0x201)](),_0x4ee843[_0x115053(0x1e3)]={};const _0x1eb25d=fs['readFileSync'](_0x1889ca)[_0x115053(0x201)](),_0x343380=_0x1eb25d[_0x115053(0x1f8)](/(window\[).+?(\.componentKey|.+]={)/img);if(_0x343380&&_0x343380[_0x115053(0x204)]){const _0x16cc4e=_0x1eb25d[_0x115053(0x1f8)](/componentKey.+([{,]info:\s{0,}{)/img);if(_0x16cc4e&&_0x16cc4e['length']){let _0x49186b='{';const _0x3215a1=_0x1eb25d[_0x115053(0x20c)](_0x16cc4e[0x0])[0x1];for(let _0x47cd1b=0x0;_0x47cd1b<_0x3215a1[_0x115053(0x204)];_0x47cd1b++){_0x49186b+=_0x3215a1[_0x47cd1b];if(_0x3215a1[_0x47cd1b]==='}')try{const _0x13f5a3=new Function('return\x20'+_0x49186b)();_0x4ee843[_0x115053(0x1e3)]={..._0x13f5a3,'defaultSetting':{}};}catch(_0x3e8b1e){}}}else console[_0x115053(0x202)](chalk['red'](_0x115053(0x1ec))),process['exit'](0x0);const _0x412efa=_0x1eb25d[_0x115053(0x1f8)](/componentKey.+([{,]settings:\s{0,}{)/img);if(_0x412efa&&_0x412efa['length']){let _0x361c70='{';const _0x34faea=_0x1eb25d['split'](_0x412efa[0x0])[0x1];for(let _0x1d6ace=0x0;_0x1d6ace<_0x34faea[_0x115053(0x204)];_0x1d6ace++){_0x361c70+=_0x34faea[_0x1d6ace];if(_0x34faea[_0x1d6ace]==='}')try{_0x4ee843[_0x115053(0x1e3)][_0x115053(0x1fc)]=new Function('return\x20'+_0x361c70)();}catch(_0x4671a9){}}_0x4ee843[_0x115053(0x1e3)]=JSON[_0x115053(0x20d)](_0x4ee843[_0x115053(0x1e3)]);}else console[_0x115053(0x202)](chalk[_0x115053(0x1f0)](_0x115053(0x21b))),process['exit'](0x0);}else console[_0x115053(0x202)](chalk['red'](_0x115053(0x207))),process[_0x115053(0x1d6)](0x0);fs[_0x115053(0x1f9)](_0x10ac56)?_0x4ee843[_0x115053(0x205)]=fs['readFileSync'](_0x10ac56)[_0x115053(0x201)]():(console['log'](chalk[_0x115053(0x1f0)](_0x115053(0x20e))),process['exit'](0x0));if(!fs[_0x115053(0x1f9)](_0x2fe279))console[_0x115053(0x202)](_0x115053(0x1e2)),process[_0x115053(0x1d6)](0x0);else{const _0x1485b4=fs[_0x115053(0x1fa)](_0x2fe279);_0x4ee843[_0x115053(0x1d5)]=Buffer[_0x115053(0x1ea)](_0x1485b4)[_0x115053(0x201)](_0x115053(0x219));}_0x451d52[_0x115053(0x1f7)]==='no'?submitFun(null,_0x4ee843):io[_0x115053(0x1fe)](_0x115053(0x1ed),function(_0x83f582){submitFun(_0x83f582,_0x4ee843);});}else console[_0x115053(0x202)](chalk[_0x115053(0x1f0)](_0x115053(0x1f2))),process[_0x115053(0x1d6)](0x0);}else console[_0x115053(0x202)](chalk[_0x115053(0x1f0)](_0x115053(0x215))),process[_0x115053(0x1d6)](0x0);}else console[_0x115053(0x202)](chalk[_0x115053(0x1f0)](_0x115053(0x210))),process[_0x115053(0x1d6)](0x0);})[_0x5c45be(0x20f)](_0x264920=>{const _0x525e0f=_0x5c45be;console[_0x525e0f(0x202)](chalk[_0x525e0f(0x1f0)]('Error:\x20授权失败,未知错误!'),_0x264920[_0x525e0f(0x1e1)]),process[_0x525e0f(0x1d6)](0x0);});};
|
package/src/push.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a4_0x15f4b1=a4_0x494d;(function(_0x2bf845,_0x4667ef){const _0x58a47a=a4_0x494d,_0x4321bb=_0x2bf845();while(!![]){try{const _0x1618e1=-parseInt(_0x58a47a(0xbe))/0x1+-parseInt(_0x58a47a(0xe2))/0x2+parseInt(_0x58a47a(0xa9))/0x3*(-parseInt(_0x58a47a(0xea))/0x4)+-parseInt(_0x58a47a(0xbb))/0x5*(-parseInt(_0x58a47a(0xa0))/0x6)+parseInt(_0x58a47a(0xe7))/0x7+parseInt(_0x58a47a(0xab))/0x8+-parseInt(_0x58a47a(0xaa))/0x9*(-parseInt(_0x58a47a(0xa3))/0xa);if(_0x1618e1===_0x4667ef)break;else _0x4321bb['push'](_0x4321bb['shift']());}catch(_0x315302){_0x4321bb['push'](_0x4321bb['shift']());}}}(a4_0x5698,0x48944));const fs=require('fs'),os=require('os'),path=require(a4_0x15f4b1(0xd4)),child_process=require('child_process'),chalk=require('chalk'),{CopyFolder,DeleteDirAllFile}=require(a4_0x15f4b1(0xd5)),{GIT_TEMP_JAVA,getApiHost}=require(a4_0x15f4b1(0xb5)),axios=require(a4_0x15f4b1(0xcb));function deleteFolderRecursive(_0x2e39a9){const _0x490cf5=a4_0x15f4b1;fs[_0x490cf5(0xc7)](_0x2e39a9)&&(fs[_0x490cf5(0xa2)](_0x2e39a9)[_0x490cf5(0xe3)](_0x5463b=>{const _0x291fd6=_0x490cf5,_0x189080=path[_0x291fd6(0xb2)](_0x2e39a9,_0x5463b);fs[_0x291fd6(0xd2)](_0x189080)[_0x291fd6(0xd8)]()?deleteFolderRecursive(_0x189080):fs[_0x291fd6(0xad)](_0x189080);}),fs['rmdirSync'](_0x2e39a9));}module['exports']=arguments=>{const _0x7543e5=a4_0x15f4b1,_0xc325bc=path['join'](__dirname,_0x7543e5(0xa4));!fs[_0x7543e5(0xc7)](_0xc325bc)&&(console[_0x7543e5(0xba)](chalk[_0x7543e5(0xac)]('Error:\x20请先登录!')),process[_0x7543e5(0xc9)](0x0));const _0x5f4b38=arguments[0x1],_0x195adc=arguments[0x2]||_0x7543e5(0xb8),_0x44e1d1=arguments[0x3]?arguments[0x3][_0x7543e5(0xd3)]('-'):[],_0x35c61c=path[_0x7543e5(0xa1)]('./'),_0x11c1f5=_0x35c61c+'\x5cjjb.config.js',_0x13494b=_0x35c61c+_0x7543e5(0xd6),_0x3ad3bb=os[_0x7543e5(0xbf)](),[_0x4eb56d,_0x22ea11]=fs[_0x7543e5(0xaf)](_0xc325bc)[_0x7543e5(0xbc)]()[_0x7543e5(0xd3)]('/');console['log']('Auth:\x20正在获取授权!'),axios[_0x7543e5(0xb3)](getApiHost()+'/api/auth',{'username':_0x4eb56d,'password':_0x22ea11})[_0x7543e5(0xca)](_0x426084=>{const _0x12bd51=_0x7543e5;if(_0x426084['data'][_0x12bd51(0xd7)]){console[_0x12bd51(0xba)](chalk[_0x12bd51(0x9e)](_0x12bd51(0xbd)));if(!fs[_0x12bd51(0xc7)](_0x11c1f5))console['log'](chalk[_0x12bd51(0xac)]('Error:\x20当前应用中不存在“jjb.config.json”文件!')),process[_0x12bd51(0xc9)](0x0);else{const _0x4ea32b=require(_0x11c1f5);!_0x4ea32b['javaGit']&&(console['log'](chalk['red'](_0x12bd51(0xb4))),process[_0x12bd51(0xc9)](0x0));!_0x4ea32b[_0x12bd51(0xd9)]&&(console[_0x12bd51(0xba)](chalk[_0x12bd51(0xac)]('Error:\x20“jjb.config.json”中缺少“javaGitName”字段!')),process['exit'](0x0));const _0x59ecd6=_0x3ad3bb+'/'+GIT_TEMP_JAVA;fs[_0x12bd51(0xc7)](_0x59ecd6)&&deleteFolderRecursive(_0x59ecd6);fs[_0x12bd51(0xb6)](_0x59ecd6);const _0x10d604=_0x59ecd6+'/'+_0x4ea32b['javaGitName'];fs[_0x12bd51(0xc7)](_0x10d604)?_0x44e1d1[_0x12bd51(0xc0)]('force')?DeleteDirAllFile(_0x10d604,()=>{const _0x519981=_0x12bd51;console['log'](chalk[_0x519981(0xb9)](_0x519981(0xc1)+_0x4ea32b[_0x519981(0xa6)]),_0x59ecd6),child_process[_0x519981(0xe6)]('git\x20clone\x20'+_0x4ea32b['javaGit'],{'cwd':_0x59ecd6});}):(console[_0x12bd51(0xba)](chalk[_0x12bd51(0xb9)]('Sudo:\x20git\x20clone\x20'+_0x4ea32b['javaGit']),_0x59ecd6),child_process[_0x12bd51(0xe6)](_0x12bd51(0xb1)+_0x4ea32b['javaGit'],{'cwd':_0x59ecd6})):(console[_0x12bd51(0xba)](chalk[_0x12bd51(0xb9)](_0x12bd51(0xc1)+_0x4ea32b[_0x12bd51(0xa6)]),_0x59ecd6),child_process['execSync']('git\x20clone\x20'+_0x4ea32b['javaGit'],{'cwd':_0x59ecd6})),_0x4d8e52(_0x59ecd6,_0x4ea32b);}}else console[_0x12bd51(0xba)](chalk[_0x12bd51(0xac)](_0x12bd51(0xdd))),process[_0x12bd51(0xc9)](0x0);})['catch'](_0xde5e95=>{const _0x282ca9=_0x7543e5;console[_0x282ca9(0xba)](chalk[_0x282ca9(0xac)]('Error:\x20授权失败,未知错误!'),_0xde5e95[_0x282ca9(0xe5)]),process[_0x282ca9(0xc9)](0x0);});arguments[_0x7543e5(0xe1)]<0x2&&(console['log'](chalk['red'](_0x7543e5(0xc6))),process[_0x7543e5(0xc9)](0x0));function _0x4d8e52(_0x321200,_0x48fb2e){const _0x1449e8=_0x7543e5,_0x187d37=_0x48fb2e[_0x1449e8(0xe8)][_0x5f4b38],_0x4e999c=_0x321200+'/'+_0x48fb2e[_0x1449e8(0xd9)];!_0x187d37[_0x1449e8(0xa5)]&&console[_0x1449e8(0xba)](chalk[_0x1449e8(0xdc)](_0x1449e8(0xc4)+_0x5f4b38+_0x1449e8(0xda)));console['log'](chalk[_0x1449e8(0xb9)](_0x1449e8(0xec)),_0x4e999c),child_process[_0x1449e8(0xe6)](_0x1449e8(0xed),{'cwd':_0x4e999c});!fs[_0x1449e8(0xc7)](_0x35c61c+_0x1449e8(0xcc))&&(console['log'](chalk[_0x1449e8(0xdc)](_0x1449e8(0xe9))),console[_0x1449e8(0xba)](chalk[_0x1449e8(0xb9)]('Sudo:\x20yarn'),_0x35c61c),child_process[_0x1449e8(0xe6)](_0x1449e8(0xa8),{'cwd':_0x35c61c}),console['log'](chalk[_0x1449e8(0x9e)](_0x1449e8(0xd0))));console['log'](_0x1449e8(0xce)+_0x5f4b38+']\x20请稍等!'),console['log'](chalk[_0x1449e8(0xb9)](_0x1449e8(0xae)+_0x5f4b38),_0x35c61c),child_process[_0x1449e8(0xe6)](_0x1449e8(0xdf)+_0x5f4b38,{'cwd':_0x35c61c,'maxBuffer':0x3b9aca00}),console['log'](chalk[_0x1449e8(0x9e)](_0x1449e8(0xc2)));if(fs[_0x1449e8(0xc7)](_0x13494b)){const _0xe3f687=_0x48fb2e[_0x1449e8(0xcd)],_0x783259=fs[_0x1449e8(0xaf)](_0x13494b+_0x1449e8(0xd1));_0x44e1d1[_0x1449e8(0xc0)](_0x1449e8(0xcf))?fs[_0x1449e8(0xe0)](_0x13494b+'/index.html',_0x783259,'utf-8'):fs[_0x1449e8(0xe0)](_0x13494b+'/'+_0xe3f687+_0x1449e8(0xc3),_0x783259,_0x1449e8(0x9f));const _0x113759=_0x4e999c+'/start/src/main/resources/templates';!fs[_0x1449e8(0xc7)](_0x113759)&&fs['mkdirSync'](_0x113759);const _0x266e38=_0x187d37[_0x1449e8(0xa5)]?_0x187d37[_0x1449e8(0xa5)]:_0x1449e8(0xa7);console[_0x1449e8(0xba)](chalk[_0x1449e8(0xb9)]('Sudo:\x20git\x20checkout\x20'+_0x266e38),_0x4e999c),child_process['execSync']('git\x20checkout\x20'+_0x266e38,{'cwd':_0x4e999c});const _0xde9bb7=_0x113759+'/'+_0x48fb2e[_0x1449e8(0xcd)];DeleteDirAllFile(_0xde9bb7,()=>{const _0x1d4ae7=_0x1449e8;fs[_0x1d4ae7(0xb6)](_0xde9bb7),fs[_0x1d4ae7(0xe0)](_0xde9bb7+_0x1d4ae7(0xc3),_0x783259,_0x1d4ae7(0x9f)),CopyFolder(_0x13494b+'\x5c'+_0x48fb2e[_0x1d4ae7(0xcd)],_0xde9bb7,()=>{setTimeout(()=>{const _0x38d350=a4_0x494d;console[_0x38d350(0xba)](chalk[_0x38d350(0xb9)]('Sudo:\x20git\x20pull'),_0x4e999c),child_process[_0x38d350(0xe6)]('git\x20pull',{'cwd':_0x4e999c}),console['log'](chalk['blue'](_0x38d350(0xe4)),_0x4e999c),child_process[_0x38d350(0xe6)](_0x38d350(0xc8),{'cwd':_0x4e999c});try{console['log'](chalk[_0x38d350(0xb9)](_0x38d350(0xc5)+_0x195adc+'\x20--no-verify'),_0x4e999c),child_process[_0x38d350(0xe6)](_0x38d350(0xb0)+_0x195adc+_0x38d350(0xeb),{'cwd':_0x4e999c});}catch(_0x396ad7){console[_0x38d350(0xba)](chalk[_0x38d350(0xac)]('Error:\x20'+_0x396ad7[_0x38d350(0xe5)]));}console[_0x38d350(0xba)](chalk[_0x38d350(0xb9)](_0x38d350(0xde)),_0x4e999c),child_process['execSync'](_0x38d350(0xdb),{'cwd':_0x4e999c});},0x3e8);});});}else console['log'](chalk[_0x1449e8(0xac)](_0x1449e8(0xb7))),process[_0x1449e8(0xc9)](0x0);}};function a4_0x494d(_0xb95393,_0x3d1363){const _0x5698d6=a4_0x5698();return a4_0x494d=function(_0x494db6,_0xe95d04){_0x494db6=_0x494db6-0x9e;let _0x468682=_0x5698d6[_0x494db6];return _0x468682;},a4_0x494d(_0xb95393,_0x3d1363);}function a4_0x5698(){const _0x561abc=['exit','then','axios','/node_modules','appIdentifier','Log:\x20即将进行应用打包\x20[Env#','index','Log:\x20应用依赖安装完成!','/index.html','lstatSync','split','path','./tools','\x5cdist','status','isDirectory','javaGitName',']\x20未配置“javaGitBranch”,将使用默认分支“master”!','git\x20push','yellow','Error:\x20授权失败!','Sudo:\x20git\x20push','yarn\x20build:','writeFileSync','length','303364VKQzTu','forEach','Sudo:\x20git\x20add\x20.','message','execSync','3732561FhfaTD','environment','Warning:\x20当前应用未安装依赖!即将执行依赖安装命令,请稍等!','162924lYiBwm','\x20--no-verify','Sudo:\x20git\x20pull','git\x20pull','green','utf-8','6JbgSkQ','resolve','readdirSync','200YIbjYE','../.auth','javaGitBranch','javaGit','master','yarn','21yVlQGl','61524GaeRuo','1834000kXRqEZ','red','unlinkSync','Sudo:\x20yarn\x20build:','readFileSync','git\x20commit\x20-m\x20','git\x20clone\x20','join','post','Error:\x20“jjb.config.json”中缺少“javaGit”字段!','./config','mkdirSync','Error:\x20未知错误,未找到“dist”目录!','\x22no\x20message\x22','blue','log','1675645MKrGcX','toString','Auth:\x20授权成功!','500239aVbqVg','tmpdir','includes','Sudo:\x20git\x20clone\x20','Log:\x20应用打包完成!','.html','Warning:\x20当前打包\x20[Env#','Sudo:\x20git\x20commit\x20-m\x20','Error:\x20命令参数传递错误!','existsSync','git\x20add\x20.'];a4_0x5698=function(){return _0x561abc;};return a4_0x5698();}
|
package/src/rm-rf.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a5_0x35c5f5=a5_0x5e57;(function(_0x14cfef,_0xc3fd5f){const _0x52ebc4=a5_0x5e57,_0x9a27f4=_0x14cfef();while(!![]){try{const _0x12ba7b=-parseInt(_0x52ebc4(0x1a1))/0x1+-parseInt(_0x52ebc4(0x190))/0x2+parseInt(_0x52ebc4(0x193))/0x3+-parseInt(_0x52ebc4(0x1a4))/0x4+-parseInt(_0x52ebc4(0x192))/0x5+-parseInt(_0x52ebc4(0x19e))/0x6+parseInt(_0x52ebc4(0x1a5))/0x7;if(_0x12ba7b===_0xc3fd5f)break;else _0x9a27f4['push'](_0x9a27f4['shift']());}catch(_0x174427){_0x9a27f4['push'](_0x9a27f4['shift']());}}}(a5_0x5365,0x50e8f));const fs=require('fs'),path=require('path'),readline=require(a5_0x35c5f5(0x19a)),io=readline[a5_0x35c5f5(0x1a7)]({'input':process[a5_0x35c5f5(0x198)],'output':process[a5_0x35c5f5(0x19d)]});function a5_0x5e57(_0x91f5c0,_0x5ac7b4){const _0x536592=a5_0x5365();return a5_0x5e57=function(_0x5e5798,_0x8fc542){_0x5e5798=_0x5e5798-0x18f;let _0x904175=_0x536592[_0x5e5798];return _0x904175;},a5_0x5e57(_0x91f5c0,_0x5ac7b4);}module[a5_0x35c5f5(0x194)]=function(){const _0x2def0c=a5_0x35c5f5,_0xaa5e6e=path[_0x2def0c(0x199)]('./');io[_0x2def0c(0x19c)]('是否确认删除?删除后不可恢复![y/n]:',function(_0x23025c){const _0x285080=_0x2def0c;if(_0x23025c['trim']()==='y')console[_0x285080(0x1a6)]('正在计算项目数,请稍等...'),setTimeout(()=>{setTimeout(()=>{const _0x590c18=a5_0x5e57;console[_0x590c18(0x1a2)](),exec(_0xaa5e6e),setTimeout(()=>{const _0x4b7a96=_0x590c18;console[_0x4b7a96(0x1a6)](_0x4b7a96(0x19b)),console[_0x4b7a96(0x1a2)](),process['exit'](0x0);},0x1f4);},0x1f4);},0x1f4);else _0x23025c[_0x285080(0x19f)]()==='n'?(console[_0x285080(0x1a6)]('取消删除。'),process[_0x285080(0x18f)](0x0)):(console[_0x285080(0x1a6)]('无效操作。'),process['exit'](0x0));});};function a5_0x5365(){const _0x4e9107=['786704QdDbLA','9439031kFEsZp','log','createInterface','删除文件夹:','exit','818420KEWusD','删除异常:','1670075xESXcU','1239963IWuolJ','exports','readdirSync','unlinkSync','isDirectory','stdin','resolve','readline','删除完成。','question','stdout','1809144eBrszW','trim','existsSync','188922YqcqQZ','clear','statSync'];a5_0x5365=function(){return _0x4e9107;};return a5_0x5365();}function exec(_0x39257a){const _0x49678a=a5_0x35c5f5;if(fs[_0x49678a(0x1a0)](_0x39257a)){const _0x211994=fs[_0x49678a(0x195)](_0x39257a);for(let _0x5c9b39=0x0;_0x5c9b39<_0x211994['length'];_0x5c9b39++){const _0x3c5e3f=_0x211994[_0x5c9b39],_0x1906d8=_0x39257a+'/'+_0x3c5e3f;try{fs[_0x49678a(0x1a3)](_0x1906d8)[_0x49678a(0x197)]()?(exec(_0x1906d8),fs['rmdirSync'](_0x1906d8,{'recursive':!![]}),console[_0x49678a(0x1a6)](_0x49678a(0x1a8)+_0x1906d8)):(fs[_0x49678a(0x196)](_0x1906d8),console[_0x49678a(0x1a6)]('删除文件:'+_0x1906d8));}catch(_0x479a3e){console[_0x49678a(0x1a6)](_0x49678a(0x191)+_0x1906d8);}}}}
|
package/src/tools.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const a5_0x249f14=a5_0x4868;function a5_0x4868(_0x3e75f4,_0x29acbb){const _0x49a62c=a5_0x49a6();return a5_0x4868=function(_0x486855,_0xf3dd8f){_0x486855=_0x486855-0xb6;let _0x4e959e=_0x49a62c[_0x486855];return _0x4e959e;},a5_0x4868(_0x3e75f4,_0x29acbb);}(function(_0x181151,_0xa6f4f1){const _0x4a4ea8=a5_0x4868,_0x52fa83=_0x181151();while(!![]){try{const _0x1a732d=parseInt(_0x4a4ea8(0xc0))/0x1+parseInt(_0x4a4ea8(0xc1))/0x2*(parseInt(_0x4a4ea8(0xe9))/0x3)+parseInt(_0x4a4ea8(0xca))/0x4+-parseInt(_0x4a4ea8(0x100))/0x5*(parseInt(_0x4a4ea8(0xf3))/0x6)+parseInt(_0x4a4ea8(0xd6))/0x7+-parseInt(_0x4a4ea8(0xf0))/0x8+-parseInt(_0x4a4ea8(0xfd))/0x9*(parseInt(_0x4a4ea8(0xce))/0xa);if(_0x1a732d===_0xa6f4f1)break;else _0x52fa83['push'](_0x52fa83['shift']());}catch(_0x58ee5d){_0x52fa83['push'](_0x52fa83['shift']());}}}(a5_0x49a6,0xad520));const fs=require('fs'),os=require('os'),path=require(a5_0x249f14(0xbd)),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a5_0x249f14(0xf7));function a5_0x49a6(){const _0x524b95=['DeleteDirAllFile','jjb-common','688719KaWwBy','toString','stringify','read\x20error','exit','CreatePaths','readdirSync','1410352hbgAKo','join','createReadStream','186hNBwgG','\x5cpackage.json','unlinkSync','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','./config','length','f_update_project_package_json','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','push','jjb-dva-runtime','4905mNLHzc','existsSync','name','111835chkJoF','micro-spa','f_scan_jjb_config_json_rules','projectType','DeepScanner','f_file_copy','installTarget','replace','f_create_package_json','string','mkdir','\x5cjjb.config.json','CopyFile','path','writeFileSync','isDirectory','609197PgXchG','2TqKIJj','pipe','.zip','jjb-common-decorator','close','/repository/archive.zip?private_token=','src','【Error】:[jjb.config.json.installResources]无资源。','tmpdir','4886724chLlek','CopyFolder','_zip','mkdirSync','20380RGtoIL','spa','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','map','readFileSync','&ref=master','forEach','createWriteStream','4408950MdVibV','{\x22name\x22:\x22','rmdirSync','statSync','【Error】:[jjb.config.json.projectType]类型是一个string。','f_pull_git_repository','uniapp','filter','parse','\x22,\x22main\x22:\x20\x22index.js\x22}','【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。','log','includes','jjb-common-lib','f_resolve_install_resources','/api/v4/projects/','vue-unisass-component'];a5_0x49a6=function(){return _0x524b95;};return a5_0x49a6();}exports['f_rm_rf']=function(_0x569d84){const _0x16364e=a5_0x249f14;if(fs['existsSync'](_0x569d84)){const _0x491f14=fs['readdirSync'](_0x569d84);for(let _0x4584c7=0x0;_0x4584c7<_0x491f14[_0x16364e(0xf8)];_0x4584c7++){const _0x59ae24=_0x491f14[_0x4584c7],_0x3edc56=_0x569d84+'/'+_0x59ae24;fs[_0x16364e(0xd9)](_0x3edc56)['isDirectory']()?(exports['f_rm_rf'](_0x3edc56),fs['rmdirSync'](_0x3edc56)):fs[_0x16364e(0xf5)](_0x3edc56);}}},exports[a5_0x249f14(0xdb)]=function(_0x4688de=[]){return _0x4688de['map'](_0x5aaf15=>{const _0x1558c6=a5_0x4868,_0x5e77d7=CLOUD_PROJECT[_0x5aaf15[_0x1558c6(0xff)]]||undefined,_0x4bd478=os[_0x1558c6(0xc9)]();return{'path':_0x4bd478+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x5aaf15[_0x1558c6(0xff)]+_0x1558c6(0xc3),'compress':_0x4bd478+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x5aaf15[_0x1558c6(0xff)]+_0x1558c6(0xcc),'repository':GIT_HOST+_0x1558c6(0xe5)+_0x5e77d7['projectId']+_0x1558c6(0xc6)+_0x5e77d7['token']+_0x1558c6(0xd3)};});},exports['f_scan_jjb_config_json']=function(_0x2e7e38){const _0x437049=a5_0x249f14;return fs[_0x437049(0xfe)](_0x2e7e38+_0x437049(0xbb));},exports[a5_0x249f14(0x102)]=function(_0x1a4ad5){const _0x10b06d=a5_0x249f14;let _0x4ead87={};try{_0x4ead87=JSON['parse'](fs[_0x10b06d(0xd2)](_0x1a4ad5+_0x10b06d(0xbb))[_0x10b06d(0xea)]());}catch(_0x8c934e){console[_0x10b06d(0xe1)](_0x10b06d(0xe0)),process['exit'](0x0);}!(_0x10b06d(0x103)in _0x4ead87)&&(console[_0x10b06d(0xe1)](_0x10b06d(0xd0)),process[_0x10b06d(0xed)](0x0));!('installTarget'in _0x4ead87)&&(console['log']('【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。'),process[_0x10b06d(0xed)](0x0));!('installResources'in _0x4ead87)&&(console[_0x10b06d(0xe1)](_0x10b06d(0xfa)),process[_0x10b06d(0xed)](0x0));typeof _0x4ead87[_0x10b06d(0x103)]!==_0x10b06d(0xb9)&&(console[_0x10b06d(0xe1)](_0x10b06d(0xda)),process[_0x10b06d(0xed)](0x0));!['multi',_0x10b06d(0xcf),_0x10b06d(0xdc),_0x10b06d(0x101)][_0x10b06d(0xe2)](_0x4ead87['projectType'])&&(console[_0x10b06d(0xe1)]('【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。'),process[_0x10b06d(0xed)](0x0));typeof _0x4ead87[_0x10b06d(0xb6)]!==_0x10b06d(0xb9)&&(console['log']('【Error】:[jjb.config.json.installTarget]类型是一个string。'),process['exit'](0x0));!['node_modules',_0x10b06d(0xc7)][_0x10b06d(0xe2)](_0x4ead87[_0x10b06d(0xb6)])&&(console[_0x10b06d(0xe1)]('【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。'),process[_0x10b06d(0xed)](0x0));!Array['isArray'](_0x4ead87['installResources'])&&(console[_0x10b06d(0xe1)](_0x10b06d(0xf6)),process['exit'](0x0));_0x4ead87['installResources'][_0x10b06d(0xf8)]===0x0&&(console[_0x10b06d(0xe1)](_0x10b06d(0xc8)),process['exit'](0x0));const _0x336cbe=exports[_0x10b06d(0xe4)](_0x4ead87['installResources']);return _0x336cbe[_0x10b06d(0xd1)](_0x6c26bf=>_0x6c26bf[_0x10b06d(0xff)])[_0x10b06d(0xdd)](_0x549038=>![_0x10b06d(0xe8),_0x10b06d(0xfc),_0x10b06d(0xe3),_0x10b06d(0xc4),'react-admin-component',_0x10b06d(0xe6)][_0x10b06d(0xe2)](_0x549038))[_0x10b06d(0xf8)]!==0x0&&(console[_0x10b06d(0xe1)]('【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>。'),process[_0x10b06d(0xed)](0x0)),_0x4ead87['installResources']=_0x336cbe,_0x4ead87;},exports[a5_0x249f14(0xb8)]=function(_0x4fd9e8,_0x4fadcb,_0x2a02eb){const _0x1fdd5a=a5_0x249f14;fs[_0x1fdd5a(0xbe)](_0x4fd9e8+_0x1fdd5a(0xf4),_0x1fdd5a(0xd7)+_0x4fadcb+'\x22,\x22version\x22:\x22'+_0x2a02eb+_0x1fdd5a(0xdf));},exports['f_resolve_install_resources']=function(_0x502824=[]){const _0x149043=[];return Array['isArray'](_0x502824)&&_0x502824['forEach'](_0x31a9d6=>{if(Array['isArray'](_0x31a9d6)){const [_0x3092cf,_0x47d6a8=[]]=_0x31a9d6;_0x149043['push']({'name':_0x3092cf,'importList':_0x47d6a8});}else _0x149043['push']({'name':_0x31a9d6,'importList':[]});}),_0x149043;},exports[a5_0x249f14(0xf9)]=function(_0x239823,_0x3042de,_0x38fc8d){const _0x3353b2=a5_0x249f14,_0x26705a=JSON[_0x3353b2(0xde)](fs['readFileSync'](_0x239823)[_0x3353b2(0xea)]());_0x26705a['dependencies'][_0x3042de]=_0x38fc8d,fs[_0x3353b2(0xbe)](_0x239823,JSON[_0x3353b2(0xeb)](_0x26705a,null,0x2));},exports['f_file_copy']=function(_0x327e26,_0xcca48a){fs['readdirSync'](_0x327e26)['forEach'](_0x41021c=>{const _0x5720cc=a5_0x4868,_0x28ea6e=_0x327e26+'\x5c'+_0x41021c,_0x480731=_0xcca48a+'\x5c'+_0x41021c;fs[_0x5720cc(0xd9)](_0x28ea6e)['isDirectory']()?(fs[_0x5720cc(0xcd)](_0x480731),exports[_0x5720cc(0x105)](_0x28ea6e,_0x480731)):fs[_0x5720cc(0xbe)](_0x480731,fs[_0x5720cc(0xd2)](_0x28ea6e)[_0x5720cc(0xea)]());});},exports['f_content_replace']=function(_0x31c436=[],_0x3f5a84){_0x31c436['forEach'](_0x504791=>{const _0x197a26=a5_0x4868,_0x58bc5f=_0x3f5a84+_0x504791[_0x197a26(0xbd)];if(fs['existsSync'](_0x58bc5f)){let _0xd197f5=fs['readFileSync'](_0x58bc5f)['toString']();_0x504791['replace'][_0x197a26(0xd4)](_0x5e72f2=>{const _0x2193ac=_0x197a26;_0xd197f5=_0xd197f5[_0x2193ac(0xb7)](_0x5e72f2[0x0],_0x5e72f2[0x1]);}),fs['writeFileSync'](_0x58bc5f,_0xd197f5);}});},exports[a5_0x249f14(0xe7)]=(_0x158d00,_0x9a9485)=>{const _0x259879=a5_0x249f14;let _0x28a71e=[];const _0x850fb9=this;fs[_0x259879(0xfe)](_0x158d00)?(_0x28a71e=fs['readdirSync'](_0x158d00),_0x28a71e['forEach'](function(_0x44af70,_0x31e782){const _0x33d79f=_0x259879;let _0x1e2f94=_0x158d00+'/'+_0x44af70;fs['statSync'](_0x1e2f94)[_0x33d79f(0xbf)]()?_0x850fb9['DeleteDirAllFile'](_0x1e2f94):fs['unlinkSync'](_0x1e2f94);}),fs[_0x259879(0xd8)](_0x158d00),_0x9a9485&&_0x9a9485()):_0x9a9485&&_0x9a9485();},exports['CopyFolder']=(_0x4a5bbb,_0x502d34,_0x21b91d)=>{const _0x463b87=this;fs['readdir'](_0x4a5bbb,function(_0x33c1cd,_0x2a6de7){let _0x581b52=0x0;const _0x44c99e=function(){const _0x42f981=a5_0x4868;++_0x581b52===_0x2a6de7[_0x42f981(0xf8)]&&_0x21b91d&&_0x21b91d();};if(_0x33c1cd){_0x44c99e();return;}_0x2a6de7['forEach'](function(_0x3c8b53){const _0xb669f7=a5_0x4868,_0x2565cd=path[_0xb669f7(0xf1)](_0x4a5bbb,_0x3c8b53),_0x5609f9=path[_0xb669f7(0xf1)](_0x502d34,_0x3c8b53);fs['stat'](_0x2565cd,function(_0x247399,_0x3e38c4){const _0x5be313=_0xb669f7;_0x3e38c4[_0x5be313(0xbf)]()?fs[_0x5be313(0xba)](_0x5609f9,function(_0x5b9d05){const _0x3f6a87=_0x5be313;if(_0x5b9d05){console['log'](_0x5b9d05);return;}_0x463b87[_0x3f6a87(0xcb)](_0x2565cd,_0x5609f9,_0x44c99e);}):_0x463b87[_0x5be313(0xbc)](_0x2565cd,_0x5609f9,_0x44c99e);});}),_0x2a6de7['length']===0x0&&_0x21b91d&&_0x21b91d();});},exports[a5_0x249f14(0xbc)]=(_0x43b6e3,_0x2dedb1,_0x2ca771)=>{const _0x1a9fef=a5_0x249f14,_0x190cdb=fs[_0x1a9fef(0xf2)](_0x43b6e3);_0x190cdb['on']('error',function(_0x3d393d){const _0x2c1c7c=_0x1a9fef;_0x3d393d&&console['log'](_0x2c1c7c(0xec),_0x43b6e3),_0x2ca771&&_0x2ca771(_0x3d393d);});const _0x431c05=fs[_0x1a9fef(0xd5)](_0x2dedb1);_0x431c05['on']('error',function(_0x17b27e){const _0xa861d2=_0x1a9fef;_0x17b27e&&console[_0xa861d2(0xe1)]('write\x20error',_0x2dedb1),_0x2ca771&&_0x2ca771(_0x17b27e);}),_0x431c05['on'](_0x1a9fef(0xc5),function(_0xd6641){_0x2ca771&&_0x2ca771(_0xd6641);}),_0x190cdb[_0x1a9fef(0xc2)](_0x431c05);},exports[a5_0x249f14(0x104)]=(_0x107061,_0x2c13fe)=>{const _0x264a83=a5_0x249f14,_0x21b43d=this,_0x1d33ae=fs[_0x264a83(0xef)](_0x107061);_0x1d33ae[_0x264a83(0xd4)](_0x295527=>{const _0x43c067=_0x264a83,_0x281152=_0x107061+'/'+_0x295527,_0x11cf22=fs[_0x43c067(0xd9)](_0x281152);_0x11cf22[_0x43c067(0xbf)]()?_0x21b43d['DeepScanner'](_0x281152,_0x2c13fe):_0x2c13fe['push'](_0x281152);});},exports[a5_0x249f14(0xee)]=(_0x23bc88,_0x5080cf)=>{return new Promise(_0x4c0976=>{const _0x3b6ef9=a5_0x4868,_0x335a49=[];_0x5080cf[_0x3b6ef9(0xd4)]((_0x36d47c,_0x3571c1)=>{const _0x22901e=_0x3b6ef9,_0x215352=_0x23bc88+'/'+_0x335a49['join']('/')+'/'+_0x36d47c;try{const _0x300e26=fs[_0x22901e(0xd9)](_0x215352);_0x300e26[_0x22901e(0xbf)]()?_0x3571c1===_0x5080cf[_0x22901e(0xf8)]-0x1&&_0x4c0976():(fs[_0x22901e(0xcd)](_0x215352),_0x3571c1===_0x5080cf['length']-0x1&&_0x4c0976());}catch(_0x20a312){fs[_0x22901e(0xcd)](_0x215352),_0x3571c1===_0x5080cf[_0x22901e(0xf8)]-0x1&&_0x4c0976();}_0x335a49[_0x22901e(0xfb)](_0x36d47c);});});};
|
1
|
+
function a6_0x3a04(_0x323ad1,_0x472581){const _0x475d88=a6_0x475d();return a6_0x3a04=function(_0x3a04c8,_0x2619a8){_0x3a04c8=_0x3a04c8-0x1d2;let _0x564c72=_0x475d88[_0x3a04c8];return _0x564c72;},a6_0x3a04(_0x323ad1,_0x472581);}function a6_0x475d(){const _0x18f5ca=['701138YEhYgX','DeepScanner','jjb-common-lib','{\x22name\x22:\x22','【Error】:[jjb.config.json.installTarget]类型是一个string。','4ljQoKf','f_rm_rf','f_resolve_install_resources','join','projectType','_zip','\x5cjjb.config.json','readdirSync','rmdirSync','\x5cpackage.json','【Error】:[jjb.config.json]文件配置无效,需要installTarget属性。','stat','name','f_scan_jjb_config_json','existsSync','string','/api/v4/projects/','createReadStream','error','4104630uekeDP','read\x20error','vue-unisass-component','unlinkSync','f_create_package_json','dependencies','includes','installTarget','\x22,\x22main\x22:\x20\x22index.js\x22}','readdir','42VKLIbN','【Error】:[jjb.config.json.node_modules]配置无效,有效值<node_modules\x20|\x20src>。','replace','【Error】:[jjb.config.json]文件配置无效,需要projectType属性。','push','pipe','spa','mkdirSync','isArray','readFileSync','micro-spa','【Error】:[jjb.config.json.installResources]类型是一个Array<string>。','CreatePaths','log','f_pull_git_repository','react-admin-component','installResources','1021914oXQniB','\x22,\x22version\x22:\x22','【Error】:[jjb.config.json]文件配置无效,需要installResources属性。','1223253ihxQhf','toString','length','f_scan_jjb_config_json_rules','statSync','./config','【Error】:[jjb.config.json.projectType]类型是一个string。','4064259yDawIQ','jjb-dva-runtime','CopyFolder','jjb-common','writeFileSync','DeleteDirAllFile','parse','close','filter','7201850BGDuAG','exit','forEach','f_file_copy','projectId','/repository/archive.zip?private_token=','isDirectory','f_update_project_package_json','node_modules','f_content_replace','map','4560440ZfakCh','path'];a6_0x475d=function(){return _0x18f5ca;};return a6_0x475d();}const a6_0x2d98bb=a6_0x3a04;(function(_0x2b7fbf,_0xbbbc2b){const _0x56e2f3=a6_0x3a04,_0x2eb4a2=_0x2b7fbf();while(!![]){try{const _0x2b54f7=parseInt(_0x56e2f3(0x204))/0x1+parseInt(_0x56e2f3(0x221))/0x2+parseInt(_0x56e2f3(0x20b))/0x3*(-parseInt(_0x56e2f3(0x1d3))/0x4)+-parseInt(_0x56e2f3(0x214))/0x5+parseInt(_0x56e2f3(0x201))/0x6*(parseInt(_0x56e2f3(0x1f0))/0x7)+parseInt(_0x56e2f3(0x21f))/0x8+parseInt(_0x56e2f3(0x1e6))/0x9;if(_0x2b54f7===_0xbbbc2b)break;else _0x2eb4a2['push'](_0x2eb4a2['shift']());}catch(_0x4fc034){_0x2eb4a2['push'](_0x2eb4a2['shift']());}}}(a6_0x475d,0xc9d72));const fs=require('fs'),os=require('os'),path=require(a6_0x2d98bb(0x220)),{GIT_HOST,GIT_TEMP_DIR,CLOUD_PROJECT}=require(a6_0x2d98bb(0x209));exports['f_rm_rf']=function(_0xd6ef32){const _0x37d4e0=a6_0x2d98bb;if(fs['existsSync'](_0xd6ef32)){const _0x1ba257=fs[_0x37d4e0(0x1da)](_0xd6ef32);for(let _0x40b7fc=0x0;_0x40b7fc<_0x1ba257[_0x37d4e0(0x206)];_0x40b7fc++){const _0x2a97de=_0x1ba257[_0x40b7fc],_0x2d82dd=_0xd6ef32+'/'+_0x2a97de;fs[_0x37d4e0(0x208)](_0x2d82dd)[_0x37d4e0(0x21a)]()?(exports[_0x37d4e0(0x1d4)](_0x2d82dd),fs[_0x37d4e0(0x1db)](_0x2d82dd)):fs[_0x37d4e0(0x1e9)](_0x2d82dd);}}},exports[a6_0x2d98bb(0x1fe)]=function(_0x53ae6a=[]){return _0x53ae6a['map'](_0x4ce1f8=>{const _0x1675fe=a6_0x3a04,_0x567907=CLOUD_PROJECT[_0x4ce1f8['name']]||undefined,_0x122b76=os['tmpdir']();return{'path':_0x122b76+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x4ce1f8[_0x1675fe(0x1df)]+'.zip','compress':_0x122b76+'\x5c'+GIT_TEMP_DIR+'\x5c'+_0x4ce1f8[_0x1675fe(0x1df)]+_0x1675fe(0x1d8),'repository':GIT_HOST+_0x1675fe(0x1e3)+_0x567907[_0x1675fe(0x218)]+_0x1675fe(0x219)+_0x567907['token']+'&ref=master'};});},exports[a6_0x2d98bb(0x1e0)]=function(_0x24f274){const _0x52549f=a6_0x2d98bb;return fs[_0x52549f(0x1e1)](_0x24f274+_0x52549f(0x1d9));},exports[a6_0x2d98bb(0x207)]=function(_0x3b039a){const _0x3e754d=a6_0x2d98bb;let _0x224751={};try{_0x224751=JSON[_0x3e754d(0x211)](fs[_0x3e754d(0x1f9)](_0x3b039a+_0x3e754d(0x1d9))[_0x3e754d(0x205)]());}catch(_0x294978){console['log']('【Error】:[jjb.config.json]文件解析失败,请确认是否配置正确。'),process[_0x3e754d(0x215)](0x0);}!(_0x3e754d(0x1d7)in _0x224751)&&(console[_0x3e754d(0x1fd)](_0x3e754d(0x1f3)),process[_0x3e754d(0x215)](0x0));!('installTarget'in _0x224751)&&(console['log'](_0x3e754d(0x1dd)),process['exit'](0x0));!(_0x3e754d(0x200)in _0x224751)&&(console[_0x3e754d(0x1fd)](_0x3e754d(0x203)),process[_0x3e754d(0x215)](0x0));typeof _0x224751[_0x3e754d(0x1d7)]!==_0x3e754d(0x1e2)&&(console[_0x3e754d(0x1fd)](_0x3e754d(0x20a)),process[_0x3e754d(0x215)](0x0));!['multi',_0x3e754d(0x1f6),'uniapp',_0x3e754d(0x1fa)][_0x3e754d(0x1ec)](_0x224751['projectType'])&&(console[_0x3e754d(0x1fd)]('【Error】:[jjb.config.json.projectType]配置无效,有效值<multi\x20|\x20spa\x20|\x20micro-spa\x20|\x20uniapp>。'),process[_0x3e754d(0x215)](0x0));typeof _0x224751[_0x3e754d(0x1ed)]!==_0x3e754d(0x1e2)&&(console[_0x3e754d(0x1fd)](_0x3e754d(0x1d2)),process[_0x3e754d(0x215)](0x0));![_0x3e754d(0x21c),'src'][_0x3e754d(0x1ec)](_0x224751[_0x3e754d(0x1ed)])&&(console[_0x3e754d(0x1fd)](_0x3e754d(0x1f1)),process[_0x3e754d(0x215)](0x0));!Array['isArray'](_0x224751[_0x3e754d(0x200)])&&(console['log'](_0x3e754d(0x1fb)),process[_0x3e754d(0x215)](0x0));_0x224751[_0x3e754d(0x200)]['length']===0x0&&(console[_0x3e754d(0x1fd)]('【Error】:[jjb.config.json.installResources]无资源。'),process[_0x3e754d(0x215)](0x0));const _0x1e5a0c=exports[_0x3e754d(0x1d5)](_0x224751[_0x3e754d(0x200)]);return _0x1e5a0c[_0x3e754d(0x21e)](_0x27f4d1=>_0x27f4d1[_0x3e754d(0x1df)])[_0x3e754d(0x213)](_0x29884b=>![_0x3e754d(0x20e),_0x3e754d(0x20c),_0x3e754d(0x223),'jjb-common-decorator',_0x3e754d(0x1ff),_0x3e754d(0x1e8)][_0x3e754d(0x1ec)](_0x29884b))['length']!==0x0&&(console['log']('【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>。'),process[_0x3e754d(0x215)](0x0)),_0x224751[_0x3e754d(0x200)]=_0x1e5a0c,_0x224751;},exports[a6_0x2d98bb(0x1ea)]=function(_0x1636dd,_0x5ed53d,_0x565969){const _0x199154=a6_0x2d98bb;fs[_0x199154(0x20f)](_0x1636dd+_0x199154(0x1dc),_0x199154(0x224)+_0x5ed53d+_0x199154(0x202)+_0x565969+_0x199154(0x1ee));},exports['f_resolve_install_resources']=function(_0x862926=[]){const _0x23ef0f=a6_0x2d98bb,_0x53762c=[];return Array[_0x23ef0f(0x1f8)](_0x862926)&&_0x862926[_0x23ef0f(0x216)](_0x52d09b=>{const _0x2dea00=_0x23ef0f;if(Array['isArray'](_0x52d09b)){const [_0xaa1793,_0x5e0b72=[]]=_0x52d09b;_0x53762c[_0x2dea00(0x1f4)]({'name':_0xaa1793,'importList':_0x5e0b72});}else _0x53762c[_0x2dea00(0x1f4)]({'name':_0x52d09b,'importList':[]});}),_0x53762c;},exports[a6_0x2d98bb(0x21b)]=function(_0x58cd31,_0x18a6bb,_0x30aefe){const _0x3171b6=a6_0x2d98bb,_0x88f5c1=JSON[_0x3171b6(0x211)](fs[_0x3171b6(0x1f9)](_0x58cd31)[_0x3171b6(0x205)]());_0x88f5c1[_0x3171b6(0x1eb)][_0x18a6bb]=_0x30aefe,fs[_0x3171b6(0x20f)](_0x58cd31,JSON['stringify'](_0x88f5c1,null,0x2));},exports[a6_0x2d98bb(0x217)]=function(_0x33e4ab,_0x5b5cdd){const _0xec7b9b=a6_0x2d98bb;fs[_0xec7b9b(0x1da)](_0x33e4ab)[_0xec7b9b(0x216)](_0x3b8af3=>{const _0x5e40a7=_0xec7b9b,_0x47377b=_0x33e4ab+'\x5c'+_0x3b8af3,_0x593282=_0x5b5cdd+'\x5c'+_0x3b8af3;fs[_0x5e40a7(0x208)](_0x47377b)['isDirectory']()?(fs['mkdirSync'](_0x593282),exports[_0x5e40a7(0x217)](_0x47377b,_0x593282)):fs['writeFileSync'](_0x593282,fs[_0x5e40a7(0x1f9)](_0x47377b)[_0x5e40a7(0x205)]());});},exports[a6_0x2d98bb(0x21d)]=function(_0x3ad1e0=[],_0x5cda9b){const _0x2e4f30=a6_0x2d98bb;_0x3ad1e0[_0x2e4f30(0x216)](_0x49ed33=>{const _0x5c716e=_0x2e4f30,_0x28ae41=_0x5cda9b+_0x49ed33[_0x5c716e(0x220)];if(fs[_0x5c716e(0x1e1)](_0x28ae41)){let _0x14aa32=fs[_0x5c716e(0x1f9)](_0x28ae41)['toString']();_0x49ed33[_0x5c716e(0x1f2)][_0x5c716e(0x216)](_0x3aba70=>{_0x14aa32=_0x14aa32['replace'](_0x3aba70[0x0],_0x3aba70[0x1]);}),fs[_0x5c716e(0x20f)](_0x28ae41,_0x14aa32);}});},exports[a6_0x2d98bb(0x210)]=(_0x3ab7ea,_0x28e425)=>{const _0xd3a3dd=a6_0x2d98bb;let _0x491f6c=[];const _0x33f235=this;fs['existsSync'](_0x3ab7ea)?(_0x491f6c=fs[_0xd3a3dd(0x1da)](_0x3ab7ea),_0x491f6c[_0xd3a3dd(0x216)](function(_0x458f80,_0x3718f6){const _0x5d79a1=_0xd3a3dd;let _0x32504f=_0x3ab7ea+'/'+_0x458f80;fs['statSync'](_0x32504f)[_0x5d79a1(0x21a)]()?_0x33f235['DeleteDirAllFile'](_0x32504f):fs[_0x5d79a1(0x1e9)](_0x32504f);}),fs['rmdirSync'](_0x3ab7ea),_0x28e425&&_0x28e425()):_0x28e425&&_0x28e425();},exports['CopyFolder']=(_0x5ec054,_0x1c1b7e,_0x37725b)=>{const _0x7c553a=a6_0x2d98bb,_0x22d29b=this;fs[_0x7c553a(0x1ef)](_0x5ec054,function(_0x3fb7da,_0x1db27c){const _0x47c312=_0x7c553a;let _0x402dd7=0x0;const _0x41ba4c=function(){const _0x5c8019=a6_0x3a04;++_0x402dd7===_0x1db27c[_0x5c8019(0x206)]&&_0x37725b&&_0x37725b();};if(_0x3fb7da){_0x41ba4c();return;}_0x1db27c[_0x47c312(0x216)](function(_0x4cda27){const _0x597472=_0x47c312,_0x56ba22=path[_0x597472(0x1d6)](_0x5ec054,_0x4cda27),_0x1bf8fc=path[_0x597472(0x1d6)](_0x1c1b7e,_0x4cda27);fs[_0x597472(0x1de)](_0x56ba22,function(_0x4d5dd3,_0x2f3d40){const _0x3146b3=_0x597472;_0x2f3d40[_0x3146b3(0x21a)]()?fs['mkdir'](_0x1bf8fc,function(_0x2bf7e0){const _0x37f509=_0x3146b3;if(_0x2bf7e0){console[_0x37f509(0x1fd)](_0x2bf7e0);return;}_0x22d29b[_0x37f509(0x20d)](_0x56ba22,_0x1bf8fc,_0x41ba4c);}):_0x22d29b['CopyFile'](_0x56ba22,_0x1bf8fc,_0x41ba4c);});}),_0x1db27c[_0x47c312(0x206)]===0x0&&_0x37725b&&_0x37725b();});},exports['CopyFile']=(_0x45e670,_0x224fc1,_0x31cce8)=>{const _0x223265=a6_0x2d98bb,_0x8c7086=fs[_0x223265(0x1e4)](_0x45e670);_0x8c7086['on'](_0x223265(0x1e5),function(_0x1efd64){const _0x19c62d=_0x223265;_0x1efd64&&console[_0x19c62d(0x1fd)](_0x19c62d(0x1e7),_0x45e670),_0x31cce8&&_0x31cce8(_0x1efd64);});const _0x7873fc=fs['createWriteStream'](_0x224fc1);_0x7873fc['on'](_0x223265(0x1e5),function(_0x70c028){_0x70c028&&console['log']('write\x20error',_0x224fc1),_0x31cce8&&_0x31cce8(_0x70c028);}),_0x7873fc['on'](_0x223265(0x212),function(_0x192b4f){_0x31cce8&&_0x31cce8(_0x192b4f);}),_0x8c7086[_0x223265(0x1f5)](_0x7873fc);},exports[a6_0x2d98bb(0x222)]=(_0x24afd2,_0x407887)=>{const _0x4d919c=a6_0x2d98bb,_0x13ee5e=this,_0x349b9a=fs[_0x4d919c(0x1da)](_0x24afd2);_0x349b9a['forEach'](_0x595fc1=>{const _0x10e64d=_0x4d919c,_0x322e27=_0x24afd2+'/'+_0x595fc1,_0x3040a2=fs[_0x10e64d(0x208)](_0x322e27);_0x3040a2[_0x10e64d(0x21a)]()?_0x13ee5e[_0x10e64d(0x222)](_0x322e27,_0x407887):_0x407887[_0x10e64d(0x1f4)](_0x322e27);});},exports[a6_0x2d98bb(0x1fc)]=(_0x4a3fd9,_0x4b1851)=>{return new Promise(_0x1e1f90=>{const _0x1012a9=[];_0x4b1851['forEach']((_0x53b6c8,_0x349766)=>{const _0x254df3=a6_0x3a04,_0x486c49=_0x4a3fd9+'/'+_0x1012a9[_0x254df3(0x1d6)]('/')+'/'+_0x53b6c8;try{const _0x2f7897=fs[_0x254df3(0x208)](_0x486c49);_0x2f7897[_0x254df3(0x21a)]()?_0x349766===_0x4b1851['length']-0x1&&_0x1e1f90():(fs[_0x254df3(0x1f7)](_0x486c49),_0x349766===_0x4b1851[_0x254df3(0x206)]-0x1&&_0x1e1f90());}catch(_0x18aceb){fs[_0x254df3(0x1f7)](_0x486c49),_0x349766===_0x4b1851['length']-0x1&&_0x1e1f90();}_0x1012a9['push'](_0x53b6c8);});});};
|