@maka/maka-cli 4.5.51 → 4.5.52
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/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/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/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.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/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/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.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/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/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/kit.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/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/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/options/options.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 a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(
|
|
1
|
+
function a96c(){const q=['col','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','injectAtEndOfFile','4649304QKVwMB','appPathPrefix','85827VHOlHR','resourceName','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','withValue','imports','tsx','5019488jWcmlH','mongo','import\x20\x27./collections','template','notice','353810kpgjwk','getProjectConfig','apply','create','266768EPIkHT','search','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','collection/tests.js','collections','none','maka\x20g:collection\x20todos','constructor','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','test','1655WNvFtZ','4124Ehywzc','collection/collection.js','(((.+)+)+)+$','maka:check','error','collection','startup','fsi','dir','7hGRCvA','63JYjBAY','engines','installMeteorPackage','checkMeteorPackage','688964PvHqIJ','.app-tests.','pathFromApp','toString'];a96c=function(){return q;};return a96c();}const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x138))/0x1+-parseInt(k(0x11f))/0x2+parseInt(k(0x141))/0x3+-parseInt(k(0x12a))/0x4*(parseInt(k(0x129))/0x5)+-parseInt(k(0x13f))/0x6*(-parseInt(k(0x133))/0x7)+parseInt(k(0x116))/0x8+parseInt(k(0x134))/0x9*(parseInt(k(0x11b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x7dbab));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x13b)]()[m(0x120)](m(0x12c))[m(0x13b)]()[m(0x126)](a96a)[m(0x120)](m(0x12c));});a96a();import{paramCase,pascalCase}from'change-case';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x113;let f=c[d];return f;},a96d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a96n(0x11e)]({'name':a96n(0x12f),'aliases':[a96n(0x13c)],'usage':a96n(0x143),'checkWhere':!![],'shortDesc':a96n(0x121),'validOpts':[a96n(0x132),'where'],'description':a96n(0x127),'examples':[a96n(0x125)]},async function(a,b){const o=a96n;try{const c=this['fsi'][o(0x13a)]({}),d=this[o(0x131)][o(0x11c)]();this[o(0x131)][o(0x113)](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b[p(0x142)]),'collectionName':pascalCase(b[p(0x142)]),'fileName':f,'where':b['where'],'test':d[p(0x135)][p(0x128)],'noRename':!![]};let h='js';d[p(0x135)]['js']===p(0x115)&&(h='ts');!this[p(0x131)][p(0x137)](p(0x117))&&(Log[p(0x11a)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[p(0x131)][p(0x136)]('mongo',{'cwd':c}));!this['fsi'][p(0x137)](p(0x12d))&&(Log[p(0x11a)](p(0x13d)),await this[p(0x131)][p(0x136)]('maka:check',{'cwd':c}));this['fsi'][p(0x119)]({'srcPath':p(0x12b),'destPath':this[p(0x131)]['pathFromApp']({'pathParts':[p(0x114),p(0x130),b[p(0x140)],p(0x123),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x135)][p(0x128)]!==p(0x124)&&this[p(0x131)]['template']({'srcPath':p(0x122),'destPath':this[p(0x131)][p(0x13a)]({'pathParts':[p(0x114),p(0x130),b[p(0x140)],p(0x123),b[p(0x132)],f+p(0x139)+h]}),'context':g,'config':d});const i=b[p(0x132)]?'/'+b[p(0x132)]+'/':'/',j=this['fsi'][p(0x13a)]({'pathParts':[p(0x114),p(0x130),b[p(0x140)],'index.'+d[p(0x135)]['js']]});this[p(0x131)][p(0x13e)]({'filePath':j,'content':p(0x118)+i+f+'\x27;'});});}catch(f){Log[o(0x12e)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97q=a97d;(function(a,b){const n=a97d,c=a();while(!![]){try{const d=parseInt(n(0x108))/0x1+-parseInt(n(0xfc))/0x2+parseInt(n(0xe1))/0x3+-parseInt(n(0xe6))/0x4+-parseInt(n(0xe8))/0x5*(-parseInt(n(0xe4))/0x6)+-parseInt(n(0xff))/0x7+parseInt(n(0x104))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x975d1));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a97d;if(c){const e=c[o(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const p=a97d;return a97a['toString']()['search']('(((.+)+)+)+$')[p(0xeb)]()['constructor'](a97a)[p(0xf9)](p(0x111));});a97a();function a97c(){const t=['graphql','1994424Jxybnl','withValue','baseDir','6236503aZmDbZ','resourceName','relative','fileName','api','17395544pzmrIr','rewriteDestinationPathForEngine','.css','import\x20\x27./','273421XwBUBo','test','import\x20{\x20','reflux','assign','className','apply','client','theme','(((.+)+)+)+$','engines','react','warn','imports','templates.js','startup','installNpmPackage','lib','css','string','.tests.js','ssr','pathFromProject','ramda','findAppDirectory','setTemplate','features','1589652bXRBUw','test/test.js','withTranslations','11886CaYwUA','dir','3170100iqgvJF','template','815XlhqYc','none','\x20}\x20from\x20\x27','toString','create','layouts','true','hooks','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','error','\x27;\x0a','checkNpmPackage','cssCaseName','fsi','/imports/ui/components','injectAtEndOfFile','root','search','component/component.js'];a97c=function(){return t;};return a97c();}import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xda;let f=c[d];return f;},a97d(a,b);}Generator[a97q(0xec)]({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a97q(0xfe),'values':[a97q(0xef),'components','pages',a97q(0xed)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a97q;try{const c=this['fsi'][r(0xde)](),d=b[r(0xfe)]?'/imports/ui/'+b[r(0xfe)]:r(0xf6),f=this[r(0xf5)]['pathFromApp']({'pathParts':[d,b[r(0xe5)],paramCase(b[r(0x100)]),paramCase(b[r(0x100)])]}),g=await this['fsi']['getProjectConfig']();this['fsi'][r(0xfd)](g,async()=>{const s=r;typeof g[s(0xe7)]['test']===s(0x11b)&&(g['template'][s(0x109)]=g['template'][s(0x109)]===s(0xee)?!![]:![],this[s(0xf5)]['setTemplate']('test',g[s(0xe7)]['test']));typeof g['template'][s(0x11a)]===s(0x11b)&&(g['template']['css']=g[s(0xe7)]['css']==='true'?!![]:![],this[s(0xf5)][s(0xdf)](s(0x11a),g[s(0xe7)][s(0x11a)]));typeof g['template']['js']===s(0x11b)&&(g[s(0xe7)]['js']=g[s(0xe7)]['js']===s(0xee)?!![]:![],this[s(0xf5)][s(0xdf)]('js',g[s(0xe7)]['js']));!g[s(0xe0)]&&(g[s(0xe0)]={});!b[s(0xf8)]&&!this[s(0xf5)][s(0xf3)]('ramda')&&(Log[s(0x114)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0x118)](s(0xdd),{'cwd':c}));if(!b[s(0xf8)]&&!this[s(0xf5)][s(0xf3)]('react')){Log[s(0xf1)](s(0xf0));return;}const h={'name':pascalCase(b[s(0x100)]),'myPath':a97e[s(0x101)](this['fsi'][s(0xdc)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[s(0x100)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x112)][s(0xfb)],'features':g[s(0xe0)],'client':g[s(0x112)][s(0x10f)],'api':g[s(0x112)][s(0x103)],'ssr':g['engines'][s(0xdb)],'test':g[s(0x112)][s(0x109)],'theme':g['engines'][s(0x110)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0xe0)][s(0xe3)]};this[s(0xf5)][s(0xe7)]({'srcPath':s(0xfa),'destPath':f+'.js','context':h,'framework':s(0x113),'config':g});g[s(0x112)][s(0x109)]!==s(0xe9)&&this[s(0xf5)][s(0xe7)]({'srcPath':s(0xe2),'destPath':f+s(0xda),'context':h,'framework':s(0x113),'config':g});g[s(0xe7)][s(0x11a)]&&(this[s(0xf5)][s(0xe7)]({'srcPath':'template/template.css','destPath':f+s(0x106),'context':Object[s(0x10c)]({},h,{'className':paramCase(b[s(0x100)])}),'config':g}),this[s(0xf5)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x112)]['js'],'content':s(0x107)+h[s(0xf4)]+'.'+g[s(0x112)][s(0x11a)]+'\x27;'}));const i=b['dir']?'/'+b[s(0xe5)]+'/':'/',j=''+d+i+h[s(0x102)]+'/'+h['fileName'];let k;if(g[s(0x112)][s(0xdb)]===s(0xee)){const l=this[s(0xf5)]['pathFromApp']({'pathParts':[s(0x115),s(0x117),s(0x119),s(0x116)]});k=this[s(0xf5)][s(0x105)]({'pathParts':[l],'config':g});}else{const m=this[s(0xf5)]['pathFromApp']({'pathParts':[s(0x115),s(0x117),s(0x10f),s(0x116)]});k=this[s(0xf5)][s(0x105)]({'pathParts':[m],'config':g});}g[s(0x112)]['client']==='react'||g[s(0x112)][s(0x10f)]===s(0x10b)?(g['engines']['js']==='tsx'?this['fsi']['injectAtBeginningOfFile']({'filePath':k,'content':s(0x10a)+h[s(0x10d)]+s(0xea)+j+s(0xf2)}):this[s(0xf5)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x10a)+h[s(0x10d)]+'\x20}\x20from\x20\x27'+j+'.'+g[s(0x112)]['js']+'\x27;\x0a'}),this[s(0xf5)][s(0xf7)]({'filePath':k,'content':'export\x20{\x20'+h['className']+'\x20};\x0a'})):this['fsi'][s(0xf7)]({'filePath':k,'content':'import\x20\x27'+j+'.'+g[s(0x112)]['js']+s(0xf2)});});}catch(h){Log[r(0xf1)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d
|
|
1
|
+
const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=-parseInt(h(0x135))/0x1*(-parseInt(h(0x127))/0x2)+parseInt(h(0x124))/0x3*(-parseInt(h(0x13c))/0x4)+parseInt(h(0x136))/0x5*(-parseInt(h(0x138))/0x6)+-parseInt(h(0x134))/0x7+parseInt(h(0x130))/0x8+parseInt(h(0x13b))/0x9+parseInt(h(0x125))/0xa*(parseInt(h(0x12c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x256e4));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a['toString']()[j(0x133)](j(0x137))[j(0x129)]()[j(0x139)](a98a)['search'](j(0x137));});a98a();function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x121;let f=c[d];return f;},a98d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98k(0x128)]({'name':'config','usage':a98k(0x122),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a98k(0x12b)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a98k,c=this[l(0x12e)][l(0x121)]();this[l(0x12e)][l(0x123)](c,async()=>{const m=l,d={'app':c[m(0x126)],'appFileCase':paramCase(c[m(0x126)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x12a)]),'camelCase':camelCase(b[m(0x12a)]),'userName':'ubuntu','isDocker':b[m(0x12b)]};let e=b[m(0x12a)];if(e===m(0x12d))e='development';else e==='prod'&&(e='production');const f=this[m(0x12e)][m(0x132)]({'pathParts':[m(0x13a),e,m(0x13d)]});this['fsi'][m(0x131)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x12b)]){const g=this[m(0x12e)][m(0x132)]({'pathParts':[m(0x13a),e,'process.env']});this[m(0x12e)][m(0x131)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});function a98c(){const n=['withValue','321gIAIZH','130JcytPG','appName','12102CnrlnW','create','toString','resourceName','isDocker','168157IOoHka','dev','fsi','apply','484464CaPOWb','template','pathFromProject','search','629202sMDwnc','1allTgX','5415SLwATG','(((.+)+)+)+$','234ELGKZO','constructor','config','523719vsYwus','1424vDoepY','settings.json','getProjectConfig','maka\x20{generate,\x20g}:{config}\x20<name>'];a98c=function(){return n;};return a98c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99m=a99d;(function(a,b){const j=a99d,c=a();while(!![]){try{const d=-parseInt(j(0x1b0))/0x1+-parseInt(j(0x1b3))/0x2+parseInt(j(0x1a1))/0x3+parseInt(j(0x1a7))/0x4+parseInt(j(0x1ac))/0x5*(-parseInt(j(0x1c0))/0x6)+-parseInt(j(0x1a5))/0x7+parseInt(j(0x1ae))/0x8*(parseInt(j(0x1c4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x93202));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x19a;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a99d;if(c){const e=c[k(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const l=a99d;return a99a['toString']()['search'](l(0x19c))[l(0x1b9)]()['constructor'](a99a)[l(0x1b7)](l(0x19c));});a99a();import{camelCase,paramCase,pascalCase}from'change-case';function a99c(){const p=['53085WYAbBU','sqlite','register-','800818PbLXYx','maka\x20g:dbc\x20todos\x20--type=sqlite','dbc/conn.js','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','search','getProjectConfig','toString','maka\x20g:dbc\x20azure\x20--type=mssql','template','apply','better-sqlite3','checkNpmPackage','mssql','4585080HeVSrT','injectAtEndOfFile','imports','fsi','2312478HRXsrF','create','warn','-dbc.','pgsql','server','error','(((.+)+)+)+$','installNpmPackage','pathFromApp','tsx','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','2438661QdJarg','resourceName','maka\x20g:dbc\x20geoserver\x20--type=pgsql','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','3886232EtQSYb','startup','1111516zHjdmQ','engines','dir','withValue','dbc','5dPrmEb','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','40AHMldl','dbc/config.js'];a99c=function(){return p;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a99m(0x1c5)]({'name':'dbc','usage':a99m(0x1a0),'shortDesc':a99m(0x1b6),'validOpts':[a99m(0x1a9)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':['pgsql','mssql',a99m(0x1b1)]}],'examples':[a99m(0x1a3),a99m(0x1ba),a99m(0x1b4)]},async function(a,b){const n=a99m;try{const c=await this['fsi'][n(0x1b8)](),d=this[n(0x1c3)]['pathFromApp']({}),f=paramCase(b[n(0x1a2)]),g={'name':pascalCase(b[n(0x1a2)]),'fileName':paramCase(b[n(0x1a2)]),'camelCase':camelCase(b[n(0x1a2)]),'type':b['type'],'engine':c[n(0x1a8)]['js'],'noRename':!![]};this[n(0x1c3)][n(0x1aa)](c,async()=>{const o=n;let h='js';c[o(0x1a8)]['js']===o(0x19f)&&(h='ts');b['type']===o(0x1c8)&&!this['fsi'][o(0x1be)]('pg')&&(Log[o(0x1c6)](o(0x1ad)),await this['fsi']['installNpmPackage']('pg',{'cwd':d}));b['type']===o(0x1bf)&&!this['fsi'][o(0x1be)](o(0x1bf))&&(Log['warn']('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x1c3)][o(0x19d)](o(0x1bf),{'cwd':d}));b['type']===o(0x1b1)&&!this[o(0x1c3)][o(0x1be)](o(0x1bd))&&(Log[o(0x1c6)](o(0x1a4)),await this['fsi'][o(0x19d)](o(0x1bd),{'cwd':d}));this[o(0x1c3)][o(0x1bb)]({'srcPath':o(0x1af),'destPath':this[o(0x1c3)][o(0x19e)]({'pathParts':['imports','startup','server',o(0x1ab),b[o(0x1a9)],f,'config.'+h]}),'context':g,'config':c}),this[o(0x1c3)]['template']({'srcPath':o(0x1b5),'destPath':this[o(0x1c3)][o(0x19e)]({'pathParts':[o(0x1c2),o(0x1a6),o(0x19a),'dbc',b[o(0x1a9)],f,'conn.'+h]}),'context':g,'config':c}),this[o(0x1c3)]['template']({'srcPath':'dbc/register-dbc.js','destPath':this['fsi'][o(0x19e)]({'pathParts':[o(0x1c2),o(0x1a6),'server',o(0x1b2)+f+o(0x1c7)+h]}),'context':g,'config':c});const i=this[o(0x1c3)][o(0x19e)]({'pathParts':['imports',o(0x1a6),o(0x19a),'index.'+c[o(0x1a8)]['js']]});this[o(0x1c3)][o(0x1c1)]({'filePath':i,'content':'import\x20\x27./register-'+f+'-dbc\x27;'});});}catch(h){Log[n(0x19b)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=-parseInt(f(0xc1))/0x1+parseInt(f(0xbf))/0x2*(-parseInt(f(0xca))/0x3)+-parseInt(f(0xc8))/0x4*(-parseInt(f(0xc6))/0x5)+-parseInt(f(0xb7))/0x6+-parseInt(f(0xb3))/0x7*(-parseInt(f(0xcb))/0x8)+parseInt(f(0xb2))/0x9+parseInt(f(0xd1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xb33dc));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a['toString']()[h(0xb9)](h(0xb5))[h(0xc5)]()['constructor'](a100a)[h(0xb9)](h(0xb5));});function a100c(){const l=['template','build','isFile','getProjectConfig','2LPZyqA','service','1109811YIonHT','dockerfile','maka\x20g:dockerfile','app','toString','410BHVSkB','app.tar.gz','46996LBgdGm','join','913785xwRCmq','13176EqSnGD','cert','withValue','create','fsi','appName','3876560rxWJPF','apply','7479522FVetyN','5131oUDtQI','docker/Dockerfile','(((.+)+)+)+$','getGlobalConfig','7444830ggcOGN','Dockerfile','search','maka\x20{generate,\x20g}:dockerfile'];a100c=function(){return l;};return a100c();}a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xb1;let f=c[d];return f;},a100d(a,b);}Generator[a100i(0xce)]({'name':a100i(0xc2),'usage':a100i(0xba),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a100i(0xc3)]},async function(){const j=a100i;try{const a=await this[j(0xcf)][j(0xbe)](),b=await this['fsi'][j(0xb6)](),c=this['fsi']['findProjectDirectory']();this['fsi'][j(0xcd)](a,async()=>{const k=j,d={'app':b[k(0xd0)],'config':a,'appPath':a100e['join'](c,k(0xc4)),'bundlePath':a100e[k(0xc9)](c,k(0xbc),k(0xc7)),'useCert':this['fsi'][k(0xbd)](b[k(0xcc)])};this[k(0xcf)][k(0xbb)]({'srcPath':k(0xb4),'destPath':a100e[k(0xc9)](c,k(0xb8)),'framework':k(0xc0),'context':d,'config':a});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a101c(){const u=['17646vxwhGX','apply','import\x20\x27','\x20hook...','apollo','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','9984430XeJVCR','graphql','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Creating\x20','@apollo/client\x20isomorphic-fetch','injectAtEndOfFile','tsx','hooks','features','installNpmPackage','692185VJUflm','hook/hook.js','withValue','layouts','warn','className','rewriteDestinationPathForEngine','22464baepXB','702CpQMNp','imports','\x20}\x20from\x20\x27','import\x20{\x20','error','startup','react','fsi','108osAmEt','\x20};\x0a','lib','true','dir','import\x20\x27./','9bldBoy','test/test.js','setTemplate','876327UHTSFN','@apollo/client','create','assign','templates.js','1799VFgDNd','checkNpmPackage','129252nAdixL','(((.+)+)+)+$','css','test','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','template','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','components','client','6RPoIQQ','baseDir','theme','2030006yJdjXf','engines','pathFromProject','getProjectConfig','fileName','string','maka\x20g:hook\x20cool-hook','8OpnTaW','none','pathFromApp','hook','/imports/ui/','\x27;\x0a','resourceName','constructor','withTranslations','injectAtBeginningOfFile','toString','pages','search'];a101c=function(){return u;};return a101c();}const a101r=a101d;(function(a,b){const o=a101d,c=a();while(!![]){try{const d=parseInt(o(0x139))/0x1*(parseInt(o(0x169))/0x2)+parseInt(o(0x142))/0x3*(parseInt(o(0x15c))/0x4)+-parseInt(o(0x129))/0x5*(-parseInt(o(0x152))/0x6)+parseInt(o(0x147))/0x7*(parseInt(o(0x130))/0x8)+-parseInt(o(0x13f))/0x9*(parseInt(o(0x11f))/0xa)+-parseInt(o(0x155))/0xb+-parseInt(o(0x149))/0xc*(parseInt(o(0x131))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x9a6fc));function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x11e;let f=c[d];return f;},a101d(a,b);}const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a101d;if(c){const e=c[p(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const q=a101d;return a101a[q(0x166)]()[q(0x168)](q(0x14a))['toString']()[q(0x163)](a101a)[q(0x168)]('(((.+)+)+)+$');});a101a();import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a101r(0x144)]({'name':a101r(0x15f),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a101r(0x14f),'validOpts':[{'name':a101r(0x153),'values':[a101r(0x126),a101r(0x150),a101r(0x167),a101r(0x12c)]}],'examples':[a101r(0x15b)],'description':a101r(0x14d)},async function(a,b){const s=a101r;Log['notice'](s(0x122)+b[s(0x162)]+s(0x16c));try{const c=this[s(0x138)][s(0x148)](s(0x137));if(!c){Log[s(0x135)](s(0x11e));throw new UsageError();}const d=this['fsi'][s(0x15e)](b),f=b['baseDir']?s(0x160)+b['baseDir']:'/imports/ui/hooks',g=this[s(0x138)][s(0x15e)]({'pathParts':[f,b[s(0x13d)],paramCase(b[s(0x162)]),paramCase(b['resourceName'])]}),h=await this[s(0x138)][s(0x158)]();this[s(0x138)][s(0x12b)](h,async()=>{const t=s;typeof h['template'][t(0x14b)]===t(0x15a)&&(h[t(0x14e)][t(0x14b)]=h['template'][t(0x14b)]==='true'?!![]:![],this['fsi'][t(0x141)](t(0x14b),h['template'][t(0x14b)]));h[t(0x156)][t(0x120)]===t(0x16d)&&!this[t(0x138)]['checkNpmPackage'](t(0x143))&&(Log[t(0x12d)](t(0x121)),await this[t(0x138)][t(0x128)](t(0x123),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x162)]),'camelCaseName':camelCase(b[t(0x162)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0x162)]),'graphql':h[t(0x156)][t(0x120)],'theme':h[t(0x156)][t(0x154)],'features':h[t(0x127)],'myPath':a101e['relative'](this[t(0x138)][t(0x157)]({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x127)][t(0x164)]};this[t(0x138)][t(0x14e)]({'srcPath':t(0x12a),'destPath':g+'.js','context':i,'config':h,'framework':'react'});h[t(0x14e)]['css']&&(this['fsi'][t(0x14e)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[t(0x145)]({},i,{'className':i['cssCaseName']}),'config':h}),this['fsi'][t(0x165)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x13e)+i[t(0x159)]+'.'+h[t(0x156)][t(0x14b)]+'\x27;'}));h[t(0x156)][t(0x14c)]!==t(0x15d)&&this['fsi'][t(0x14e)]({'srcPath':t(0x140),'destPath':g+'.app-tests.js','framework':'react','context':i,'config':h});const j=b[t(0x13d)]?'/'+b[t(0x13d)]+'/':'/',k=''+f+j+i[t(0x159)]+'/'+i['fileName'];let l;if(h[t(0x156)]['ssr']===t(0x13c)){const m=this[t(0x138)][t(0x15e)]({'pathParts':[t(0x132),t(0x136),t(0x13b),t(0x146)]});l=this[t(0x138)][t(0x12f)]({'pathParts':[m],'config':h});}else{const n=this[t(0x138)][t(0x15e)]({'pathParts':[t(0x132),t(0x136),t(0x151),t(0x146)]});l=this[t(0x138)][t(0x12f)]({'pathParts':[n],'config':h});}h[t(0x156)][t(0x151)]===t(0x137)?(h[t(0x156)]['js']===t(0x125)?this[t(0x138)][t(0x165)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x12e)]+t(0x133)+k+t(0x161)}):this[t(0x138)][t(0x165)]({'filePath':l,'content':t(0x134)+i['className']+'\x20}\x20from\x20\x27'+k+'.'+h[t(0x156)]['js']+t(0x161)}),this['fsi'][t(0x124)]({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x13a)})):this[t(0x138)][t(0x124)]({'filePath':l,'content':t(0x16b)+k+'.'+h[t(0x156)]['js']+t(0x161)});});}catch(i){Log[s(0x135)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0xa4))/0x1*(-parseInt(h(0x98))/0x2)+-parseInt(h(0xa2))/0x3+parseInt(h(0x94))/0x4*(-parseInt(h(0xaa))/0x5)+-parseInt(h(0x9a))/0x6*(parseInt(h(0x93))/0x7)+parseInt(h(0x9c))/0x8*(parseInt(h(0x9e))/0x9)+parseInt(h(0xa0))/0xa+-parseInt(h(0x8a))/0xb*(-parseInt(h(0xa1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x8f0ff));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x92)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x8f)]()[j(0x9b)](j(0x8b))[j(0x8f)]()[j(0x96)](a102a)[j(0x9b)](j(0x8b));});function a102c(){const n=['3108069SkjJoG','resourceName','8268130clVUdl','70068TOzvAc','2066574PHZIYh','error','2JBErvm','getProjectConfig','notice','Invalid\x20type\x20','engines','NIE','10HsDIVY','map',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','leaflet-map','1397qbjGHf','(((.+)+)+)+$','fsi','withValue','maka\x20g:kit\x20--type=map','toString','type','maka\x20g:k\x20city-map\x20--type=leaflet-map','apply','3239670CXlvjI','1703244joqGkV','kit','constructor','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','675566tqduYB','indexOf','6xmjkLR','search','8nVYWaO','login'];a102c=function(){return n;};return a102c();}function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x87;let f=c[d];return f;},a102d(a,b);}a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a102k(0x95),'aliases':['k'],'usage':a102k(0x97),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a102k(0x90)],'examples':[a102k(0x8e),a102k(0x91)]},async function(a,b){const l=a102k;try{const c=this['fsi'][l(0xa5)]();this[l(0x8c)][l(0x8d)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x9f)]),'camelCase':camelCase(b[m(0x9f)]),'type':b[m(0x90)],'engine':c[m(0xa8)]['js'],'noRename':!![]},f=[m(0x89),m(0x9d)];if(f[m(0x99)](d[m(0x90)])<0x0){const g=d[m(0x90)]?d[m(0x90)]:'(blank)';Log[m(0xa3)](m(0xa7)+g+m(0x88));return;}b[m(0x90)]===m(0x87)&&Log[m(0xa6)](m(0xa9)),b[m(0x90)]===m(0x9d)&&Log[m(0xa6)](m(0xa9));});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103q=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=parseInt(o(0x152))/0x1*(-parseInt(o(0x14c))/0x2)+-parseInt(o(0x150))/0x3+-parseInt(o(0x116))/0x4+-parseInt(o(0x112))/0x5*(-parseInt(o(0x146))/0x6)+-parseInt(o(0x145))/0x7*(-parseInt(o(0x110))/0x8)+parseInt(o(0x128))/0x9*(parseInt(o(0x10f))/0xa)+parseInt(o(0x11d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x553a5));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const p=a103d;return a103a[p(0x14d)]()[p(0x12a)]('(((.+)+)+)+$')[p(0x14d)]()[p(0x13e)](a103a)[p(0x12a)]('(((.+)+)+)+$');});a103a();import a103e from'path';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x10b;let f=c[d];return f;},a103d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103c(){const t=['react','\x20}\x20from\x20\x27','pathFromApp','10397926uHbrle','relative','.app-tests.js','withValue','withHook','warn','api','import\x20{\x20','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','className','string','2133XYRdwl','component/component.js','search','withTranslations','setTemplate','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','resourceName','checkNpmPackage','hook/hook.js','client','startup','/imports/ui/layouts','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','test','graphql','templates.js','import\x20\x27','rewriteDestinationPathForEngine','fsi','injectAtEndOfFile','installNpmPackage','export\x20{\x20','constructor','layout','Scaffolding\x20for\x20a\x20React\x20Layout.','theme','tsx','injectAtBeginningOfFile','imports','154630FyaZuK','30QhZvzn','maka\x20g:layout\x20mobile/iPhone8','engines','import\x20\x27./','lib','dir','25136DbgcCc','toString','template','.js','1979484XaIuWL','.css','55BQKFAj','test/test.js','none','withHooks','fileName','23290srEjdN','176QaRCBu','features','87940BzQYNO','\x20};\x0a','ssr','ramda','1483992JYfkPr','true','\x27;\x0a','css'];a103c=function(){return t;};return a103c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a103q(0x13f),'aliases':aliases,'usage':a103q(0x125),'shortDesc':a103q(0x140),'validOpts':[],'examples':[a103q(0x147),'maka\x20g:l\x20web/safari']},function(a,b){const r=a103q,c=r(0x133),d=this['fsi']['findAppDirectory'](),e=this[r(0x13a)][r(0x11c)]({'pathParts':[c,b[r(0x14b)],paramCase(b[r(0x12e)]),paramCase(b[r(0x12e)])]}),f=this[r(0x13a)]['getProjectConfig']();this[r(0x13a)][r(0x120)](f,()=>{const s=r;typeof f[s(0x14e)]['test']==='string'&&(f[s(0x14e)][s(0x135)]=f[s(0x14e)]['test']===s(0x117)?!![]:![],this[s(0x13a)][s(0x12c)](s(0x135),f[s(0x14e)][s(0x135)]));typeof f[s(0x14e)][s(0x119)]==='string'&&(f[s(0x14e)]['css']=f[s(0x14e)]['css']===s(0x117)?!![]:![],this['fsi'][s(0x12c)]('css',f[s(0x14e)][s(0x119)]));typeof f['template']['js']===s(0x127)&&(f[s(0x14e)]['js']=f[s(0x14e)]['js']===s(0x117)?!![]:![],this[s(0x13a)][s(0x12c)]('js',f[s(0x14e)]['js']));!f[s(0x111)]&&(f[s(0x111)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](s(0x115))&&(Log['warn'](s(0x134)),this[s(0x13a)][s(0x13c)](s(0x115),{'cwd':d}));if(h&&!this[s(0x12f)](s(0x11a))){Log[s(0x122)](s(0x12d));return;}const i={'name':pascalCase(b[s(0x12e)]),'myPath':a103e[s(0x11e)](this[s(0x13a)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[s(0x12e)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x12e)]),'fileName':paramCase(b[s(0x12e)]),'graphql':f[s(0x148)][s(0x136)],'features':f[s(0x111)],'client':f[s(0x148)][s(0x131)],'api':f[s(0x148)][s(0x123)],'ssr':f[s(0x148)][s(0x114)],'test':f['engines'][s(0x135)],'theme':f['engines'][s(0x141)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x111)][s(0x12b)]};f[s(0x111)]?.[s(0x10d)]||b[s(0x121)]?this[s(0x13a)][s(0x14e)]({'srcPath':s(0x130),'destPath':e+'.js','framework':s(0x11a),'context':i,'config':f}):this['fsi'][s(0x14e)]({'srcPath':s(0x129),'destPath':e+s(0x14f),'framework':'react','context':i,'config':f});f[s(0x148)]['test']!==s(0x10c)&&this[s(0x13a)][s(0x14e)]({'srcPath':s(0x10b),'destPath':e+s(0x11f),'framework':s(0x11a),'context':i,'config':f});f[s(0x14e)]['css']&&(this[s(0x13a)][s(0x14e)]({'srcPath':'template/template.css','destPath':e+s(0x151),'context':Object['assign']({},i,{'className':paramCase(b[s(0x12e)])}),'config':f}),this[s(0x13a)][s(0x143)]({'filePath':e+'.'+f[s(0x148)]['js'],'content':s(0x149)+i['fileName']+'.'+f[s(0x148)][s(0x119)]+'\x27;'}));const j=b[s(0x14b)]?'/'+b[s(0x14b)]+'/':'/',k=''+c+j+i[s(0x10e)]+'/'+i[s(0x10e)];let l;if(f[s(0x148)]['ssr']===s(0x117)){const m=this['fsi']['pathFromApp']({'pathParts':['imports',s(0x132),s(0x14a),s(0x137)]});l=this[s(0x13a)][s(0x139)]({'pathParts':[m],'config':f});}else{const n=this[s(0x13a)][s(0x11c)]({'pathParts':[s(0x144),'startup',s(0x131),s(0x137)]});l=this[s(0x13a)][s(0x139)]({'pathParts':[n],'config':f});}f[s(0x148)][s(0x131)]===s(0x11a)?(f[s(0x148)]['js']===s(0x142)?this[s(0x13a)][s(0x143)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x126)]+s(0x11b)+k+s(0x118)}):this['fsi'][s(0x143)]({'filePath':l,'content':s(0x124)+i[s(0x126)]+s(0x11b)+k+'.'+f[s(0x148)]['js']+s(0x118)}),this[s(0x13a)][s(0x13b)]({'filePath':l,'content':s(0x13d)+i['className']+s(0x113)})):this[s(0x13a)][s(0x13b)]({'filePath':l,'content':s(0x138)+k+'.'+f['engines']['js']+'\x27;\x0a'});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d
|
|
1
|
+
function a104c(){const j=['40CZbVHa','3097262kyMMXT','3148956fPaejb','1733643CQMAfJ','search','2612332ZCXCzr','4481360yutYhs','toString','(((.+)+)+)+$','Maka!','maka','constructor','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','maka\x20generate:api\x20Trucks','maka\x20g:hook\x20cool-hook','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','7322VknCGV','apply','801117bOIkMk','5BVDqne'];a104c=function(){return j;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1af;let f=c[d];return f;},a104d(a,b);}const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x1b9))/0x1*(-parseInt(f(0x1bd))/0x2)+-parseInt(f(0x1c0))/0x3+-parseInt(f(0x1c2))/0x4*(parseInt(f(0x1bc))/0x5)+parseInt(f(0x1bf))/0x6+parseInt(f(0x1be))/0x7+parseInt(f(0x1af))/0x8+-parseInt(f(0x1bb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x56685));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1ba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1b0)]()[h(0x1c1)](h(0x1b1))[h(0x1b0)]()[h(0x1b4)](a104a)[h(0x1c1)](h(0x1b1));});a104a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x1b3),'shortDesc':a104i(0x1b2),'validOpts':[],'description':a104i(0x1b8),'usage':a104i(0x1b5),'examples':[a104i(0x1b6),a104i(0x1b7)]},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(
|
|
1
|
+
const a105n=a105d;function a105c(){const q=['57725MuHNLY','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','95tjYXGe','create','18RJmepi','resourceName','4244298DhyQwO','apply','index.','-rpc-method.','warn','check','engines','search','checkMeteorPackage','-rpc-method\x27;','startup','appPathPrefix','fsi','7079149SEqTGN','method','maka\x20{generate,\x20g}:{method,\x20m}\x20name','270290jgMZuo','imports','2KrLhkT','getProjectConfig','check\x20ddp-rate-limiter\x20mdg:validated-method','dir','2207170aqyrdr','import\x20\x27./methods','maka\x20g:method\x20todos','161972aGYbts','toString','16oZelzo','withValue','(((.+)+)+)+$','685167oAOkyx','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','methods','error'];a105c=function(){return q;};return a105c();}(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x1a0))/0x1*(parseInt(k(0x1b8))/0x2)+parseInt(k(0x19c))/0x3+-parseInt(k(0x197))/0x4*(-parseInt(k(0x1a2))/0x5)+parseInt(k(0x1a6))/0x6+-parseInt(k(0x194))/0x7*(parseInt(k(0x199))/0x8)+parseInt(k(0x1a4))/0x9*(parseInt(k(0x1b6))/0xa)+-parseInt(k(0x1b3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x6851d));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x1a7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a[m(0x198)]()[m(0x1ad)](m(0x19b))[m(0x198)]()['constructor'](a105a)[m(0x1ad)](m(0x19b));});a105a();import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x192;let f=c[d];return f;},a105d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105n(0x1a3)]({'name':a105n(0x1b4),'aliases':['m'],'usage':a105n(0x1b5),'checkWhere':!![],'shortDesc':a105n(0x19d),'validOpts':['dir'],'examples':[a105n(0x196)]},function(a,b){const o=a105n;try{const c=this[o(0x1b2)][o(0x1b9)]();this[o(0x1b2)][o(0x19a)](c,async()=>{const p=o,d=paramCase(b[p(0x1a5)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x1a5)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x1ac)]['js']==='tsx'&&(g='ts');const h=this[p(0x1b2)]['pathFromApp']({});(!this['fsi'][p(0x1ae)](p(0x1ab))||!this[p(0x1b2)]['checkMeteorPackage']('ddp-rate-limiter')||!this[p(0x1b2)][p(0x1ae)]('mdg:validated-method'))&&(Log[p(0x1aa)](p(0x1a1)),this[p(0x1b2)]['installMeteorPackage'](p(0x192),{'cwd':h}));this[p(0x1b2)]['template']({'srcPath':'method/method.js','destPath':this[p(0x1b2)]['pathFromApp']({'pathParts':[p(0x1b7),p(0x1b0),b[p(0x1b1)],p(0x19e),b[p(0x193)],d+p(0x1a9)+g]}),'context':f,'config':c});const i=b[p(0x193)]?'/'+b['dir']+'/':'/',j=this[p(0x1b2)]['pathFromApp']({'pathParts':[p(0x1b7),p(0x1b0),b['appPathPrefix'],p(0x1a8)+c[p(0x1ac)]['js']]});this['fsi']['injectAtEndOfFile']({'filePath':j,'content':p(0x195)+i+d+p(0x1af)});});}catch(d){Log[o(0x19f)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106o=a106d;function a106c(){const s=['client','1088349cQEcFy','7hSqmwz','pathFromProject','forEach','4458280iDGjCu','(((.+)+)+)+$','relative','component','getProjectConfig','1143918pvLoZd','layout','/package.js','.js','package','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','12Dbsrmw','withValue','11656539RaJLZl','apply','package/package.js','store','theme','4169552kVeiaT','hasOwnProperty','engines','toString','template/template.js','dir','noRename','constructor','tests/server','package/','search','pathFromAppWithNoReWrite','graphql','5103816xdLMVX','package.js','resourceName','packages','fsi','features','tests/client','1PQwDAt','29989440xyhoeM','template','/client/'];a106c=function(){return s;};return a106c();}(function(a,b){const l=a106d,c=a();while(!![]){try{const d=-parseInt(l(0x10b))/0x1*(-parseInt(l(0x119))/0x2)+-parseInt(l(0x110))/0x3*(parseInt(l(0x11f))/0x4)+parseInt(l(0x114))/0x5+-parseInt(l(0x104))/0x6+parseInt(l(0x111))/0x7*(-parseInt(l(0x126))/0x8)+-parseInt(l(0x121))/0x9+parseInt(l(0x10c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xaca89));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0x129)]()[n(0x130)](n(0x115))['toString']()[n(0x12d)](a106a)[n(0x130)](n(0x115));});a106a();import a106e from'path';import{Generator}from'../generator.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x102;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a106o(0x11d),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a106o(0x11e),'validOpts':[a106o(0x12b)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a106o,c=paramCase(b[p(0x106)]),d=this[p(0x108)]['pathFromApp']({'pathParts':['packages',b['dir'],c]}),e=this[p(0x108)][p(0x102)]({'pathParts':[p(0x107),b['dir'],c,p(0x105)]}),f=this[p(0x108)][p(0x118)]();this[p(0x108)][p(0x120)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x106)]),'myPath':a106e[q(0x116)](this[q(0x108)][q(0x112)]({}),d),'cssCaseName':paramCase(b[q(0x106)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x106)]),'fileName':c,'client':f[q(0x128)][q(0x10f)],'graphql':f[q(0x128)][q(0x103)],'ssr':f[q(0x128)]['ssr'],'isComponent':b[q(0x127)](q(0x117)),'isLayout':b[q(0x127)](q(0x11a)),'isStore':b[q(0x127)](q(0x124)),'features':f[q(0x109)],'noRename':!![],'theme':f[q(0x128)][q(0x125)]};this[q(0x108)][q(0x10d)]({'srcPath':q(0x123),'destPath':e,'context':g,'config':f}),g[q(0x12c)]=![];const h=d+q(0x10e)+c+q(0x11c);this[q(0x108)]['template']({'srcPath':q(0x12a),'destPath':h,'context':g,'config':f});const i=['lib','server',q(0x10a),q(0x12e)];i[q(0x113)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x11c);this[r(0x108)][r(0x10d)]({'srcPath':r(0x12f)+j+r(0x11b),'destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107o=a107d;function a107c(){const r=['pathFromApp','page','ramda','test','test/test.js','client','imports','relative','.css','ssr','import\x20{\x20','dir','className','20678kSoviJ','lib','pathFromProject','string','none','features','withHooks','warn','html','templates.js','checkNpmPackage','installNpmPackage','55305RdujGw','withTranslations','startup','export\x20{\x20','hooks','144914HbMVXk','\x20}\x20from\x20\x27','642800svPsoM','search','fileName','rewriteDestinationPathForEngine','injectAtEndOfFile','resourceName','hook/hook.js','theme','graphql','injectAtBeginningOfFile','setTemplate','fsi','layouts','.html','baseDir','2770mSeGCs','.js','import\x20\x27./','create','vanilla','engines','.app-tests.js','maka\x20g:page\x20todos/todos-item','withHook','toString','165iLyPdk','component/component.js','543150gxLZDO','true','714840QpLRVH','tsx','api','hasOwnProperty','template','css','\x27;\x0a','pages','assign','template/template.css','components','(((.+)+)+)+$','/imports/ui/pages','318bYNDrg','import\x20\x27','96050QRRFER','Updating\x20npm\x20packages\x20...','react'];a107c=function(){return r;};return a107c();}(function(a,b){const m=a107d,c=a();while(!![]){try{const d=parseInt(m(0x1e1))/0x1+-parseInt(m(0x202))/0x2*(parseInt(m(0x1df))/0x3)+parseInt(m(0x215))/0x4+parseInt(m(0x1f2))/0x5+parseInt(m(0x1f0))/0x6*(-parseInt(m(0x213))/0x7)+-parseInt(m(0x1e3))/0x8+-parseInt(m(0x20e))/0x9*(-parseInt(m(0x224))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xa3943));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a[n(0x1de)]()['search'](n(0x1ee))['toString']()['constructor'](a107a)[n(0x216)](n(0x1ee));});a107a();import a107e from'path';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1da;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107o(0x227)]({'name':a107o(0x1f6),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a107o(0x223),'values':[a107o(0x212),a107o(0x1ed),a107o(0x1ea),a107o(0x221)]},{'name':a107o(0x1dd),'boolFlag':!![]}],'examples':[a107o(0x1dc)]},function(a,b){const p=a107o,c=b[p(0x223)]?'/imports/ui/'+b[p(0x223)]:p(0x1ef),d=this[p(0x220)][p(0x1f5)](b),e=this[p(0x220)][p(0x1f5)]({'pathParts':[c,b[p(0x200)],paramCase(b[p(0x21a)]),paramCase(b['resourceName'])]}),f=this[p(0x220)]['getProjectConfig']();this[p(0x220)]['withValue'](f,()=>{const q=p;typeof f[q(0x1e7)][q(0x20a)]===q(0x205)&&(f[q(0x1e7)][q(0x20a)]=f[q(0x1e7)]['html']==='true'?!![]:![],this[q(0x220)][q(0x21f)]('html',f['template'][q(0x20a)]));typeof f[q(0x1e7)][q(0x1f8)]===q(0x205)&&(f[q(0x1e7)]['test']=f[q(0x1e7)][q(0x1f8)]==='true'?!![]:![],this[q(0x220)][q(0x21f)](q(0x1f8),f['template']['test']));typeof f[q(0x1e7)][q(0x1e8)]===q(0x205)&&(f[q(0x1e7)]['css']=f['template'][q(0x1e8)]===q(0x1e2)?!![]:![],this[q(0x220)][q(0x21f)](q(0x1e8),f[q(0x1e7)][q(0x1e8)]));typeof f['template']['js']===q(0x205)&&(f['template']['js']=f[q(0x1e7)]['js']===q(0x1e2)?!![]:![],this[q(0x220)]['setTemplate']('js',f[q(0x1e7)]['js']));!f[q(0x207)]&&(f[q(0x207)]={});!b['root']&&!this['fsi'][q(0x20c)](q(0x1f7))&&(Log[q(0x209)](q(0x1f3)),this['fsi'][q(0x20d)](q(0x1f7),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a107e[q(0x1fc)](this[q(0x220)][q(0x204)]({}),e),'cssCaseName':paramCase(b[q(0x21a)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x21a)]),'fileName':paramCase(b[q(0x21a)]),'graphql':f[q(0x1da)][q(0x21d)],'features':f[q(0x207)],'client':f[q(0x1da)][q(0x1fa)],'api':f[q(0x1da)][q(0x1e5)],'ssr':f['engines']['ssr'],'isStore':b[q(0x1e6)]('store'),'isComponent':b[q(0x1e6)]('component'),'isLayout':b[q(0x1e6)]('layout'),'withTranslations':f['features'][q(0x20f)],'test':f[q(0x1da)][q(0x1f8)],'theme':f[q(0x1da)][q(0x21c)]};f[q(0x1e7)][q(0x20a)]&&this['fsi'][q(0x1e7)]({'srcPath':'template/template.html','destPath':e+q(0x222),'context':g,'config':f});f['features']?.[q(0x208)]||b[q(0x1dd)]?this[q(0x220)][q(0x1e7)]({'srcPath':q(0x21b),'destPath':e+q(0x225),'framework':'react','context':g,'config':f}):this[q(0x220)][q(0x1e7)]({'srcPath':q(0x1e0),'destPath':e+'.js','framework':q(0x1f4),'context':g,'config':f});f['engines']['test']!==q(0x206)&&this[q(0x220)][q(0x1e7)]({'srcPath':q(0x1f9),'destPath':e+q(0x1db),'framework':'react','context':g,'config':f});f[q(0x1e7)][q(0x1e8)]&&this[q(0x220)][q(0x1e7)]({'srcPath':q(0x1ec),'destPath':e+q(0x1fd),'context':Object[q(0x1eb)]({},g,{'className':paramCase(b[q(0x21a)])}),'config':f});f['engines'][q(0x1fa)]!==q(0x1f4)&&f['engines']['client']!==q(0x228)?(f[q(0x1e7)]['css']&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x1da)]['js'],'content':q(0x226)+g[q(0x217)]+'.'+f['engines'][q(0x20a)]+q(0x1e9)+q(0x226)+g[q(0x217)]+'.'+f[q(0x1da)]['css']+'\x27;'}),!f[q(0x1e7)][q(0x1e8)]&&this[q(0x220)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x1da)]['js'],'content':q(0x226)+g[q(0x217)]+'.'+f[q(0x1da)][q(0x20a)]+'\x27;'})):f[q(0x1e7)][q(0x1e8)]&&this['fsi'][q(0x21e)]({'filePath':e+'.'+f[q(0x1da)]['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[q(0x1da)][q(0x1e8)]+'\x27;'});const h=b[q(0x200)]?'/'+b[q(0x200)]+'/':'/',i=''+c+h+g[q(0x217)]+'/'+g[q(0x217)];let j;if(f['engines'][q(0x1fe)]==='true'){const k=this[q(0x220)]['pathFromApp']({'pathParts':[q(0x1fb),q(0x210),q(0x203),q(0x20b)]});j=this['fsi'][q(0x218)]({'pathParts':[k],'config':f});}else{const l=this[q(0x220)][q(0x1f5)]({'pathParts':[q(0x1fb),'startup','client',q(0x20b)]});j=this[q(0x220)][q(0x218)]({'pathParts':[l],'config':f});}f[q(0x1da)][q(0x1fa)]===q(0x1f4)?(f[q(0x1da)]['js']===q(0x1e4)?this[q(0x220)][q(0x21e)]({'filePath':j,'content':q(0x1ff)+g[q(0x201)]+q(0x214)+i+'\x27;\x0a'}):this[q(0x220)][q(0x21e)]({'filePath':j,'content':q(0x1ff)+g[q(0x201)]+q(0x214)+i+'.'+f[q(0x1da)]['js']+q(0x1e9)}),this['fsi'][q(0x219)]({'filePath':j,'content':q(0x211)+g[q(0x201)]+'\x20};\x0a'})):this[q(0x220)]['injectAtEndOfFile']({'filePath':j,'content':q(0x1f1)+i+'.'+f[q(0x1da)]['js']+q(0x1e9)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0x1b7))/0x1*(parseInt(h(0x1b6))/0x2)+-parseInt(h(0x1bf))/0x3*(parseInt(h(0x1b0))/0x4)+-parseInt(h(0x1bc))/0x5+parseInt(h(0x1b3))/0x6*(-parseInt(h(0x1bd))/0x7)+parseInt(h(0x1b9))/0x8+-parseInt(h(0x1ad))/0x9*(-parseInt(h(0x1b1))/0xa)+parseInt(h(0x1aa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x9323d));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x1bb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a[j(0x1ae)]()[j(0x1be)](j(0x1b4))[j(0x1ae)]()[j(0x1af)](a108a)[j(0x1be)](j(0x1b4));});function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a108d(a,b);}function a108c(){const n=['apply','5052665abZyIj','7fuBRLo','search','25851lgOqQy','templateContent','10654523WKApzF','withValue','fsi','45bpPFuO','toString','constructor','188WyKAyt','945590mwmAsL','publish','3913044UqzpWH','(((.+)+)+)+$','engines','4vvBymF','456415EKZZcl','resourceName','2529384JRoYvT','publish/publish.'];a108c=function(){return n;};return a108c();}a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator['create']({'name':a108k(0x1b2),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a108k,c=this['fsi']['getProjectConfig']();this[l(0x1ac)][l(0x1ab)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x1b8)]),'noRename':!![]};let e='js';c[m(0x1b5)]['js']==='tsx'&&(e='ts');const f=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c[m(0x1b5)]['js']]}),g=this[m(0x1ac)][m(0x1c0)]({'srcPath':m(0x1ba)+e,'context':d,'config':c});this[m(0x1ac)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d
|
|
1
|
+
const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=parseInt(x(0x1bd))/0x1+parseInt(x(0x1d8))/0x2*(-parseInt(x(0x1ef))/0x3)+parseInt(x(0x1d7))/0x4*(-parseInt(x(0x1ed))/0x5)+parseInt(x(0x1d9))/0x6+-parseInt(x(0x1da))/0x7+parseInt(x(0x1ea))/0x8+parseInt(x(0x1e1))/0x9*(parseInt(x(0x1e5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x3b3be));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0x1e6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x1f3)]()[z(0x1cb)](z(0x1bb))['toString']()['constructor'](a109a)['search']('(((.+)+)+)+$');});a109a();import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a109d(a,b);}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0x1bc)]({'name':'route','aliases':aliases,'validOpts':[a109A(0x1c7),a109A(0x1cf),'only','cwd','config','root','withHook',a109A(0x1f8),a109A(0x1f6)],'usage':a109A(0x1b7),'shortDesc':a109A(0x1bf),'examples':[a109A(0x1be),a109A(0x1c3),a109A(0x1e9),a109A(0x1f9),a109A(0x1c4)]},function(a,b){const B=a109A;try{const c=[B(0x1ba),'components','pages',B(0x1f4)];if(b['baseDir']&&!c[B(0x1c2)](b['baseDir'])){Log[B(0x1d6)](B(0x1e8)+b[B(0x1f6)]+'\x22'),Log[B(0x1d6)](B(0x1ca)+c['join'](',\x20'));throw new UsageError();}const d=this[B(0x1fe)][B(0x1fb)]();this[B(0x1fe)][B(0x1ce)](d,async()=>{const C=B,f=b[C(0x1c7)]??![];let g=paramCase(b[C(0x1cd)]),h='/'+g;a[C(0x1ee)]>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})[C(0x1e7)]('/')['toLowerCase']());g=camelCase(g);b[C(0x1cf)]&&(b['layout']=camelCase(b[C(0x1cf)]));const i=b[C(0x1f6)]?'/imports/ui/'+b[C(0x1f6)]:C(0x1c6),j=a109e[C(0x1e7)](i,b[C(0x1f0)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x1cf)]||C(0x1f2),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x1fc)][C(0x1d3)],'newForm':![],'withTranslations':d[C(0x1fd)][C(0x1e2)]};f&&(k[C(0x1cf)]='PrivateLayout');if(!b[C(0x1e0)]){const n=a109f[C(0x1dd)]('page');n&&await n[C(0x1e3)](a,b);}let l,m;if(d[C(0x1fc)]['client']===C(0x1f7)){if(d[C(0x1fc)][C(0x1eb)]===C(0x1fa)){const r=this[C(0x1fe)]['pathFromApp']({'pathParts':[C(0x1d0),C(0x1c0),C(0x1c5),C(0x1b6)]});l=this[C(0x1fe)]['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else{const s=this[C(0x1fe)][C(0x1d4)]({'pathParts':['imports',C(0x1c0),C(0x1d3),'routes.js']});l=this['fsi'][C(0x1c1)]({'pathParts':[s],'config':d});}const o=this[C(0x1fe)][C(0x1c9)](l)[C(0x1ec)]((t,u)=>{const D=C;return t[D(0x1c2)](D(0x1db))?u+0x1:null;})[C(0x1ff)](t=>t!==null);let p=this[C(0x1fe)][C(0x1c9)](l)[C(0x1ec)]((t,u)=>{const E=C;return t['includes'](E(0x1dc))?u+0x1:null;})[C(0x1ff)](t=>t!==null),q=this[C(0x1fe)]['readFileLines'](l)['map']((t,u)=>{const F=C;return t[F(0x1c2)](F(0x1d2))?u+0x1:null;})[C(0x1ff)](t=>t!==null);p[C(0x1ee)]>0x0&&q[C(0x1ee)]>0x0&&(k[C(0x1e4)]=!![]);m=this[C(0x1fe)][C(0x1b9)]({'srcPath':C(0x1b8),'framework':C(0x1f7),'context':k,'config':d});if(p['length']>0x0||q[C(0x1ee)]>0x0){this[C(0x1fe)][C(0x1f1)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x1ee)]>0x0)q=this['fsi']['readFileLines'](l)[C(0x1ec)]((t,u)=>{const G=C;return t[G(0x1c2)](G(0x1d2))?u+0x1:null;})[C(0x1ff)](t=>t!==null),this[C(0x1fe)][C(0x1f1)]({'filePath':l,'content':'\x09{'+k[C(0x1df)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this['fsi'][C(0x1c9)](l)['map']((t,u)=>{const H=C;return t[H(0x1c2)](H(0x1dc))?u+0x1:null;})[C(0x1ff)](t=>t!==null),this['fsi'][C(0x1f1)]({'filePath':l,'content':'\x09{'+k[C(0x1df)]+'}','lineNumber':p[0x0]})):Log['warn'](C(0x1d5)+l);}else{const t=this[C(0x1fe)]['readFileLines'](l)['map'](w=>{const I=C;return w[I(0x1c2)]('\x22*\x22');}),u=t[C(0x1c8)](!![])>-0x1,v=u?C(0x200):C(0x1de);this[C(0x1fe)][C(0x1cc)]({'filePath':l,'content':C(0x1f5)+m+C(0x1f5),'begin':'<Router','end':v});}}else{if(d['engines'][C(0x1d3)]===C(0x201)){const w=this[C(0x1fe)][C(0x1d4)]({'pathParts':[C(0x1d0),'startup','client',C(0x1b6)]});l=this[C(0x1fe)][C(0x1c1)]({'pathParts':[w],'config':d}),m=this['fsi'][C(0x1b9)]({'srcPath':C(0x1b8),'context':k}),this['fsi'][C(0x1d1)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x1d6)](f);}});function a109c(){const J=['lib','/imports/ui/pages','private','indexOf','readFileLines','Valid\x20options\x20are:\x20','search','injectIntoFile','resourceName','withValue','layout','imports','injectAtEndOfFile','const\x20privateRoutes\x20=\x20(<>','client','pathFromApp','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','error','320LAEaKh','4inbwnM','1305180ntUGjB','2444015NXLCDY','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','const\x20publicRoutes\x20=\x20(<>','findGenerator','</Router>','templateName','root','41166HgwsLi','withTranslations','invoke','newForm','870aZCaCz','apply','join','Invalid\x20directory\x20option\x20\x22','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','1384056mncBFH','ssr','map','19420lPNeHs','length','61413RcupXD','dir','injectAfterLineNumber','MasterLayout','toString','layouts','\x0a\x09\x09','baseDir','react','url','maka\x20g:route\x20pages/lists/listIndex\x20lists','true','getProjectConfig','engines','features','fsi','filter','<Route','vanilla','routes.js','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','route/route.js','templateContent','hooks','(((.+)+)+)+$','create','154954plYLLO','maka\x20g:route\x20todosIndex\x20todos','Scaffolding\x20for\x20a\x20Route.','startup','rewriteDestinationPathForEngine','includes','maka\x20g:route\x20todosEdit\x20todos/:id/edit','maka\x20g:route\x20pages/about'];a109c=function(){return J;};return a109c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a110m=a110d;(function(a,b){const j=a110d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
const a110m=a110d;(function(a,b){const j=a110d,c=a();while(!![]){try{const d=-parseInt(j(0x73))/0x1*(parseInt(j(0x76))/0x2)+parseInt(j(0x91))/0x3*(parseInt(j(0x8e))/0x4)+-parseInt(j(0x74))/0x5*(-parseInt(j(0x6f))/0x6)+parseInt(j(0x84))/0x7+-parseInt(j(0x72))/0x8*(parseInt(j(0x8c))/0x9)+parseInt(j(0x80))/0xa+-parseInt(j(0x85))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xe9cc8));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a110d;if(c){const e=c[k(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const l=a110d;return a110a['toString']()['search']('(((.+)+)+)+$')[l(0x6e)]()[l(0x82)](a110a)[l(0x90)](l(0x8b));});a110a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x6e;let f=c[d];return f;},a110d(a,b);}Generator['create']({'name':a110m(0x71),'aliases':['svc'],'usage':a110m(0x7f),'shortDesc':a110m(0x78),'requiredOpts':[{'name':'type','values':[a110m(0x89)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a110m(0x77)]},async function(a,b){const n=a110m;try{const c=this[n(0x7a)][n(0x7e)]();this[n(0x7a)][n(0x79)](c,async()=>{const o=n,d=this['fsi'][o(0x75)]({}),f=paramCase(b[o(0x70)]),g={'name':pascalCase(b[o(0x70)]),'fileName':f,'camelCase':camelCase(b[o(0x70)]),'type':b[o(0x7d)],'engine':c[o(0x88)]['js'],'noRename':!![]};let h='js';c[o(0x88)]['js']==='tsx'&&(h='ts');if(b['type']==='logger'){!this[o(0x7a)][o(0x8f)](o(0x7b))&&await this[o(0x7a)]['installNpmPackage']('winston\x20setimmediate',{'cwd':d,'msg':o(0x87)});const i=this[o(0x7a)][o(0x75)]({'pathParts':['imports',o(0x8d),o(0x86),'services',f+'.'+h]});await this[o(0x7a)][o(0x8a)]({'srcPath':o(0x83),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x7c)](d);}});function a110c(){const p=['fsi','winston','error','type','getProjectConfig','maka\x20{generate,\x20g}:{service}\x20<resource-name>','14243790QYuoQB','apply','constructor','service/logger/logger.js','4546913FwMelm','14602115LPSbaW','lib','Installing\x20winston','engines','logger','template','(((.+)+)+)+$','117eJQfJi','startup','956fsciQs','checkNpmPackage','search','18417kUbBiF','toString','12oEgnvv','resourceName','service','328184EMyfgz','3401oqRKlK','1568605cSMggt','pathFromApp','794gCKWFX','maka\x20g:svc\x20service-logger\x20--type=logger','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','withValue'];a110c=function(){return p;};return a110c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a111c(){var
|
|
1
|
+
function a111c(){var i=['259841sEaasI','apply','279252vVymIy','18DnZKXC','search','toString','constructor','4383512NshDiq','393580rXbOqm','2139400NvXWcz','1623384aZcdqN','(((.+)+)+)+$','5VmBWqI','2094720eFXNcy','7gCjndq'];a111c=function(){return i;};return a111c();}function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x166;var f=c[d];return f;},a111d(a,b);}(function(a,b){var f=a111d,c=a();while(!![]){try{var d=-parseInt(f(0x174))/0x1+parseInt(f(0x16e))/0x2+parseInt(f(0x167))/0x3+parseInt(f(0x172))/0x4+parseInt(f(0x171))/0x5*(-parseInt(f(0x16f))/0x6)+-parseInt(f(0x173))/0x7*(parseInt(f(0x16c))/0x8)+-parseInt(f(0x168))/0x9*(-parseInt(f(0x16d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xa7af4));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0x16a)]()[h(0x169)]('(((.+)+)+)+$')[h(0x16a)]()[h(0x16b)](a111a)[h(0x169)](h(0x170));});a111a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112l=a112d;function a112c(){const o=['5767368aaJAXx','error','79672eOxqOR','213138qyfaxt','env','_keys','apply','110fdqxJH','161dYNCLG','openssl.conf','getConfigPath','search','join','getGlobalConfig','template','sslconfig','976316kpTEyA','1034385LSSGnC','4267272HaLrMy','2101684IJsxam','fsi','getProjectConfig','create','toString','constructor','5gWrVek','withValue'];a112c=function(){return o;};return a112c();}(function(a,b){const i=a112d,c=a();while(!![]){try{const d=-parseInt(i(0xb5))/0x1+parseInt(i(0xb8))/0x2+parseInt(i(0xb6))/0x3+-parseInt(i(0xb7))/0x4*(-parseInt(i(0xbe))/0x5)+-parseInt(i(0xc0))/0x6+-parseInt(i(0xad))/0x7*(parseInt(i(0xc2))/0x8)+parseInt(i(0xc3))/0x9*(parseInt(i(0xc7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x87d44));function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xad;let f=c[d];return f;},a112d(a,b);}const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a112d;if(c){const e=c[j(0xc6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const k=a112d;return a112a[k(0xbc)]()[k(0xb0)]('(((.+)+)+)+$')[k(0xbc)]()[k(0xbd)](a112a)['search']('(((.+)+)+)+$');});a112a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a112e from'path';Generator[a112l(0xbb)]({'name':a112l(0xb4),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noResource':!![],'requiredOpts':[a112l(0xc4)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':['env']},async function(a,b){const m=a112l;try{const c=await this[m(0xb9)][m(0xba)](),d=await this[m(0xb9)][m(0xb2)](),f=this[m(0xb9)][m(0xaf)](b['env']),g=a112e[m(0xb1)](f,m(0xc5),m(0xae));await this[m(0xb9)][m(0xbf)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0xb9)][n(0xb3)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0xc1)](h);}});
|