@maka/maka-cli 4.5.31 → 4.5.33

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.
Files changed (133) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -0
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/jsdoc.js +1 -1
  73. package/bundle/obf/src/commands/lint.js +1 -1
  74. package/bundle/obf/src/commands/login.js +1 -1
  75. package/bundle/obf/src/commands/logout.js +1 -1
  76. package/bundle/obf/src/commands/logs.js +1 -1
  77. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  78. package/bundle/obf/src/commands/murder.js +1 -1
  79. package/bundle/obf/src/commands/proxy.js +1 -1
  80. package/bundle/obf/src/commands/reconfig.js +1 -1
  81. package/bundle/obf/src/commands/run/_index.js +1 -1
  82. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  83. package/bundle/obf/src/commands/run/run.command.js +1 -1
  84. package/bundle/obf/src/commands/set/_index.js +1 -1
  85. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/set.command.js +1 -1
  88. package/bundle/obf/src/commands/ssh.js +1 -1
  89. package/bundle/obf/src/commands/ssl.js +1 -1
  90. package/bundle/obf/src/commands/test.js +1 -1
  91. package/bundle/obf/src/commands/version.js +1 -1
  92. package/bundle/obf/src/error.js +1 -1
  93. package/bundle/obf/src/exec.js +1 -1
  94. package/bundle/obf/src/generator.js +1 -1
  95. package/bundle/obf/src/generators/_index.js +1 -1
  96. package/bundle/obf/src/generators/api.js +1 -1
  97. package/bundle/obf/src/generators/collection.js +1 -1
  98. package/bundle/obf/src/generators/component.js +1 -1
  99. package/bundle/obf/src/generators/config.js +1 -1
  100. package/bundle/obf/src/generators/dbc.js +1 -1
  101. package/bundle/obf/src/generators/dockerfile.js +1 -1
  102. package/bundle/obf/src/generators/hook.js +1 -1
  103. package/bundle/obf/src/generators/kit.js +1 -1
  104. package/bundle/obf/src/generators/layout.js +1 -1
  105. package/bundle/obf/src/generators/maka.gen.js +1 -1
  106. package/bundle/obf/src/generators/methods.js +1 -1
  107. package/bundle/obf/src/generators/package.js +1 -1
  108. package/bundle/obf/src/generators/page.js +1 -1
  109. package/bundle/obf/src/generators/publish.js +1 -1
  110. package/bundle/obf/src/generators/route.js +1 -1
  111. package/bundle/obf/src/generators/service.js +1 -1
  112. package/bundle/obf/src/generators/services/_index.js +1 -1
  113. package/bundle/obf/src/generators/services/openssl.js +1 -1
  114. package/bundle/obf/src/generators/services/translation.js +1 -1
  115. package/bundle/obf/src/maka.js +1 -1
  116. package/bundle/obf/src/tool.js +1 -1
  117. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  118. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  120. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  122. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  124. package/bundle/obf/src/tools/https/https.class.js +1 -1
  125. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  126. package/bundle/obf/src/tools/log/log.class.js +1 -1
  127. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  129. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  131. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  133. package/package.json +1 -1
