UNPKG

mixone

Version:

MixOne is a Node scaffolding tool implemented based on Vite, used for compiling HTML5, JavasCript, Vue, React and other codes. It supports packaging Web applications with multiple HTML entry points (BS architecture) and desktop installation packages (CS a

1 lines 4.36 kB
const a9=d;(function(e,f){const a5=d,g=e();while(!![]){try{const h=-parseInt(a5(0xaa))/0x1+-parseInt(a5(0x8a))/0x2+-parseInt(a5(0x87))/0x3*(-parseInt(a5(0x9f))/0x4)+parseInt(a5(0x84))/0x5+parseInt(a5(0x8e))/0x6*(-parseInt(a5(0x77))/0x7)+parseInt(a5(0x7f))/0x8+parseInt(a5(0x8b))/0x9;if(h===f)break;else g['push'](g['shift']());}catch(i){g['push'](g['shift']());}}}(c,0x4f915));const b=(function(){const e={'qpRMI':function(g,h){return g!==h;}};let f=!![];return function(g,h){const a6=d;if(e[a6(0xae)]('VMgWc','VMgWc'))g(h,{'recursive':!![],'force':!![]});else{const j=f?function(){const a7=a6;if(h){const k=h[a7(0xb1)](g,arguments);return h=null,k;}}:function(){};return f=![],j;}};}()),a=b(this,function(){const a8=d,e={'EbwNt':a8(0xa0)};return a[a8(0xa8)]()[a8(0x9d)](e['EbwNt'])[a8(0xa8)]()[a8(0x98)](a)['search'](e[a8(0x86)]);});a();const fs=require('fs'),path=require(a9(0x75)),{rmSync}=require('./saveJs');function d(a,b){const e=c();return d=function(f,g){f=f-0x73;let h=e[f];return h;},d(a,b);}function processPackageJson(e,f){const aa=a9,g={'EcLZL':aa(0x89),'mBBAz':aa(0x83),'nyPWC':aa(0x73),'OVjDP':aa(0xab),'EtYcw':'vite\x20serve\x20--config\x20vite.config.js','XaXOL':aa(0x92),'EaNOo':aa(0xa9),'ppciD':aa(0xb2),'cyDeQ':aa(0x81),'qtYex':function(m,n){return m===n;},'CdYBh':aa(0x7d),'yvEuC':aa(0x8c),'ayqJd':aa(0x96),'vPwLg':aa(0xa2),'SrNsl':aa(0x7b),'aEpxJ':aa(0xb3),'GOzcz':'dev:serve:desktop','Tsxvb':function(m,n){return m!==n;},'bWJrO':'emeVn','DBoOu':function(m,n){return m===n;},'LCMUQ':aa(0x97)};console[aa(0x76)]('Processing\x20package.json:',e);const h=JSON[aa(0x78)](fs[aa(0x7c)](e,g[aa(0x79)]));h[aa(0x88)]=g[aa(0x95)],h[aa(0xb5)]={},h[aa(0xb5)]['start']=g[aa(0x80)],h[aa(0xb5)][g['ayqJd']]=g[aa(0x91)],h[aa(0xb5)][g['vPwLg']]=g[aa(0x7a)],h[aa(0xb5)][g['OVjDP']]='vite\x20serve\x20--config\x20vite.config.js',h[aa(0xb5)][g[aa(0xb0)]]=g['aEpxJ'],h['scripts'][g['GOzcz']]=g[aa(0xad)],h[aa(0xb5)][aa(0xa4)]=aa(0xb2),delete h[aa(0x8f)];const i=path[aa(0xa1)](f);!fs[aa(0xa6)](i)&&fs[aa(0x82)](i,{'recursive':!![]});fs['writeFileSync'](f,JSON['stringify'](h,null,0x2)),console[aa(0x76)]('Successfully\x20processed\x20package.json');const j=path[aa(0xa5)](__dirname,g[aa(0x9b)]),k=path[aa(0xa5)](path[aa(0xa1)](f),aa(0x81));if(fs[aa(0xa6)](j)){if(g[aa(0xaf)](g[aa(0x9e)],aa(0xb4)))rmSync(j,{'recursive':!![],'force':!![]});else{B[aa(0x76)](aa(0x94),C);const n=D[aa(0x78)](E['readFileSync'](F,g['EcLZL']));n[aa(0x88)]=aa(0x8c),n[aa(0xb5)]={},n['scripts']['start']=g[aa(0x80)],n[aa(0xb5)]['dev:electron']=g['nyPWC'],n['scripts'][aa(0xa2)]=aa(0x7b),n['scripts'][g[aa(0x8d)]]=g[aa(0x90)],n[aa(0xb5)][g[aa(0xb0)]]=aa(0xb3),n['scripts']['dev:serve:desktop']=g[aa(0xad)],n['scripts'][aa(0xa4)]=g[aa(0x93)],delete n['build'];const o=G[aa(0xa1)](H);!I['existsSync'](o)&&Y[aa(0x82)](o,{'recursive':!![]});K[aa(0x7e)](L,M[aa(0x99)](n,null,0x2)),N[aa(0x76)](aa(0x9a));const p=O[aa(0xa5)](P,aa(0x81)),q=Q[aa(0xa5)](R[aa(0xa1)](S),g[aa(0x9b)]);T[aa(0xa6)](p)&&Z(p,{'recursive':!![],'force':!![]});const r=g[aa(0x74)](V[aa(0xac)],aa(0xa3))?{'type':aa(0x97)}:null;W[aa(0x9c)](q,p,r),X[aa(0x76)](g[aa(0x85)],p);}}const l=g['DBoOu'](process['platform'],aa(0xa3))?{'type':g[aa(0xa7)]}:null;fs[aa(0x9c)](k,j,l),console['log'](g[aa(0x85)],j);}function c(){const ab=['CdYBh','EbwNt','3vpPGMp','main','utf-8','1193296mrqoDv','3944295ZnQTOe','main/main.js','OVjDP','1562538coqUsv','build','EtYcw','nyPWC','dev:serve','ppciD','Processing\x20package.json:','yvEuC','dev:electron','junction','constructor','stringify','Successfully\x20processed\x20package.json','cyDeQ','symlinkSync','search','bWJrO','1398976izfBWP','(((.+)+)+)+$','dirname','rdev:electron','win32','electron-builder-win','join','existsSync','LCMUQ','toString','node\x20serve.js\x20--desktop','81861rXiDzj','serve','platform','EaNOo','qpRMI','Tsxvb','XaXOL','apply','electron-builder\x20--win\x20--x64','node\x20serve.js','Ltcvb','scripts','electron\x20.\x20--dev','qtYex','path','log','7RCcbqC','parse','EcLZL','SrNsl','electron\x20.\x20--dev\x20--window-states=C:\x5cUsers\x5cadmin\x5cAppData\x5cLocal\x5cTemp\x5cwindow-states.txt','readFileSync','Symbolic\x20link\x20created\x20successfully\x20→','writeFileSync','141928zkTtMj','mBBAz','node_modules','mkdirSync','electron\x20.','2295505UBwTtv'];c=function(){return ab;};return c();}module['exports']={'processPackageJson':processPackageJson};