@maka/maka-cli 5.0.19 → 5.0.21
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/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js +2 -2
- package/bundle/obf/src/templates/meteor/api/api.js.ts +2 -2
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a159y=a159d;(function(a,b){const u=a159d,c=a();while(!![]){try{const d=-parseInt(u(0x13a))/0x1+-parseInt(u(0xee))/0x2+parseInt(u(0xe2))/0x3+parseInt(u(0x108))/0x4*(parseInt(u(0x11b))/0x5)+parseInt(u(0x10e))/0x6+parseInt(u(0x160))/0x7*(parseInt(u(0x12e))/0x8)+parseInt(u(0x122))/0x9*(-parseInt(u(0x143))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0x42f8b));const a159b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a159d;if(c){const e=c[v(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){const w=a159d;return a159a[w(0x134)]()[w(0x102)]('(((.+)+)+)+$')[w(0x134)]()[w(0x159)](a159a)[w(0x102)]('(((.+)+)+)+$');});function a159d(a,b){const c=a159c();return a159d=function(d,e){d=d-0xdb;let f=c[d];return f;},a159d(a,b);}a159a();import a159e from'path';import a159f from'fs';import a159g from'util';import{exec}from'child_process';import a159h from'delete';import a159i from'ejs';function a159c(){const a4=['platform','exit','test','startup','isArray','templates.js','pathFromAppWithNoReWrite','mpi','Error\x20in\x20injectIntoCodeBlock:\x20','filter','verbose','push','keys','existsSync','injectImport','readdirSync','search','\x20from','sep','.git','\x20}\x20from\x20\x27','No\x20pathParts\x20option\x20provided','1768BRoujA','detectIndentation','concat','fsi','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','repeat','1058424WzdZvC','No\x20file\x20found\x20at\x20path\x20','from\x20\x22','--release\x20','message','.jsx','map','replace','html','cfg','injectTemplateModule','\x20from\x20\x27','imports','4120JANWaU','.meteor','slice','join','endsWith','injectAtEndOfFile()','ico','9YYwrdK','forEach','writeSourcePath','error','pathFromTemplates()','png','\x27;\x0a','pathFromAppWithNoReWrite()','startsWith','isTemplateForEngine()','engines','import\x20','1048tLlgal','rewriteSourcePathForEngine','json','engine','engineAndTypeFromfilePath()','normalize','toString','\x20doesn\x27t\x20exist','match','injectAtEndOfFile','release','readFileSync','116467yrabVz','cwd','less','injectIntoFile','\x20updated\x20file\x20','[\x5cs\x5cS]*?)(','rewriteDestinationPathForType','Looking\x20for\x20','findAppDirectory','3711710lPDVup','pop','engineAndTypeFromfilePath','True','includes','apply','Directory\x20','true','utf8','template','reduce','getMakaProjectConfig','stringify','from\x20\x27','\x20->','getCommonIndentSize','adjustIndentation','indexOf','isDirectory','.js.jsx','rewriteDestinationPathForEngine()','While\x20injecting\x20','constructor','--minimal','createDirectory','injectAroundString()','pathFromApp','injectIntoFile()','split','2863gbmDQQ','client','rewriteDestinationPathForEngine','isTemplateForEngine','type','writeFileSync','some','base64','length','alpha','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','trim','warn','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','fileContainsString','copyTemplateDirectory','tsx','isFile','createFile','import\x20{\x20','splice','header','templates','noRename','MAKA_COMMAND_PATH','export\x20{\x20','Meteor\x20project\x20already\x20exists\x20at\x20','relative','yaml','createEmptyMeteorProject','1474119EQJwJX','pathFromTemplates','env','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','promisify','meteor','template()','jsx','css','injectAfterLineNumber','rewriteSourcePathForEngine()','.js','647222Swbupl','.js.ts','\x5cS*$','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20'];a159c=function(){return a4;};return a159c();}import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const x=a159d;process[x(0xe4)]['MAKA_DEV']===x(0x146)&&Log['error']('Error\x20in\x20'+a),b&&console[x(0x125)](b);},isWin=process[a159y(0xf2)]==='win32',treeSymbol=isWin?a159y(0x151):'\x20┗';export class Scaffold{[a159y(0x10b)];[a159y(0xf9)];[a159y(0x117)];constructor(a,b,c){const z=a159y;this[z(0x10b)]=a,this[z(0xf9)]=b,this[z(0x117)]=c;}async[a159y(0xe1)](a,b){const A=a159y;b[A(0x13b)]=b[A(0x13b)]||'.';const c=a159e['join'](b[A(0x13b)],a),d=a159e['join'](c,A(0x11c));if(this[A(0x10b)]['isDirectory'](d))throw new Error(A(0xde)+JSON[A(0x14f)](c));const e=A(0x15a),f=a159e['join'](b['cwd']),g=a159g[A(0xe6)](exec),h=b[A(0x138)]?A(0x111)+b['release']:'';b[A(0x138)]&&b[A(0x138)][A(0x147)](A(0x169))&&(Log[A(0x16d)](A(0xf1)+b[A(0x138)]),Log[A(0x16d)](A(0xe5)));try{await g(this[A(0xf9)]['meteor']+'\x20create\x20'+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[A(0x125)]('\x0a'+k[A(0x112)]);throw k;}const i=a159e[A(0x11e)](f,a);if(!a159f[A(0xff)](i))throw new Error(A(0x149)+i+A(0x135));const j=a159f[A(0x101)](i);for(const l of j){if(l!==A(0x105)&&l!=='.meteor'){const m=a159e[A(0x11e)](i,l);await a159h(m,{'force':!![]});}}}[a159y(0x145)]({filePath:a}){const B=a159y;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[B(0x136)](b);c=c&&c[0x0][B(0x15f)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[B(0x144)](),f=c[B(0x144)]()||d;if(d)d=d[B(0x115)]('.','');if(f)f=f['replace']('.','');return{'type':f,'engine':d};}catch(g){errorHandler(B(0x132),g),process[B(0xf3)](0x1);}}[a159y(0x140)]({pathParts:a,config:b}){const C=a159y;try{const c=a[C(0x11e)](a159e[C(0x104)]),d=this[C(0x145)]({'filePath':c})['type'],f=b?.['engines'][d],g=new RegExp('\x5c.'+d+C(0xf0));return!d||!f?c:c['replace'](g,'.'+d);}catch(h){errorHandler('rewriteDestinationPathForType()',h),process[C(0xf3)](0x1);}}[a159y(0x163)]({pathParts:a,config:b}){const D=a159y;try{if(!b)throw new Error(D(0x16e));const c=a[D(0x11e)](a159e['sep']),d=this[D(0x145)]({'filePath':c});if(!d['type']||!d['engine'])return!![];const f=b['engines'][d[D(0x164)]];if(!f)return!![];return f===d[D(0x131)];}catch(g){errorHandler(D(0x12b),g),process['exit'](0x1);}}[a159y(0x124)]({pathParts:pathParts=[]}){return pathParts['join'](a159e['sep']);}[a159y(0x162)]({pathParts:pathParts=[],config:a}){const E=a159y;try{const b=pathParts[E(0x11e)](a159e[E(0x104)]),c=this[E(0x145)]({'filePath':b})['type'],d=a?.[E(0x12c)][c],f=new RegExp('\x5c.'+c+E(0xf0));return!c||!d?b:b[E(0x115)](f,'.'+d);}catch(g){errorHandler(E(0x157),g),process[E(0xf3)](0x1);}}[a159y(0x12f)]({pathParts:pathParts=[],framework:framework='meteor'}){const F=a159y;try{const a=a159e[F(0x133)](pathParts[F(0x11e)](a159e[F(0x104)]));if(!a[F(0x11f)](F(0xed)))return a;const b='js',c=this[F(0x117)][F(0x14e)]();if(!c?.[F(0x12c)]||!c?.[F(0x12c)][b])return a;const d=c[F(0x12c)][b],f=d===F(0x171)?['.js.tsx',F(0xef),F(0xed)]:[F(0x156),F(0xed)];for(const g of f){const h=a[F(0x115)](/\.js$/,g),i=a159e['join'](F(0x177),framework,h),j=a159e[F(0x133)](a159e['join'](global[F(0xdc)],i));if(a159f[F(0xff)](j))return h;}return a;}catch(k){errorHandler(F(0xec),k),process['exit'](0x1);}}[a159y(0xe3)]({pathParts:a,framework:framework=a159y(0xe7)}){const G=a159y;try{const b=this[G(0x12f)]({'pathParts':a,'framework':framework}),c=a159e[G(0x11e)]('src/templates/'+framework,b),d=a159e[G(0x11e)](global[G(0xdc)],'..',c);return d;}catch(f){errorHandler(G(0x126),f),process['exit'](0x1);}}['templateContent']({srcPath:a,context:b,framework:c,config:d}){const H=a159y;try{let f=this[H(0xe3)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[H(0x145)]({'filePath':f}),h=[H(0xea),'scss',H(0x13c),H(0x116),'js',H(0xe9),'ts',H(0x171),H(0x130),H(0xe4),H(0xe0),H(0x14c)],i=[H(0x127),H(0x121)];if(!this['fsi']['isFile'](f)){g===H(0xe9)&&(f=f[H(0x115)](H(0x113),''));g===H(0x171)&&(f=f[H(0x115)]('.tsx',''));if(!this[H(0x10b)]['isFile'](f))throw new Error(H(0x16b)+JSON['stringify'](f));}const j=f[H(0x15f)]('.'),k=a159e['normalize'](f)[H(0x15f)](a159e[H(0x104)]),l=k[k[H(0x168)]-0x1]==='Dockerfile',m=i[H(0x147)](j[j[H(0x168)]-0x1]),n=a159f[H(0x139)](f);if(l)return a159i['render'](n[H(0x134)](),b)['trim']();if(m)return Buffer['from'](n)[H(0x134)](H(0x167));if(!h[H(0x147)](j[j[H(0x168)]-0x1]))return n[H(0x134)]()[H(0x16c)]();return a159i['render'](n[H(0x134)](),b||{})[H(0x16c)]();}catch(o){errorHandler('templateContent()',o),process[H(0xf3)](0x1);}}async['template']({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const I=a159y;try{const g=[I(0x127),'ico'],h=g['includes'](a[I(0x15f)]('.')[I(0x144)]()||''),i=this['templateContent']({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[I(0xdb)]?b=this[I(0x140)]({'pathParts':[b],'config':d}):b=this[I(0x162)]({'pathParts':[b],'config':d});const j=await this[I(0x10b)][I(0x173)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(I(0xe8),k),process[I(0xf3)](0x1);}}async[a159y(0x170)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const J=a159y;try{const i=this[J(0xe3)]({'pathParts':[a],'framework':g,'config':h}),j=this[J(0xe3)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const K=J;return n[K(0x115)](j,'');},l=n=>{const L=J;return n[L(0x115)](i,b);};await this[J(0x10b)][J(0x15b)]({'dirPath':b});const m=a159f[J(0x101)](i);for(const n of m){try{const o=a159e[J(0x11e)](i,n),p=k(o),q=l(o);if(d[J(0x147)](a159e[J(0x11e)](a,n)))continue;if(this['fsi'][J(0x155)](o))await this[J(0x170)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[J(0x10b)]['isFile'](o)&&this[J(0x163)]({'pathParts':[o],'config':h}))await this[J(0x14c)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[J(0x154)](a159e[J(0x11e)](a,n))>=0x0&&this['fsi'][J(0x172)](o)&&(c[J(0xdb)]=!![],await this[J(0x14c)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[J(0xdb)]=![]);}}catch(r){console[J(0x125)](r),process[J(0xf3)](0x1);}}}catch(s){errorHandler('copyTemplateDirectory()',s),process[J(0xf3)](0x1);}}async['injectAtBeginningOfFile']({filePath:a,content:b,opts:c}){const M=a159y;if(!a)throw new Error(M(0x16a));try{!this[M(0x10b)][M(0x172)](a)&&await this[M(0x10b)]['createFile']({'filePath':a,'data':b});let d=a159f['readFileSync'](a,'utf8');d=b+'\x0a'+d,a159f[M(0x165)](a,d),c?.[M(0xfc)]&&Log['header'](treeSymbol+M(0x13e)+a159e[M(0xdf)](process[M(0x13b)](),a));}catch(f){errorHandler('injectAtBeginningOfFile()',f),process['exit'](0x1);}}async[a159y(0x137)]({filePath:a,content:b,opts:c}){const N=a159y;try{if(!this[N(0x10b)][N(0x172)](a))await this[N(0x10b)]['createFile']({'filePath':a,'data':b});else{let d=a159f[N(0x139)](a,N(0x14b));!d[N(0x147)](b)&&(d=d+'\x0a'+b,a159f[N(0x165)](a,d)),c?.['verbose']&&Log[N(0x176)](treeSymbol+N(0x13e)+a159e[N(0xdf)](process[N(0x13b)](),a));}}catch(f){errorHandler(N(0x120),f),process[N(0xf3)](0x1);}}async['injectAroundString']({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const O=a159y;try{if(!this[O(0x10b)][O(0x172)](a))throw Log[O(0x125)](O(0x10f)+JSON[O(0x14f)](a));const f=a159f[O(0x139)](a,'utf8'),g=f[O(0x115)](/\r\n|\r/g,'\x0a'),h=g['split']('\x0a'),j=this[O(0x109)](h),k=b['replace'](/\r\n|\r/g,'\x0a')[O(0x15f)]('\x0a'),l=c[O(0x115)](/\r\n|\r/g,'\x0a')[O(0x15f)]('\x0a'),m=new RegExp(Array[O(0xf6)](d)?d[O(0x11e)]('|'):d,'i'),n=[];for(let p=0x0;p<h[O(0x168)];p++){const q=h[p];if(m[O(0xf4)](q)){const r=this[O(0x153)](j,targetIndentAdjustment),s=r+q['trim']();k[O(0x123)](t=>{const P=O;!g['includes'](t[P(0x16c)]())&&n[P(0xfd)](this[P(0x153)](j,indentAdjustment)+t);}),n['push'](s),l[O(0x123)](t=>{const Q=O;!g[Q(0x147)](t[Q(0x16c)]())&&n['push'](this[Q(0x153)](j,indentAdjustment)+t);});}else n[O(0xfd)](q);}const o=n['join']('\x0a');a159f['writeFileSync'](a,o),Log[O(0x176)](treeSymbol+O(0x13e)+a159e[O(0xdf)](process[O(0x13b)](),a));}catch(t){errorHandler(O(0x15c),t),process['exit'](0x1);}}['adjustIndentation'](a,b){const R=a159y;if(b===0x0)return a;const c=a[R(0x168)]+b;return c>0x0?a[0x0][R(0x10d)](c):'';}[a159y(0x109)](a){const S=a159y;let b=0x0,c=0x0;a[S(0x123)](f=>{const T=S;if(f[T(0x12a)]('\x20'))b++;else f[T(0x12a)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[S(0x152)](a,d);return d['repeat'](e);}[a159y(0x152)](a,b){const U=a159y,c=a[U(0xfb)](d=>d&&d['startsWith'](b))[U(0x114)](d=>{const V=U,e=d[V(0x136)](new RegExp('^'+b+'+'));return e?e[0x0][V(0x168)]:0x0;});if(c[U(0x168)]===0x0)return 0x0;return this['calculateMode'](c);}['calculateMode'](a){const W=a159y,b=a[W(0x14d)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[W(0xfe)](b)[W(0x14d)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async['injectIntoCodeBlock']({filePath:a,content:b,begin:c,replace:replace=![]}){const X=a159y;try{if(!this[X(0x10b)]['isFile'](a))throw new Error('File\x20not\x20found:\x20'+a);const d=a159f[X(0x139)](a,X(0x14b)),f=d[X(0x15f)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array['isArray'](c)?c:[c];for(let o=0x0;o<f[X(0x168)];o++){const p=f[o];k&&p['includes']('{')&&j++;if(m[X(0x166)](q=>p[X(0x147)](q))){g=o,k=!![],j++;continue;}if(k){p[X(0x147)](b[X(0x16c)]())&&(l=!![]);if(p[X(0x147)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[X(0x125)]('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20'+a),Log[X(0x125)](X(0x158)+b),Log['error'](X(0x141)+c);throw new Error('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.');}if(l)return;let n=f[X(0x11d)](0x0,g+0x1);replace?(n[X(0xfd)](b[X(0x16c)]()),n[X(0xfd)](f[h])):(n=n[X(0x10a)](f[X(0x11d)](g+0x1,h)),n['push'](b['trim']())),n=n[X(0x10a)](f['slice'](h+0x1)),a159f[X(0x165)](a,n[X(0x11e)]('\x0a'),X(0x14b));}catch(q){console['error'](X(0xfa),q);throw q;}}async[a159y(0x13d)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const Y=a159y;try{const g=await this[Y(0x10b)][Y(0x16f)](a,c);if(g)return;if(!this[Y(0x10b)]['isFile'](a))throw Log['error'](Y(0x10c)+JSON[Y(0x14f)](a));const h=a159f[Y(0x139)](a,Y(0x14b));if(!Array[Y(0xf6)](d))d=[d];if(!Array[Y(0xf6)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+Y(0x13f)+l+')','i');i=h[Y(0x115)](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error('No\x20matching\x20section\x20found.');a159f['writeFileSync'](a,i),Log[Y(0x176)](treeSymbol+Y(0x13e)+a159e[Y(0xdf)](process[Y(0x13b)](),a));}catch(n){errorHandler(Y(0x15e),n),process['exit'](0x1);}}async[a159y(0x100)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const Z=a159y,e=a159f['readFileSync'](a,Z(0x14b));let f;d?f=Z(0x174)+b+Z(0x106)+c+Z(0x128):f=Z(0x12d)+b+Z(0x119)+c+'\x27;\x0a';const g=e[Z(0x15f)]('\x0a');let h=0x0,j=![];for(const l of g){if(l[Z(0x147)](Z(0x150)+c+'\x27')||l['includes'](Z(0x110)+c+'\x22')){const m=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(Z(0x12d)+b+Z(0x103));if(l[Z(0x136)](m)){j=!![];break;}}}if(j)return;if(injectAtStart)for(let n=0x0;n<g['length'];n++){if(g[n]['match'](/^import .* from .*;$/)){h=n;break;}}else{for(let o=0x0;o<g[Z(0x168)];o++){g[o][Z(0x136)](/^import .* from .*;$/)&&(h=o);}h++;}g[Z(0x175)](h,0x0,f);const k=g['join']('\x0a');a159f[Z(0x165)](a,k,Z(0x14b));}async[a159y(0x118)](a,b,c){const a0=a159y;let d;b[a0(0x12c)]['ssr']===a0(0x14a)?d=this[a0(0x15d)]({'pathParts':[a0(0x11a),a0(0xf5),'lib',a0(0xf7)],'config':b}):d=this['pathFromApp']({'pathParts':[a0(0x11a),a0(0xf5),a0(0x161),a0(0xf7)],'config':b});const e=this[a0(0x162)]({'pathParts':[d],'config':b}),f=a0(0xdd)+pascalCase(a)+'\x20}\x20from\x20\x27'+c+'\x27;',g=await this[a0(0x10b)]['fileContainsString'](e,f);!g&&this['injectAtEndOfFile']({'filePath':e,'content':f+'\x0a'});}[a159y(0xeb)]({filePath:a,content:b,lineNumber:c}){const a1=a159y;try{const d=a159f[a1(0x139)](a)[a1(0x134)]()[a1(0x15f)]('\x0a');d['splice'](c,0x0,b);const f=d['join']('\x0a');a159f[a1(0x165)](a,f);}catch(g){errorHandler('injectAfterLineNumber()',g),process[a1(0xf3)](0x1);}}['pathFromApp']({pathParts:a,config:b}){const a2=a159y;try{if(!a)throw new Error(a2(0x107));const c=this[a2(0x12f)]({'pathParts':a,'config':b}),d=this[a2(0x10b)][a2(0x142)]();return d?a159e[a2(0x11e)](d,c):'';}catch(f){errorHandler('pathFromApp()',f),process[a2(0xf3)](0x1);}}[a159y(0xf8)]({pathParts:a,config:b}){const a3=a159y;try{const c=this[a3(0x124)]({'pathParts':a,'config':b}),d=this[a3(0x10b)][a3(0x142)]();if(!d)throw new Error('No\x20app\x20directory\x20found');return a159e[a3(0x11e)](d,c);}catch(f){errorHandler(a3(0x129),f),process[a3(0xf3)](0x1);}}}
|
|
1
|
+
const a159y=a159d;(function(a,b){const u=a159d,c=a();while(!![]){try{const d=-parseInt(u(0x185))/0x1*(-parseInt(u(0x15d))/0x2)+parseInt(u(0x12b))/0x3+parseInt(u(0x17f))/0x4+-parseInt(u(0xe8))/0x5+-parseInt(u(0xf8))/0x6+-parseInt(u(0x181))/0x7*(parseInt(u(0x175))/0x8)+parseInt(u(0xf4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0x34c6c));const a159b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a159d;if(c){const e=c[v(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){const w=a159d;return a159a['toString']()[w(0x15b)]('(((.+)+)+)+$')[w(0x144)]()[w(0xfc)](a159a)[w(0x15b)](w(0x121));});function a159d(a,b){const c=a159c();return a159d=function(d,e){d=d-0xe5;let f=c[d];return f;},a159d(a,b);}a159a();import a159e from'path';import a159f from'fs';import a159g from'util';import{exec}from'child_process';import a159h from'delete';import a159i from'ejs';function a159c(){const a4=['While\x20injecting\x20','isTemplateForEngine','sep','injectAfterLineNumber','862295XmNYlV','rewriteDestinationPathForEngine()','ssr','.js','templates','from\x20\x27','\x20->','.git','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','includes','utf8','filter','5641560GXpwHi','cfg','existsSync','adjustIndentation','2120406oPBAnQ','map','export\x20{\x20','platform','constructor','replace','\x5cS*$','.meteor','apply','some','src/templates/','ico','fileContainsString','stringify','base64','createFile','\x20}\x20from\x20\x27','repeat','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','Looking\x20for\x20','import\x20','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','less','warn','template','true','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','createDirectory','from','getMakaProjectConfig','pathFromAppWithNoReWrite','isDirectory','injectAfterLineNumber()','engineAndTypeFromfilePath','writeFileSync','pathFromTemplates','copyTemplateDirectory()','meteor','\x20updated\x20file\x20','\x27;\x0a','endsWith','(((.+)+)+)+$','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','pathFromAppWithNoReWrite()','rewriteDestinationPathForType','reduce','.js.jsx','--minimal','rewriteDestinationPathForType()','injectImport','findAppDirectory','441279wjfFVg','header','No\x20matching\x20section\x20found.','isTemplateForEngine()','alpha','calculateMode','Meteor\x20project\x20already\x20exists\x20at\x20','\x20from','engine','exit','startsWith','pathFromApp','import\x20{\x20','pop','pathFromApp()','message','splice','fsi','injectAroundString()','rewriteDestinationPathForEngine','No\x20app\x20directory\x20found','\x20from\x20\x27','error','engines','env','toString','readdirSync','indexOf','slice','tsx','forEach','cwd','--release\x20','readFileSync','jsx','injectAroundString','MAKA_COMMAND_PATH','push','concat','\x20create\x20','imports','verbose','createEmptyMeteorProject','json','Dockerfile','isArray','copyTemplateDirectory','release','search','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','382Xwltcs','win32','injectIntoFile()','templates.js','split','MAKA_DEV','rewriteSourcePathForEngine()','.jsx','File\x20not\x20found:\x20','getCommonIndentSize','template()','detectIndentation','html','scss','.js.ts','relative','rewriteSourcePathForEngine','noRename','injectAtBeginningOfFile()','length','injectAtEndOfFile()','test','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','mpi','3305560JvtGGm','Directory\x20','normalize','templateContent','join','No\x20file\x20found\x20at\x20path\x20','type','render','png','injectTemplateModule','1079764wLAFxl','isFile','7PLzUJJ','match','trim','client','583PDxtEG'];a159c=function(){return a4;};return a159c();}import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const x=a159d;process[x(0x143)][x(0x162)]==='True'&&Log[x(0x141)]('Error\x20in\x20'+a),b&&console[x(0x141)](b);},isWin=process[a159y(0xfb)]===a159y(0x15e),treeSymbol=isWin?a159y(0xee):'\x20┗';export class Scaffold{[a159y(0x13c)];[a159y(0x174)];['cfg'];constructor(a,b,c){const z=a159y;this[z(0x13c)]=a,this[z(0x174)]=b,this[z(0xf5)]=c;}async[a159y(0x155)](a,b){const A=a159y;b[A(0x14a)]=b[A(0x14a)]||'.';const c=a159e[A(0x179)](b[A(0x14a)],a),d=a159e[A(0x179)](c,A(0xff));if(this[A(0x13c)][A(0x117)](d))throw new Error(A(0x131)+JSON[A(0x105)](c));const e=A(0x127),f=a159e[A(0x179)](b['cwd']),g=a159g['promisify'](exec),h=b[A(0x15a)]?A(0x14b)+b[A(0x15a)]:'';b[A(0x15a)]&&b['release']['includes'](A(0x12f))&&(Log['warn'](A(0x173)+b['release']),Log[A(0x10f)](A(0x10d)));try{await g(this[A(0x174)]['meteor']+A(0x152)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[A(0x141)]('\x0a'+k[A(0x13a)]);throw k;}const i=a159e[A(0x179)](f,a);if(!a159f[A(0xf6)](i))throw new Error(A(0x176)+i+'\x20doesn\x27t\x20exist');const j=a159f[A(0x145)](i);for(const l of j){if(l!==A(0xef)&&l!==A(0xff)){const m=a159e[A(0x179)](i,l);await a159h(m,{'force':!![]});}}}[a159y(0x119)]({filePath:a}){const B=a159y;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a['match'](b);c=c&&c[0x0]['split']('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[B(0x138)](),f=c[B(0x138)]()||d;if(d)d=d[B(0xfd)]('.','');if(f)f=f['replace']('.','');return{'type':f,'engine':d};}catch(g){errorHandler('engineAndTypeFromfilePath()',g),process[B(0x134)](0x1);}}[a159y(0x124)]({pathParts:a,config:b}){const C=a159y;try{const c=a['join'](a159e[C(0xe6)]),d=this[C(0x119)]({'filePath':c})['type'],f=b?.[C(0x142)][d],g=new RegExp('\x5c.'+d+'\x5cS*$');return!d||!f?c:c[C(0xfd)](g,'.'+d);}catch(h){errorHandler(C(0x128),h),process[C(0x134)](0x1);}}[a159y(0xe5)]({pathParts:a,config:b}){const D=a159y;try{if(!b)throw new Error(D(0x112));const c=a[D(0x179)](a159e[D(0xe6)]),d=this['engineAndTypeFromfilePath']({'filePath':c});if(!d[D(0x17b)]||!d['engine'])return!![];const f=b[D(0x142)][d[D(0x17b)]];if(!f)return!![];return f===d[D(0x133)];}catch(g){errorHandler(D(0x12e),g),process[D(0x134)](0x1);}}['writeSourcePath']({pathParts:pathParts=[]}){const E=a159y;return pathParts[E(0x179)](a159e[E(0xe6)]);}[a159y(0x13e)]({pathParts:pathParts=[],config:a}){const F=a159y;try{const b=pathParts['join'](a159e['sep']),c=this[F(0x119)]({'filePath':b})['type'],d=a?.[F(0x142)][c],f=new RegExp('\x5c.'+c+F(0xfe));return!c||!d?b:b[F(0xfd)](f,'.'+d);}catch(g){errorHandler(F(0xe9),g),process[F(0x134)](0x1);}}[a159y(0x16d)]({pathParts:pathParts=[],framework:framework=a159y(0x11d)}){const G=a159y;try{const a=a159e[G(0x177)](pathParts[G(0x179)](a159e[G(0xe6)]));if(!a[G(0x120)](G(0xeb)))return a;const b='js',c=this[G(0xf5)][G(0x115)]();if(!c?.[G(0x142)]||!c?.[G(0x142)][b])return a;const d=c[G(0x142)][b],f=d===G(0x148)?['.js.tsx',G(0x16b),G(0xeb)]:[G(0x126),G(0xeb)];for(const g of f){const h=a[G(0xfd)](/\.js$/,g),i=a159e[G(0x179)](G(0xec),framework,h),j=a159e[G(0x177)](a159e[G(0x179)](global[G(0x14f)],i));if(a159f[G(0xf6)](j))return h;}return a;}catch(k){errorHandler(G(0x163),k),process['exit'](0x1);}}['pathFromTemplates']({pathParts:a,framework:framework=a159y(0x11d)}){const H=a159y;try{const b=this[H(0x16d)]({'pathParts':a,'framework':framework}),c=a159e['join'](H(0x102)+framework,b),d=a159e['join'](global[H(0x14f)],'..',c);return d;}catch(f){errorHandler('pathFromTemplates()',f),process['exit'](0x1);}}['templateContent']({srcPath:a,context:b,framework:c,config:d}){const I=a159y;try{let f=this[I(0x11b)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[I(0x119)]({'filePath':f}),h=['css',I(0x16a),I(0x10e),I(0x169),'js',I(0x14d),'ts',I(0x148),I(0x156),I(0x143),'yaml',I(0x110)],i=[I(0x17d),I(0x103)];if(!this[I(0x13c)][I(0x180)](f)){g===I(0x14d)&&(f=f[I(0xfd)](I(0x164),''));g===I(0x148)&&(f=f[I(0xfd)]('.tsx',''));if(!this['fsi'][I(0x180)](f))throw new Error(I(0x122)+JSON[I(0x105)](f));}const j=f[I(0x161)]('.'),k=a159e[I(0x177)](f)['split'](a159e[I(0xe6)]),l=k[k['length']-0x1]===I(0x157),m=i[I(0xf1)](j[j[I(0x170)]-0x1]),n=a159f['readFileSync'](f);if(l)return a159i[I(0x17c)](n[I(0x144)](),b)['trim']();if(m)return Buffer[I(0x114)](n)[I(0x144)](I(0x106));if(!h['includes'](j[j[I(0x170)]-0x1]))return n[I(0x144)]()['trim']();return a159i['render'](n[I(0x144)](),b||{})[I(0x183)]();}catch(o){errorHandler('templateContent()',o),process[I(0x134)](0x1);}}async[a159y(0x110)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const J=a159y;try{const g=[J(0x17d),J(0x103)],h=g[J(0xf1)](a[J(0x161)]('.')[J(0x138)]()||''),i=this[J(0x178)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[J(0x16e)]?b=this[J(0x124)]({'pathParts':[b],'config':d}):b=this[J(0x13e)]({'pathParts':[b],'config':d});const j=await this[J(0x13c)]['createFile']({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(J(0x167),k),process[J(0x134)](0x1);}}async[a159y(0x159)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a159y;try{const i=this['pathFromTemplates']({'pathParts':[a],'framework':g,'config':h}),j=this['pathFromTemplates']({'pathParts':[],'framework':g,'config':h}),k=n=>{const K=a159d;return n[K(0xfd)](j,'');},l=n=>{const L=a159d;return n[L(0xfd)](i,b);};await this[M(0x13c)][M(0x113)]({'dirPath':b});const m=a159f[M(0x145)](i);for(const n of m){try{const o=a159e[M(0x179)](i,n),p=k(o),q=l(o);if(d['includes'](a159e[M(0x179)](a,n)))continue;if(this['fsi'][M(0x117)](o))await this[M(0x159)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this['fsi'][M(0x180)](o)&&this[M(0xe5)]({'pathParts':[o],'config':h}))await this[M(0x110)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[M(0x146)](a159e[M(0x179)](a,n))>=0x0&&this[M(0x13c)][M(0x180)](o)&&(c['noRename']=!![],await this[M(0x110)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0x16e)]=![]);}}catch(r){console[M(0x141)](r),process[M(0x134)](0x1);}}}catch(s){errorHandler(M(0x11c),s),process[M(0x134)](0x1);}}async['injectAtBeginningOfFile']({filePath:a,content:b,opts:c}){const N=a159y;if(!a)throw new Error(N(0xf0));try{!this[N(0x13c)]['isFile'](a)&&await this[N(0x13c)][N(0x107)]({'filePath':a,'data':b});let d=a159f[N(0x14c)](a,N(0xf2));d=b+'\x0a'+d,a159f[N(0x11a)](a,d),c?.[N(0x154)]&&Log[N(0x12c)](treeSymbol+N(0x11e)+a159e[N(0x16c)](process[N(0x14a)](),a));}catch(f){errorHandler(N(0x16f),f),process[N(0x134)](0x1);}}async['injectAtEndOfFile']({filePath:a,content:b,opts:c}){const O=a159y;try{if(!this['fsi'][O(0x180)](a))await this[O(0x13c)][O(0x107)]({'filePath':a,'data':b});else{let d=a159f[O(0x14c)](a,O(0xf2));!d[O(0xf1)](b)&&(d=d+'\x0a'+b,a159f[O(0x11a)](a,d)),c?.[O(0x154)]&&Log[O(0x12c)](treeSymbol+O(0x11e)+a159e[O(0x16c)](process['cwd'](),a));}}catch(f){errorHandler(O(0x171),f),process[O(0x134)](0x1);}}async[a159y(0x14e)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const P=a159y;try{if(!this[P(0x13c)][P(0x180)](a))throw Log[P(0x141)](P(0x17a)+JSON[P(0x105)](a));const f=a159f[P(0x14c)](a,'utf8'),g=f[P(0xfd)](/\r\n|\r/g,'\x0a'),h=g[P(0x161)]('\x0a'),j=this['detectIndentation'](h),k=b[P(0xfd)](/\r\n|\r/g,'\x0a')[P(0x161)]('\x0a'),l=c[P(0xfd)](/\r\n|\r/g,'\x0a')[P(0x161)]('\x0a'),m=new RegExp(Array[P(0x158)](d)?d[P(0x179)]('|'):d,'i'),n=[];for(let p=0x0;p<h['length'];p++){const q=h[p];if(m[P(0x172)](q)){const r=this[P(0xf7)](j,targetIndentAdjustment),s=r+q[P(0x183)]();k[P(0x149)](t=>{const Q=P;!g[Q(0xf1)](t[Q(0x183)]())&&n[Q(0x150)](this[Q(0xf7)](j,indentAdjustment)+t);}),n[P(0x150)](s),l[P(0x149)](t=>{const R=P;!g[R(0xf1)](t[R(0x183)]())&&n[R(0x150)](this['adjustIndentation'](j,indentAdjustment)+t);});}else n['push'](q);}const o=n[P(0x179)]('\x0a');a159f[P(0x11a)](a,o),Log[P(0x12c)](treeSymbol+'\x20updated\x20file\x20'+a159e[P(0x16c)](process['cwd'](),a));}catch(t){errorHandler(P(0x13d),t),process['exit'](0x1);}}[a159y(0xf7)](a,b){const S=a159y;if(b===0x0)return a;const c=a[S(0x170)]+b;return c>0x0?a[0x0]['repeat'](c):'';}[a159y(0x168)](a){const U=a159y;let b=0x0,c=0x0;a['forEach'](f=>{const T=a159d;if(f[T(0x135)]('\x20'))b++;else f[T(0x135)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[U(0x166)](a,d);return d[U(0x109)](e);}['getCommonIndentSize'](a,b){const V=a159y,c=a[V(0xf3)](d=>d&&d[V(0x135)](b))[V(0xf9)](d=>{const e=d['match'](new RegExp('^'+b+'+'));return e?e[0x0]['length']:0x0;});if(c[V(0x170)]===0x0)return 0x0;return this['calculateMode'](c);}[a159y(0x130)](a){const W=a159y,b=a['reduce']((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object['keys'](b)[W(0x125)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async['injectIntoCodeBlock']({filePath:a,content:b,begin:c,replace:replace=![]}){const X=a159y;try{if(!this[X(0x13c)][X(0x180)](a))throw new Error(X(0x165)+a);const d=a159f[X(0x14c)](a,X(0xf2)),f=d[X(0x161)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array['isArray'](c)?c:[c];for(let o=0x0;o<f[X(0x170)];o++){const p=f[o];k&&p[X(0xf1)]('{')&&j++;if(m[X(0x101)](q=>p['includes'](q))){g=o,k=!![],j++;continue;}if(k){p[X(0xf1)](b[X(0x183)]())&&(l=!![]);if(p[X(0xf1)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[X(0x141)](X(0x10a)+a),Log[X(0x141)](X(0x186)+b),Log[X(0x141)](X(0x10b)+c);throw new Error('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.');}if(l)return;let n=f['slice'](0x0,g+0x1);replace?(n[X(0x150)](b[X(0x183)]()),n[X(0x150)](f[h])):(n=n[X(0x151)](f[X(0x147)](g+0x1,h)),n['push'](b[X(0x183)]())),n=n[X(0x151)](f[X(0x147)](h+0x1)),a159f[X(0x11a)](a,n[X(0x179)]('\x0a'),X(0xf2));}catch(q){console['error']('Error\x20in\x20injectIntoCodeBlock:\x20',q);throw q;}}async['injectIntoFile']({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const Y=a159y;try{const g=await this[Y(0x13c)][Y(0x104)](a,c);if(g)return;if(!this[Y(0x13c)][Y(0x180)](a))throw Log[Y(0x141)](Y(0x15c)+JSON[Y(0x105)](a));const h=a159f[Y(0x14c)](a,'utf8');if(!Array[Y(0x158)](d))d=[d];if(!Array['isArray'](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+'[\x5cs\x5cS]*?)('+l+')','i');i=h[Y(0xfd)](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error(Y(0x12d));a159f[Y(0x11a)](a,i),Log[Y(0x12c)](treeSymbol+Y(0x11e)+a159e[Y(0x16c)](process['cwd'](),a));}catch(n){errorHandler(Y(0x15f),n),process[Y(0x134)](0x1);}}async[a159y(0x129)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const Z=a159y,e=a159f['readFileSync'](a,'utf8');let f;d?f=Z(0x137)+b+'\x20}\x20from\x20\x27'+c+Z(0x11f):f=Z(0x10c)+b+Z(0x140)+c+Z(0x11f);const g=e[Z(0x161)]('\x0a');let h=0x0,j=![];for(const l of g){if(l[Z(0xf1)](Z(0xed)+c+'\x27')||l['includes']('from\x20\x22'+c+'\x22')){const m=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(Z(0x10c)+b+Z(0x132));if(l[Z(0x182)](m)){j=!![];break;}}}if(j)return;if(injectAtStart)for(let n=0x0;n<g[Z(0x170)];n++){if(g[n][Z(0x182)](/^import .* from .*;$/)){h=n;break;}}else{for(let o=0x0;o<g[Z(0x170)];o++){g[o][Z(0x182)](/^import .* from .*;$/)&&(h=o);}h++;}g[Z(0x13b)](h,0x0,f);const k=g['join']('\x0a');a159f[Z(0x11a)](a,k,Z(0xf2));}async[a159y(0x17e)](a,b,c){const a0=a159y;let d;b[a0(0x142)][a0(0xea)]===a0(0x111)?d=this[a0(0x136)]({'pathParts':[a0(0x153),'startup','lib',a0(0x160)],'config':b}):d=this['pathFromApp']({'pathParts':[a0(0x153),'startup',a0(0x184),a0(0x160)],'config':b});const e=this[a0(0x13e)]({'pathParts':[d],'config':b}),f=a0(0xfa)+pascalCase(a)+a0(0x108)+c+'\x27;',g=await this['fsi'][a0(0x104)](e,f);!g&&this['injectAtEndOfFile']({'filePath':e,'content':f+'\x0a'});}[a159y(0xe7)]({filePath:a,content:b,lineNumber:c}){const a1=a159y;try{const d=a159f[a1(0x14c)](a)[a1(0x144)]()[a1(0x161)]('\x0a');d['splice'](c,0x0,b);const f=d[a1(0x179)]('\x0a');a159f[a1(0x11a)](a,f);}catch(g){errorHandler(a1(0x118),g),process['exit'](0x1);}}['pathFromApp']({pathParts:a,config:b}){const a2=a159y;try{if(!a)throw new Error('No\x20pathParts\x20option\x20provided');const c=this[a2(0x16d)]({'pathParts':a,'config':b}),d=this[a2(0x13c)]['findAppDirectory']();return d?a159e[a2(0x179)](d,c):'';}catch(f){errorHandler(a2(0x139),f),process[a2(0x134)](0x1);}}[a159y(0x116)]({pathParts:a,config:b}){const a3=a159y;try{const c=this['writeSourcePath']({'pathParts':a,'config':b}),d=this[a3(0x13c)][a3(0x12a)]();if(!d)throw new Error(a3(0x13f));return a159e[a3(0x179)](d,c);}catch(f){errorHandler(a3(0x123),f),process[a3(0x134)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const j=a160d,c=a();while(!![]){try{const d
|
|
1
|
+
const a160m=a160d;function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a160d(a,b);}(function(a,b){const j=a160d,c=a();while(!![]){try{const d=parseInt(j(0x1b6))/0x1+parseInt(j(0x1c8))/0x2*(-parseInt(j(0x1bc))/0x3)+-parseInt(j(0x1d0))/0x4*(parseInt(j(0x1cd))/0x5)+parseInt(j(0x1ba))/0x6+parseInt(j(0x1be))/0x7*(parseInt(j(0x1b5))/0x8)+-parseInt(j(0x1c4))/0x9+parseInt(j(0x1c6))/0xa*(parseInt(j(0x1bd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0x34f05));const a160b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a160d;if(c){const e=c[k(0x1bf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a160a=a160b(this,function(){const l=a160d;return a160a['toString']()[l(0x1b8)]('(((.+)+)+)+$')['toString']()[l(0x1ce)](a160a)[l(0x1b8)]('(((.+)+)+)+$');});a160a();import{spawn}from'child_process';import{Log}from'../log/log.class.js';export class SpawnAsync{static[a160m(0x1c0)](a,b,c){return new Promise((d,e)=>{const n=a160d,f=Log[n(0x1c0)](),g=c?.[n(0x1c7)]||'.';c?.['message']&&f['start'](c?.[n(0x1c2)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.[n(0x1cf)]?n(0x1c3):n(0x1c9)});process['on'](n(0x1b9),()=>{const o=n,i=h['pid'];i&&process[o(0x1cb)](i);}),h['on'](n(0x1b7),i=>{const p=n;console[p(0x1ca)](i);}),h['on'](n(0x1cc),()=>{c?.['message']&&f['success'](),d();}),h['on'](n(0x1c1),()=>{const q=n;c?.[q(0x1c2)]&&f[q(0x1d1)](),d();}),h['on'](n(0x1bb),()=>{const r=n;c?.[r(0x1c2)]&&f[r(0x1c5)](),e();});});}}function a160c(){const s=['verbose','8FyirJf','success','492520EMogXg','171937pleBmT','data','search','SIGINT','575130LTcesa','error','609EDiwrz','5962cGEtCE','35gnzGPS','apply','withSpinner','close','message','inherit','3439917vxzagw','failure','10090UQnwYo','cwd','4106DlVBXd','ignore','log','kill','disconnect','266715CwyYyW','constructor'];a160c=function(){return s;};return a160c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a161d,c=a();while(!![]){try{var d
|
|
1
|
+
function a161c(){var i=['15kKuVSg','899128rsKOPj','toString','2xHvrwV','5517870vMTjCI','516621BWkImG','3435966qcsdeD','7eZwUyh','6701010APWsMH','search','(((.+)+)+)+$','2724867UcziTw','10340832eEFXvt','apply'];a161c=function(){return i;};return a161c();}(function(a,b){var f=a161d,c=a();while(!![]){try{var d=-parseInt(f(0x13e))/0x1*(-parseInt(f(0x13c))/0x2)+parseInt(f(0x136))/0x3+-parseInt(f(0x13a))/0x4*(parseInt(f(0x139))/0x5)+-parseInt(f(0x13d))/0x6*(-parseInt(f(0x140))/0x7)+-parseInt(f(0x137))/0x8+-parseInt(f(0x13f))/0x9+parseInt(f(0x141))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0xa294c));var a161b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a161d;if(c){var e=c[g(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a161a=a161b(this,function(){var h=a161d;return a161a[h(0x13b)]()[h(0x142)](h(0x143))[h(0x13b)]()['constructor'](a161a)[h(0x142)](h(0x143));});a161a();function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0x136;var f=c[d];return f;},a161d(a,b);}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a162p=a162d;(function(a,b){const m=a162d,c=a();while(!![]){try{const d=parseInt(m(0x73))/0x1*(parseInt(m(0x88))/0x2)+parseInt(m(0x97))/0x3+parseInt(m(0x7f))/0x4*(parseInt(m(0x89))/0x5)+parseInt(m(0x70))/0x6+parseInt(m(0x72))/0x7*(parseInt(m(0x82))/0x8)+-parseInt(m(0x78))/0x9+-parseInt(m(0x8e))/0xa*(parseInt(m(0x83))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x5ec23));function a162c(){const x=['push','verbose','scp','user','2FVCKeB','71815UlTHpt','withSpinner','toString','host','apply','3070MMAWym','error','search','success','ping','disconnect','sshVerbose','ignore','message','153375VZrORG','source','start','4303308rZzYzC','close','49HFqjDY','205915kPwhRQ','concat','2>&1','port','tty','3405708yNtUnp','inherit','sshSync','ConnectTimeout=2','constructor','env','(((.+)+)+)+$','172xUbSoD','join','ssh','23384MgCMph','30305DFLeXv'];a162c=function(){return x;};return a162c();}const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a162d;if(c){const e=c[n(0x8d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const o=a162d;return a162a['toString']()[o(0x90)](o(0x7e))[o(0x8b)]()[o(0x7c)](a162a)['search'](o(0x7e));});a162a();import a162e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x70;let f=c[d];return f;},a162d(a,b);}export class SSH{static [a162p(0x81)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a162d,f=b['user']+'@'+b[q(0x8c)],g=a162e[q(0x80)](b['env'],b['pem']),h=c?.[q(0x77)]||![],i=c?.['sshVerbose']||![];let j=[];h&&j['push']('-t');i&&j[q(0x84)]('-v');j=j['concat'](['-o',q(0x7b),'-i',g,'-p',b[q(0x76)],f,a]);const k=Log[q(0x8a)]();c?.[q(0x96)]&&k[q(0x99)](c?.[q(0x96)]);const l=spawn(q(0x81),j,{'stdio':c?.[q(0x85)]?q(0x79):'ignore'});l['on'](q(0x93),()=>{const r=q;c?.[r(0x96)]&&k[r(0x91)](),d();}),l['on'](q(0x71),()=>{const s=q;c?.[s(0x96)]&&k[s(0x91)](),d();}),l['on'](q(0x8f),()=>{const t=q;c?.[t(0x96)]&&k['failure'](),e();});});};static [a162p(0x7a)]=(a,b,c)=>{const u=a162p,d=b['user']+'@'+b[u(0x8c)],e=a162e[u(0x80)](b['env'],b['pem']),f=c?.['tty']||![],g=c?.[u(0x94)]||![];let h=[];f&&h[u(0x84)]('-t'),g&&h[u(0x84)]('-v'),h=h[u(0x74)](['-o',u(0x7b),'-i',e,'-p',b[u(0x76)],d,a]),spawnSync(u(0x81),h,{'stdio':c?.[u(0x85)]?u(0x79):u(0x95)});};static[a162p(0x92)](a,b,c){const v=a162p,d=b[v(0x87)]+'@'+b['host'],e=a162e[v(0x80)](b[v(0x7d)],b['pem']),f=c?.[v(0x77)]||![];let g=[];f&&g['push']('-t');g=g['concat'](['-o',v(0x7b),'-i',e,'-p',b[v(0x76)],d,a,v(0x75)]);const h='ssh\x20'+g[v(0x80)]('\x20');return execSync(h)[v(0x8b)]();}static[a162p(0x86)](a,b){const w=a162p,c=b[w(0x87)]+'@'+b[w(0x8c)]+':'+a['dest'],d=a162e['join'](b[w(0x7d)],b['pem']),e=['-i',d,'-P',b[w(0x76)],a[w(0x98)],c];spawnSync(w(0x86),e,{'stdio':a[w(0x85)]?w(0x79):w(0x95)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a163d,c=a();while(!![]){try{var d
|
|
1
|
+
function a163d(a,b){var c=a163c();return a163d=function(d,e){d=d-0x12b;var f=c[d];return f;},a163d(a,b);}(function(a,b){var f=a163d,c=a();while(!![]){try{var d=-parseInt(f(0x12d))/0x1+parseInt(f(0x137))/0x2*(-parseInt(f(0x12f))/0x3)+parseInt(f(0x138))/0x4*(-parseInt(f(0x133))/0x5)+parseInt(f(0x12b))/0x6*(parseInt(f(0x134))/0x7)+parseInt(f(0x13a))/0x8+parseInt(f(0x13b))/0x9*(-parseInt(f(0x139))/0xa)+-parseInt(f(0x135))/0xb*(-parseInt(f(0x136))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0x3a901));var a163b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a163d;if(c){var e=c[g(0x130)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){var h=a163d;return a163a[h(0x131)]()[h(0x12c)](h(0x12e))[h(0x131)]()[h(0x132)](a163a)['search']('(((.+)+)+)+$');});function a163c(){var i=['apply','toString','constructor','112355EvaXRQ','2091628YcIUaY','2167JxYEjd','54204EoLocg','336146oIIwnU','44kRxeKH','1667390VIcRvE','566248ZqldnB','9kSBJvW','6hHJAhq','search','437568mYOZdY','(((.+)+)+)+$','3rczPry'];a163c=function(){return i;};return a163c();}a163a();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a164j=a164d;(function(a,b){const f=a164d,c=a();while(!![]){try{const d
|
|
1
|
+
const a164j=a164d;(function(a,b){const f=a164d,c=a();while(!![]){try{const d=parseInt(f(0x77))/0x1+-parseInt(f(0x8f))/0x2+-parseInt(f(0x86))/0x3*(parseInt(f(0x73))/0x4)+-parseInt(f(0x78))/0x5+-parseInt(f(0x79))/0x6+-parseInt(f(0x7f))/0x7+parseInt(f(0x72))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0xec60c));function a164c(){const l=['inherit','useConfig','-out','-config','3191153kkDkWs','toString','-x509','cwd','-new','search','(((.+)+)+)+$','59238iNQdzK','req','rsa:2048','push','keyName','openssl.conf','crtName','-newkey','genSSC','2218592RqAfJp','apply','26423928aYTXPH','288EenUea','-key','-nodes','csrName','1815468BSlzoz','4316755dSTjum','1800102dyuPmz','openssl'];a164c=function(){return l;};return a164c();}const a164b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a164d;if(c){const e=c[g(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a164a=a164b(this,function(){const h=a164d;return a164a[h(0x80)]()[h(0x84)](h(0x85))[h(0x80)]()['constructor'](a164a)[h(0x84)]('(((.+)+)+)+$');});a164a();import{spawnSync}from'child_process';function a164d(a,b){const c=a164c();return a164d=function(d,e){d=d-0x72;let f=c[d];return f;},a164d(a,b);}export class SSL{static['genCSR'](a){const i=a164d,b=a['cwd']?a[i(0x82)]:process[i(0x82)](),c=[i(0x87),i(0x83),i(0x8d),i(0x88),i(0x75),'-keyout',a[i(0x8a)],i(0x7d),a[i(0x76)]];a[i(0x7c)]&&(c[i(0x89)](i(0x7e)),c[i(0x89)]('openssl.conf')),a[i(0x7c)]?spawnSync(i(0x7a),c,{'cwd':b}):spawnSync(i(0x7a),c,{'stdio':i(0x7b),'cwd':b});}static[a164j(0x8e)](a){const k=a164j,b=a[k(0x82)]?a[k(0x82)]:process['cwd'](),c=['req',k(0x81),k(0x83),k(0x74),a[k(0x8a)],k(0x7d),a[k(0x8c)]];a[k(0x7c)]&&(c[k(0x89)](k(0x7e)),c[k(0x89)](k(0x8b))),a['useConfig']?spawnSync(k(0x7a),c,{'cwd':b}):spawnSync(k(0x7a),c,{'stdio':k(0x7b),'cwd':b});}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|