@@ -1 +1 @@
1
- const a94y=a94d;function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x1e5;let f=c[d];return f;},a94d(a,b);}(function(a,b){const w=a94d,c=a();while(!![]){try{const d=-parseInt(w(0x210))/0x1*(-parseInt(w(0x236))/0x2)+parseInt(w(0x21c))/0x3+-parseInt(w(0x1fc))/0x4+parseInt(w(0x1e6))/0x5+-parseInt(w(0x225))/0x6*(-parseInt(w(0x206))/0x7)+-parseInt(w(0x23c))/0x8*(-parseInt(w(0x233))/0x9)+-parseInt(w(0x21b))/0xa*(parseInt(w(0x20e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x50f87));const a94b=(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;};}()),a94a=a94b(this,function(){const x=a94d;return a94a[x(0x214)]()[x(0x212)](x(0x1ff))[x(0x214)]()[x(0x1f4)](a94a)[x(0x212)](x(0x1ff));});a94a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a94e from'../generators/maka.gen.js';function a94c(){const B=['965664nHTirc','injectAtBeginningOfFile','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','(((.+)+)+)+$','typeList.push(','/imports/api','maka:check','ddp-rate-limiter','installMeteorPackage','checkMeteorPackage','7CSNuGB','TypeDefs\x20}\x20from\x20\x27','withGql','includes','Resolvers);\x0a\x0a','resolverList.push(','pathFromApp','length','33fbecDU','tsx','138819mbeHEt','RPC\x20(Methods)','search','checkbox','toString','/graphql/typeDefs','if\x20\x5c(typeList','invoke','withPubs','fixtures.','API\x20boundaries\x20to\x20create','2476550CZcmIa','504336KlgdeG','none','findGenerator','rewriteDestinationPathForEngine','api/typeDefs.js','server','apollo','options','api/api.js','1884354bQrHry','import\x20{\x20typeDefs\x20as\x20','api/publications.js','engines','Fixtures','withMethods','exit','GraphQL','withFixtures','notice','withRest','graphql','withValue','maka:rest','1179CAncpv','api/resolvers.js','template','6VMMdrA','test','publications.','No\x20API\x20boundaries\x20selected','imports','rest-api.','2792Dllpaf','api/fixtures.js','dir','fsi','api/tests.js','1858445caJBxu','rest','typeDefs.','rpc-methods.','.app-tests.','const','apiAnswers','error','startup','push','-api\x27;','maka\x20g:api\x20todos','api','injectAtEndOfFile','constructor','maka\x20{generate,\x20g}:{api}\x20<resource-name>','Publications','\x0aimport\x20{\x20resolvers\x20as\x20','mdg:validated-method','REST\x20API','\x27;\x0a','api/methods.js'];a94c=function(){return B;};return a94c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a94y(0x1f2),'aliases':['a'],'usage':a94y(0x1f5),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a94y(0x23e)],'examples':[a94y(0x1f1)]},async function(a,b){const z=a94y;try{const c=this['fsi']['getProjectConfig'](),d=[{'name':z(0x211),'value':z(0x22a)},{'name':z(0x229),'value':z(0x22d)},{'name':z(0x1f6),'value':z(0x218)}];c['engines'][z(0x1f2)]===z(0x1e7)&&d['push']({'name':z(0x1f9),'value':'withRest'});c[z(0x228)][z(0x230)]===z(0x222)&&d[z(0x1ef)]({'name':z(0x22c),'value':z(0x208)});const f={'type':z(0x213),'name':z(0x1ec),'message':z(0x21a),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x223)](f);g[z(0x20d)]===0x0&&(Log[z(0x1ed)](z(0x239)),process[z(0x22b)](0x1)),this[z(0x23f)][z(0x231)](c,async()=>{const A=z,h=this[A(0x23f)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[A(0x23e)]?'/'+b[A(0x23e)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x228)][A(0x1f2)],'graphql':c[A(0x228)][A(0x230)],'test':c[A(0x228)][A(0x237)],'noRename':!![],'withPubs':g['includes'](A(0x218)),'withFixtures':g[A(0x209)](A(0x22d)),'withMethods':g[A(0x209)]('withMethods'),'withRest':g[A(0x209)](A(0x22f))};let n='js';c[A(0x228)]['js']===A(0x20f)&&(n='ts');(!this[A(0x23f)][A(0x205)](A(0x232))||!this[A(0x23f)][A(0x205)](A(0x202))||!this[A(0x23f)][A(0x205)](A(0x203))||!this['fsi']['checkMeteorPackage'](A(0x1f8))||!this[A(0x23f)]['checkMeteorPackage']('mongo'))&&(Log[A(0x22e)]('Verifying\x20meteor\x20package\x20requirements\x20...'),await this[A(0x23f)][A(0x204)](A(0x1fe),{'cwd':h}));const o=a94e[A(0x21e)]('collection');o&&await o[A(0x217)]([j],{'config':c,'where':A(0x221)});c[A(0x228)][A(0x1f2)]===A(0x1e7)&&(m[A(0x22f)]&&this['fsi'][A(0x235)]({'srcPath':A(0x224),'destPath':this[A(0x23f)][A(0x20c)]({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,A(0x23b)+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][A(0x235)]({'srcPath':A(0x1fb),'destPath':this[A(0x23f)][A(0x20c)]({'pathParts':[A(0x23a),A(0x1f2),b['dir'],j,A(0x1e9)+n]}),'context':m,'config':c});m[A(0x22d)]&&this['fsi'][A(0x235)]({'srcPath':A(0x23d),'destPath':this[A(0x23f)][A(0x20c)]({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,A(0x219)+n]}),'context':m,'config':c});c[A(0x228)][A(0x237)]!==A(0x21d)&&this[A(0x23f)][A(0x235)]({'srcPath':A(0x1e5),'destPath':this[A(0x23f)][A(0x20c)]({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,j+A(0x1ea)+n]}),'context':m,'config':c});m[A(0x218)]&&this[A(0x23f)][A(0x235)]({'srcPath':A(0x227),'destPath':this[A(0x23f)][A(0x20c)]({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,A(0x238)+n]}),'context':m,'config':c});if(c[A(0x228)][A(0x230)]===A(0x222)){if(g['includes'](A(0x208))){const q=this['fsi'][A(0x20c)]({'pathParts':['imports',A(0x1ee),A(0x221),'index.'+c[A(0x228)]['js']]}),r=this['fsi'][A(0x21f)]({'pathParts':[q],'config':c}),s=this[A(0x23f)]['pathFromApp']({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,A(0x230),A(0x1e8)+n]}),t='/imports/api'+l+j+A(0x215);this[A(0x23f)][A(0x235)]({'srcPath':A(0x220),'destPath':s,'context':m,'config':c}),this[A(0x23f)][A(0x1fd)]({'filePath':r,'content':A(0x226)+k+A(0x207)+t+A(0x1fa)}),this[A(0x23f)]['injectIntoFile']({'filePath':r,'content':A(0x200)+k+'TypeDefs);\x0a','begin':A(0x1eb),'end':A(0x216)});const u=this['fsi']['pathFromApp']({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,A(0x230),'resolvers.'+n]}),v=A(0x201)+l+j+'/graphql/resolvers';this['fsi'][A(0x235)]({'srcPath':A(0x234),'destPath':u,'context':m,'config':c}),this[A(0x23f)][A(0x1fd)]({'filePath':r,'content':A(0x1f7)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[A(0x23f)]['injectIntoFile']({'filePath':r,'content':A(0x20b)+k+A(0x20a),'begin':A(0x1eb),'end':A(0x216)});}}this[A(0x23f)]['template']({'srcPath':'api/register-api.js','destPath':this[A(0x23f)]['pathFromApp']({'pathParts':['imports','startup',A(0x221),'register-'+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi']['pathFromApp']({'pathParts':[A(0x23a),A(0x1ee),'server','index.'+c[A(0x228)]['js']]});this[A(0x23f)][A(0x1f3)]({'filePath':p,'content':'import\x20\x27./register-'+j+A(0x1f0)});});}catch(h){console['log'](h),process[z(0x22b)](0x0);}});
1
+ const a95y=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=parseInt(w(0xfa))/0x1+-parseInt(w(0x11d))/0x2*(-parseInt(w(0xcb))/0x3)+-parseInt(w(0xde))/0x4*(parseInt(w(0xdd))/0x5)+parseInt(w(0xd8))/0x6+parseInt(w(0xeb))/0x7+parseInt(w(0xdb))/0x8+-parseInt(w(0xe2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x5f41c));const a95b=(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;};}()),a95a=a95b(this,function(){const x=a95d;return a95a[x(0xce)]()[x(0xf5)](x(0x102))['toString']()[x(0xe4)](a95a)[x(0xf5)](x(0x102));});function a95c(){const B=['apollo','imports','api','withValue','3982314RbJHVH','injectAtBeginningOfFile','invoke','server','withFixtures','includes','api/api.js','dir','.app-tests.','startup','search','Resolvers\x20}\x20from\x20\x27','api/register-api.js','exit','TypeDefs\x20}\x20from\x20\x27','447949kvyMRf','ddp-rate-limiter','register-','resolvers.','api/publications.js','findGenerator','none','Publications','(((.+)+)+)+$','collection','withPubs','rest','graphql','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','No\x20API\x20boundaries\x20selected','Verifying\x20meteor\x20package\x20requirements\x20...','fsi','/imports/api','getProjectConfig','publications.','-api.','engines','rest-api.','if\x20\x5c(typeList','REST\x20API','const','API\x20boundaries\x20to\x20create','/graphql/typeDefs','rewriteDestinationPathForEngine','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','log','installMeteorPackage','Fixtures','checkbox','maka:rest','5390GFIpin','withMethods','Resolvers);\x0a\x0a','withGql','api/resolvers.js','typeList.push(','test','injectIntoFile','363oeelYZ','maka\x20{generate,\x20g}:{api}\x20<resource-name>','GraphQL','toString','api/typeDefs.js','api/methods.js','RPC\x20(Methods)','push','\x0aimport\x20{\x20resolvers\x20as\x20','typeDefs.','length','maka\x20g:api\x20todos','import\x20\x27./register-','1498608GwyYcI','template','checkMeteorPackage','2358600EsPFXd','TypeDefs);\x0a','1758165eqRfVH','4RGwVSL','withRest','apiAnswers','import\x20{\x20typeDefs\x20as\x20','10311606nrvypC','pathFromApp','constructor','rpc-methods.','maka:check'];a95c=function(){return B;};return a95c();}a95a();function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xc7;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a95y(0xe9),'aliases':['a'],'usage':a95y(0xcc),'shortDesc':a95y(0x107),'validOpts':[a95y(0xf2)],'examples':[a95y(0xd6)]},async function(a,b){const z=a95y;try{const c=this[z(0x10a)][z(0x10c)](),d=[{'name':z(0xd1),'value':z(0x11e)},{'name':z(0x11a),'value':z(0xef)},{'name':z(0x101),'value':z(0x104)}];c[z(0x10f)][z(0xe9)]===z(0x105)&&d['push']({'name':z(0x112),'value':z(0xdf)});c[z(0x10f)][z(0x106)]===z(0xe7)&&d[z(0xd2)]({'name':z(0xcd),'value':z(0x120)});const f={'type':z(0x11b),'name':z(0xe0),'message':z(0x114),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[z(0xd5)]===0x0&&(Log['error'](z(0x108)),process[z(0xf8)](0x1)),this[z(0x10a)][z(0xea)](c,async()=>{const A=z,h=this[A(0x10a)][A(0xe3)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[A(0xf2)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][A(0xe9)],'graphql':c['engines'][A(0x106)],'test':c['engines'][A(0xc9)],'noRename':!![],'withPubs':g[A(0xf0)]('withPubs'),'withFixtures':g[A(0xf0)](A(0xef)),'withMethods':g[A(0xf0)](A(0x11e)),'withRest':g['includes'](A(0xdf))};let n='js';c[A(0x10f)]['js']==='tsx'&&(n='ts');(!this[A(0x10a)][A(0xda)](A(0x11c))||!this[A(0x10a)][A(0xda)](A(0xe6))||!this[A(0x10a)][A(0xda)](A(0xfb))||!this[A(0x10a)][A(0xda)]('mdg:validated-method')||!this[A(0x10a)][A(0xda)]('mongo'))&&(Log['notice'](A(0x109)),await this[A(0x10a)][A(0x119)](A(0x117),{'cwd':h}));const o=a95e[A(0xff)](A(0x103));o&&await o[A(0xed)]([j],{'config':c,'where':A(0xee)});c['engines'][A(0xe9)]===A(0x105)&&(m[A(0xdf)]&&this[A(0x10a)][A(0xd9)]({'srcPath':A(0xf1),'destPath':this['fsi'][A(0xe3)]({'pathParts':[A(0xe8),A(0xe9),b[A(0xf2)],j,A(0x110)+n]}),'context':m,'config':c}));m[A(0x11e)]&&this[A(0x10a)][A(0xd9)]({'srcPath':A(0xd0),'destPath':this[A(0x10a)][A(0xe3)]({'pathParts':[A(0xe8),'api',b[A(0xf2)],j,A(0xe5)+n]}),'context':m,'config':c});m['withFixtures']&&this[A(0x10a)][A(0xd9)]({'srcPath':'api/fixtures.js','destPath':this[A(0x10a)][A(0xe3)]({'pathParts':['imports',A(0xe9),b[A(0xf2)],j,'fixtures.'+n]}),'context':m,'config':c});c[A(0x10f)][A(0xc9)]!==A(0x100)&&this[A(0x10a)]['template']({'srcPath':'api/tests.js','destPath':this[A(0x10a)][A(0xe3)]({'pathParts':[A(0xe8),A(0xe9),b[A(0xf2)],j,j+A(0xf3)+n]}),'context':m,'config':c});m[A(0x104)]&&this[A(0x10a)][A(0xd9)]({'srcPath':A(0xfe),'destPath':this['fsi'][A(0xe3)]({'pathParts':['imports',A(0xe9),b[A(0xf2)],j,A(0x10d)+n]}),'context':m,'config':c});if(c[A(0x10f)][A(0x106)]===A(0xe7)){if(g[A(0xf0)](A(0x120))){const q=this[A(0x10a)][A(0xe3)]({'pathParts':['imports','startup',A(0xee),'index.'+c[A(0x10f)]['js']]}),r=this[A(0x10a)][A(0x116)]({'pathParts':[q],'config':c}),s=this[A(0x10a)]['pathFromApp']({'pathParts':[A(0xe8),'api',b[A(0xf2)],j,A(0x106),A(0xd4)+n]}),t=A(0x10b)+l+j+A(0x115);this[A(0x10a)]['template']({'srcPath':A(0xcf),'destPath':s,'context':m,'config':c}),this[A(0x10a)][A(0xec)]({'filePath':r,'content':A(0xe1)+k+A(0xf9)+t+'\x27;\x0a'}),this[A(0x10a)][A(0xca)]({'filePath':r,'content':A(0xc8)+k+A(0xdc),'begin':'const','end':A(0x111)});const u=this[A(0x10a)][A(0xe3)]({'pathParts':[A(0xe8),A(0xe9),b[A(0xf2)],j,A(0x106),A(0xfd)+n]}),v='/imports/api'+l+j+'/graphql/resolvers';this[A(0x10a)]['template']({'srcPath':A(0xc7),'destPath':u,'context':m,'config':c}),this[A(0x10a)][A(0xec)]({'filePath':r,'content':A(0xd3)+k+A(0xf6)+v+'\x27;'}),this[A(0x10a)][A(0xca)]({'filePath':r,'content':'resolverList.push('+k+A(0x11f),'begin':A(0x113),'end':'if\x20\x5c(typeList'});}}this[A(0x10a)]['template']({'srcPath':A(0xf7),'destPath':this[A(0x10a)][A(0xe3)]({'pathParts':['imports',A(0xf4),A(0xee),A(0xfc)+j+A(0x10e)+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0x10a)][A(0xe3)]({'pathParts':[A(0xe8),'startup',A(0xee),'index.'+c['engines']['js']]});this[A(0x10a)]['injectAtEndOfFile']({'filePath':p,'content':A(0xd7)+j+'-api\x27;'});});}catch(h){console[z(0x118)](h),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a95n=a95d;(function(a,b){const k=a95d,c=a();while(!![]){try{const d=-parseInt(k(0xf0))/0x1+parseInt(k(0xf2))/0x2*(parseInt(k(0xf3))/0x3)+-parseInt(k(0x10a))/0x4*(parseInt(k(0xf6))/0x5)+-parseInt(k(0x119))/0x6+parseInt(k(0x11d))/0x7+parseInt(k(0xfb))/0x8+-parseInt(k(0x105))/0x9*(-parseInt(k(0xef))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x61714));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a95d;if(c){const e=c[l(0x102)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const m=a95d;return a95a[m(0x104)]()[m(0x110)]('(((.+)+)+)+$')[m(0x104)]()[m(0xfe)](a95a)[m(0x110)](m(0x11b));});a95a();function a95c(){const q=['Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','template','collections','maka:check','search','startup','where','installMeteorPackage','dir','injectAtEndOfFile','collection/tests.js','withValue','import\x20\x27./collections','4317354AvHQIK','notice','(((.+)+)+)+$','test','1187816sBNsAL','create','139110TicaKT','20891MWaJmG','col','1421188yngmqC','3dtjrhY','imports','index.','155GXCIuC','appPathPrefix','pathFromApp','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkMeteorPackage','2351880zqTHwV','fsi','mongo','constructor','engines','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','.app-tests.','apply','collection/collection.js','toString','144kDKwxx','tsx','resourceName','collection','maka\x20g:collection\x20todos','33196WIyhhy'];a95c=function(){return q;};return a95c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xef;let f=c[d];return f;},a95d(a,b);}Generator[a95n(0x11e)]({'name':a95n(0x108),'aliases':[a95n(0xf1)],'usage':a95n(0xf9),'checkWhere':!![],'shortDesc':a95n(0x10b),'validOpts':[a95n(0x114),a95n(0x112)],'description':'\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','examples':[a95n(0x109)]},async function(a,b){const o=a95n;try{const c=this[o(0xfc)][o(0xf8)]({}),d=this[o(0xfc)]['getProjectConfig']();this[o(0xfc)][o(0x117)](d,async()=>{const p=o,f=paramCase(b[p(0x107)]),g={'name':pascalCase(b[p(0x107)]),'collectionName':pascalCase(b[p(0x107)]),'fileName':f,'where':b[p(0x112)],'test':d[p(0xff)][p(0x11c)],'noRename':!![]};let h='js';d[p(0xff)]['js']===p(0x106)&&(h='ts');!this[p(0xfc)][p(0xfa)](p(0xfd))&&(Log[p(0x11a)](p(0x100)),await this[p(0xfc)]['installMeteorPackage'](p(0xfd),{'cwd':c}));!this[p(0xfc)][p(0xfa)](p(0x10f))&&(Log[p(0x11a)](p(0x10c)),await this['fsi'][p(0x113)](p(0x10f),{'cwd':c}));this[p(0xfc)]['template']({'srcPath':p(0x103),'destPath':this[p(0xfc)][p(0xf8)]({'pathParts':[p(0xf4),p(0x111),b['appPathPrefix'],p(0x10e),b[p(0x114)],f+'.'+h]}),'context':g,'config':d});d['engines'][p(0x11c)]!=='none'&&this['fsi'][p(0x10d)]({'srcPath':p(0x116),'destPath':this[p(0xfc)][p(0xf8)]({'pathParts':['imports',p(0x111),b[p(0xf7)],'collections',b[p(0x114)],f+p(0x101)+h]}),'context':g,'config':d});const i=b[p(0x114)]?'/'+b[p(0x114)]+'/':'/',j=this[p(0xfc)][p(0xf8)]({'pathParts':['imports',p(0x111),b['appPathPrefix'],p(0xf5)+d[p(0xff)]['js']]});this['fsi'][p(0x115)]({'filePath':j,'content':p(0x118)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
1
+ const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=parseInt(k(0x135))/0x1*(-parseInt(k(0x136))/0x2)+parseInt(k(0x11c))/0x3*(parseInt(k(0x115))/0x4)+parseInt(k(0x13e))/0x5*(-parseInt(k(0x110))/0x6)+-parseInt(k(0x129))/0x7*(-parseInt(k(0x116))/0x8)+parseInt(k(0x13a))/0x9+-parseInt(k(0x134))/0xa+-parseInt(k(0x11f))/0xb*(-parseInt(k(0x112))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x64967));function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x10f;let f=c[d];return f;},a96d(a,b);}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x12c)]()[m(0x132)](m(0x113))[m(0x12c)]()[m(0x124)](a96a)[m(0x132)](m(0x113));});a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a96c(){const q=['maka\x20g:collection\x20todos','engines','imports','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','search','startup','6413500FrrhwO','230442mRUDSj','2wlvziJ','installMeteorPackage','\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','notice','262944GZCudG','appPathPrefix','template','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','76745rBsRRQ','dir','test','injectAtEndOfFile','6ckMPzj','collections','468fmEBVl','(((.+)+)+)+$','col','1395644BFaJGq','48SdykSw','create','apply','resourceName','maka:check','checkMeteorPackage','3CadvdW','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','collection/collection.js','111463RFLnko','where','collection','withValue','.app-tests.','constructor','fsi','error','import\x20\x27./collections','pathFromApp','613473yAWkKi','mongo','tsx','toString','none'];a96c=function(){return q;};return a96c();}import{Log}from'../tools/log/log.class.js';Generator[a96n(0x117)]({'name':a96n(0x121),'aliases':[a96n(0x114)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a96n(0x131),'validOpts':[a96n(0x13f),a96n(0x120)],'description':a96n(0x138),'examples':[a96n(0x12e)]},async function(a,b){const o=a96n;try{const c=this[o(0x125)]['pathFromApp']({}),d=this[o(0x125)]['getProjectConfig']();this[o(0x125)][o(0x122)](d,async()=>{const p=o,f=paramCase(b[p(0x119)]),g={'name':pascalCase(b[p(0x119)]),'collectionName':pascalCase(b[p(0x119)]),'fileName':f,'where':b['where'],'test':d[p(0x12f)][p(0x140)],'noRename':!![]};let h='js';d[p(0x12f)]['js']===p(0x12b)&&(h='ts');!this['fsi'][p(0x11b)](p(0x12a))&&(Log[p(0x139)](p(0x13d)),await this[p(0x125)][p(0x137)](p(0x12a),{'cwd':c}));!this[p(0x125)][p(0x11b)](p(0x11a))&&(Log[p(0x139)](p(0x11d)),await this[p(0x125)]['installMeteorPackage'](p(0x11a),{'cwd':c}));this[p(0x125)]['template']({'srcPath':p(0x11e),'destPath':this[p(0x125)][p(0x128)]({'pathParts':['imports',p(0x133),b[p(0x13b)],p(0x111),b[p(0x13f)],f+'.'+h]}),'context':g,'config':d});d[p(0x12f)][p(0x140)]!==p(0x12d)&&this['fsi'][p(0x13c)]({'srcPath':'collection/tests.js','destPath':this['fsi'][p(0x128)]({'pathParts':[p(0x130),p(0x133),b[p(0x13b)],p(0x111),b['dir'],f+p(0x123)+h]}),'context':g,'config':d});const i=b[p(0x13f)]?'/'+b['dir']+'/':'/',j=this[p(0x125)][p(0x128)]({'pathParts':[p(0x130),p(0x133),b[p(0x13b)],'index.'+d[p(0x12f)]['js']]});this[p(0x125)][p(0x10f)]({'filePath':j,'content':p(0x127)+i+f+'\x27;'});});}catch(f){Log[o(0x126)](f);}});
@@ -1 +1 @@
1
- const a96r=a96d;(function(a,b){const o=a96d,c=a();while(!![]){try{const d=parseInt(o(0x225))/0x1*(-parseInt(o(0x1e3))/0x2)+-parseInt(o(0x1fb))/0x3+-parseInt(o(0x21e))/0x4*(-parseInt(o(0x20d))/0x5)+parseInt(o(0x1eb))/0x6*(parseInt(o(0x1fd))/0x7)+parseInt(o(0x210))/0x8+-parseInt(o(0x20b))/0x9*(-parseInt(o(0x1f8))/0xa)+-parseInt(o(0x214))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xaf1d5));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a96d;if(c){const e=c[p(0x1f1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const q=a96d;return a96a['toString']()[q(0x1fe)](q(0x1f7))[q(0x221)]()['constructor'](a96a)['search'](q(0x1f7));});a96a();function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a96d(a,b);}import a96e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';const aliases=[a96r(0x226)];function a96c(){const u=['4218174QIyZZs','injectAtEndOfFile','7OzSrlb','search','setTemplate','relative','layouts','cssCaseName','template','checkNpmPackage','Valid\x20options\x20are:\x20','join','.tests.js','ssr','reflux','react','24570OfDeUa','import\x20{\x20','1531265CfQvZm','string','css','10719880UBsbbV','export\x20{\x20','component','getProjectConfig','1399365Vkituf','pathFromApp','.css','true','error','fsi','startup','/imports/ui/','injectAtBeginningOfFile','fileName','8uAxjHW','template/template.css','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','toString','warn','className','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','276656FUVglj','comp','create','lib','withTranslations','withValue','features','resourceName','\x27;\x0a','pages','dir','rewriteDestinationPathForEngine','4OUviUa','components','ramda','\x20};\x0a','client','templates.js','assign','Invalid\x20directory\x20option\x20\x22','1439058FhiwRI','component/component.js','baseDir','api','tsx','engines','apply','\x20}\x20from\x20\x27','imports','test','theme','none','(((.+)+)+)+$','2240EifhzD','/imports/ui/components','installNpmPackage'];a96c=function(){return u;};return a96c();}Generator[a96r(0x227)]({'name':a96r(0x212),'aliases':aliases,'usage':a96r(0x220),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[a96r(0x1ed)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const s=a96r;try{const c=['hooks',s(0x1e4),s(0x22e),s(0x201)];if(b[s(0x1ed)]&&!c['includes'](b[s(0x1ed)])){Log[s(0x218)](s(0x1ea)+b[s(0x1ed)]+'\x22'),Log[s(0x218)](s(0x205)+c[s(0x206)](',\x20'));throw new UsageError();}const d=this[s(0x219)]['findAppDirectory'](),f=b[s(0x1ed)]?s(0x21b)+b[s(0x1ed)]:s(0x1f9),g=this[s(0x219)][s(0x215)]({'pathParts':[f,b[s(0x1e1)],b[s(0x22c)],paramCase(b['resourceName'])]}),h=await this[s(0x219)][s(0x213)]();this['fsi'][s(0x22a)](h,async()=>{const t=s;typeof h[t(0x203)][t(0x1f4)]===t(0x20e)&&(h[t(0x203)][t(0x1f4)]=h[t(0x203)][t(0x1f4)]===t(0x217)?!![]:![],this['fsi']['setTemplate'](t(0x1f4),h[t(0x203)]['test']));typeof h['template'][t(0x20f)]===t(0x20e)&&(h[t(0x203)][t(0x20f)]=h[t(0x203)][t(0x20f)]===t(0x217)?!![]:![],this['fsi'][t(0x1ff)](t(0x20f),h['template'][t(0x20f)]));typeof h[t(0x203)]['js']==='string'&&(h[t(0x203)]['js']=h[t(0x203)]['js']===t(0x217)?!![]:![],this[t(0x219)][t(0x1ff)]('js',h['template']['js']));!h[t(0x22b)]&&(h[t(0x22b)]={});!b['root']&&!this[t(0x219)][t(0x204)](t(0x1e5))&&(Log[t(0x222)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x219)][t(0x1fa)]('ramda',{'cwd':d}));if(!b['root']&&!this[t(0x219)][t(0x204)](t(0x20a))){Log[t(0x218)](t(0x224));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a96e[t(0x200)](this[t(0x219)]['pathFromProject']({}),g),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x22c)]),'camelCaseName':camelCase(b[t(0x22c)]),'fileName':paramCase(b[t(0x22c)]),'graphql':h[t(0x1f0)]['graphql'],'features':h[t(0x22b)],'client':h['engines'][t(0x1e7)],'api':h['engines'][t(0x1ee)],'ssr':h[t(0x1f0)][t(0x208)],'test':h[t(0x1f0)][t(0x1f4)],'theme':h[t(0x1f0)][t(0x1f5)],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0x22b)][t(0x229)]};this[t(0x219)][t(0x203)]({'srcPath':t(0x1ec),'destPath':g+'.js','context':i,'framework':t(0x20a),'config':h});h['engines'][t(0x1f4)]!==t(0x1f6)&&this[t(0x219)][t(0x203)]({'srcPath':'test/test.js','destPath':g+t(0x207),'context':i,'framework':t(0x20a),'config':h});h[t(0x203)]['css']&&(this[t(0x219)]['template']({'srcPath':t(0x21f),'destPath':g+t(0x216),'context':Object[t(0x1e9)]({},i,{'className':paramCase(b[t(0x22c)])}),'config':h}),this[t(0x219)][t(0x21c)]({'filePath':g+'.'+h[t(0x1f0)]['js'],'content':'import\x20\x27./'+i[t(0x202)]+'.'+h[t(0x1f0)][t(0x20f)]+'\x27;'}));const j=b[t(0x1e1)]?'/'+b[t(0x1e1)]+'/':'/',k=''+f+j+i[t(0x21d)]+'/'+i[t(0x21d)];let l;if(h['engines'][t(0x208)]===t(0x217)){const m=this[t(0x219)][t(0x215)]({'pathParts':['imports','startup',t(0x228),t(0x1e8)]});l=this[t(0x219)][t(0x1e2)]({'pathParts':[m],'config':h});}else{const n=this[t(0x219)][t(0x215)]({'pathParts':[t(0x1f3),t(0x21a),t(0x1e7),t(0x1e8)]});l=this[t(0x219)][t(0x1e2)]({'pathParts':[n],'config':h});}h[t(0x1f0)][t(0x1e7)]===t(0x20a)||h[t(0x1f0)][t(0x1e7)]===t(0x209)?(h[t(0x1f0)]['js']===t(0x1ef)?this[t(0x219)][t(0x21c)]({'filePath':l,'content':t(0x20c)+i[t(0x223)]+t(0x1f2)+k+t(0x22d)}):this['fsi']['injectAtBeginningOfFile']({'filePath':l,'content':t(0x20c)+i[t(0x223)]+t(0x1f2)+k+'.'+h[t(0x1f0)]['js']+t(0x22d)}),this[t(0x219)][t(0x1fc)]({'filePath':l,'content':t(0x211)+i[t(0x223)]+t(0x1e6)})):this['fsi'][t(0x1fc)]({'filePath':l,'content':'import\x20\x27'+k+'.'+h['engines']['js']+t(0x22d)});});}catch(i){Log[s(0x218)](i);}});
1
+ const a97r=a97d;function a97c(){const u=['api','149654leqDda','pages','test','className','tsx','669436WcyTSf','1110pnjdIr','error','templates.js','checkNpmPackage','lib','true','pathFromProject','setTemplate','1203HNKMYm','(((.+)+)+)+$','installNpmPackage','client','engines','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','create','fsi','\x20}\x20from\x20\x27','imports','ramda','import\x20\x27','findAppDirectory','14771112myQaXu','react','maka\x20g:comp\x20todos/todos-item','import\x20{\x20','dir','search','apply','fileName','assign','none','.js','rewriteDestinationPathForEngine','getProjectConfig','Invalid\x20directory\x20option\x20\x22','component/component.js','components','startup','comp','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','reflux','baseDir','1301480jtztHe','2806507oPEhDh','.tests.js','pathFromApp','\x20};\x0a','graphql','features','toString','196077xaCOTY','18rBBkWr','injectAtEndOfFile','warn','css','string','injectAtBeginningOfFile','root','export\x20{\x20','ssr','/imports/ui/components','relative','import\x20\x27./','78zLZBmI','10OOpHIX','template','join','hooks','includes','layouts','resourceName','5Rbxodz','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Valid\x20options\x20are:\x20'];a97c=function(){return u;};return a97c();}(function(a,b){const o=a97d,c=a();while(!![]){try{const d=-parseInt(o(0x1f5))/0x1+parseInt(o(0x1fb))/0x2*(parseInt(o(0x203))/0x3)+parseInt(o(0x1fa))/0x4*(-parseInt(o(0x1f1))/0x5)+parseInt(o(0x1e9))/0x6*(-parseInt(o(0x1dc))/0x7)+-parseInt(o(0x1d4))/0x8*(parseInt(o(0x1dd))/0x9)+parseInt(o(0x1ea))/0xa*(-parseInt(o(0x1d5))/0xb)+parseInt(o(0x210))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x2ed4a));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a97d;if(c){const e=c[p(0x216)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const q=a97d;return a97a['toString']()[q(0x215)](q(0x204))[q(0x1db)]()['constructor'](a97a)['search']('(((.+)+)+)+$');});a97a();import a97e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a97d(a,b);}const aliases=[a97r(0x1d0)];Generator[a97r(0x209)]({'name':'component','aliases':aliases,'usage':a97r(0x1d1),'shortDesc':a97r(0x208),'validOpts':['baseDir'],'examples':[a97r(0x212)]},async function(a,b){const s=a97r;try{const c=[s(0x1ed),s(0x21f),s(0x1f6),s(0x1ef)];if(b[s(0x1d3)]&&!c[s(0x1ee)](b[s(0x1d3)])){Log[s(0x1fc)](s(0x21d)+b['baseDir']+'\x22'),Log[s(0x1fc)](s(0x1f3)+c[s(0x1ec)](',\x20'));throw new UsageError();}const d=this['fsi'][s(0x20f)](),f=b[s(0x1d3)]?'/imports/ui/'+b['baseDir']:s(0x1e6),g=this[s(0x20a)][s(0x1d7)]({'pathParts':[f,b[s(0x214)],b[s(0x1f0)],paramCase(b['resourceName'])]}),h=await this[s(0x20a)][s(0x21c)]();this[s(0x20a)]['withValue'](h,async()=>{const t=s;typeof h['template'][t(0x1f7)]===t(0x1e1)&&(h[t(0x1eb)]['test']=h['template'][t(0x1f7)]==='true'?!![]:![],this[t(0x20a)][t(0x202)]('test',h[t(0x1eb)][t(0x1f7)]));typeof h['template']['css']===t(0x1e1)&&(h['template']['css']=h['template']['css']===t(0x200)?!![]:![],this[t(0x20a)][t(0x202)](t(0x1e0),h[t(0x1eb)]['css']));typeof h['template']['js']==='string'&&(h[t(0x1eb)]['js']=h[t(0x1eb)]['js']===t(0x200)?!![]:![],this[t(0x20a)]['setTemplate']('js',h[t(0x1eb)]['js']));!h[t(0x1da)]&&(h[t(0x1da)]={});!b[t(0x1e3)]&&!this[t(0x20a)][t(0x1fe)](t(0x20d))&&(Log[t(0x1df)](t(0x1f2)),await this['fsi'][t(0x205)](t(0x20d),{'cwd':d}));if(!b['root']&&!this[t(0x20a)]['checkNpmPackage']('react')){Log[t(0x1fc)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x1f0)]),'myPath':a97e[t(0x1e7)](this[t(0x20a)][t(0x201)]({}),g),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1f0)]),'fileName':paramCase(b[t(0x1f0)]),'graphql':h[t(0x207)][t(0x1d9)],'features':h['features'],'client':h[t(0x207)][t(0x206)],'api':h[t(0x207)][t(0x1f4)],'ssr':h[t(0x207)][t(0x1e5)],'test':h[t(0x207)][t(0x1f7)],'theme':h[t(0x207)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0x1da)]['withTranslations']};this[t(0x20a)][t(0x1eb)]({'srcPath':t(0x21e),'destPath':g+t(0x21a),'context':i,'framework':t(0x211),'config':h});h['engines']['test']!==t(0x219)&&this['fsi']['template']({'srcPath':'test/test.js','destPath':g+t(0x1d6),'context':i,'framework':t(0x211),'config':h});h[t(0x1eb)][t(0x1e0)]&&(this[t(0x20a)][t(0x1eb)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[t(0x218)]({},i,{'className':paramCase(b[t(0x1f0)])}),'config':h}),this[t(0x20a)][t(0x1e2)]({'filePath':g+'.'+h[t(0x207)]['js'],'content':t(0x1e8)+i['cssCaseName']+'.'+h[t(0x207)][t(0x1e0)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x214)]+'/':'/',k=''+f+j+i[t(0x217)]+'/'+i['fileName'];let l;if(h['engines']['ssr']==='true'){const m=this[t(0x20a)][t(0x1d7)]({'pathParts':[t(0x20c),t(0x220),t(0x1ff),t(0x1fd)]});l=this[t(0x20a)][t(0x21b)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x1d7)]({'pathParts':['imports',t(0x220),'client',t(0x1fd)]});l=this[t(0x20a)][t(0x21b)]({'pathParts':[n],'config':h});}h[t(0x207)][t(0x206)]===t(0x211)||h['engines'][t(0x206)]===t(0x1d2)?(h[t(0x207)]['js']===t(0x1f9)?this[t(0x20a)][t(0x1e2)]({'filePath':l,'content':t(0x213)+i[t(0x1f8)]+t(0x20b)+k+'\x27;\x0a'}):this['fsi'][t(0x1e2)]({'filePath':l,'content':t(0x213)+i[t(0x1f8)]+t(0x20b)+k+'.'+h['engines']['js']+'\x27;\x0a'}),this[t(0x20a)]['injectAtEndOfFile']({'filePath':l,'content':t(0x1e4)+i[t(0x1f8)]+t(0x1d8)})):this[t(0x20a)][t(0x1de)]({'filePath':l,'content':t(0x20e)+k+'.'+h[t(0x207)]['js']+'\x27;\x0a'});});}catch(i){Log[s(0x1fc)](i);}});
@@ -1 +1 @@
1
- const a97k=a97d;(function(a,b){const h=a97d,c=a();while(!![]){try{const d=-parseInt(h(0xb0))/0x1+-parseInt(h(0x9f))/0x2*(-parseInt(h(0xa5))/0x3)+parseInt(h(0x98))/0x4*(parseInt(h(0xaa))/0x5)+parseInt(h(0xb3))/0x6+-parseInt(h(0xad))/0x7+-parseInt(h(0x96))/0x8+parseInt(h(0x94))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x3ed71));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a97d;if(c){const e=c[i(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const j=a97d;return a97a['toString']()[j(0xa2)](j(0xa0))[j(0xa7)]()[j(0x9a)](a97a)[j(0xa2)](j(0xa0));});function a97c(){const n=['config','1026768gYfWlQ','appName','33140iBkBKU','fsi','constructor','apply','pathFromProject','resourceName','process.env','918EEvinR','(((.+)+)+)+$','dev','search','settings.json','withValue','1581kwdmit','Generate\x20configuration\x20settings.','toString','config/process.env','maka\x20{generate,\x20g}:{config}\x20<name>','65cwWBWx','template','development','2982182OfwziK','maka\x20g:config\x20production','isDocker','398990SPJZDM','getProjectConfig','prod','762720OlwDEs','6606333oibleA'];a97c=function(){return n;};return a97c();}a97a();import{Generator}from'../generator.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x94;let f=c[d];return f;},a97d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a97k(0x95),'usage':a97k(0xa9),'shortDesc':a97k(0xa6),'validOpts':[a97k(0xaf)],'examples':[a97k(0xae)]},function(a,b){const l=a97k,c=this[l(0x99)][l(0xb1)]();this[l(0x99)][l(0xa4)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x97)]),'name':pascalCase(b[m(0x9d)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x9d)]),'userName':'ubuntu','isDocker':b[m(0xaf)]};let e=a[0x0];if(e===m(0xa1))e=m(0xac);else e===m(0xb2)&&(e='production');const f=this[m(0x99)][m(0x9c)]({'pathParts':['config',e,m(0xa3)]});this[m(0x99)][m(0xab)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0xaf)]){const g=this[m(0x99)]['pathFromProject']({'pathParts':[m(0x95),e,m(0x9e)]});this['fsi'][m(0xab)]({'srcPath':m(0xa8),'destPath':g,'context':d,'config':c});}});});
1
+ function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x15d;let f=c[d];return f;},a98d(a,b);}const a98j=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=parseInt(h(0x17a))/0x1*(parseInt(h(0x17d))/0x2)+parseInt(h(0x167))/0x3+-parseInt(h(0x179))/0x4+-parseInt(h(0x163))/0x5*(parseInt(h(0x165))/0x6)+-parseInt(h(0x171))/0x7+parseInt(h(0x16c))/0x8*(-parseInt(h(0x173))/0x9)+parseInt(h(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x709b4));const a98b=(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;};}()),a98a=a98b(this,function(){const i=a98d;return a98a['toString']()['search']('(((.+)+)+)+$')[i(0x174)]()[i(0x168)](a98a)[i(0x16a)](i(0x177));});a98a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98j(0x178)]({'name':a98j(0x162),'usage':a98j(0x166),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a98j(0x16f)],'examples':[a98j(0x160)]},function(a,b){const k=a98j,c=this[k(0x175)][k(0x15e)]();this['fsi'][k(0x164)](c,async()=>{const l=k,d={'app':c[l(0x17b)],'appFileCase':paramCase(c[l(0x17b)]),'name':pascalCase(b[l(0x15d)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'userName':l(0x16e),'isDocker':b[l(0x16f)]};let e=a[0x0];if(e===l(0x15f))e='development';else e===l(0x16d)&&(e=l(0x17c));const f=this[l(0x175)][l(0x169)]({'pathParts':['config',e,l(0x172)]});this[l(0x175)][l(0x176)]({'srcPath':l(0x161),'destPath':f,'context':d,'config':c});if(!b[l(0x16f)]){const g=this[l(0x175)][l(0x169)]({'pathParts':[l(0x162),e,l(0x16b)]});this[l(0x175)][l(0x176)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});function a98c(){const m=['prod','ubuntu','isDocker','13146150RYVhGO','2035271zQmvom','settings.json','107613rVZgtm','toString','fsi','template','(((.+)+)+)+$','create','652240BHNZFx','856rAxGLA','appName','production','2110BTeFVQ','resourceName','getProjectConfig','dev','maka\x20g:config\x20production','config/settings.json','config','40yKvVtI','withValue','580494KLdBHI','maka\x20{generate,\x20g}:{config}\x20<name>','1032621OtqcaJ','constructor','pathFromProject','search','process.env','584eYVcQo'];a98c=function(){return m;};return a98c();}
@@ -1 +1 @@
1
- const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x205))/0x1*(-parseInt(n(0x1db))/0x2)+-parseInt(n(0x206))/0x3+parseInt(n(0x1fb))/0x4+parseInt(n(0x1fc))/0x5*(-parseInt(n(0x1df))/0x6)+parseInt(n(0x1de))/0x7+-parseInt(n(0x1fa))/0x8*(-parseInt(n(0x1e5))/0x9)+-parseInt(n(0x1ef))/0xa*(parseInt(n(0x1da))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x3de41));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a['toString']()[p(0x1e9)](p(0x1fd))[p(0x1d3)]()[p(0x1e7)](a98a)[p(0x1e9)](p(0x1fd));});a98a();import{camelCase,paramCase,pascalCase}from'change-case';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1d2;let f=c[d];return f;},a98d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a98c(){const t=[',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','index.','3267bDAJDt','4uEkiZs','installNpmPackage','dbc/conn.js','3213413qOGxAr','6aOxmrP','apply','pgsql','maka\x20g:dbc\x20geoserver\x20--type=pgsql','Invalid\x20type\x20','getProjectConfig','1467ZTvjGZ','error','constructor','conn.','search','engines','dbAnswer','startup','maka\x20g:dbc\x20azure\x20--type=mssql','imports','35040SPoRLO','-dbc\x27;','-dbc.','fsi','pathFromApp','server','options','(blank)','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','better-sqlite3','resourceName','12616OAdYqx','1833476GUJqcI','801000ykQFJP','(((.+)+)+)+$','warn','dbc/config.js','withValue','list','checkNpmPackage','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','maka\x20g:dbc\x20todos\x20--type=sqlite','160193MmbJUD','121416BuCFNs','dir','template','mssql','toString','PostgreSQL','dbc','type'];a98c=function(){return t;};return a98c();}Generator['create']({'name':a98q(0x1d5),'usage':a98q(0x203),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a98q(0x1d6),a98q(0x207)],'examples':[a98q(0x1e2),a98q(0x1ed),a98q(0x204)]},async function(a,b){const r=a98q;try{const c=await this[r(0x1f2)][r(0x1e4)](),d=this['fsi'][r(0x1f3)]({}),f=paramCase(b[r(0x1f9)]);if(!b[r(0x1d6)]){const h={'type':r(0x201),'name':r(0x1eb),'message':'DB\x20Driver','choices':[{'name':r(0x1d4),'value':r(0x1e1)},{'name':'MS\x20SQL','value':r(0x1d2)}]},{dbAnswer:i}=await Actions[r(0x1f5)](h);i&&(b[r(0x1d6)]=i);}const g={'name':pascalCase(b[r(0x1f9)]),'fileName':paramCase(b[r(0x1f9)]),'camelCase':camelCase(b[r(0x1f9)]),'type':b[r(0x1d6)],'engine':c['engines']['js'],'noRename':!![]};this['fsi'][r(0x200)](c,async()=>{const s=r;let j='js';c[s(0x1ea)]['js']==='tsx'&&(j='ts');const k=[s(0x1d2),s(0x1e1)];if(k['indexOf'](g['type'])<0x0){const m=g[s(0x1d6)]?g[s(0x1d6)]:s(0x1f6);Log['error'](s(0x1e3)+m+s(0x1d7));return;}b[s(0x1d6)]===s(0x1e1)&&!this[s(0x1f2)][s(0x202)]('pg')&&(Log[s(0x1fe)](s(0x1f7)),await this[s(0x1f2)][s(0x1dc)]('pg',{'cwd':d}));b[s(0x1d6)]===s(0x1d2)&&!this[s(0x1f2)]['checkNpmPackage']('mssql')&&(Log['warn']('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0x1dc)](s(0x1d2),{'cwd':d}));b[s(0x1d6)]==='sqlite'&&!this[s(0x1f2)][s(0x202)](s(0x1f8))&&(Log['warn'](s(0x1d8)),await this[s(0x1f2)][s(0x1dc)]('better-sqlite3',{'cwd':d}));this[s(0x1f2)][s(0x208)]({'srcPath':s(0x1ff),'destPath':this[s(0x1f2)][s(0x1f3)]({'pathParts':[s(0x1ee),'startup',s(0x1f4),s(0x1d5),b['dir'],f,'config.'+j]}),'context':g,'config':c}),this[s(0x1f2)][s(0x208)]({'srcPath':s(0x1dd),'destPath':this[s(0x1f2)][s(0x1f3)]({'pathParts':[s(0x1ee),s(0x1ec),s(0x1f4),'dbc',b[s(0x207)],f,s(0x1e8)+j]}),'context':g,'config':c}),this[s(0x1f2)][s(0x208)]({'srcPath':'dbc/register-dbc.js','destPath':this['fsi']['pathFromApp']({'pathParts':[s(0x1ee),s(0x1ec),'server','register-'+f+s(0x1f1)+j]}),'context':g,'config':c});const l=this['fsi'][s(0x1f3)]({'pathParts':[s(0x1ee),s(0x1ec),s(0x1f4),s(0x1d9)+c[s(0x1ea)]['js']]});this[s(0x1f2)]['injectAtEndOfFile']({'filePath':l,'content':'import\x20\x27./register-'+f+s(0x1f0)});});}catch(j){Log[r(0x1e6)](j);}});
1
+ const a99q=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0x1a9))/0x1*(-parseInt(n(0x1a0))/0x2)+-parseInt(n(0x1b1))/0x3+-parseInt(n(0x1ae))/0x4*(parseInt(n(0x1ad))/0x5)+parseInt(n(0x19d))/0x6*(-parseInt(n(0x1b2))/0x7)+-parseInt(n(0x1b4))/0x8+parseInt(n(0x188))/0x9*(-parseInt(n(0x1aa))/0xa)+-parseInt(n(0x18e))/0xb*(-parseInt(n(0x185))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xc7253));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x1a6)]()['search'](p(0x1b0))[p(0x1a6)]()[p(0x19a)](a99a)['search'](p(0x1b0));});a99a();function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x182;let f=c[d];return f;},a99d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a99c(){const t=['type','66479941UsYOfR','maka\x20g:dbc\x20todos\x20--type=sqlite','dbc','template','config.','import\x20\x27./register-','better-sqlite3','PostgreSQL','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','fsi','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','getProjectConfig','constructor','apply','list','6WMVfLK','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','engines','951330HjBApk','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','resourceName','pgsql','-dbc\x27;','warn','toString','sqlite','dbc/register-dbc.js','2LsWeRO','600MVHhkA','installNpmPackage','Invalid\x20type\x20','22510shUpCl','668lsiWQN','server','(((.+)+)+)+$','2431398lwiHeK','10256414kCZmbU','checkNpmPackage','3731200OTkIFw','MS\x20SQL','pathFromApp','error','(blank)','tsx','dir','mssql','12HMDugb','create','startup','117405XLlXVP','withValue','maka\x20g:dbc\x20geoserver\x20--type=pgsql','register-','imports'];a99c=function(){return t;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a99q(0x186)]({'name':a99q(0x190),'usage':a99q(0x198),'shortDesc':a99q(0x1a1),'validOpts':[a99q(0x18d),a99q(0x183)],'examples':[a99q(0x18a),'maka\x20g:dbc\x20azure\x20--type=mssql',a99q(0x18f)]},async function(a,b){const r=a99q;try{const c=await this['fsi'][r(0x199)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b[r(0x1a2)]);if(!b[r(0x18d)]){const h={'type':r(0x19c),'name':'dbAnswer','message':'DB\x20Driver','choices':[{'name':r(0x195),'value':r(0x1a3)},{'name':r(0x1b5),'value':'mssql'}]},{dbAnswer:i}=await Actions['options'](h);i&&(b[r(0x18d)]=i);}const g={'name':pascalCase(b[r(0x1a2)]),'fileName':paramCase(b[r(0x1a2)]),'camelCase':camelCase(b[r(0x1a2)]),'type':b[r(0x18d)],'engine':c[r(0x19f)]['js'],'noRename':!![]};this[r(0x197)][r(0x189)](c,async()=>{const s=r;let j='js';c['engines']['js']===s(0x182)&&(j='ts');const k=[s(0x184),'pgsql'];if(k['indexOf'](g['type'])<0x0){const m=g[s(0x18d)]?g[s(0x18d)]:s(0x1b8);Log[s(0x1b7)](s(0x1ac)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x18d)]===s(0x1a3)&&!this[s(0x197)]['checkNpmPackage']('pg')&&(Log['warn'](s(0x19e)),await this[s(0x197)][s(0x1ab)]('pg',{'cwd':d}));b[s(0x18d)]===s(0x184)&&!this[s(0x197)][s(0x1b3)](s(0x184))&&(Log[s(0x1a5)](s(0x196)),await this[s(0x197)][s(0x1ab)]('mssql',{'cwd':d}));b['type']===s(0x1a7)&&!this[s(0x197)]['checkNpmPackage'](s(0x194))&&(Log[s(0x1a5)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x197)][s(0x1ab)](s(0x194),{'cwd':d}));this['fsi'][s(0x191)]({'srcPath':'dbc/config.js','destPath':this['fsi']['pathFromApp']({'pathParts':['imports',s(0x187),s(0x1af),s(0x190),b[s(0x183)],f,s(0x192)+j]}),'context':g,'config':c}),this[s(0x197)][s(0x191)]({'srcPath':'dbc/conn.js','destPath':this[s(0x197)][s(0x1b6)]({'pathParts':[s(0x18c),s(0x187),s(0x1af),s(0x190),b[s(0x183)],f,'conn.'+j]}),'context':g,'config':c}),this[s(0x197)]['template']({'srcPath':s(0x1a8),'destPath':this[s(0x197)][s(0x1b6)]({'pathParts':['imports',s(0x187),'server',s(0x18b)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x197)][s(0x1b6)]({'pathParts':[s(0x18c),s(0x187),s(0x1af),'index.'+c[s(0x19f)]['js']]});this['fsi']['injectAtEndOfFile']({'filePath':l,'content':s(0x193)+f+s(0x1a4)});});}catch(j){Log[r(0x1b7)](j);}});
@@ -1 +1 @@
1
- function a99c(){const l=['9792eoMNuE','search','152140koHyXb','2owRlFy','537429aPbCSZ','(((.+)+)+)+$','6460643CGfGuK','isFile','apply','20295WtHQjd','1234213AuWPvL','dockerfile','1850ByucTG','build','getGlobalConfig','getProjectConfig','8LlnGNP','cert','fsi','appName','withValue','error','join','16775dBWEPL','toString','template','docker/Dockerfile','16eJOCOT','2329008rtpbID','maka\x20{generate,\x20g}:dockerfile','constructor'];a99c=function(){return l;};return a99c();}const a99i=a99d;(function(a,b){const f=a99d,c=a();while(!![]){try{const d=parseInt(f(0x208))/0x1*(parseInt(f(0x201))/0x2)+-parseInt(f(0x202))/0x3*(-parseInt(f(0x1fa))/0x4)+parseInt(f(0x200))/0x5+parseInt(f(0x1fb))/0x6+parseInt(f(0x204))/0x7*(-parseInt(f(0x1ef))/0x8)+-parseInt(f(0x207))/0x9*(-parseInt(f(0x20a))/0xa)+-parseInt(f(0x1f6))/0xb*(parseInt(f(0x1fe))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x972c7));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x1ed;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a99d;if(c){const e=c[g(0x206)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const h=a99d;return a99a[h(0x1f7)]()[h(0x1ff)](h(0x203))[h(0x1f7)]()[h(0x1fd)](a99a)[h(0x1ff)]('(((.+)+)+)+$');});a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a99e from'path';Generator['create']({'name':a99i(0x209),'usage':a99i(0x1fc),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a99i;try{const a=await this['fsi'][j(0x1ee)](),b=await this[j(0x1f1)][j(0x1ed)](),c=this[j(0x1f1)]['findProjectDirectory']();this['fsi'][j(0x1f3)](a,async()=>{const k=j,d={'app':b[k(0x1f2)],'config':a,'appPath':a99e[k(0x1f5)](c,'app'),'bundlePath':a99e[k(0x1f5)](c,k(0x20b),'app.tar.gz'),'useCert':this[k(0x1f1)][k(0x205)](b[k(0x1f0)])};this['fsi'][k(0x1f8)]({'srcPath':k(0x1f9),'destPath':a99e[k(0x1f5)](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x1f4)](d);}});
1
+ const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0x166))/0x1*(parseInt(f(0x150))/0x2)+-parseInt(f(0x167))/0x3+parseInt(f(0x155))/0x4+-parseInt(f(0x169))/0x5+-parseInt(f(0x157))/0x6+-parseInt(f(0x154))/0x7*(parseInt(f(0x164))/0x8)+parseInt(f(0x15a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x94349));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0x168)]()[h(0x14d)](h(0x15d))[h(0x168)]()[h(0x15f)](a100a)['search'](h(0x15d));});a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';function a100c(){const l=['14110335ngCIpN','Dockerfile','maka\x20{generate,\x20g}:dockerfile','(((.+)+)+)+$','docker/Dockerfile','constructor','join','service','getGlobalConfig','create','3691112fKYhTi','withValue','4rEcmiG','2129928gALcKc','toString','1017015KKTKqT','cert','fsi','search','error','findProjectDirectory','463156SVehdo','template','app','maka\x20g:dockerfile','14IHpGgd','1386764zzfGIK','app.tar.gz','2385672BdcMch','isFile','apply'];a100c=function(){return l;};return a100c();}function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x14d;let f=c[d];return f;},a100d(a,b);}Generator[a100i(0x163)]({'name':'dockerfile','usage':a100i(0x15c),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a100i(0x153)]},async function(){const j=a100i;try{const a=await this['fsi']['getProjectConfig'](),b=await this[j(0x16b)][j(0x162)](),c=this[j(0x16b)][j(0x14f)]();this[j(0x16b)][j(0x165)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a100e[k(0x160)](c,k(0x152)),'bundlePath':a100e['join'](c,'build',k(0x156)),'useCert':this['fsi'][k(0x158)](b[k(0x16a)])};this[k(0x16b)][k(0x151)]({'srcPath':k(0x15e),'destPath':a100e[k(0x160)](c,k(0x15b)),'framework':k(0x161),'context':d,'config':a});});}catch(d){Log[j(0x14e)](d);}});
@@ -1 +1 @@
1
- const a100s=a100d;(function(a,b){const p=a100d,c=a();while(!![]){try{const d=parseInt(p(0x151))/0x1+-parseInt(p(0x168))/0x2+-parseInt(p(0x18e))/0x3*(parseInt(p(0x156))/0x4)+parseInt(p(0x189))/0x5+parseInt(p(0x16d))/0x6+parseInt(p(0x167))/0x7*(-parseInt(p(0x191))/0x8)+parseInt(p(0x178))/0x9*(parseInt(p(0x18d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x1e4d9));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a100d;if(c){const e=c[q(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const r=a100d;return a100a[r(0x18b)]()[r(0x153)](r(0x14f))[r(0x18b)]()[r(0x172)](a100a)[r(0x153)]('(((.+)+)+)+$');});a100a();function a100c(){const v=['apollo','fileName','withValue','none','baseDir','string','installNpmPackage','react','error','injectAtBeginningOfFile','\x20hook...','resourceName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','className','client','graphql','170580PpSxSU','injectAtEndOfFile','toString','import\x20\x27','2859770EbtVKo','6mtAcNc','fsi','.app-tests.js','1523192qjYSIP','true','getProjectConfig','hooks','tsx','export\x20{\x20','imports','create','features','startup','checkNpmPackage','cssCaseName','(((.+)+)+)+$','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','25176coCrbr','ssr','search','/imports/ui/hooks','import\x20{\x20','79384LJWzGb','join','layouts','components','\x27;\x0a','@apollo/client\x20isomorphic-fetch','import\x20\x27./','maka\x20g:hook\x20cool-hook','dir','warn','engines','setTemplate','.js','hook/hook.js','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','template/template.css','hook','7HaLNyQ','80288kccjCF','lib','\x20}\x20from\x20\x27','Creating\x20','css','294522xNwIrw','assign','template','pathFromApp','Invalid\x20directory\x20option\x20\x22','constructor','relative','templates.js','rewriteDestinationPathForEngine','notice','apply','9hPAEYX'];a100c=function(){return v;};return a100c();}import a100e from'path';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x14a;let f=c[d];return f;},a100d(a,b);}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[a100s(0x14a)]({'name':a100s(0x166),'aliases':['h'],'checkWhere':![],'usage':a100s(0x150),'shortDesc':a100s(0x164),'validOpts':[a100s(0x17d)],'examples':[a100s(0x15d)]},async function(a,b){const t=a100s;Log[t(0x176)](t(0x16b)+a[0x0]+t(0x183));try{const c=[t(0x194),t(0x159),'pages',t(0x158)];if(b[t(0x17d)]&&!c['includes'](b[t(0x17d)])){Log[t(0x181)](t(0x171)+b[t(0x17d)]+'\x22'),Log[t(0x181)]('Valid\x20options\x20are:\x20'+c[t(0x157)](',\x20'));throw new UsageError();}const d=this[t(0x18f)][t(0x14d)](t(0x180));if(!d){Log[t(0x181)](t(0x185));throw new UsageError();}const f=this[t(0x18f)][t(0x170)](b),g=b[t(0x17d)]?'/imports/ui/'+b[t(0x17d)]:t(0x154),h=this[t(0x18f)][t(0x170)]({'pathParts':[g,b['dir'],b[t(0x184)],paramCase(b[t(0x184)])]}),i=await this[t(0x18f)][t(0x193)]();this['fsi'][t(0x17b)](i,async()=>{const u=t;typeof i['template'][u(0x16c)]===u(0x17e)&&(i['template'][u(0x16c)]=i[u(0x16f)]['css']===u(0x192)?!![]:![],this[u(0x18f)][u(0x161)](u(0x16c),i[u(0x16f)][u(0x16c)]));i['engines'][u(0x188)]===u(0x179)&&!this[u(0x18f)][u(0x14d)]('@apollo/client')&&(Log[u(0x15f)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[u(0x18f)][u(0x17f)](u(0x15b),{'cwd':f}));const j={'cssCaseName':paramCase(b[u(0x184)]),'camelCaseName':camelCase(b[u(0x184)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[u(0x184)]),'graphql':i['engines']['graphql'],'theme':i[u(0x160)]['theme'],'features':i[u(0x14b)],'myPath':a100e[u(0x173)](this[u(0x18f)]['pathFromProject']({}),h),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x14b)]['withTranslations']};this[u(0x18f)]['template']({'srcPath':u(0x163),'destPath':h+u(0x162),'context':j,'config':i,'framework':'react'});i[u(0x16f)]['css']&&(this[u(0x18f)]['template']({'srcPath':u(0x165),'destPath':h+'.css','context':Object[u(0x16e)]({},j,{'className':j[u(0x14e)]}),'config':i}),this[u(0x18f)][u(0x182)]({'filePath':h+'.'+i[u(0x160)]['js'],'content':u(0x15c)+j['fileName']+'.'+i[u(0x160)][u(0x16c)]+'\x27;'}));i[u(0x160)]['test']!==u(0x17c)&&this['fsi']['template']({'srcPath':'test/test.js','destPath':h+u(0x190),'framework':'react','context':j,'config':i});const k=b[u(0x15e)]?'/'+b[u(0x15e)]+'/':'/',l=''+g+k+j[u(0x17a)]+'/'+j[u(0x17a)];let m;if(i[u(0x160)][u(0x152)]===u(0x192)){const n=this['fsi'][u(0x170)]({'pathParts':[u(0x197),u(0x14c),u(0x169),u(0x174)]});m=this[u(0x18f)][u(0x175)]({'pathParts':[n],'config':i});}else{const o=this[u(0x18f)][u(0x170)]({'pathParts':[u(0x197),'startup',u(0x187),'templates.js']});m=this['fsi'][u(0x175)]({'pathParts':[o],'config':i});}i['engines'][u(0x187)]==='react'?(i['engines']['js']===u(0x195)?this[u(0x18f)][u(0x182)]({'filePath':m,'content':'import\x20{\x20'+j[u(0x186)]+u(0x16a)+l+u(0x15a)}):this[u(0x18f)]['injectAtBeginningOfFile']({'filePath':m,'content':u(0x155)+j[u(0x186)]+u(0x16a)+l+'.'+i[u(0x160)]['js']+u(0x15a)}),this[u(0x18f)][u(0x18a)]({'filePath':m,'content':u(0x196)+j['className']+'\x20};\x0a'})):this['fsi'][u(0x18a)]({'filePath':m,'content':u(0x18c)+l+'.'+i[u(0x160)]['js']+u(0x15a)});});}catch(j){Log[t(0x181)](j);}});
1
+ const a101s=a101d;(function(a,b){const p=a101d,c=a();while(!![]){try{const d=-parseInt(p(0x8a))/0x1+-parseInt(p(0xa1))/0x2*(-parseInt(p(0x9f))/0x3)+-parseInt(p(0x92))/0x4*(parseInt(p(0xb9))/0x5)+-parseInt(p(0xc0))/0x6*(-parseInt(p(0x8b))/0x7)+-parseInt(p(0x97))/0x8*(parseInt(p(0xa8))/0x9)+-parseInt(p(0xa4))/0xa+parseInt(p(0x94))/0xb*(parseInt(p(0x95))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x548f7));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a101d;if(c){const e=c[q(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const r=a101d;return a101a[r(0x99)]()[r(0xbd)](r(0x98))[r(0x99)]()['constructor'](a101a)[r(0xbd)](r(0x98));});a101a();function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x7d;let f=c[d];return f;},a101d(a,b);}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';function a101c(){const v=['react','theme','.js','templates.js','startup','fsi','Invalid\x20directory\x20option\x20\x22','hook','rewriteDestinationPathForEngine','injectAtBeginningOfFile','hooks','fileName','checkNpmPackage','withValue','template','client','600123zXahwa','587867zTOAEP','setTemplate','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','string','baseDir','apollo','features','4tdwEjw','join','4169EqvTHD','48516wjBWZX','installNpmPackage','2024392ffBQEu','(((.+)+)+)+$','toString','pathFromProject','pages','pathFromApp','assign','maka\x20g:hook\x20cool-hook','3XXVYQX','graphql','320074ARLoFV','resourceName','notice','4623170kjzsVW','warn','className','\x20hook...','9bZFNoj','@apollo/client\x20isomorphic-fetch','components','/imports/ui/hooks','error','Valid\x20options\x20are:\x20','tsx','\x27;\x0a','layouts','relative','Creating\x20','test/test.js','css','apply','\x20}\x20from\x20\x27','.css','cssCaseName','1412145yxrEmY','injectAtEndOfFile','ssr','includes','search','engines','import\x20\x27','18efsskz','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','dir','/imports/ui/','\x20};\x0a','lib','true','create','export\x20{\x20','import\x20{\x20'];a101c=function(){return v;};return a101c();}Generator[a101s(0xc7)]({'name':a101s(0x81),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a101s(0xc1),'validOpts':[a101s(0x8f)],'examples':[a101s(0x9e)]},async function(a,b){const t=a101s;Log[t(0xa3)](t(0xb2)+a[0x0]+t(0xa7));try{const c=[t(0x84),t(0xaa),t(0x9b),t(0xb0)];if(b[t(0x8f)]&&!c[t(0xbc)](b[t(0x8f)])){Log['error'](t(0x80)+b[t(0x8f)]+'\x22'),Log[t(0xac)](t(0xad)+c[t(0x93)](',\x20'));throw new UsageError();}const d=this[t(0x7f)][t(0x86)](t(0xca));if(!d){Log[t(0xac)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const f=this['fsi'][t(0x9c)](b),g=b[t(0x8f)]?t(0xc3)+b[t(0x8f)]:t(0xab),h=this[t(0x7f)][t(0x9c)]({'pathParts':[g,b[t(0xc2)],b[t(0xa2)],paramCase(b[t(0xa2)])]}),i=await this[t(0x7f)]['getProjectConfig']();this[t(0x7f)][t(0x87)](i,async()=>{const u=t;typeof i['template'][u(0xb4)]===u(0x8e)&&(i[u(0x88)][u(0xb4)]=i[u(0x88)][u(0xb4)]===u(0xc6)?!![]:![],this['fsi'][u(0x8c)](u(0xb4),i[u(0x88)][u(0xb4)]));i[u(0xbe)][u(0xa0)]===u(0x90)&&!this[u(0x7f)][u(0x86)]('@apollo/client')&&(Log[u(0xa5)](u(0x8d)),await this[u(0x7f)][u(0x96)](u(0xa9),{'cwd':f}));const j={'cssCaseName':paramCase(b[u(0xa2)]),'camelCaseName':camelCase(b[u(0xa2)]),'className':pascalCase(b[u(0xa2)]),'name':pascalCase(b[u(0xa2)]),'graphql':i['engines'][u(0xa0)],'theme':i[u(0xbe)][u(0xcb)],'features':i[u(0x91)],'myPath':a101e[u(0xb1)](this['fsi'][u(0x9a)]({}),h),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x91)]['withTranslations']};this[u(0x7f)][u(0x88)]({'srcPath':'hook/hook.js','destPath':h+u(0xcc),'context':j,'config':i,'framework':u(0xca)});i['template']['css']&&(this[u(0x7f)][u(0x88)]({'srcPath':'template/template.css','destPath':h+u(0xb7),'context':Object[u(0x9d)]({},j,{'className':j[u(0xb8)]}),'config':i}),this[u(0x7f)][u(0x83)]({'filePath':h+'.'+i[u(0xbe)]['js'],'content':'import\x20\x27./'+j[u(0x85)]+'.'+i[u(0xbe)][u(0xb4)]+'\x27;'}));i[u(0xbe)]['test']!=='none'&&this[u(0x7f)][u(0x88)]({'srcPath':u(0xb3),'destPath':h+'.app-tests.js','framework':u(0xca),'context':j,'config':i});const k=b[u(0xc2)]?'/'+b['dir']+'/':'/',l=''+g+k+j['fileName']+'/'+j[u(0x85)];let m;if(i[u(0xbe)][u(0xbb)]===u(0xc6)){const n=this[u(0x7f)]['pathFromApp']({'pathParts':['imports','startup',u(0xc5),u(0x7d)]});m=this['fsi'][u(0x82)]({'pathParts':[n],'config':i});}else{const o=this[u(0x7f)]['pathFromApp']({'pathParts':['imports',u(0x7e),u(0x89),'templates.js']});m=this[u(0x7f)][u(0x82)]({'pathParts':[o],'config':i});}i[u(0xbe)][u(0x89)]===u(0xca)?(i[u(0xbe)]['js']===u(0xae)?this[u(0x7f)]['injectAtBeginningOfFile']({'filePath':m,'content':u(0xc9)+j['className']+u(0xb6)+l+u(0xaf)}):this['fsi'][u(0x83)]({'filePath':m,'content':u(0xc9)+j['className']+u(0xb6)+l+'.'+i[u(0xbe)]['js']+u(0xaf)}),this[u(0x7f)][u(0xba)]({'filePath':m,'content':u(0xc8)+j[u(0xa6)]+u(0xc4)})):this['fsi'][u(0xba)]({'filePath':m,'content':u(0xbf)+l+'.'+i['engines']['js']+u(0xaf)});});}catch(j){Log[t(0xac)](j);}});
@@ -1 +1 @@
1
- function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0xe3;let f=c[d];return f;},a101d(a,b);}const a101k=a101d;(function(a,b){const h=a101d,c=a();while(!![]){try{const d=parseInt(h(0x102))/0x1+-parseInt(h(0xe6))/0x2*(parseInt(h(0xf2))/0x3)+-parseInt(h(0xe4))/0x4+-parseInt(h(0xfe))/0x5+parseInt(h(0xeb))/0x6*(-parseInt(h(0xf8))/0x7)+parseInt(h(0xf7))/0x8+parseInt(h(0xea))/0x9*(parseInt(h(0xee))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xe8372));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a101d;if(c){const e=c[i(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const j=a101d;return a101a[j(0xef)]()[j(0xe8)](j(0xfb))[j(0xef)]()[j(0xf3)](a101a)[j(0xe8)](j(0xfb));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a101c(){const n=['(((.+)+)+)+$','(blank)','withValue','1443170msiMJd','engines','error','map','924147cCCjAa','apply','4656204usMiWu','Invalid\x20type\x20','2dhbGfC','fsi','search','kit','89433NdLvLv','19122atEoFj','login','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','2020amCqNm','toString','resourceName','leaflet-map','1409214uKYXjn','constructor','type','maka\x20g:kit\x20--type=map','NIE','1474944zYNESV','532EkDAbi','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','create'];a101c=function(){return n;};return a101c();}Generator[a101k(0xfa)]({'name':a101k(0xe9),'aliases':['k'],'usage':a101k(0xed),'shortDesc':a101k(0xf9),'validOpts':['type'],'examples':[a101k(0xf5),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a101k;try{const c=this[l(0xe7)]['getProjectConfig']();this[l(0xe7)][l(0xfd)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0xf0)]),'camelCase':camelCase(b[m(0xf0)]),'type':b[m(0xf4)],'engine':c[m(0xff)]['js'],'noRename':!![]},f=[m(0xf1),m(0xec)];if(f['indexOf'](d['type'])<0x0){const g=d[m(0xf4)]?d[m(0xf4)]:m(0xfc);Log[m(0x100)](m(0xe5)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xf4)]===m(0x101)&&Log['notice'](m(0xf6)),b[m(0xf4)]===m(0xec)&&Log['notice']('NIE');});}catch(d){Log[l(0x100)](d);}});
1
+ function a102c(){const m=['resourceName','fsi','notice','17280140WSccCr','login','11NUbOTo','1757PuaNpe','1443SOIyvp','(blank)',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','5336496heqXZm','error','getProjectConfig','type','4262055ETbiaf','create','search','indexOf','NIE','maka\x20g:kit\x20--type=map','constructor','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','map','22986GzAVqo','(((.+)+)+)+$','maka\x20g:k\x20city-map\x20--type=leaflet-map','5055255peiKHj','1916HDHrSo','engines','withValue','toString','4JQjLSa','Invalid\x20type\x20','6731950rUqXto','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.'];a102c=function(){return m;};return a102c();}const a102j=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x168))/0x1*(-parseInt(h(0x159))/0x2)+parseInt(h(0x16f))/0x3+parseInt(h(0x15d))/0x4*(parseInt(h(0x15f))/0x5)+parseInt(h(0x155))/0x6*(parseInt(h(0x167))/0x7)+parseInt(h(0x16b))/0x8+-parseInt(h(0x158))/0x9+parseInt(h(0x164))/0xa*(-parseInt(h(0x166))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xb0a9f));const a102b=(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;};}()),a102a=a102b(this,function(){const i=a102d;return a102a[i(0x15c)]()[i(0x171)](i(0x156))[i(0x15c)]()[i(0x152)](a102a)[i(0x171)](i(0x156));});a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x152;let f=c[d];return f;},a102d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102j(0x170)]({'name':'kit','aliases':['k'],'usage':a102j(0x153),'shortDesc':a102j(0x160),'validOpts':[a102j(0x16e)],'examples':[a102j(0x174),a102j(0x157)]},async function(a,b){const k=a102j;try{const c=this[k(0x162)][k(0x16d)]();this[k(0x162)][k(0x15b)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x161)]),'fileName':paramCase(b[l(0x161)]),'camelCase':camelCase(b[l(0x161)]),'type':b[l(0x16e)],'engine':c[l(0x15a)]['js'],'noRename':!![]},f=['leaflet-map',l(0x165)];if(f[l(0x172)](d['type'])<0x0){const g=d['type']?d[l(0x16e)]:l(0x169);Log['error'](l(0x15e)+g+l(0x16a));return;}b[l(0x16e)]===l(0x154)&&Log[l(0x163)](l(0x173)),b[l(0x16e)]===l(0x165)&&Log[l(0x163)](l(0x173));});}catch(d){Log[k(0x16c)](d);}});
@@ -1 +1 @@
1
- function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x15b;let f=c[d];return f;},a102d(a,b);}const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=parseInt(o(0x196))/0x1*(-parseInt(o(0x18d))/0x2)+-parseInt(o(0x173))/0x3+-parseInt(o(0x1a2))/0x4*(parseInt(o(0x197))/0x5)+-parseInt(o(0x15d))/0x6+parseInt(o(0x176))/0x7*(parseInt(o(0x195))/0x8)+parseInt(o(0x19d))/0x9*(parseInt(o(0x1a4))/0xa)+-parseInt(o(0x169))/0xb*(-parseInt(o(0x179))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x48b63));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a[q(0x18a)]()[q(0x164)](q(0x194))[q(0x18a)]()[q(0x183)](a102a)[q(0x164)](q(0x194));});a102a();import a102e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102c(){const u=['split','lib','theme','ramda','fileName','882BGHeFF','pathFromApp','template','withHooks','className','8112YCZUiq','\x20};\x0a','860TUPwww','rewriteDestinationPathForEngine','injectAtEndOfFile','3173766nePYko','withHook','imports','true','import\x20\x27./','Scaffolding\x20for\x20a\x20React\x20Layout.','string','search','template/template.css','features','findAppDirectory','api','319zqEmZM','setTemplate','test/test.js','withTranslations','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','includes','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','create','react','assign','886692wnbdoP','.js','templates.js','455434OvKPZZ','resourceName','relative','782580KZyNIp','injectAtBeginningOfFile','.css','checkNpmPackage','/imports/ui/layouts','apply','none','\x27;\x0a','component/component.js','import\x20{\x20','constructor','warn','maka\x20g:layout\x20mobile/iPhone8','tsx','engines','ssr','dir','toString','fsi','client','16662mwPpPy','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','layout','css','maka\x20g:l\x20web/safari','\x20}\x20from\x20\x27','test','(((.+)+)+)+$','8MsOLIq','59uYfDfz','865EcflLI'];a102c=function(){return u;};return a102c();}const aliases=['l'];Generator[a102r(0x170)]({'name':a102r(0x18f),'aliases':aliases,'usage':a102r(0x16f),'shortDesc':a102r(0x162),'validOpts':[],'examples':[a102r(0x185),a102r(0x191)]},function(a,b){const s=a102r,c=s(0x17d),d=this['fsi'][s(0x167)](),e=this[s(0x18b)][s(0x19e)]({'pathParts':[c,b[s(0x189)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this['fsi']['getProjectConfig']();this[s(0x18b)]['withValue'](f,()=>{const t=s;typeof f['template'][t(0x193)]===t(0x163)&&(f[t(0x19f)]['test']=f[t(0x19f)][t(0x193)]==='true'?!![]:![],this[t(0x18b)]['setTemplate'](t(0x193),f[t(0x19f)][t(0x193)]));typeof f['template'][t(0x190)]===t(0x163)&&(f[t(0x19f)][t(0x190)]=f[t(0x19f)][t(0x190)]===t(0x160)?!![]:![],this[t(0x18b)][t(0x16a)](t(0x190),f[t(0x19f)][t(0x190)]));typeof f[t(0x19f)]['js']===t(0x163)&&(f[t(0x19f)]['js']=f['template']['js']===t(0x160)?!![]:![],this['fsi'][t(0x16a)]('js',f[t(0x19f)]['js']));!f['features']&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x198)](':')[0x1]:![],h=b['_']&&aliases[t(0x16e)](g);h&&!this[t(0x17c)](t(0x19b))&&(Log[t(0x184)](t(0x18e)),this[t(0x18b)]['installNpmPackage'](t(0x19b),{'cwd':d}));if(h&&!this[t(0x17c)]('react')){Log[t(0x184)](t(0x16d));return;}const i={'name':pascalCase(b[t(0x177)]),'myPath':a102e[t(0x178)](this[t(0x18b)]['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x177)]),'camelCaseName':camelCase(b[t(0x177)]),'fileName':paramCase(b[t(0x177)]),'graphql':f[t(0x187)]['graphql'],'features':f[t(0x166)],'client':f['engines'][t(0x18c)],'api':f[t(0x187)][t(0x168)],'ssr':f[t(0x187)][t(0x188)],'test':f[t(0x187)][t(0x193)],'theme':f[t(0x187)][t(0x19a)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x166)][t(0x16c)]};f[t(0x166)]?.[t(0x1a0)]||b[t(0x15e)]?this[t(0x18b)][t(0x19f)]({'srcPath':'hook/hook.js','destPath':e+t(0x174),'framework':t(0x171),'context':i,'config':f}):this[t(0x18b)][t(0x19f)]({'srcPath':t(0x181),'destPath':e+t(0x174),'framework':'react','context':i,'config':f});f[t(0x187)][t(0x193)]!==t(0x17f)&&this[t(0x18b)][t(0x19f)]({'srcPath':t(0x16b),'destPath':e+'.app-tests.js','framework':t(0x171),'context':i,'config':f});f['template'][t(0x190)]&&(this['fsi'][t(0x19f)]({'srcPath':t(0x165),'destPath':e+t(0x17b),'context':Object[t(0x172)]({},i,{'className':paramCase(b[t(0x177)])}),'config':f}),this[t(0x18b)][t(0x17a)]({'filePath':e+'.'+f['engines']['js'],'content':t(0x161)+i[t(0x19c)]+'.'+f[t(0x187)][t(0x190)]+'\x27;'}));const j=b[t(0x189)]?'/'+b[t(0x189)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x19c)];let l;if(f['engines'][t(0x188)]===t(0x160)){const m=this[t(0x18b)][t(0x19e)]({'pathParts':[t(0x15f),'startup',t(0x199),t(0x175)]});l=this['fsi'][t(0x15b)]({'pathParts':[m],'config':f});}else{const n=this[t(0x18b)][t(0x19e)]({'pathParts':[t(0x15f),'startup','client',t(0x175)]});l=this[t(0x18b)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[t(0x187)][t(0x18c)]===t(0x171)?(f['engines']['js']===t(0x186)?this[t(0x18b)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x182)+i['className']+t(0x192)+k+t(0x180)}):this['fsi'][t(0x17a)]({'filePath':l,'content':t(0x182)+i['className']+t(0x192)+k+'.'+f[t(0x187)]['js']+t(0x180)}),this[t(0x18b)][t(0x15c)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x1a1)]+t(0x1a3)})):this[t(0x18b)][t(0x15c)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0x187)]['js']+'\x27;\x0a'});});});
1
+ const a103r=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=-parseInt(o(0x15e))/0x1*(parseInt(o(0x143))/0x2)+-parseInt(o(0x139))/0x3+-parseInt(o(0x137))/0x4*(-parseInt(o(0x165))/0x5)+parseInt(o(0x13a))/0x6*(parseInt(o(0x166))/0x7)+-parseInt(o(0x169))/0x8+-parseInt(o(0x15b))/0x9*(-parseInt(o(0x15d))/0xa)+-parseInt(o(0x14a))/0xb*(-parseInt(o(0x13f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x9d040));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a[q(0x16d)]()[q(0x147)](q(0x14f))[q(0x16d)]()[q(0x168)](a103a)[q(0x147)](q(0x14f));});a103a();import a103e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x131;let f=c[d];return f;},a103d(a,b);}const aliases=['l'];Generator['create']({'name':'layout','aliases':aliases,'usage':a103r(0x154),'shortDesc':a103r(0x16e),'validOpts':[],'examples':[a103r(0x149),a103r(0x16f)]},function(a,b){const s=a103r,c=s(0x14e),d=this[s(0x153)][s(0x140)](),e=this[s(0x153)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[s(0x171)])]}),f=this[s(0x153)][s(0x13e)]();this['fsi'][s(0x173)](f,()=>{const t=s;typeof f[t(0x155)][t(0x172)]==='string'&&(f[t(0x155)][t(0x172)]=f[t(0x155)][t(0x172)]==='true'?!![]:![],this[t(0x153)][t(0x15c)](t(0x172),f['template'][t(0x172)]));typeof f[t(0x155)][t(0x170)]===t(0x132)&&(f[t(0x155)][t(0x170)]=f[t(0x155)]['css']===t(0x174)?!![]:![],this[t(0x153)][t(0x15c)](t(0x170),f['template'][t(0x170)]));typeof f['template']['js']===t(0x132)&&(f[t(0x155)]['js']=f[t(0x155)]['js']===t(0x174)?!![]:![],this['fsi'][t(0x15c)]('js',f[t(0x155)]['js']));!f[t(0x131)]&&(f[t(0x131)]={});const g=b['_']?b['_'][0x0][t(0x16b)](':')[0x1]:![],h=b['_']&&aliases[t(0x160)](g);h&&!this[t(0x177)](t(0x144))&&(Log[t(0x136)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x153)][t(0x138)]('ramda',{'cwd':d}));if(h&&!this['checkNpmPackage'](t(0x159))){Log[t(0x136)](t(0x152));return;}const i={'name':pascalCase(b[t(0x171)]),'myPath':a103e[t(0x167)](this[t(0x153)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[t(0x171)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x171)]),'fileName':paramCase(b[t(0x171)]),'graphql':f['engines'][t(0x176)],'features':f[t(0x131)],'client':f[t(0x14c)][t(0x175)],'api':f[t(0x14c)][t(0x178)],'ssr':f[t(0x14c)][t(0x163)],'test':f[t(0x14c)][t(0x172)],'theme':f['engines']['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x131)]['withTranslations']};f['features']?.[t(0x164)]||b['withHook']?this['fsi'][t(0x155)]({'srcPath':'hook/hook.js','destPath':e+t(0x161),'framework':t(0x159),'context':i,'config':f}):this[t(0x153)][t(0x155)]({'srcPath':t(0x135),'destPath':e+'.js','framework':t(0x159),'context':i,'config':f});f[t(0x14c)][t(0x172)]!==t(0x13d)&&this[t(0x153)][t(0x155)]({'srcPath':t(0x13b),'destPath':e+t(0x16c),'framework':t(0x159),'context':i,'config':f});f[t(0x155)]['css']&&(this['fsi'][t(0x155)]({'srcPath':t(0x148),'destPath':e+t(0x162),'context':Object[t(0x142)]({},i,{'className':paramCase(b[t(0x171)])}),'config':f}),this[t(0x153)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x14c)]['js'],'content':t(0x14b)+i[t(0x133)]+'.'+f[t(0x14c)]['css']+'\x27;'}));const j=b['dir']?'/'+b[t(0x141)]+'/':'/',k=''+c+j+i['fileName']+'/'+i['fileName'];let l;if(f[t(0x14c)][t(0x163)]===t(0x174)){const m=this['fsi']['pathFromApp']({'pathParts':['imports',t(0x158),t(0x134),'templates.js']});l=this[t(0x153)][t(0x145)]({'pathParts':[m],'config':f});}else{const n=this[t(0x153)]['pathFromApp']({'pathParts':['imports',t(0x158),t(0x175),'templates.js']});l=this[t(0x153)][t(0x145)]({'pathParts':[n],'config':f});}f['engines'][t(0x175)]===t(0x159)?(f['engines']['js']===t(0x156)?this[t(0x153)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x151)+i[t(0x15a)]+t(0x13c)+k+t(0x150)}):this[t(0x153)][t(0x14d)]({'filePath':l,'content':t(0x151)+i[t(0x15a)]+t(0x13c)+k+'.'+f[t(0x14c)]['js']+t(0x150)}),this[t(0x153)]['injectAtEndOfFile']({'filePath':l,'content':t(0x15f)+i[t(0x15a)]+t(0x157)})):this['fsi'][t(0x16a)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f['engines']['js']+t(0x150)});});});function a103c(){const u=['2467386JCvKUx','3446292sPyquV','test/test.js','\x20}\x20from\x20\x27','none','getProjectConfig','20319804WjrXqp','findAppDirectory','dir','assign','117770nUzRQc','ramda','rewriteDestinationPathForEngine','apply','search','template/template.css','maka\x20g:layout\x20mobile/iPhone8','11oPpHtM','import\x20\x27./','engines','injectAtBeginningOfFile','/imports/ui/layouts','(((.+)+)+)+$','\x27;\x0a','import\x20{\x20','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','fsi','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','template','tsx','\x20};\x0a','startup','react','className','48807CXBgZO','setTemplate','1570Wtrpzq','16OMGyzH','export\x20{\x20','includes','.js','.css','ssr','withHooks','5RkIWrZ','7LLwzWV','relative','constructor','7865448GYPCep','injectAtEndOfFile','split','.app-tests.js','toString','Scaffolding\x20for\x20a\x20React\x20Layout.','maka\x20g:l\x20web/safari','css','resourceName','test','withValue','true','client','graphql','checkNpmPackage','api','features','string','fileName','lib','component/component.js','warn','1087316jJgwPz','installNpmPackage'];a103c=function(){return u;};return a103c();}
@@ -1 +1 @@
1
- const a103i=a103d;function a103c(){const j=['(((.+)+)+)+$','1080GoWBJZ','1987040YurRnA','toString','154621gFMslw','3455fKnPVo','30GcqfDd','60591pCLoFY','search','apply','1100672jEFRDM','\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','2492756djBQAY','1113885UgaMPZ','constructor','maka','Maka!','2njZCRD'];a103c=function(){return j;};return a103c();}(function(a,b){const f=a103d,c=a();while(!![]){try{const d=-parseInt(f(0x73))/0x1*(parseInt(f(0x80))/0x2)+parseInt(f(0x76))/0x3+parseInt(f(0x79))/0x4+parseInt(f(0x74))/0x5*(-parseInt(f(0x82))/0x6)+parseInt(f(0x7b))/0x7+parseInt(f(0x83))/0x8+-parseInt(f(0x7c))/0x9*(parseInt(f(0x75))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x3ced5));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a103d;if(c){const e=c[g(0x78)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const h=a103d;return a103a[h(0x84)]()['search']('(((.+)+)+)+$')[h(0x84)]()[h(0x7d)](a103a)[h(0x77)](h(0x81));});a103a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a103i(0x7e),'shortDesc':a103i(0x7f),'validOpts':[],'description':a103i(0x7a),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':['maka\x20generate:api\x20Trucks','maka\x20g:hook\x20cool-hook']},function(){return null;});function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x73;let f=c[d];return f;},a103d(a,b);}export default MakaGen;
1
+ const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x1f0))/0x1*(parseInt(f(0x1ef))/0x2)+parseInt(f(0x1ea))/0x3+parseInt(f(0x1e0))/0x4*(parseInt(f(0x1e5))/0x5)+parseInt(f(0x1df))/0x6*(-parseInt(f(0x1e4))/0x7)+parseInt(f(0x1ec))/0x8+-parseInt(f(0x1ed))/0x9*(-parseInt(f(0x1e9))/0xa)+-parseInt(f(0x1de))/0xb*(parseInt(f(0x1ee))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xacbd0));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a['toString']()['search'](h(0x1eb))['toString']()[h(0x1e6)](a104a)['search'](h(0x1eb));});a104a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x1e3),'shortDesc':'Maka!','validOpts':[],'description':a104i(0x1e7),'usage':a104i(0x1e1),'examples':['maka\x20generate:api\x20Trucks',a104i(0x1e2)]},function(){return null;});export default MakaGen;function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1de;let f=c[d];return f;},a104d(a,b);}function a104c(){const j=['constructor','\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','apply','440890EosNVi','3410838qfIQyR','(((.+)+)+)+$','6241352SdXQqA','207FyFLJJ','1524jhhUkI','32HvqLXO','45822jqsMkL','160721ezkGFA','1938hRErzU','76CDimSS','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','maka\x20g:hook\x20cool-hook','maka','14147bGZBTs','267870bXxlAm'];a104c=function(){return j;};return a104c();}
@@ -1 +1 @@
1
- function a104c(){const q=['18zAIhdR','create','tsx','check\x20ddp-rate-limiter\x20mdg:validated-method','6680AufpLa','5iYQSOD','pathFromApp','761660aiOggA','27498exieYG','getProjectConfig','toString','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','startup','injectAtEndOfFile','template','-rpc-method.','import\x20\x27./methods','method','withValue','imports','checkMeteorPackage','error','8175706LqFTEw','9206286tBxyVK','1345752xxPgId','3546880qeMMwO','constructor','maka\x20{generate,\x20g}:{method,\x20m}\x20name','fsi','mdg:validated-method','-rpc-method\x27;','appPathPrefix','(((.+)+)+)+$','110ZRTYHH','installMeteorPackage','resourceName','engines','apply','method/method.js','dir','18882VymhBO'];a104c=function(){return q;};return a104c();}const a104n=a104d;(function(a,b){const k=a104d,c=a();while(!![]){try{const d=-parseInt(k(0x188))/0x1*(parseInt(k(0x167))/0x2)+-parseInt(k(0x177))/0x3+parseInt(k(0x166))/0x4+parseInt(k(0x164))/0x5*(-parseInt(k(0x176))/0x6)+parseInt(k(0x175))/0x7+-parseInt(k(0x163))/0x8*(parseInt(k(0x187))/0x9)+-parseInt(k(0x178))/0xa*(-parseInt(k(0x180))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xe1560));function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x161;let f=c[d];return f;},a104d(a,b);}const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a104d;if(c){const e=c[l(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const m=a104d;return a104a[m(0x169)]()['search'](m(0x17f))[m(0x169)]()[m(0x179)](a104a)['search'](m(0x17f));});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a104n(0x189)]({'name':a104n(0x170),'aliases':['m'],'usage':a104n(0x17a),'checkWhere':!![],'shortDesc':a104n(0x16a),'validOpts':[a104n(0x186)],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a104n;try{const c=this['fsi'][o(0x168)]();this[o(0x17b)][o(0x171)](c,async()=>{const p=o,d=paramCase(b[p(0x182)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[p(0x182)]),'noRename':!![]};let g='js';c['engines']['js']===p(0x161)&&(g='ts');const h=this['fsi'][p(0x165)]({});(!this[p(0x17b)][p(0x173)]('check')||!this[p(0x17b)][p(0x173)]('ddp-rate-limiter')||!this[p(0x17b)][p(0x173)](p(0x17c)))&&(Log['warn']('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[p(0x17b)][p(0x181)](p(0x162),{'cwd':h}));this[p(0x17b)][p(0x16d)]({'srcPath':p(0x185),'destPath':this[p(0x17b)]['pathFromApp']({'pathParts':[p(0x172),p(0x16b),b[p(0x17e)],'methods',b[p(0x186)],d+p(0x16e)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b[p(0x186)]+'/':'/',j=this[p(0x17b)]['pathFromApp']({'pathParts':[p(0x172),'startup',b['appPathPrefix'],'index.'+c[p(0x183)]['js']]});this[p(0x17b)][p(0x16c)]({'filePath':j,'content':p(0x16f)+i+d+p(0x17d)});});}catch(d){Log[o(0x174)](d);}});
1
+ const a105m=a105d;function a105c(){const p=['136fFkQKX','2516944syAvQE','index.','warn','-rpc-method.','methods','pathFromApp','944617yYbZwx','constructor','checkMeteorPackage','maka\x20g:method\x20todos','error','startup','1124900oKbVvF','engines','2226762gGJmDS','check\x20ddp-rate-limiter\x20mdg:validated-method','1596987hsviLM','search','1662020pZTvkJ','withValue','54LdoOHc','appPathPrefix','import\x20\x27./methods','getProjectConfig','maka\x20{generate,\x20g}:{method,\x20m}\x20name','fsi','(((.+)+)+)+$','template','check','toString','1262219jYNKoZ','dir','resourceName','imports','create','method/method.js','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','installMeteorPackage'];a105c=function(){return p;};return a105c();}(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x1f0))/0x1+-parseInt(k(0x1ea))/0x2+parseInt(k(0x1fa))/0x3+parseInt(k(0x1f6))/0x4+-parseInt(k(0x1fc))/0x5+-parseInt(k(0x1fe))/0x6*(parseInt(k(0x1e1))/0x7)+-parseInt(k(0x1e9))/0x8*(-parseInt(k(0x1f8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xd2482));const a105b=(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;};}()),a105a=a105b(this,function(){const l=a105d;return a105a[l(0x1e0)]()[l(0x1fb)](l(0x1dd))['toString']()[l(0x1f1)](a105a)[l(0x1fb)](l(0x1dd));});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a105d(a,b);}Generator[a105m(0x1e5)]({'name':'method','aliases':['m'],'usage':a105m(0x202),'checkWhere':!![],'shortDesc':a105m(0x1e7),'validOpts':[a105m(0x1e2)],'examples':[a105m(0x1f3)]},function(a,b){const n=a105m;try{const c=this['fsi'][n(0x201)]();this[n(0x203)][n(0x1fd)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':b[o(0x1e3)],'fileName':d,'className':pascalCase(b[o(0x1e3)]),'camelCase':camelCase(b[o(0x1e3)]),'noRename':!![]};let g='js';c[o(0x1f7)]['js']==='tsx'&&(g='ts');const h=this[o(0x203)][o(0x1ef)]({});(!this[o(0x203)][o(0x1f2)](o(0x1df))||!this[o(0x203)]['checkMeteorPackage']('ddp-rate-limiter')||!this[o(0x203)][o(0x1f2)]('mdg:validated-method'))&&(Log[o(0x1ec)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[o(0x203)][o(0x1e8)](o(0x1f9),{'cwd':h}));this[o(0x203)][o(0x1de)]({'srcPath':o(0x1e6),'destPath':this[o(0x203)]['pathFromApp']({'pathParts':['imports',o(0x1f5),b[o(0x1ff)],o(0x1ee),b[o(0x1e2)],d+o(0x1ed)+g]}),'context':f,'config':c});const i=b[o(0x1e2)]?'/'+b[o(0x1e2)]+'/':'/',j=this[o(0x203)]['pathFromApp']({'pathParts':[o(0x1e4),'startup',b['appPathPrefix'],o(0x1eb)+c['engines']['js']]});this[o(0x203)]['injectAtEndOfFile']({'filePath':j,'content':o(0x200)+i+d+'-rpc-method\x27;'});});}catch(d){Log[n(0x1f4)](d);}});
@@ -1 +1 @@
1
- const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=parseInt(l(0x1cc))/0x1+parseInt(l(0x1c7))/0x2+parseInt(l(0x1c8))/0x3+-parseInt(l(0x1c1))/0x4*(parseInt(l(0x1cb))/0x5)+parseInt(l(0x1b0))/0x6+parseInt(l(0x1b6))/0x7+parseInt(l(0x1b1))/0x8*(-parseInt(l(0x1bf))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x1b095));function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1ae;let f=c[d];return f;},a105d(a,b);}const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x1c2)]()[n(0x1b3)](n(0x1ce))[n(0x1c2)]()['constructor'](a105a)[n(0x1b3)](n(0x1ce));});function a105c(){const s=['pathFromProject','tests/server','apply','170650IUBnaX','435168bLmpEz','.js','relative','6705UksGlx','147415dOVHSm','features','(((.+)+)+)+$','server','getProjectConfig','engines','package/package.js','530304ZuygoM','3165016sJWXJS','/package.js','search','template/template.js','dir','910245mQTZvG','tests/client','ssr','/client/','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','lib','resourceName','packages','pathFromApp','9sluwmy','template','268sQUwKH','toString','fsi'];a105c=function(){return s;};return a105c();}a105a();import a105e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'package','aliases':['p'],'usage':a105o(0x1ba),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a105o(0x1b5)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a105o,c=paramCase(b[p(0x1bc)]),d=this[p(0x1c3)][p(0x1be)]({'pathParts':[p(0x1bd),b['dir'],c]}),e=this[p(0x1c3)]['pathFromAppWithNoReWrite']({'pathParts':['packages',b[p(0x1b5)],c,'package.js']}),f=this[p(0x1c3)][p(0x1d0)]();this[p(0x1c3)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x1bc)]),'myPath':a105e[q(0x1ca)](this[q(0x1c3)][q(0x1c4)]({}),d),'cssCaseName':paramCase(b[q(0x1bc)]),'className':pascalCase(b[q(0x1bc)]),'camelCaseName':camelCase(b[q(0x1bc)]),'fileName':c,'client':f[q(0x1ae)]['client'],'graphql':f['engines']['graphql'],'ssr':f['engines'][q(0x1b8)],'isComponent':b['hasOwnProperty']('component'),'isLayout':b['hasOwnProperty']('layout'),'isStore':b['hasOwnProperty']('store'),'features':f[q(0x1cd)],'noRename':!![],'theme':f[q(0x1ae)]['theme']};this['fsi'][q(0x1c0)]({'srcPath':q(0x1af),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+q(0x1b9)+c+q(0x1c9);this['fsi'][q(0x1c0)]({'srcPath':q(0x1b4),'destPath':h,'context':g,'config':f});const i=[q(0x1bb),q(0x1cf),q(0x1b7),q(0x1c5)];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x1c9);this['fsi'][r(0x1c0)]({'srcPath':'package/'+j+r(0x1b2),'destPath':k,'context':g,'config':f});});});});
1
+ const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=parseInt(l(0xed))/0x1+parseInt(l(0xf0))/0x2+-parseInt(l(0xfa))/0x3*(parseInt(l(0x10c))/0x4)+parseInt(l(0xfb))/0x5+parseInt(l(0x106))/0x6+parseInt(l(0x100))/0x7*(-parseInt(l(0xf6))/0x8)+-parseInt(l(0xf4))/0x9*(parseInt(l(0xf2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x81e4a));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0xf1)]()[n(0xdd)](n(0xe4))[n(0xf1)]()[n(0xe6)](a106a)[n(0xdd)](n(0xe4));});a106a();import a106e from'path';import{Generator}from'../generator.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xdd;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a106c(){const s=['forEach','.js','packages','4796190AMqGfA','store','tests/server','engines','resourceName','template','5915100merwlN','relative','server','getProjectConfig','dir','package.js','861632xNgXqP','search','package/package.js','/package.js','template/template.js','pathFromApp','apply','maka\x20g:package\x20todos:package','(((.+)+)+)+$','package/','constructor','hasOwnProperty','tests/client','lib','fsi','pathFromAppWithNoReWrite','features','471252blbVzp','/client/','graphql','775220FvUDvg','toString','1940PuBclE','client','42696GsIPnC','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','8BhpOMQ','package','create','theme','9qTjstc','4695300TNZTEW','layout'];a106c=function(){return s;};return a106c();}Generator[a106o(0xf8)]({'name':a106o(0xf7),'aliases':['p'],'usage':a106o(0xf5),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a106o(0x10a)],'examples':[a106o(0xe3)]},async function(a,b){const p=a106o,c=paramCase(b['resourceName']),d=this[p(0xea)][p(0xe1)]({'pathParts':[p(0xff),b[p(0x10a)],c]}),e=this[p(0xea)][p(0xeb)]({'pathParts':[p(0xff),b[p(0x10a)],c,p(0x10b)]}),f=this['fsi'][p(0x109)]();this[p(0xea)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x104)]),'myPath':a106e[q(0x107)](this[q(0xea)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x104)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x104)]),'fileName':c,'client':f[q(0x103)][q(0xf3)],'graphql':f[q(0x103)][q(0xef)],'ssr':f[q(0x103)]['ssr'],'isComponent':b['hasOwnProperty']('component'),'isLayout':b[q(0xe7)](q(0xfc)),'isStore':b[q(0xe7)](q(0x101)),'features':f[q(0xec)],'noRename':!![],'theme':f[q(0x103)][q(0xf9)]};this[q(0xea)]['template']({'srcPath':q(0xde),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+q(0xee)+c+'.js';this['fsi']['template']({'srcPath':q(0xe0),'destPath':h,'context':g,'config':f});const i=[q(0xe9),q(0x108),q(0xe8),q(0x102)];i[q(0xfd)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xfe);this[r(0xea)][r(0x105)]({'srcPath':r(0xe5)+j+r(0xdf),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a106p=a106d;(function(a,b){const n=a106d,c=a();while(!![]){try{const d=parseInt(n(0x187))/0x1*(-parseInt(n(0x1c5))/0x2)+-parseInt(n(0x191))/0x3*(parseInt(n(0x1a2))/0x4)+parseInt(n(0x189))/0x5+parseInt(n(0x178))/0x6*(-parseInt(n(0x1b2))/0x7)+-parseInt(n(0x180))/0x8*(parseInt(n(0x17f))/0x9)+-parseInt(n(0x176))/0xa+parseInt(n(0x19f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xb2efe));function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x174;let f=c[d];return f;},a106d(a,b);}const a106b=(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;};}()),a106a=a106b(this,function(){const o=a106d;return a106a['toString']()[o(0x1ad)]('(((.+)+)+)+$')[o(0x18a)]()[o(0x174)](a106a)[o(0x1ad)](o(0x183));});a106a();import a106e from'path';function a106c(){const s=['startup','hook/hook.js','page','component/component.js','5509gUeDbU','join','html','templates.js','hasOwnProperty','template/template.html','.app-tests.js','features','fileName','.html','warn','checkNpmPackage','import\x20{\x20','test/test.js','test','template','import\x20\x27./','string','components','2910004dOUiig','vanilla','baseDir','true','constructor','api','328940xwxJCH','dir','7806SJfcGL','error','\x27;\x0a','layout','Generate\x20a\x20page.','hooks','lib','126TsGLyp','98008fwlKRY','css','setTemplate','(((.+)+)+)+$','engines','\x20}\x20from\x20\x27','withHooks','1RWCfuH','pathFromApp','2824455yLtUbh','toString','react','resourceName','tsx','relative','pathFromProject','create','18cXHKty','Valid\x20options\x20are:\x20','graphql','import\x20\x27','ssr','.js','installNpmPackage','withValue','theme','imports','\x20};\x0a','client','none','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','41716158yNOzog','fsi','component','627364WtECXs','className','/imports/ui/','rewriteDestinationPathForEngine','injectAtBeginningOfFile','injectAtEndOfFile','includes','Updating\x20npm\x20packages\x20...','ramda','Invalid\x20directory\x20option\x20\x22','pages','search'];a106c=function(){return s;};return a106c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a106p(0x190)]({'name':a106p(0x1b0),'aliases':aliases,'usage':a106p(0x19e),'shortDesc':a106p(0x17c),'validOpts':['baseDir','withHook'],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a106p,c=[q(0x17d),q(0x1c4),q(0x1ac),'layouts'];if(b[q(0x1c7)]&&!c[q(0x1a8)](b[q(0x1c7)])){Log[q(0x179)](q(0x1ab)+b['baseDir']+'\x22'),Log[q(0x179)](q(0x192)+c[q(0x1b3)](',\x20'));throw new UsageError();}const d=b[q(0x1c7)]?q(0x1a4)+b[q(0x1c7)]:'/imports/ui/pages',e=this['fsi'][q(0x188)](b),f=this[q(0x1a0)][q(0x188)]({'pathParts':[d,b[q(0x177)],b[q(0x18c)],paramCase(b['resourceName'])]}),g=this[q(0x1a0)]['getProjectConfig']();this[q(0x1a0)][q(0x198)](g,()=>{const r=q;typeof g['template']['html']==='string'&&(g[r(0x1c1)][r(0x1b4)]=g['template'][r(0x1b4)]===r(0x1c8)?!![]:![],this['fsi'][r(0x182)](r(0x1b4),g[r(0x1c1)][r(0x1b4)]));typeof g['template'][r(0x1c0)]===r(0x1c3)&&(g[r(0x1c1)][r(0x1c0)]=g['template'][r(0x1c0)]===r(0x1c8)?!![]:![],this[r(0x1a0)][r(0x182)]('test',g[r(0x1c1)][r(0x1c0)]));typeof g[r(0x1c1)]['css']===r(0x1c3)&&(g[r(0x1c1)][r(0x181)]=g[r(0x1c1)][r(0x181)]===r(0x1c8)?!![]:![],this[r(0x1a0)][r(0x182)]('css',g[r(0x1c1)]['css']));typeof g[r(0x1c1)]['js']===r(0x1c3)&&(g['template']['js']=g[r(0x1c1)]['js']===r(0x1c8)?!![]:![],this['fsi'][r(0x182)]('js',g[r(0x1c1)]['js']));!g[r(0x1b9)]&&(g[r(0x1b9)]={});!b['root']&&!this[r(0x1a0)][r(0x1bd)](r(0x1aa))&&(Log[r(0x1bc)](r(0x1a9)),this[r(0x1a0)][r(0x197)](r(0x1aa),{'cwd':e}));const h={'name':pascalCase(b[r(0x18c)]),'myPath':a106e[r(0x18e)](this['fsi'][r(0x18f)]({}),f),'cssCaseName':paramCase(b[r(0x18c)]),'className':pascalCase(b[r(0x18c)]),'camelCaseName':camelCase(b[r(0x18c)]),'fileName':paramCase(b[r(0x18c)]),'graphql':g[r(0x184)][r(0x193)],'features':g[r(0x1b9)],'client':g[r(0x184)]['client'],'api':g[r(0x184)][r(0x175)],'ssr':g['engines'][r(0x195)],'isStore':b['hasOwnProperty']('store'),'isComponent':b[r(0x1b6)](r(0x1a1)),'isLayout':b[r(0x1b6)](r(0x17b)),'withTranslations':g[r(0x1b9)]['withTranslations'],'test':g[r(0x184)][r(0x1c0)],'theme':g[r(0x184)][r(0x199)]};g[r(0x1c1)][r(0x1b4)]&&this[r(0x1a0)][r(0x1c1)]({'srcPath':r(0x1b7),'destPath':f+r(0x1bb),'context':h,'config':g});g[r(0x1b9)]?.[r(0x186)]||b['withHook']?this[r(0x1a0)]['template']({'srcPath':r(0x1af),'destPath':f+r(0x196),'framework':r(0x18b),'context':h,'config':g}):this[r(0x1a0)]['template']({'srcPath':r(0x1b1),'destPath':f+r(0x196),'framework':r(0x18b),'context':h,'config':g});g[r(0x184)][r(0x1c0)]!==r(0x19d)&&this[r(0x1a0)][r(0x1c1)]({'srcPath':r(0x1bf),'destPath':f+r(0x1b8),'framework':'react','context':h,'config':g});g[r(0x1c1)][r(0x181)]&&this[r(0x1a0)]['template']({'srcPath':'template/template.css','destPath':f+'.css','context':Object['assign']({},h,{'className':paramCase(b[r(0x18c)])}),'config':g});g[r(0x184)][r(0x19c)]!==r(0x18b)&&g[r(0x184)]['client']!==r(0x1c6)?(g[r(0x1c1)][r(0x181)]&&this[r(0x1a0)][r(0x1a6)]({'filePath':f+'.'+g[r(0x184)]['js'],'content':r(0x1c2)+h[r(0x1ba)]+'.'+g[r(0x184)][r(0x1b4)]+r(0x17a)+r(0x1c2)+h[r(0x1ba)]+'.'+g[r(0x184)][r(0x181)]+'\x27;'}),!g[r(0x1c1)][r(0x181)]&&this[r(0x1a0)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[r(0x184)]['js'],'content':r(0x1c2)+h[r(0x1ba)]+'.'+g[r(0x184)][r(0x1b4)]+'\x27;'})):g[r(0x1c1)][r(0x181)]&&this[r(0x1a0)][r(0x1a6)]({'filePath':f+'.'+g[r(0x184)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+g[r(0x184)][r(0x181)]+'\x27;'});const i=b[r(0x177)]?'/'+b[r(0x177)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[r(0x1ba)];let k;if(g[r(0x184)][r(0x195)]===r(0x1c8)){const l=this['fsi'][r(0x188)]({'pathParts':[r(0x19a),r(0x1ae),r(0x17e),r(0x1b5)]});k=this[r(0x1a0)][r(0x1a5)]({'pathParts':[l],'config':g});}else{const m=this['fsi'][r(0x188)]({'pathParts':[r(0x19a),r(0x1ae),r(0x19c),'templates.js']});k=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g[r(0x184)][r(0x19c)]===r(0x18b)?(g[r(0x184)]['js']===r(0x18d)?this['fsi'][r(0x1a6)]({'filePath':k,'content':'import\x20{\x20'+h[r(0x1a3)]+r(0x185)+j+r(0x17a)}):this[r(0x1a0)][r(0x1a6)]({'filePath':k,'content':r(0x1be)+h[r(0x1a3)]+r(0x185)+j+'.'+g['engines']['js']+r(0x17a)}),this[r(0x1a0)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h['className']+r(0x19b)})):this[r(0x1a0)][r(0x1a7)]({'filePath':k,'content':r(0x194)+j+'.'+g[r(0x184)]['js']+r(0x17a)});});});
1
+ const a107q=a107d;(function(a,b){const n=a107d,c=a();while(!![]){try{const d=-parseInt(n(0xfe))/0x1*(parseInt(n(0xde))/0x2)+parseInt(n(0xeb))/0x3+parseInt(n(0x121))/0x4+-parseInt(n(0xf6))/0x5+parseInt(n(0xf8))/0x6*(parseInt(n(0xe5))/0x7)+parseInt(n(0x104))/0x8+-parseInt(n(0x10a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xf4199));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a107d;if(c){const e=c[o(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const p=a107d;return a107a['toString']()['search'](p(0x111))[p(0x12a)]()[p(0xf0)](a107a)[p(0x11d)](p(0x111));});a107a();import a107e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xdd;let f=c[d];return f;},a107d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a107c(){const t=['fileName','features','694505NgTBEB','css','component','none','ssr','hooks','4717248KjkuHh','startup','page','import\x20\x27./','\x20};\x0a','constructor','client','layout','html','setTemplate','withTranslations','5470365Havwbe','.app-tests.js','6sVjZuQ','component/component.js','lib','rewriteDestinationPathForEngine','template/template.css','pathFromApp','6140xUUrDh','string','store','import\x20{\x20','hasOwnProperty','layouts','14231880lBPmBL','create','Invalid\x20directory\x20option\x20\x22','.css','hook/hook.js','/imports/ui/','18447633atiFDl','ramda','root','templates.js','template/template.html','import\x20\x27','className','(((.+)+)+)+$','components','apply','relative','withHook','test','graphql','error','baseDir','.html','\x20}\x20from\x20\x27','tsx','search','\x27;\x0a','withHooks','theme','5228108wfwbmI','test/test.js','fsi','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','maka\x20g:page\x20todos/todos-item','injectAtBeginningOfFile','template','.js','join','toString','installNpmPackage','withValue','resourceName','vanilla','pages','true','200suHwne','react','injectAtEndOfFile','dir','engines'];a107c=function(){return t;};return a107c();}Generator[a107q(0x105)]({'name':a107q(0xed),'aliases':aliases,'usage':a107q(0x124),'shortDesc':'Generate\x20a\x20page.','validOpts':[a107q(0x119),'withHook'],'examples':[a107q(0x125)]},function(a,b){const r=a107q,c=[r(0xea),r(0x112),r(0x12f),r(0x103)];if(b[r(0x119)]&&!c['includes'](b[r(0x119)])){Log[r(0x118)](r(0x106)+b[r(0x119)]+'\x22'),Log['error']('Valid\x20options\x20are:\x20'+c[r(0x129)](',\x20'));throw new UsageError();}const d=b[r(0x119)]?r(0x109)+b[r(0x119)]:'/imports/ui/pages',e=this['fsi'][r(0xfd)](b),f=this['fsi'][r(0xfd)]({'pathParts':[d,b[r(0xe1)],b[r(0x12d)],paramCase(b[r(0x12d)])]}),g=this['fsi']['getProjectConfig']();this[r(0x123)][r(0x12c)](g,()=>{const s=r;typeof g[s(0x127)][s(0xf3)]===s(0xff)&&(g['template'][s(0xf3)]=g['template'][s(0xf3)]===s(0xdd)?!![]:![],this['fsi']['setTemplate'](s(0xf3),g[s(0x127)]['html']));typeof g[s(0x127)][s(0x116)]===s(0xff)&&(g[s(0x127)][s(0x116)]=g[s(0x127)][s(0x116)]==='true'?!![]:![],this[s(0x123)][s(0xf4)](s(0x116),g[s(0x127)][s(0x116)]));typeof g[s(0x127)][s(0xe6)]===s(0xff)&&(g[s(0x127)][s(0xe6)]=g[s(0x127)][s(0xe6)]===s(0xdd)?!![]:![],this[s(0x123)][s(0xf4)]('css',g['template'][s(0xe6)]));typeof g[s(0x127)]['js']==='string'&&(g[s(0x127)]['js']=g[s(0x127)]['js']===s(0xdd)?!![]:![],this[s(0x123)][s(0xf4)]('js',g[s(0x127)]['js']));!g[s(0xe4)]&&(g[s(0xe4)]={});!b[s(0x10c)]&&!this[s(0x123)]['checkNpmPackage'](s(0x10b))&&(Log['warn']('Updating\x20npm\x20packages\x20...'),this[s(0x123)][s(0x12b)]('ramda',{'cwd':e}));const h={'name':pascalCase(b['resourceName']),'myPath':a107e[s(0x114)](this[s(0x123)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x12d)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x12d)]),'fileName':paramCase(b[s(0x12d)]),'graphql':g['engines'][s(0x117)],'features':g['features'],'client':g['engines'][s(0xf1)],'api':g[s(0xe2)]['api'],'ssr':g[s(0xe2)]['ssr'],'isStore':b[s(0x102)](s(0x100)),'isComponent':b[s(0x102)](s(0xe7)),'isLayout':b[s(0x102)](s(0xf2)),'withTranslations':g[s(0xe4)][s(0xf5)],'test':g[s(0xe2)][s(0x116)],'theme':g[s(0xe2)][s(0x120)]};g[s(0x127)][s(0xf3)]&&this[s(0x123)]['template']({'srcPath':s(0x10e),'destPath':f+s(0x11a),'context':h,'config':g});g[s(0xe4)]?.[s(0x11f)]||b[s(0x115)]?this[s(0x123)]['template']({'srcPath':s(0x108),'destPath':f+s(0x128),'framework':s(0xdf),'context':h,'config':g}):this[s(0x123)]['template']({'srcPath':s(0xf9),'destPath':f+s(0x128),'framework':'react','context':h,'config':g});g[s(0xe2)][s(0x116)]!==s(0xe8)&&this[s(0x123)][s(0x127)]({'srcPath':s(0x122),'destPath':f+s(0xf7),'framework':'react','context':h,'config':g});g[s(0x127)]['css']&&this[s(0x123)][s(0x127)]({'srcPath':s(0xfc),'destPath':f+s(0x107),'context':Object['assign']({},h,{'className':paramCase(b[s(0x12d)])}),'config':g});g[s(0xe2)][s(0xf1)]!==s(0xdf)&&g[s(0xe2)][s(0xf1)]!==s(0x12e)?(g[s(0x127)]['css']&&this[s(0x123)][s(0x126)]({'filePath':f+'.'+g[s(0xe2)]['js'],'content':s(0xee)+h['fileName']+'.'+g[s(0xe2)]['html']+s(0x11e)+s(0xee)+h[s(0xe3)]+'.'+g[s(0xe2)][s(0xe6)]+'\x27;'}),!g[s(0x127)][s(0xe6)]&&this[s(0x123)][s(0x126)]({'filePath':f+'.'+g[s(0xe2)]['js'],'content':s(0xee)+h[s(0xe3)]+'.'+g[s(0xe2)][s(0xf3)]+'\x27;'})):g['template'][s(0xe6)]&&this[s(0x123)][s(0x126)]({'filePath':f+'.'+g['engines']['js'],'content':s(0xee)+h['fileName']+'.'+g[s(0xe2)][s(0xe6)]+'\x27;'});const i=b[s(0xe1)]?'/'+b[s(0xe1)]+'/':'/',j=''+d+i+h[s(0xe3)]+'/'+h[s(0xe3)];let k;if(g[s(0xe2)][s(0xe9)]===s(0xdd)){const l=this[s(0x123)][s(0xfd)]({'pathParts':['imports',s(0xec),s(0xfa),s(0x10d)]});k=this[s(0x123)][s(0xfb)]({'pathParts':[l],'config':g});}else{const m=this[s(0x123)][s(0xfd)]({'pathParts':['imports','startup',s(0xf1),s(0x10d)]});k=this[s(0x123)][s(0xfb)]({'pathParts':[m],'config':g});}g[s(0xe2)][s(0xf1)]===s(0xdf)?(g[s(0xe2)]['js']===s(0x11c)?this['fsi'][s(0x126)]({'filePath':k,'content':'import\x20{\x20'+h[s(0x110)]+s(0x11b)+j+s(0x11e)}):this[s(0x123)][s(0x126)]({'filePath':k,'content':s(0x101)+h['className']+'\x20}\x20from\x20\x27'+j+'.'+g[s(0xe2)]['js']+s(0x11e)}),this[s(0x123)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h['className']+s(0xef)})):this[s(0x123)][s(0xe0)]({'filePath':k,'content':s(0x10f)+j+'.'+g['engines']['js']+'\x27;\x0a'});});});
@@ -1 +1 @@
1
- const a107k=a107d;(function(a,b){const h=a107d,c=a();while(!![]){try{const d=-parseInt(h(0x11b))/0x1+-parseInt(h(0x136))/0x2+-parseInt(h(0x127))/0x3*(-parseInt(h(0x11a))/0x4)+parseInt(h(0x12b))/0x5*(-parseInt(h(0x125))/0x6)+-parseInt(h(0x12c))/0x7*(-parseInt(h(0x11d))/0x8)+parseInt(h(0x130))/0x9*(parseInt(h(0x134))/0xa)+parseInt(h(0x11f))/0xb*(parseInt(h(0x11e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x98929));function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x119;let f=c[d];return f;},a107d(a,b);}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a107d;if(c){const e=c[i(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const j=a107d;return a107a['toString']()[j(0x121)](j(0x126))[j(0x12a)]()['constructor'](a107a)['search'](j(0x126));});a107a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a107k(0x122)]({'name':a107k(0x132),'aliases':['p'],'usage':a107k(0x12d),'shortDesc':a107k(0x124),'validOpts':[],'examples':[a107k(0x123)]},async function(a,b){const l=a107k,c=this[l(0x11c)]['getProjectConfig']();this[l(0x11c)][l(0x129)](c,async()=>{const m=l,d={'name':b[m(0x12f)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c[m(0x131)]['js']===m(0x135)&&(e='ts');const f=this[m(0x11c)][m(0x120)]({'pathParts':[m(0x12e)+c[m(0x131)]['js']]}),g=this[m(0x11c)][m(0x133)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this['fsi'][m(0x119)]({'filePath':f,'content':'\x0a'+g});});});function a107c(){const n=['toString','5SKQCEf','1694714wFOaTh','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','server/publish.','resourceName','20385AYatPK','engines','publish','templateContent','3670fANYdK','tsx','273072wyQuEi','injectAtEndOfFile','20XuDEte','896896rdVScU','fsi','8yWpBct','516NHIqzm','151162nFbtcx','rewriteDestinationPathForEngine','search','create','maka\x20g:publish\x20todos','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','5991894RPvQgm','(((.+)+)+)+$','595653OuUfPR','apply','withValue'];a107c=function(){return n;};return a107c();}
1
+ const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d=-parseInt(h(0x142))/0x1+parseInt(h(0x13d))/0x2*(parseInt(h(0x139))/0x3)+parseInt(h(0x13c))/0x4*(parseInt(h(0x145))/0x5)+parseInt(h(0x134))/0x6*(parseInt(h(0x135))/0x7)+parseInt(h(0x137))/0x8+parseInt(h(0x132))/0x9*(parseInt(h(0x144))/0xa)+-parseInt(h(0x131))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x33b98));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a['toString']()['search'](j(0x141))['toString']()[j(0x13f)](a108a)['search'](j(0x141));});a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x131;let f=c[d];return f;},a108d(a,b);}Generator[a108k(0x136)]({'name':a108k(0x13e),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a108k(0x133),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a108k,c=this['fsi'][l(0x147)]();this[l(0x138)][l(0x146)](c,async()=>{const m=l,d={'name':b[m(0x13b)],'collection':paramCase(b[m(0x13b)]),'noRename':!![]};let e='js';c[m(0x140)]['js']==='tsx'&&(e='ts');const f=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m(0x13a)+c[m(0x140)]['js']]}),g=this['fsi'][m(0x148)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x138)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});function a108c(){const n=['apply','2563150dHiaHq','55cMBBEQ','withValue','getProjectConfig','templateContent','6430204wpncsV','9YetZaP','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','186666XecrjV','77ANIqAm','create','1510432hibhur','fsi','479697ARoQkw','server/publish.','resourceName','39768sPLQXh','4dwofQK','publish','constructor','engines','(((.+)+)+)+$','420072jSqhUK'];a108c=function(){return n;};return a108c();}