@maka/maka-cli 4.6.20 → 4.6.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) 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 -1
  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/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/proxy.js +1 -1
  84. package/bundle/obf/src/commands/reconfig.js +1 -1
  85. package/bundle/obf/src/commands/run/_index.js +1 -1
  86. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/run/run.command.js +1 -1
  88. package/bundle/obf/src/commands/set/_index.js +1 -1
  89. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  90. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  91. package/bundle/obf/src/commands/set/set.command.js +1 -1
  92. package/bundle/obf/src/commands/ssh.js +1 -1
  93. package/bundle/obf/src/commands/ssl.js +1 -1
  94. package/bundle/obf/src/commands/test.js +1 -1
  95. package/bundle/obf/src/commands/version.js +1 -1
  96. package/bundle/obf/src/error.js +1 -1
  97. package/bundle/obf/src/exec.js +1 -1
  98. package/bundle/obf/src/generator.js +1 -1
  99. package/bundle/obf/src/generators/_index.js +1 -1
  100. package/bundle/obf/src/generators/api.js +1 -1
  101. package/bundle/obf/src/generators/collection.js +1 -1
  102. package/bundle/obf/src/generators/component.js +1 -1
  103. package/bundle/obf/src/generators/config.js +1 -1
  104. package/bundle/obf/src/generators/dbc.js +1 -1
  105. package/bundle/obf/src/generators/dockerfile.js +1 -1
  106. package/bundle/obf/src/generators/hook.js +1 -1
  107. package/bundle/obf/src/generators/kits/_index.js +1 -1
  108. package/bundle/obf/src/generators/kits/kit.js +1 -1
  109. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  110. package/bundle/obf/src/generators/kits/mui/layout.mui.gen.js +1 -1
  111. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  112. package/bundle/obf/src/generators/layout.js +1 -1
  113. package/bundle/obf/src/generators/maka.gen.js +1 -1
  114. package/bundle/obf/src/generators/methods.js +1 -1
  115. package/bundle/obf/src/generators/package.js +1 -1
  116. package/bundle/obf/src/generators/page.js +1 -1
  117. package/bundle/obf/src/generators/publish.js +1 -1
  118. package/bundle/obf/src/generators/route.js +1 -1
  119. package/bundle/obf/src/generators/service.js +1 -1
  120. package/bundle/obf/src/generators/services/_index.js +1 -1
  121. package/bundle/obf/src/generators/services/openssl.js +1 -1
  122. package/bundle/obf/src/generators/services/translation.js +1 -1
  123. package/bundle/obf/src/maka.js +1 -1
  124. package/bundle/obf/src/tool.js +1 -1
  125. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  126. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  127. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  129. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  131. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/https/https.class.js +1 -1
  133. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  134. package/bundle/obf/src/tools/log/log.class.js +1 -1
  135. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  136. package/bundle/obf/src/tools/options/options.class.js +1 -1
  137. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  138. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  139. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  140. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  141. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  142. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  143. package/package.json +1 -1
@@ -1 +1 @@
1
- const a97u=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=parseInt(q(0x12c))/0x1+-parseInt(q(0xe1))/0x2+parseInt(q(0x115))/0x3*(parseInt(q(0xfc))/0x4)+-parseInt(q(0x11f))/0x5*(parseInt(q(0xe8))/0x6)+-parseInt(q(0xe3))/0x7+parseInt(q(0x117))/0x8*(-parseInt(q(0x116))/0x9)+-parseInt(q(0x112))/0xa*(-parseInt(q(0x13c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x23fd5));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a97d;if(c){const e=c[r(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const s=a97d;return a97a[s(0xdd)]()[s(0xe4)](s(0x110))['toString']()[s(0x119)](a97a)[s(0xe4)](s(0x110));});a97a();import a97e from'path';import a97f from'cli-table';import{paramCase}from'change-case';import a97g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xdb;let f=c[d];return f;},a97d(a,b);}function a97c(){const F=['colLocAnswer','invoke','assign','maxArgLength','111703clMHOf','call','Name','chdir','shortDesc','aliases','_handler','validateMakaProject','fsi','mustBeInMakaProject','Client','push','processAndRunGenerator','mustHaveMeteorInstalled','find','number','1606055TZobJA','exit','Generator.create\x20requires\x20some\x20options!','toString','notice','minArgLength','map','400506QaHuVd','cwd','1783733HSCTiL','search','forEach','split','DARK','18neLgRF','length','Too\x20few\x20options','pop','tableList','pallet','apply','maxOptsLength','match','listGenerators','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','sep','function','light','where','Both','Server','validateMeteorInstall','\x20not\x20found','No\x20resource\x20name\x20specified','36HdWFRt','validateMakaSubscription','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Too\x20many\x20options','Location','join','lib','validateParams','Description','bright','sort','keys','client','LIGHT','minOptsLength','error','Please\x20run\x20\x22maka\x20install\x20meteor\x22','checkWhere','addGenerator','bind','(((.+)+)+)+$','replace','30UCkuCN','_generators','noNeedResource','87597dKSQwz','189EUyMGe','65488RnexAF','both','constructor','appPathPrefix','handleGenerateError','name','dir','slice','63530XzahBs','Generator\x20requires\x20a\x20handler\x20function','findProjectDirectory','server','resourceName','options','setColorMode','Alias','Too\x20many\x20arguments'];a97c=function(){return F;};return a97c();}import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';function inside(a='.',b){const t=a97d,c=process['cwd']();let d=null;try{process[t(0x12f)](a),d=b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a97u(0x124)];['_generators'];constructor(a,b){const v=a97u;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[v(0x11c)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==v(0xf4))throw new Error(v(0x120));this[v(0x113)]=[],this[v(0x124)]=Object[v(0x12a)]({},a),this['name']=this['options'][v(0x11c)],this[v(0x132)]=b[v(0x10f)](this);}static['create'](a,b,c){const w=a97u;if(!a)throw new Error(w(0xdc));if(typeof b!==w(0xf4))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const d=new Generator(a,b);return c=c||a97g,Object[w(0x12a)](d,{'parent':c?.[w(0x124)]?.[w(0x11c)]}),c[w(0x10e)](d),d;}['addGenerator'](a){const x=a97u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[x(0x113)]['push'](a);}async[a97u(0x138)](a,b=[],c={}){const y=a97u;try{const d=a?.[y(0xe6)](':');if(!d||d['length']===0x0)throw'Generator\x20format\x20is\x20incorrect';let f=this['_generators'],g;for(const h of d){g=f[y(0x13a)](i=>i[y(0xf0)](h));if(!g)throw'Generator\x20'+h+y(0xfa);await this[y(0xfd)](g),f=g['_generators'];}if(g)await g['invoke'](b,c);else throw'Generator\x20not\x20found';}catch(i){Log[y(0x10b)](i);}}async[a97u(0x129)](a,b){const z=a97u,c=a[z(0x11e)]();b[z(0x123)]=c[0x0];try{const d=await this[z(0x134)]['getGlobalConfig'](),f=d[z(0xed)]===z(0xf5)?ColorMode[z(0x109)]:ColorMode[z(0xe7)];Log[z(0x125)](f),await this[z(0xfd)](this);const g=a[0x0]===_prevGen||a[z(0xe9)]===0x0&&this['_generators'][z(0xe9)]>=0x0,h=b['help']||b['h'];if(g&&h){if(this[z(0x113)][z(0xe9)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[z(0x124)][z(0x135)]){const i=this[z(0x133)]();if(!i)throw new MustBeInProjectError();}if(this[z(0x124)][z(0x139)]){const j=this[z(0xf9)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[z(0x124)][z(0xdf)]==='number'){if(a[z(0xe9)]<this[z(0x124)][z(0xdf)]){Log['error']('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[z(0x124)][z(0x12b)]===z(0x13b)){if(a[z(0xe9)]>this[z(0x124)][z(0x12b)]){Log[z(0x10b)](z(0x127));throw new UsageError();}}if(typeof this[z(0x124)]['minOptsLength']===z(0x13b)){if(Object[z(0x107)](b)[z(0xe9)]<this[z(0x124)][z(0x10a)]){Log[z(0x10b)](z(0xea));throw new UsageError();}}if(typeof this[z(0x124)][z(0xef)]===z(0x13b)){if(Object[z(0x107)](b)['length']>=this[z(0x124)][z(0xef)]){Log[z(0x10b)](z(0xff));throw new UsageError();}}}await this[z(0x103)](a,b,this[z(0x124)]);if(!b[z(0x123)]&&!this['options'][z(0x114)]){Log[z(0x10b)](z(0xfb));throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process[z(0xdb)](0x1);}inside(b[z(0xe2)],async()=>{const A=z;try{if(!b['root']&&!this[A(0x134)][A(0x121)]())throw new MustBeInProjectError();const l=b[A(0x123)]?.[A(0x111)](/\\/g,'/')[A(0xe6)]('/');!b[A(0x11d)]&&(l?.[A(0xe9)]>0x1?(b[A(0x123)]=l[A(0xeb)](),c[0x0]=b['resourceName'],b['dir']=l[A(0xe0)](m=>{return paramCase(m);})[A(0x101)](a97e[A(0xf3)])):b['dir']='');if(this[A(0x124)][A(0x10d)]){if(!b[A(0xf6)]){const n={'type':'list','name':A(0x128),'message':A(0x100),'choices':[{'name':A(0x136),'value':A(0x108)},{'name':A(0xf8),'value':A(0x122)},{'name':A(0xf7),'value':A(0x118)}]},{colLocAnswer:o}=await Actions[A(0x124)](n);o?b[A(0xf6)]=o:b[A(0xf6)]=A(0x118);}const m=[A(0x118),A(0x108),'server'];if(!m['includes'](b[A(0xf6)])){Log[A(0x10b)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[A(0xf6)]){case A(0x118):b[A(0x11a)]=A(0x102);break;case A(0x122):b['appPathPrefix']=A(0x122);break;case A(0x108):b[A(0x11a)]=A(0x108);break;default:b[A(0x11a)]='';}}await this[A(0x132)][A(0x12d)](this,c,b);}catch(p){this[A(0x11b)](p);}});}[a97u(0xf1)](){const B=a97u;this[B(0xec)](this[B(0x113)]);}[a97u(0x11b)](a){const C=a97u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this['options'];Log['usage'](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[C(0xde)]('Generators:'),this['tableList'](this[C(0x113)]);else{if(a instanceof MustBeInProjectError)Log[C(0x10b)](C(0xf2));else{if(a instanceof NoMeteorFoundError)Log[C(0x10b)](C(0xfe)),Log['notice'](C(0x10c));else a instanceof NoMeteorAppFoundError&&Log[C(0x10b)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}}['tableList'](a){const D=a97u,b=new a97f({});b[D(0x137)]([D(0x12e),D(0x126),D(0x104)]),a[D(0x106)]()[D(0xe5)](c=>{const E=D;b[E(0x137)]([c['name'],c[E(0x131)](),c[E(0x130)]()]);}),Log[D(0x105)](b[D(0xdd)]());}}
1
+ const a97t=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=-parseInt(q(0x143))/0x1*(-parseInt(q(0x127))/0x2)+parseInt(q(0x124))/0x3*(-parseInt(q(0x11b))/0x4)+parseInt(q(0x171))/0x5*(-parseInt(q(0x13e))/0x6)+-parseInt(q(0x154))/0x7+-parseInt(q(0x159))/0x8*(parseInt(q(0x145))/0x9)+-parseInt(q(0x17c))/0xa+parseInt(q(0x170))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xf1e6f));const a97b=(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;};}()),a97a=a97b(this,function(){const r=a97d;return a97a[r(0x11f)]()[r(0x16e)](r(0x158))[r(0x11f)]()[r(0x176)](a97a)[r(0x16e)](r(0x158));});a97a();import a97e from'path';import a97f from'cli-table';import{paramCase}from'change-case';import a97g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x117;let f=c[d];return f;},a97d(a,b);}let _prevGen='';function inside(a='.',b){const s=a97d,c=process['cwd']();let d=null;try{process[s(0x14c)](a),d=b();}finally{process[s(0x14c)](c);}return d;}export class Generator extends Tool{['options'];[a97t(0x16c)];constructor(a,b){const u=a97t;super();if(!a)throw new Error(u(0x137));if(!a[u(0x14f)])throw new Error(u(0x14b));if(typeof b!==u(0x122))throw new Error(u(0x123));this[u(0x16c)]=[],this[u(0x120)]=Object[u(0x16f)]({},a),this['name']=this[u(0x120)][u(0x14f)],this[u(0x148)]=b[u(0x16a)](this);}static[a97t(0x142)](a,b,c){const v=a97t;if(!a)throw new Error(v(0x138));if(typeof b!=='function')throw new Error(v(0x134));const d=new Generator(a,b);return c=c||a97g,Object['assign'](d,{'parent':c?.[v(0x120)]?.['name']}),c[v(0x132)](d),d;}[a97t(0x132)](a){const w=a97t;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[w(0x16c)][w(0x12f)](a);}async[a97t(0x160)](a,b=[],c={}){const x=a97t;try{const d=a?.['split'](':');if(!d||d[x(0x161)]===0x0)throw x(0x14a);let f=this[x(0x16c)],g;for(const h of d){g=f[x(0x131)](i=>i[x(0x12c)](h));if(!g)throw x(0x152)+h+'\x20not\x20found';await this[x(0x11d)](g),f=g[x(0x16c)];}if(g)await g['invoke'](b,c);else throw x(0x163);}catch(i){Log['error'](i);}}async[a97t(0x167)](a,b){const y=a97t,c=a[y(0x144)]();b[y(0x12a)]=c[0x0];try{const d=await this['fsi'][y(0x147)](),f=d[y(0x12b)]===y(0x121)?ColorMode[y(0x16b)]:ColorMode[y(0x178)];Log[y(0x140)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[y(0x161)]===0x0&&this['_generators'][y(0x161)]>=0x0,h=b[y(0x162)]||b['h'];if(g&&h){if(this['_generators'][y(0x161)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[y(0x120)][y(0x129)]){const i=this[y(0x125)]();if(!i)throw new MustBeInProjectError();}if(this['options'][y(0x149)]){const j=this[y(0x126)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][y(0x164)]==='number'){if(a[y(0x161)]<this['options']['minArgLength']){Log[y(0x133)](y(0x165));throw new UsageError();}}if(typeof this[y(0x120)][y(0x11e)]===y(0x118)){if(a[y(0x161)]>this[y(0x120)][y(0x11e)]){Log[y(0x133)](y(0x13d));throw new UsageError();}}if(typeof this[y(0x120)][y(0x15a)]===y(0x118)){if(Object[y(0x16d)](b)[y(0x161)]<this[y(0x120)][y(0x15a)]){Log[y(0x133)](y(0x141));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===y(0x118)){if(Object[y(0x16d)](b)['length']>=this[y(0x120)][y(0x11a)]){Log[y(0x133)]('Too\x20many\x20options');throw new UsageError();}}}await this[y(0x13b)](a,b,this[y(0x120)]);if(!b[y(0x12a)]&&!this[y(0x120)][y(0x17b)]){Log[y(0x133)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this[y(0x15f)](k),process[y(0x179)](0x1);}inside(b[y(0x139)],async()=>{const z=y;try{if(!b[z(0x13f)]&&!this[z(0x15c)][z(0x150)]())throw new MustBeInProjectError();const l=b[z(0x12a)]?.[z(0x128)](/\\/g,'/')['split']('/');!b[z(0x135)]&&(l?.[z(0x161)]>0x1?(b[z(0x12a)]=l['pop'](),c[0x0]=b['resourceName'],b[z(0x135)]=l[z(0x15d)](m=>{return paramCase(m);})['join'](a97e[z(0x13c)])):b['dir']='');if(this[z(0x120)]['checkWhere']){if(!b[z(0x166)]){const n={'type':z(0x175),'name':'colLocAnswer','message':z(0x172),'choices':[{'name':z(0x156),'value':z(0x13a)},{'name':'Server','value':z(0x153)},{'name':z(0x15b),'value':z(0x17a)}]},{colLocAnswer:o}=await Actions[z(0x120)](n);o?b[z(0x166)]=o:b['where']=z(0x17a);}const m=[z(0x17a),z(0x13a),z(0x153)];if(!m[z(0x15e)](b[z(0x166)])){Log[z(0x133)](z(0x177));throw new UsageError();}switch(b[z(0x166)]){case z(0x17a):b[z(0x151)]='lib';break;case z(0x153):b['appPathPrefix']=z(0x153);break;case z(0x13a):b[z(0x151)]=z(0x13a);break;default:b[z(0x151)]='';}}await this[z(0x148)][z(0x11c)](this,c,b);}catch(p){this['handleGenerateError'](p);}});}[a97t(0x174)](){const A=a97t;this[A(0x119)](this[A(0x16c)]);}[a97t(0x15f)](a){const B=a97t,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[B(0x120)];Log[B(0x168)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log['notice'](B(0x14d)),this[B(0x119)](this[B(0x16c)]);else{if(a instanceof MustBeInProjectError)Log[B(0x133)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[B(0x133)](B(0x173)),Log[B(0x130)](B(0x169));else a instanceof NoMeteorAppFoundError&&Log[B(0x133)](B(0x117));}}}[a97t(0x119)](a){const C=a97t,b=new a97f({});b[C(0x12f)]([C(0x157),C(0x12e),C(0x14e)]),a['sort']()[C(0x146)](c=>{const D=C;b[D(0x12f)]([c[D(0x14f)],c[D(0x136)](),c[D(0x155)]()]);}),Log[C(0x12d)](b[C(0x11f)]());}}function a97c(){const E=['match','bright','Alias','push','notice','find','addGenerator','error','Generator.create\x20requires\x20a\x20handler\x20function!','dir','aliases','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Generator.create\x20requires\x20some\x20options!','cwd','client','validateParams','sep','Too\x20many\x20arguments','2706594XNGblL','root','setColorMode','Too\x20few\x20options','create','229ljUvLG','slice','28953OZCCte','forEach','getGlobalConfig','_handler','mustHaveMeteorInstalled','Generator\x20format\x20is\x20incorrect','Generator\x20requires\x20a\x20name','chdir','Generators:','Description','name','findProjectDirectory','appPathPrefix','Generator\x20','server','11753931TFMKyA','shortDesc','Client','Name','(((.+)+)+)+$','2368sZpNwu','minOptsLength','Both','fsi','map','includes','handleGenerateError','processAndRunGenerator','length','help','Generator\x20not\x20found','minArgLength','Too\x20few\x20arguments','where','invoke','usage','Please\x20run\x20\x22maka\x20install\x20meteor\x22','bind','LIGHT','_generators','keys','search','assign','71508976fUNijA','15ZAwnDq','Location','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','listGenerators','list','constructor','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','DARK','exit','both','noNeedResource','13894600FTmkxh','There\x20is\x20no\x20Meteor\x20application\x20here','number','tableList','maxOptsLength','2086780aYtfmW','call','validateMakaSubscription','maxArgLength','toString','options','light','function','Generator\x20requires\x20a\x20handler\x20function','6cEKzcV','validateMakaProject','validateMeteorInstall','7926TrINFl','replace','mustBeInMakaProject','resourceName','pallet'];a97c=function(){return E;};return a97c();}
@@ -1 +1 @@
1
- (function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0xc3))/0x1*(parseInt(f(0xc1))/0x2)+parseInt(f(0xbc))/0x3*(-parseInt(f(0xc0))/0x4)+parseInt(f(0xb8))/0x5*(parseInt(f(0xc5))/0x6)+-parseInt(f(0xbb))/0x7*(-parseInt(f(0xc2))/0x8)+parseInt(f(0xbe))/0x9+parseInt(f(0xba))/0xa*(-parseInt(f(0xc7))/0xb)+parseInt(f(0xbd))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x22422));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var g=a98d;return a98a[g(0xbf)]()['search']('(((.+)+)+)+$')[g(0xbf)]()[g(0xc4)](a98a)[g(0xc6)](g(0xb9));});a98a();function a98c(){var h=['313704vrmpuk','toString','4fIirCY','704MJYNIU','3448BBabeJ','682IuYqvJ','constructor','1085106iprucr','search','231xkVWth','5NTgKrR','(((.+)+)+)+$','128580TvhUoI','1407eFteGs','761586jvxokU','1461600IPZVqB'];a98c=function(){return h;};return a98c();}import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0xb8;var f=c[d];return f;},a98d(a,b);}import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
1
+ (function(a,b){var f=a98d,c=a();while(!![]){try{var d=-parseInt(f(0x136))/0x1*(parseInt(f(0x12e))/0x2)+-parseInt(f(0x13d))/0x3*(-parseInt(f(0x12f))/0x4)+-parseInt(f(0x137))/0x5+-parseInt(f(0x13a))/0x6*(parseInt(f(0x139))/0x7)+parseInt(f(0x130))/0x8*(-parseInt(f(0x132))/0x9)+-parseInt(f(0x134))/0xa+-parseInt(f(0x12d))/0xb*(-parseInt(f(0x13c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xea237));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x138)]()['search'](h(0x135))[h(0x138)]()[h(0x131)](a98a)[h(0x13b)]('(((.+)+)+)+$');});a98a();import'./services/_index.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x12d;var f=c[d];return f;},a98d(a,b);}import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';function a98c(){var i=['2002mtCqnd','5058GfYGZt','search','9864gcRrKn','3UCvwcl','38676CjhePW','4oasiSe','2329676jQodcg','26008THAFAX','constructor','2466nrovhH','apply','1823660yjWsdW','(((.+)+)+)+$','463084kcxwaH','1365670cXrNVy','toString'];a98c=function(){return i;};return a98c();}import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
@@ -1 +1 @@
1
- const a99y=a99d;(function(a,b){const v=a99d,c=a();while(!![]){try{const d=-parseInt(v(0x1bd))/0x1*(parseInt(v(0x1c8))/0x2)+-parseInt(v(0x1a7))/0x3*(-parseInt(v(0x1c2))/0x4)+parseInt(v(0x1b3))/0x5*(parseInt(v(0x187))/0x6)+-parseInt(v(0x1ad))/0x7+-parseInt(v(0x1db))/0x8*(parseInt(v(0x19e))/0x9)+-parseInt(v(0x1aa))/0xa*(-parseInt(v(0x1c1))/0xb)+parseInt(v(0x1ae))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xd13dc));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a99d;if(c){const e=c[w(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const x=a99d;return a99a[x(0x1b8)]()[x(0x1a9)](x(0x190))['toString']()[x(0x193)](a99a)[x(0x1a9)](x(0x190));});function a99c(){const B=['test','api','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','apollo','template','error','(((.+)+)+)+$','injectAtEndOfFile','pathFromApp','constructor','typeDefs.','.app-tests.','TypeDefs);\x0a','TypeDefs\x20}\x20from\x20\x27','resolvers.','import\x20{\x20typeDefs\x20as\x20','\x27;\x0a','fsi','checkbox','const','11493VwrgfX','length','/graphql/resolvers','dir','Verifying\x20meteor\x20package\x20requirements\x20...','ddp-rate-limiter','withPubs','getProjectConfig','api/tests.js','69753PHPera','index.','search','3630QryBjQ','exit','checkMeteorPackage','2061899FlAGKA','20466684JFyHVo','installMeteorPackage','REST\x20API','apply','register-','4750895XxzOcB','resourceName','/imports/api','maka:rest','mdg:validated-method','toString','options','mongo','if\x20\x5c(typeList','api/methods.js','1623506dGFsln','injectIntoFile','injectAtBeginningOfFile','api/api.js','12991SQhcJr','92jbTwyb','rpc-methods.','withGql','includes','server','Resolvers);\x0a\x0a','2WhbkAh','withMethods','typeList.push(','create','none','fixtures.','withRest','-api.','No\x20API\x20boundaries\x20selected','api/typeDefs.js','withFixtures','GraphQL','notice','api/resolvers.js','resolverList.push(','push','Fixtures','api/publications.js','rewriteDestinationPathForEngine','5288wfIIeK','collection','engines','\x0aimport\x20{\x20resolvers\x20as\x20','API\x20boundaries\x20to\x20create','graphql','startup','api/register-api.js','apiAnswers','6pxWDei','imports','Publications'];a99c=function(){return B;};return a99c();}a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x184;let f=c[d];return f;},a99d(a,b);}Generator[a99y(0x1cb)]({'name':a99y(0x18b),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a99y(0x18c),'validOpts':[a99y(0x1a1)],'examples':['maka\x20g:api\x20Todos'],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const z=a99y;try{const c=this[z(0x19b)][z(0x1a5)](),d=[{'name':'RPC\x20(Methods)','value':z(0x1c9)},{'name':z(0x1d8),'value':z(0x1d2)},{'name':z(0x189),'value':'withPubs'}];c['engines'][z(0x18b)]==='rest'&&d[z(0x1d7)]({'name':z(0x1b0),'value':z(0x1ce)});c[z(0x1dd)][z(0x1e0)]===z(0x18d)&&d[z(0x1d7)]({'name':z(0x1d3),'value':z(0x1c4)});const f={'type':z(0x19c),'name':z(0x186),'message':z(0x1df),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x1b9)](f);g[z(0x19f)]===0x0&&(Log[z(0x18f)](z(0x1d0)),process['exit'](0x1)),this['fsi']['withValue'](c,async()=>{const A=z,h=this[A(0x19b)]['pathFromApp']({}),i=b[A(0x1b4)],j=paramCase(i),k=camelCase(i),l=b[A(0x1a1)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x1dd)]['api'],'graphql':c[A(0x1dd)][A(0x1e0)],'test':c[A(0x1dd)]['test'],'noRename':!![],'withPubs':g['includes']('withPubs'),'withFixtures':g['includes'](A(0x1d2)),'withMethods':g[A(0x1c5)](A(0x1c9)),'withRest':g[A(0x1c5)](A(0x1ce))};let n='js';c[A(0x1dd)]['js']==='tsx'&&(n='ts');(!this[A(0x19b)][A(0x1ac)](A(0x1b6))||!this[A(0x19b)][A(0x1ac)]('maka:check')||!this[A(0x19b)][A(0x1ac)](A(0x1a3))||!this[A(0x19b)][A(0x1ac)](A(0x1b7))||!this['fsi'][A(0x1ac)](A(0x1ba)))&&(Log[A(0x1d4)](A(0x1a2)),await this['fsi'][A(0x1af)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));await a99e['processAndRunGenerator'](A(0x1dc),[j],{'config':c,'where':'server'});c[A(0x1dd)][A(0x18b)]==='rest'&&(m[A(0x1ce)]&&this[A(0x19b)][A(0x18e)]({'srcPath':A(0x1c0),'destPath':this[A(0x19b)][A(0x192)]({'pathParts':[A(0x188),A(0x18b),b['dir'],j,'rest-api.'+n]}),'context':m,'config':c}));m[A(0x1c9)]&&this[A(0x19b)][A(0x18e)]({'srcPath':A(0x1bc),'destPath':this['fsi'][A(0x192)]({'pathParts':[A(0x188),A(0x18b),b['dir'],j,A(0x1c3)+n]}),'context':m,'config':c});m[A(0x1d2)]&&this[A(0x19b)]['template']({'srcPath':'api/fixtures.js','destPath':this[A(0x19b)][A(0x192)]({'pathParts':[A(0x188),'api',b[A(0x1a1)],j,A(0x1cd)+n]}),'context':m,'config':c});c[A(0x1dd)][A(0x18a)]!==A(0x1cc)&&this[A(0x19b)][A(0x18e)]({'srcPath':A(0x1a6),'destPath':this[A(0x19b)]['pathFromApp']({'pathParts':[A(0x188),A(0x18b),b[A(0x1a1)],j,j+A(0x195)+n]}),'context':m,'config':c});m[A(0x1a4)]&&this[A(0x19b)][A(0x18e)]({'srcPath':A(0x1d9),'destPath':this['fsi'][A(0x192)]({'pathParts':['imports',A(0x18b),b[A(0x1a1)],j,'publications.'+n]}),'context':m,'config':c});if(c[A(0x1dd)][A(0x1e0)]===A(0x18d)){if(g[A(0x1c5)](A(0x1c4))){const p=this[A(0x19b)][A(0x192)]({'pathParts':[A(0x188),A(0x184),A(0x1c6),A(0x1a8)+c[A(0x1dd)]['js']]}),q=this[A(0x19b)][A(0x1da)]({'pathParts':[p],'config':c}),r=this[A(0x19b)]['pathFromApp']({'pathParts':['imports',A(0x18b),b[A(0x1a1)],j,A(0x1e0),A(0x194)+n]}),s=A(0x1b5)+l+j+'/graphql/typeDefs';this[A(0x19b)][A(0x18e)]({'srcPath':A(0x1d1),'destPath':r,'context':m,'config':c}),this[A(0x19b)]['injectAtBeginningOfFile']({'filePath':q,'content':A(0x199)+k+A(0x197)+s+A(0x19a)}),this[A(0x19b)][A(0x1be)]({'filePath':q,'content':A(0x1ca)+k+A(0x196),'begin':'const','end':A(0x1bb)});const t=this[A(0x19b)][A(0x192)]({'pathParts':['imports','api',b[A(0x1a1)],j,A(0x1e0),A(0x198)+n]}),u='/imports/api'+l+j+A(0x1a0);this[A(0x19b)][A(0x18e)]({'srcPath':A(0x1d5),'destPath':t,'context':m,'config':c}),this[A(0x19b)][A(0x1bf)]({'filePath':q,'content':A(0x1de)+k+'Resolvers\x20}\x20from\x20\x27'+u+'\x27;'}),this[A(0x19b)]['injectIntoFile']({'filePath':q,'content':A(0x1d6)+k+A(0x1c7),'begin':A(0x19d),'end':A(0x1bb)});}}this[A(0x19b)][A(0x18e)]({'srcPath':A(0x185),'destPath':this['fsi'][A(0x192)]({'pathParts':[A(0x188),'startup',A(0x1c6),A(0x1b2)+j+A(0x1cf)+n]}),'context':m,'config':c,'force':!![]});const o=this[A(0x19b)][A(0x192)]({'pathParts':[A(0x188),A(0x184),'server',A(0x1a8)+c[A(0x1dd)]['js']]});this[A(0x19b)][A(0x191)]({'filePath':o,'content':'import\x20\x27./register-'+j+'-api\x27;'});});}catch(h){console[z(0x18f)](h),process[z(0x1ab)](0x0);}});
1
+ const a99y=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xbb;let f=c[d];return f;},a99d(a,b);}(function(a,b){const v=a99d,c=a();while(!![]){try{const d=-parseInt(v(0xcf))/0x1+-parseInt(v(0xde))/0x2*(-parseInt(v(0xf3))/0x3)+parseInt(v(0x10e))/0x4+parseInt(v(0xda))/0x5*(-parseInt(v(0xe6))/0x6)+parseInt(v(0x10d))/0x7*(parseInt(v(0xec))/0x8)+parseInt(v(0x102))/0x9+-parseInt(v(0xee))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x6459f));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a99d;if(c){const e=c[w(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const x=a99d;return a99a['toString']()['search']('(((.+)+)+)+$')[x(0xdb)]()[x(0xf8)](a99a)[x(0xcd)]('(((.+)+)+)+$');});a99a();function a99c(){const B=['processAndRunGenerator','-api\x27;','resolvers.','pathFromApp','Resolvers\x20}\x20from\x20\x27','/graphql/resolvers','maka:check','fsi','Fixtures','injectAtEndOfFile','search','installMeteorPackage','153589yuddMT','maka:rest','withPubs','api/fixtures.js','apiAnswers','withFixtures','injectIntoFile','maka\x20{generate,\x20g}:{api}\x20<resource-name>','if\x20\x5c(typeList','apply','push','40OdHmiH','toString','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','exit','22wDYyDb','apollo','Verifying\x20meteor\x20package\x20requirements\x20...','api/tests.js','withMethods','GraphQL','none','rest-api.','489414NIMGcG','const','getProjectConfig','test','maka\x20g:api\x20Todos','checkMeteorPackage','8jBFYlD','import\x20{\x20typeDefs\x20as\x20','6470710YxVIdy','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','/graphql/typeDefs','graphql','startup','195480lhozwo','dir','rpc-methods.','resourceName','notice','constructor','withGql','\x27;\x0a','withRest','template','API\x20boundaries\x20to\x20create','ddp-rate-limiter','import\x20\x27./register-','injectAtBeginningOfFile','server','4307391RoIdtm','register-','api','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','typeList.push(','/imports/api','engines','error','-api.','resolverList.push(','\x0aimport\x20{\x20resolvers\x20as\x20','1947449kKxPdD','1562740svGlKb','typeDefs.','checkbox','fixtures.','api/api.js','api/register-api.js','length','index.','rest','tsx','includes','imports'];a99c=function(){return B;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a99y(0x104),'aliases':['a'],'usage':a99y(0xd6),'shortDesc':a99y(0x105),'validOpts':[a99y(0xf4)],'examples':[a99y(0xea)],'description':a99y(0xdc)},async function(a,b){const z=a99y;try{const c=this['fsi'][z(0xe8)](),d=[{'name':'RPC\x20(Methods)','value':z(0xe2)},{'name':z(0xcb),'value':z(0xd4)},{'name':'Publications','value':z(0xd1)}];c[z(0x108)][z(0x104)]===z(0xbf)&&d['push']({'name':'REST\x20API','value':'withRest'});c[z(0x108)][z(0xf1)]===z(0xdf)&&d[z(0xd9)]({'name':z(0xe3),'value':z(0xf9)});const f={'type':z(0x110),'name':z(0xd3),'message':z(0xfd),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[z(0xbd)]===0x0&&(Log[z(0x109)]('No\x20API\x20boundaries\x20selected'),process[z(0xdd)](0x1)),this[z(0xca)]['withValue'](c,async()=>{const A=z,h=this[A(0xca)][A(0xc6)]({}),i=b[A(0xf6)],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x108)][A(0x104)],'graphql':c[A(0x108)][A(0xf1)],'test':c['engines'][A(0xe9)],'noRename':!![],'withPubs':g[A(0xc1)]('withPubs'),'withFixtures':g[A(0xc1)](A(0xd4)),'withMethods':g['includes']('withMethods'),'withRest':g[A(0xc1)](A(0xfb))};let n='js';c[A(0x108)]['js']===A(0xc0)&&(n='ts');(!this[A(0xca)][A(0xeb)](A(0xd0))||!this['fsi'][A(0xeb)](A(0xc9))||!this[A(0xca)][A(0xeb)](A(0xfe))||!this['fsi']['checkMeteorPackage']('mdg:validated-method')||!this['fsi']['checkMeteorPackage']('mongo'))&&(Log[A(0xf7)](A(0xe0)),await this[A(0xca)][A(0xce)](A(0xef),{'cwd':h}));await a99e[A(0xc3)]('collection',[j],{'config':c,'where':A(0x101)});c[A(0x108)][A(0x104)]==='rest'&&(m[A(0xfb)]&&this[A(0xca)]['template']({'srcPath':A(0xbb),'destPath':this[A(0xca)]['pathFromApp']({'pathParts':[A(0xc2),'api',b['dir'],j,A(0xe5)+n]}),'context':m,'config':c}));m['withMethods']&&this[A(0xca)][A(0xfc)]({'srcPath':'api/methods.js','destPath':this['fsi'][A(0xc6)]({'pathParts':['imports',A(0x104),b['dir'],j,A(0xf5)+n]}),'context':m,'config':c});m[A(0xd4)]&&this[A(0xca)][A(0xfc)]({'srcPath':A(0xd2),'destPath':this[A(0xca)][A(0xc6)]({'pathParts':['imports',A(0x104),b[A(0xf4)],j,A(0x111)+n]}),'context':m,'config':c});c[A(0x108)][A(0xe9)]!==A(0xe4)&&this['fsi']['template']({'srcPath':A(0xe1),'destPath':this['fsi'][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b[A(0xf4)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m['withPubs']&&this['fsi'][A(0xfc)]({'srcPath':'api/publications.js','destPath':this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b[A(0xf4)],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][A(0xf1)]===A(0xdf)){if(g['includes']('withGql')){const p=this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0xf2),A(0x101),'index.'+c['engines']['js']]}),q=this[A(0xca)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this['fsi'][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b['dir'],j,A(0xf1),A(0x10f)+n]}),s=A(0x107)+l+j+A(0xf0);this['fsi'][A(0xfc)]({'srcPath':'api/typeDefs.js','destPath':r,'context':m,'config':c}),this[A(0xca)][A(0x100)]({'filePath':q,'content':A(0xed)+k+'TypeDefs\x20}\x20from\x20\x27'+s+A(0xfa)}),this[A(0xca)][A(0xd5)]({'filePath':q,'content':A(0x106)+k+'TypeDefs);\x0a','begin':A(0xe7),'end':A(0xd7)});const t=this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0x104),b[A(0xf4)],j,A(0xf1),A(0xc5)+n]}),u=A(0x107)+l+j+A(0xc8);this[A(0xca)][A(0xfc)]({'srcPath':'api/resolvers.js','destPath':t,'context':m,'config':c}),this[A(0xca)][A(0x100)]({'filePath':q,'content':A(0x10c)+k+A(0xc7)+u+'\x27;'}),this['fsi'][A(0xd5)]({'filePath':q,'content':A(0x10b)+k+'Resolvers);\x0a\x0a','begin':A(0xe7),'end':'if\x20\x5c(typeList'});}}this['fsi'][A(0xfc)]({'srcPath':A(0xbc),'destPath':this[A(0xca)][A(0xc6)]({'pathParts':[A(0xc2),A(0xf2),'server',A(0x103)+j+A(0x10a)+n]}),'context':m,'config':c,'force':!![]});const o=this['fsi'][A(0xc6)]({'pathParts':[A(0xc2),A(0xf2),A(0x101),A(0xbe)+c['engines']['js']]});this[A(0xca)][A(0xcc)]({'filePath':o,'content':A(0xff)+j+A(0xc4)});});}catch(h){console[z(0x109)](h),process[z(0xdd)](0x0);}});
@@ -1 +1 @@
1
- function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xe1;let f=c[d];return f;},a100d(a,b);}function a100c(){const q=['tsx','fsi','1086071CylidD','645856fJMgDL','startup','getProjectConfig','maka:check','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','33240CxEThP','pathFromApp','imports','collections','injectAtEndOfFile','appPathPrefix','.app-tests.','apply','mongo','33ANziyX','1956954nJmQLQ','221390YLhchG','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','test','withValue','5VVtbpm','collection/collection.js','notice','(((.+)+)+)+$','collection/tests.js','engines','template','where','none','error','col','\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','search','187hrwgdD','9zkNShM','checkMeteorPackage','index.','collection','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','dir','995LKeVQc','814320BcgAxR','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','constructor','create','installMeteorPackage','import\x20\x27./collections','toString','870UOwtbu','resourceName'];a100c=function(){return q;};return a100c();}const a100n=a100d;(function(a,b){const k=a100d,c=a();while(!![]){try{const d=parseInt(k(0x109))/0x1*(-parseInt(k(0x111))/0x2)+-parseInt(k(0xef))/0x3*(-parseInt(k(0xe6))/0x4)+parseInt(k(0xf5))/0x5*(parseInt(k(0xf0))/0x6)+-parseInt(k(0x115))/0x7+parseInt(k(0xe1))/0x8*(parseInt(k(0x103))/0x9)+parseInt(k(0xf1))/0xa*(parseInt(k(0x102))/0xb)+-parseInt(k(0x10a))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x356ca));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a100d;if(c){const e=c[l(0xed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const m=a100d;return a100a['toString']()[m(0x101)]('(((.+)+)+)+$')[m(0x110)]()[m(0x10c)](a100a)[m(0x101)](m(0xf8));});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100n(0x10d)]({'name':a100n(0x106),'aliases':[a100n(0xff)],'usage':a100n(0xe5),'checkWhere':!![],'shortDesc':a100n(0x107),'validOpts':[a100n(0x108),a100n(0xfc)],'description':a100n(0x100),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a100n;try{const c=this['fsi']['pathFromApp']({}),d=this[o(0x114)][o(0xe3)]();this[o(0x114)][o(0xf4)](d,async()=>{const p=o,f=paramCase(b[p(0x112)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x112)]),'fileName':f,'where':b[p(0xfc)],'test':d[p(0xfa)][p(0xf3)],'noRename':!![]};let h='js';d[p(0xfa)]['js']===p(0x113)&&(h='ts');!this[p(0x114)]['checkMeteorPackage'](p(0xee))&&(Log['notice'](p(0x10b)),await this['fsi'][p(0x10e)](p(0xee),{'cwd':c}));!this[p(0x114)][p(0x104)](p(0xe4))&&(Log[p(0xf7)](p(0xf2)),await this[p(0x114)][p(0x10e)](p(0xe4),{'cwd':c}));this[p(0x114)]['template']({'srcPath':p(0xf6),'destPath':this[p(0x114)][p(0xe7)]({'pathParts':[p(0xe8),p(0xe2),b[p(0xeb)],p(0xe9),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0xfa)]['test']!==p(0xfd)&&this['fsi'][p(0xfb)]({'srcPath':p(0xf9),'destPath':this['fsi']['pathFromApp']({'pathParts':[p(0xe8),p(0xe2),b['appPathPrefix'],p(0xe9),b[p(0x108)],f+p(0xec)+h]}),'context':g,'config':d});const i=b[p(0x108)]?'/'+b[p(0x108)]+'/':'/',j=this[p(0x114)][p(0xe7)]({'pathParts':['imports','startup',b['appPathPrefix'],p(0x105)+d[p(0xfa)]['js']]});this[p(0x114)][p(0xea)]({'filePath':j,'content':p(0x10f)+i+f+'\x27;'});});}catch(f){Log[o(0xfe)](f);}});
1
+ const a100n=a100d;function a100c(){const q=['engines','fsi','collection/tests.js','create','maka\x20g:collection\x20todos','6020830iGsFQr','notice','11RxMGzW','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','installMeteorPackage','tsx','apply','2903643ZQBYAC','test','where','391162JVGLVh','getProjectConfig','col','import\x20\x27./collections','injectAtEndOfFile','2051913VDJpXr','error','none','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','mongo','template','11602752kaDhyd','5aArwPP','263102nwnRtM','startup','230164WTOySw','resourceName','search','60LxpNYw','withValue','checkMeteorPackage','(((.+)+)+)+$','toString','imports','maka:check','.app-tests.','\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','2UdbeDf','16tAsEAD','pathFromApp','dir','constructor','appPathPrefix'];a100c=function(){return q;};return a100c();}(function(a,b){const k=a100d,c=a();while(!![]){try{const d=parseInt(k(0x1e5))/0x1*(parseInt(k(0x1d0))/0x2)+parseInt(k(0x1ba))/0x3+parseInt(k(0x1c4))/0x4*(-parseInt(k(0x1c1))/0x5)+-parseInt(k(0x1c7))/0x6*(parseInt(k(0x1c2))/0x7)+-parseInt(k(0x1d1))/0x8*(parseInt(k(0x1e2))/0x9)+-parseInt(k(0x1db))/0xa*(parseInt(k(0x1dd))/0xb)+parseInt(k(0x1c0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x5834b));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a100d;if(c){const e=c[l(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const m=a100d;return a100a[m(0x1cb)]()[m(0x1c6)](m(0x1ca))[m(0x1cb)]()[m(0x1d4)](a100a)['search']('(((.+)+)+)+$');});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a100d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a100n(0x1d9)]({'name':'collection','aliases':[a100n(0x1e7)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a100n(0x1de),'validOpts':['dir',a100n(0x1e4)],'description':a100n(0x1cf),'examples':[a100n(0x1da)]},async function(a,b){const o=a100n;try{const c=this[o(0x1d7)][o(0x1d2)]({}),d=this['fsi'][o(0x1e6)]();this[o(0x1d7)][o(0x1c8)](d,async()=>{const p=o,f=paramCase(b[p(0x1c5)]),g={'name':pascalCase(b[p(0x1c5)]),'collectionName':pascalCase(b[p(0x1c5)]),'fileName':f,'where':b[p(0x1e4)],'test':d['engines']['test'],'noRename':!![]};let h='js';d[p(0x1d6)]['js']===p(0x1e0)&&(h='ts');!this[p(0x1d7)][p(0x1c9)](p(0x1be))&&(Log[p(0x1dc)](p(0x1bd)),await this[p(0x1d7)][p(0x1df)](p(0x1be),{'cwd':c}));!this[p(0x1d7)][p(0x1c9)](p(0x1cd))&&(Log[p(0x1dc)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[p(0x1d7)][p(0x1df)](p(0x1cd),{'cwd':c}));this[p(0x1d7)]['template']({'srcPath':'collection/collection.js','destPath':this['fsi']['pathFromApp']({'pathParts':[p(0x1cc),'startup',b[p(0x1d5)],'collections',b[p(0x1d3)],f+'.'+h]}),'context':g,'config':d});d[p(0x1d6)][p(0x1e3)]!==p(0x1bc)&&this[p(0x1d7)][p(0x1bf)]({'srcPath':p(0x1d8),'destPath':this[p(0x1d7)][p(0x1d2)]({'pathParts':[p(0x1cc),'startup',b[p(0x1d5)],'collections',b['dir'],f+p(0x1ce)+h]}),'context':g,'config':d});const i=b[p(0x1d3)]?'/'+b[p(0x1d3)]+'/':'/',j=this[p(0x1d7)][p(0x1d2)]({'pathParts':[p(0x1cc),p(0x1c3),b['appPathPrefix'],'index.'+d[p(0x1d6)]['js']]});this[p(0x1d7)][p(0x1e9)]({'filePath':j,'content':p(0x1e8)+i+f+'\x27;'});});}catch(f){Log[o(0x1bb)](f);}});
@@ -1 +1 @@
1
- function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x150;let f=c[d];return f;},a101d(a,b);}function a101c(){const s=['(((.+)+)+)+$','dir','pages','import\x20\x27./','\x27;\x0a','ramda','56KYmKWN','1342712hEkUGK','css','ssr','className','setTemplate','pathFromApp','react','checkNpmPackage','imports','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','6035200MvcJQM','engines','4792416pESpqK','installNpmPackage','fsi','components','client','graphql','/imports/ui/components','string','withTranslations','reflux','test/test.js','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','component','703683JNqSjx','rewriteDestinationPathForEngine','.js','features','fileName','test','.css','export\x20\x27','/imports/ui/','constructor','hooks','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','warn','export\x20{\x20','1575549qHSQVT','2kRtUoi','1095372BuUPoj','resourceName','create','root','13431573XaDSTO','injectAtEndOfFile','getProjectConfig','withValue','assign','true','baseDir','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','template','error','theme','findAppDirectory','cssCaseName','maka\x20g:comp\x20todos/todos-item','toString','.tests.js','api'];a101c=function(){return s;};return a101c();}const a101p=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=-parseInt(n(0x181))/0x1*(-parseInt(n(0x190))/0x2)+parseInt(n(0x18f))/0x3+parseInt(n(0x174))/0x4+-parseInt(n(0x172))/0x5+-parseInt(n(0x191))/0x6+parseInt(n(0x167))/0x7*(parseInt(n(0x168))/0x8)+-parseInt(n(0x150))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xd8b83));const a101b=(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;};}()),a101a=a101b(this,function(){const o=a101d;return a101a[o(0x15e)]()['search'](o(0x161))[o(0x15e)]()[o(0x18a)](a101a)['search'](o(0x161));});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator[a101p(0x193)]({'name':a101p(0x180),'aliases':aliases,'usage':a101p(0x17f),'shortDesc':a101p(0x18c),'validOpts':[{'name':'baseDir','values':[a101p(0x18b),a101p(0x177),a101p(0x163),'layouts']}],'examples':[a101p(0x15d)]},async function(a,b){const q=a101p;try{const c=this['fsi'][q(0x15b)](),d=b[q(0x156)]?q(0x189)+b[q(0x156)]:q(0x17a),f=this['fsi']['pathFromApp']({'pathParts':[d,b[q(0x162)],paramCase(b[q(0x192)]),paramCase(b[q(0x192)])]}),g=await this[q(0x176)][q(0x152)]();this[q(0x176)][q(0x153)](g,async()=>{const r=q;typeof g[r(0x158)][r(0x186)]===r(0x17b)&&(g[r(0x158)][r(0x186)]=g[r(0x158)]['test']==='true'?!![]:![],this[r(0x176)][r(0x16c)]('test',g['template'][r(0x186)]));typeof g['template']['css']===r(0x17b)&&(g[r(0x158)][r(0x169)]=g[r(0x158)][r(0x169)]===r(0x155)?!![]:![],this[r(0x176)]['setTemplate'](r(0x169),g[r(0x158)][r(0x169)]));typeof g[r(0x158)]['js']==='string'&&(g[r(0x158)]['js']=g[r(0x158)]['js']===r(0x155)?!![]:![],this[r(0x176)][r(0x16c)]('js',g['template']['js']));!g[r(0x184)]&&(g[r(0x184)]={});!b[r(0x194)]&&!this[r(0x176)][r(0x16f)](r(0x166))&&(Log[r(0x18d)](r(0x171)),await this[r(0x176)][r(0x175)]('ramda',{'cwd':c}));if(!b[r(0x194)]&&!this[r(0x176)]['checkNpmPackage'](r(0x16e))){Log[r(0x159)](r(0x157));return;}const h={'name':pascalCase(b[r(0x192)]),'myPath':a101e['relative'](this[r(0x176)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[r(0x192)]),'className':pascalCase(b[r(0x192)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x192)]),'graphql':g['engines'][r(0x179)],'features':g['features'],'client':g[r(0x173)][r(0x178)],'api':g[r(0x173)][r(0x160)],'ssr':g[r(0x173)][r(0x16a)],'test':g[r(0x173)]['test'],'theme':g[r(0x173)][r(0x15a)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][r(0x17c)]};this[r(0x176)][r(0x158)]({'srcPath':'component/component.js','destPath':f+r(0x183),'context':h,'framework':'react','config':g});g[r(0x173)][r(0x186)]!=='none'&&this[r(0x176)][r(0x158)]({'srcPath':r(0x17e),'destPath':f+r(0x15f),'context':h,'framework':'react','config':g});g[r(0x158)][r(0x169)]&&(this[r(0x176)][r(0x158)]({'srcPath':'template/template.css','destPath':f+r(0x187),'context':Object[r(0x154)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[r(0x176)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[r(0x173)]['js'],'content':r(0x164)+h[r(0x15c)]+'.'+g[r(0x173)][r(0x169)]+'\x27;'}));const i=b[r(0x162)]?'/'+b[r(0x162)]+'/':'/',j=''+d+i+h[r(0x185)]+'/'+h[r(0x185)];let k;if(g[r(0x173)][r(0x16a)]===r(0x155)){const l=this[r(0x176)][r(0x16d)]({'pathParts':[r(0x170),'startup','lib','templates.js']});k=this[r(0x176)][r(0x182)]({'pathParts':[l],'config':g});}else{const m=this[r(0x176)][r(0x16d)]({'pathParts':[r(0x170),'startup','client','templates.js']});k=this[r(0x176)][r(0x182)]({'pathParts':[m],'config':g});}g[r(0x173)]['client']===r(0x16e)||g[r(0x173)][r(0x178)]===r(0x17d)?this[r(0x176)][r(0x151)]({'filePath':k,'content':r(0x18e)+h[r(0x16b)]+'\x20}\x20from\x20\x27'+j+r(0x165)}):this['fsi'][r(0x151)]({'filePath':k,'content':r(0x188)+j+'.'+g[r(0x173)]['js']+'\x27;\x0a'});});}catch(h){Log[q(0x159)](h);}});
1
+ const a101p=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=-parseInt(n(0x1b6))/0x1+parseInt(n(0x1e4))/0x2*(parseInt(n(0x1cc))/0x3)+-parseInt(n(0x1b7))/0x4*(-parseInt(n(0x1d2))/0x5)+-parseInt(n(0x1df))/0x6*(parseInt(n(0x1b8))/0x7)+-parseInt(n(0x1bb))/0x8+-parseInt(n(0x1bf))/0x9*(parseInt(n(0x1bc))/0xa)+parseInt(n(0x1ea))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xb7746));const a101b=(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;};}()),a101a=a101b(this,function(){const o=a101d;return a101a[o(0x1c4)]()[o(0x1d4)]('(((.+)+)+)+$')[o(0x1c4)]()[o(0x1da)](a101a)[o(0x1d4)](o(0x1b0));});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a101c(){const s=['dir','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','toString','assign','test','findAppDirectory','className','imports','fsi','true','3045rTrdfc','withTranslations','installNpmPackage','error','export\x20{\x20','.css','317875TLHEfM','.tests.js','search','template/template.css','engines','\x27;\x0a','.js','layouts','constructor','pathFromProject','features','baseDir','setTemplate','8558790fuyBmP','injectAtEndOfFile','css','string','injectAtBeginningOfFile','696iOmwGk','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','fileName','getProjectConfig','create','/imports/ui/components','33984423WElKhM','client','ramda','relative','pathFromApp','api','template','/imports/ui/','theme','cssCaseName','(((.+)+)+)+$','resourceName','pages','root','maka\x20g:comp\x20todos/todos-item','checkNpmPackage','328400LyGJyk','12vvUzWZ','7HhKSJn','rewriteDestinationPathForEngine','test/test.js','2280160FqdsMn','8421230EaHZbA','react','components','9RZfNLr','hooks'];a101c=function(){return s;};return a101c();}import{Log}from'../tools/log/log.class.js';const aliases=['comp'];function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a101d(a,b);}Generator[a101p(0x1e8)]({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a101p(0x1e5),'validOpts':[{'name':a101p(0x1dd),'values':[a101p(0x1c0),a101p(0x1be),a101p(0x1b2),a101p(0x1d9)]}],'examples':[a101p(0x1b4)]},async function(a,b){const q=a101p;try{const c=this[q(0x1ca)][q(0x1c7)](),d=b['baseDir']?q(0x1ad)+b[q(0x1dd)]:q(0x1e9),f=this[q(0x1ca)][q(0x1aa)]({'pathParts':[d,b['dir'],paramCase(b[q(0x1b1)]),paramCase(b[q(0x1b1)])]}),g=await this[q(0x1ca)][q(0x1e7)]();this['fsi']['withValue'](g,async()=>{const r=q;typeof g['template'][r(0x1c6)]==='string'&&(g[r(0x1ac)][r(0x1c6)]=g['template'][r(0x1c6)]===r(0x1cb)?!![]:![],this[r(0x1ca)]['setTemplate']('test',g[r(0x1ac)][r(0x1c6)]));typeof g[r(0x1ac)]['css']===r(0x1e2)&&(g[r(0x1ac)][r(0x1e1)]=g[r(0x1ac)][r(0x1e1)]===r(0x1cb)?!![]:![],this[r(0x1ca)][r(0x1de)](r(0x1e1),g[r(0x1ac)]['css']));typeof g[r(0x1ac)]['js']===r(0x1e2)&&(g['template']['js']=g[r(0x1ac)]['js']===r(0x1cb)?!![]:![],this[r(0x1ca)][r(0x1de)]('js',g[r(0x1ac)]['js']));!g[r(0x1dc)]&&(g['features']={});!b[r(0x1b3)]&&!this[r(0x1ca)][r(0x1b5)](r(0x1ec))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[r(0x1ca)][r(0x1ce)](r(0x1ec),{'cwd':c}));if(!b[r(0x1b3)]&&!this[r(0x1ca)][r(0x1b5)](r(0x1bd))){Log[r(0x1cf)](r(0x1c2));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a101e[r(0x1ed)](this[r(0x1ca)][r(0x1db)]({}),f),'cssCaseName':paramCase(b[r(0x1b1)]),'className':pascalCase(b[r(0x1b1)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x1b1)]),'graphql':g['engines']['graphql'],'features':g[r(0x1dc)],'client':g[r(0x1d6)][r(0x1eb)],'api':g['engines'][r(0x1ab)],'ssr':g[r(0x1d6)]['ssr'],'test':g[r(0x1d6)][r(0x1c6)],'theme':g['engines'][r(0x1ae)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][r(0x1cd)]};this[r(0x1ca)]['template']({'srcPath':'component/component.js','destPath':f+r(0x1d8),'context':h,'framework':r(0x1bd),'config':g});g[r(0x1d6)][r(0x1c6)]!=='none'&&this[r(0x1ca)][r(0x1ac)]({'srcPath':r(0x1ba),'destPath':f+r(0x1d3),'context':h,'framework':r(0x1bd),'config':g});g['template']['css']&&(this['fsi'][r(0x1ac)]({'srcPath':r(0x1d5),'destPath':f+r(0x1d1),'context':Object[r(0x1c5)]({},h,{'className':paramCase(b[r(0x1b1)])}),'config':g}),this[r(0x1ca)][r(0x1e3)]({'filePath':f+'.'+g['engines']['js'],'content':'import\x20\x27./'+h[r(0x1af)]+'.'+g[r(0x1d6)][r(0x1e1)]+'\x27;'}));const i=b[r(0x1c1)]?'/'+b['dir']+'/':'/',j=''+d+i+h[r(0x1e6)]+'/'+h[r(0x1e6)];let k;if(g[r(0x1d6)]['ssr']===r(0x1cb)){const l=this[r(0x1ca)][r(0x1aa)]({'pathParts':[r(0x1c9),'startup','lib',r(0x1c3)]});k=this['fsi'][r(0x1b9)]({'pathParts':[l],'config':g});}else{const m=this[r(0x1ca)][r(0x1aa)]({'pathParts':['imports','startup',r(0x1eb),r(0x1c3)]});k=this['fsi'][r(0x1b9)]({'pathParts':[m],'config':g});}g[r(0x1d6)]['client']===r(0x1bd)||g[r(0x1d6)]['client']==='reflux'?this['fsi'][r(0x1e0)]({'filePath':k,'content':r(0x1d0)+h[r(0x1c8)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this[r(0x1ca)][r(0x1e0)]({'filePath':k,'content':'export\x20\x27'+j+'.'+g['engines']['js']+r(0x1d7)});});}catch(h){Log[q(0x1cf)](h);}});
@@ -1 +1 @@
1
- const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x169))/0x1+-parseInt(h(0x151))/0x2+-parseInt(h(0x15b))/0x3+parseInt(h(0x163))/0x4+-parseInt(h(0x159))/0x5+-parseInt(h(0x16e))/0x6*(-parseInt(h(0x166))/0x7)+-parseInt(h(0x150))/0x8*(-parseInt(h(0x168))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x629af));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x155)]()[j(0x157)]('(((.+)+)+)+$')['toString']()[j(0x165)](a102a)[j(0x157)](j(0x15e));});a102a();function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x14d;let f=c[d];return f;},a102d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102c(){const n=['production','6816DcGHrw','maka\x20{generate,\x20g}:{config}\x20<name>','maka\x20g:config\x20production','settings.json','pathFromProject','473848QeQzFE','818584iIjVqq','prod','template','config/process.env','toString','config','search','process.env','779525QacXWF','create','1269336aQONMI','config/settings.json','apply','(((.+)+)+)+$','withValue','isDocker','fsi','getProjectConfig','172544hQUuQj','dev','constructor','3269szSagm','ubuntu','9OgriGN','759317auGRkS','resourceName','development','appName'];a102c=function(){return n;};return a102c();}Generator[a102k(0x15a)]({'name':'config','usage':a102k(0x16f),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a102k(0x160)],'examples':[a102k(0x14d)]},function(a,b){const l=a102k,c=this[l(0x161)][l(0x162)]();this['fsi'][l(0x15f)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x16c)]),'name':pascalCase(b[m(0x16a)]),'fileName':paramCase(b[m(0x16a)]),'camelCase':camelCase(b[m(0x16a)]),'userName':m(0x167),'isDocker':b[m(0x160)]};let e=b[m(0x16a)];if(e===m(0x164))e=m(0x16b);else e===m(0x152)&&(e=m(0x16d));const f=this[m(0x161)][m(0x14f)]({'pathParts':[m(0x156),e,m(0x14e)]});this[m(0x161)][m(0x153)]({'srcPath':m(0x15c),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x161)][m(0x14f)]({'pathParts':[m(0x156),e,m(0x158)]});this[m(0x161)][m(0x153)]({'srcPath':m(0x154),'destPath':g,'context':d,'config':c});}});});
1
+ function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a102d(a,b);}const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x1be))/0x1+parseInt(h(0x1b4))/0x2*(-parseInt(h(0x1b2))/0x3)+-parseInt(h(0x1c6))/0x4*(-parseInt(h(0x1c2))/0x5)+-parseInt(h(0x1ad))/0x6+parseInt(h(0x1ac))/0x7+parseInt(h(0x1b3))/0x8*(parseInt(h(0x1c8))/0x9)+-parseInt(h(0x1bd))/0xa*(parseInt(h(0x1b8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xbbf54));function a102c(){const n=['appName','toString','472228YBntzg','dev','4513041lZaMFd','withValue','create','6764289ZoyJyG','3596280cMfxGh','config/process.env','isDocker','apply','pathFromProject','265929tsnkuk','24VWgbHY','4LvVEEi','resourceName','Generate\x20configuration\x20settings.','prod','4796231KGZeoL','config','(((.+)+)+)+$','settings.json','maka\x20{generate,\x20g}:{config}\x20<name>','20gxIyoT','996546RFqPfF','production','development','fsi','40GDdUYq','ubuntu'];a102c=function(){return n;};return a102c();}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a['toString']()['search'](j(0x1ba))[j(0x1c5)]()['constructor'](a102a)['search']('(((.+)+)+)+$');});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x1ab)]({'name':'config','usage':a102k(0x1bc),'shortDesc':a102k(0x1b6),'validOpts':[a102k(0x1af)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a102k,c=this[l(0x1c1)]['getProjectConfig']();this[l(0x1c1)][l(0x1c9)](c,async()=>{const m=l,d={'app':c[m(0x1c4)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x1b5)]),'fileName':paramCase(b[m(0x1b5)]),'camelCase':camelCase(b[m(0x1b5)]),'userName':m(0x1c3),'isDocker':b['isDocker']};let e=b['resourceName'];if(e===m(0x1c7))e=m(0x1c0);else e===m(0x1b7)&&(e=m(0x1bf));const f=this[m(0x1c1)]['pathFromProject']({'pathParts':[m(0x1b9),e,m(0x1bb)]});this[m(0x1c1)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x1af)]){const g=this[m(0x1c1)][m(0x1b1)]({'pathParts':[m(0x1b9),e,'process.env']});this['fsi']['template']({'srcPath':m(0x1ae),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a103l=a103d;function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x76;let f=c[d];return f;},a103d(a,b);}(function(a,b){const j=a103d,c=a();while(!![]){try{const d=parseInt(j(0x9e))/0x1+parseInt(j(0x7d))/0x2+-parseInt(j(0x98))/0x3+-parseInt(j(0x7e))/0x4+parseInt(j(0x99))/0x5*(parseInt(j(0x8f))/0x6)+parseInt(j(0xa4))/0x7*(-parseInt(j(0x92))/0x8)+parseInt(j(0xa8))/0x9*(parseInt(j(0x9a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x90360));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const k=a103d;return a103a[k(0x7b)]()[k(0x8d)](k(0x8a))['toString']()[k(0xa0)](a103a)[k(0x8d)](k(0x8a));});a103a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103c(){const o=['Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','toString','withValue','2347266okmWaD','4370524CUhInn','dbc','checkNpmPackage','conn.','dbc/conn.js','type','-dbc\x27;','template','sqlite','imports','create','better-sqlite3','(((.+)+)+)+$','getProjectConfig','engines','search','maka\x20g:dbc\x20todos\x20--type=sqlite','1356bkztZa','tsx','pathFromApp','588792UviysT','dir','dbc/config.js','maka\x20g:dbc\x20azure\x20--type=mssql','import\x20\x27./register-','startup','1085934uaQUMJ','6450unNhtF','3862350naBWou','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','config.','register-','561884WKldkK','injectAtEndOfFile','constructor','installNpmPackage','mssql','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','35jwqPUy','pgsql','-dbc.','fsi','9GIeWoY','error','resourceName','warn','server'];a103c=function(){return o;};return a103c();}Generator[a103l(0x88)]({'name':a103l(0x7f),'usage':a103l(0xa3),'shortDesc':a103l(0x9b),'validOpts':[a103l(0x93)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103l(0x83),'values':[a103l(0xa5),a103l(0xa2),a103l(0x86)]}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a103l(0x95),a103l(0x8e)]},async function(a,b){const m=a103l;try{const c=await this[m(0xa7)][m(0x8b)](),d=this[m(0xa7)][m(0x91)]({}),f=paramCase(b[m(0x76)]),g={'name':pascalCase(b[m(0x76)]),'fileName':paramCase(b[m(0x76)]),'camelCase':camelCase(b[m(0x76)]),'type':b[m(0x83)],'engine':c[m(0x8c)]['js'],'noRename':!![]};this[m(0xa7)][m(0x7c)](c,async()=>{const n=m;let h='js';c[n(0x8c)]['js']===n(0x90)&&(h='ts');b[n(0x83)]===n(0xa5)&&!this[n(0xa7)][n(0x80)]('pg')&&(Log[n(0x77)](n(0x7a)),await this[n(0xa7)][n(0xa1)]('pg',{'cwd':d}));b[n(0x83)]===n(0xa2)&&!this[n(0xa7)][n(0x80)](n(0xa2))&&(Log[n(0x77)](n(0x79)),await this[n(0xa7)]['installNpmPackage'](n(0xa2),{'cwd':d}));b[n(0x83)]===n(0x86)&&!this[n(0xa7)]['checkNpmPackage'](n(0x89))&&(Log[n(0x77)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[n(0xa7)][n(0xa1)](n(0x89),{'cwd':d}));this[n(0xa7)][n(0x85)]({'srcPath':n(0x94),'destPath':this[n(0xa7)][n(0x91)]({'pathParts':[n(0x87),n(0x97),n(0x78),n(0x7f),b['dir'],f,n(0x9c)+h]}),'context':g,'config':c}),this[n(0xa7)][n(0x85)]({'srcPath':n(0x82),'destPath':this[n(0xa7)][n(0x91)]({'pathParts':[n(0x87),n(0x97),'server',n(0x7f),b[n(0x93)],f,n(0x81)+h]}),'context':g,'config':c}),this[n(0xa7)][n(0x85)]({'srcPath':'dbc/register-dbc.js','destPath':this['fsi'][n(0x91)]({'pathParts':[n(0x87),'startup',n(0x78),n(0x9d)+f+n(0xa6)+h]}),'context':g,'config':c});const i=this['fsi'][n(0x91)]({'pathParts':['imports',n(0x97),n(0x78),'index.'+c['engines']['js']]});this['fsi'][n(0x9f)]({'filePath':i,'content':n(0x96)+f+n(0x84)});});}catch(h){Log[m(0xa9)](h);}});
1
+ const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x15e))/0x1*(-parseInt(j(0x162))/0x2)+parseInt(j(0x157))/0x3+-parseInt(j(0x166))/0x4*(-parseInt(j(0x14c))/0x5)+parseInt(j(0x14a))/0x6+-parseInt(j(0x16e))/0x7+parseInt(j(0x15a))/0x8+-parseInt(j(0x158))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x30988));function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x148;let f=c[d];return f;},a103d(a,b);}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x178)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x179)]()[l(0x15c)](l(0x151))[l(0x179)]()[l(0x148)](a103a)[l(0x15c)]('(((.+)+)+)+$');});a103a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a103c(){const p=['startup','config.','dbc','fsi','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','checkNpmPackage','164227uCKnoy','warn','dbc/register-dbc.js','maka\x20g:dbc\x20todos\x20--type=sqlite','conn.','error','dbc/conn.js','maka\x20g:dbc\x20geoserver\x20--type=pgsql','dbc/config.js','-dbc.','apply','toString','import\x20\x27./register-','constructor','server','1852620euGNRg','withValue','260BkOjti','create','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','template','pgsql','(((.+)+)+)+$','installNpmPackage','pathFromApp','better-sqlite3','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','injectAtEndOfFile','282366bSRwTB','6147936NmDuVK','maka\x20g:dbc\x20azure\x20--type=mssql','1990112dzGXwX','imports','search','getProjectConfig','32801xEyqzL','dir','resourceName','mssql','2BlMkvT','-dbc\x27;','sqlite','engines','17012Yvbmnf','type'];a103c=function(){return p;};return a103c();}import{Log}from'../tools/log/log.class.js';Generator[a103m(0x14d)]({'name':a103m(0x16a),'usage':a103m(0x16c),'shortDesc':a103m(0x155),'validOpts':[a103m(0x15f)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103m(0x167),'values':[a103m(0x150),'mssql',a103m(0x164)]}],'examples':[a103m(0x175),a103m(0x159),a103m(0x171)]},async function(a,b){const n=a103m;try{const c=await this[n(0x16b)][n(0x15d)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b[n(0x160)]),g={'name':pascalCase(b[n(0x160)]),'fileName':paramCase(b[n(0x160)]),'camelCase':camelCase(b[n(0x160)]),'type':b[n(0x167)],'engine':c['engines']['js'],'noRename':!![]};this[n(0x16b)][n(0x14b)](c,async()=>{const o=n;let h='js';c[o(0x165)]['js']==='tsx'&&(h='ts');b[o(0x167)]===o(0x150)&&!this[o(0x16b)][o(0x16d)]('pg')&&(Log[o(0x16f)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[o(0x16b)][o(0x152)]('pg',{'cwd':d}));b[o(0x167)]==='mssql'&&!this['fsi'][o(0x16d)]('mssql')&&(Log[o(0x16f)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x16b)][o(0x152)](o(0x161),{'cwd':d}));b[o(0x167)]===o(0x164)&&!this[o(0x16b)][o(0x16d)](o(0x154))&&(Log[o(0x16f)](o(0x14e)),await this[o(0x16b)]['installNpmPackage'](o(0x154),{'cwd':d}));this[o(0x16b)][o(0x14f)]({'srcPath':o(0x176),'destPath':this['fsi'][o(0x153)]({'pathParts':[o(0x15b),o(0x168),o(0x149),o(0x16a),b[o(0x15f)],f,o(0x169)+h]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':o(0x174),'destPath':this[o(0x16b)][o(0x153)]({'pathParts':[o(0x15b),'startup',o(0x149),'dbc',b[o(0x15f)],f,o(0x172)+h]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':o(0x170),'destPath':this[o(0x16b)][o(0x153)]({'pathParts':[o(0x15b),'startup','server','register-'+f+o(0x177)+h]}),'context':g,'config':c});const i=this[o(0x16b)][o(0x153)]({'pathParts':['imports',o(0x168),'server','index.'+c[o(0x165)]['js']]});this['fsi'][o(0x156)]({'filePath':i,'content':o(0x17a)+f+o(0x163)});});}catch(h){Log[n(0x173)](h);}});
@@ -1 +1 @@
1
- const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x7e))/0x1+-parseInt(f(0x80))/0x2*(-parseInt(f(0x87))/0x3)+parseInt(f(0x7d))/0x4+parseInt(f(0x97))/0x5*(parseInt(f(0x96))/0x6)+-parseInt(f(0x91))/0x7+-parseInt(f(0x95))/0x8+-parseInt(f(0x8b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xc32af));function a104c(){const l=['14wJyRIi','create','template','isFile','apply','cert','getProjectConfig','545199LtYGfZ','fsi','findProjectDirectory','Generate\x20an\x20updated\x20dockerfile','15835428iEgwuo','maka\x20{generate,\x20g}:dockerfile','build','(((.+)+)+)+$','search','service','7063042yfeaJm','toString','join','dockerfile','3735952zWwhsX','2931222nPqtPl','10CTgiXT','withValue','appName','maka\x20g:dockerfile','app.tar.gz','docker/Dockerfile','5500460VByGcB','410579wyZZmE','error'];a104c=function(){return l;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x7c;let f=c[d];return f;},a104d(a,b);}const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x84)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x92)]()['search']('(((.+)+)+)+$')[h(0x92)]()['constructor'](a104a)[h(0x8f)](h(0x8e));});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';Generator[a104i(0x81)]({'name':a104i(0x94),'usage':a104i(0x8c),'shortDesc':a104i(0x8a),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x9a)]},async function(){const j=a104i;try{const a=await this['fsi'][j(0x86)](),b=await this['fsi']['getGlobalConfig'](),c=this[j(0x88)][j(0x89)]();this[j(0x88)][j(0x98)](a,async()=>{const k=j,d={'app':b[k(0x99)],'config':a,'appPath':a104e['join'](c,'app'),'bundlePath':a104e[k(0x93)](c,k(0x8d),k(0x9b)),'useCert':this[k(0x88)][k(0x83)](b[k(0x85)])};this['fsi'][k(0x82)]({'srcPath':k(0x7c),'destPath':a104e[k(0x93)](c,'Dockerfile'),'framework':k(0x90),'context':d,'config':a});});}catch(d){Log[j(0x7f)](d);}});
1
+ const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x1dc))/0x1*(-parseInt(f(0x1da))/0x2)+-parseInt(f(0x1e0))/0x3+-parseInt(f(0x1d1))/0x4+parseInt(f(0x1c9))/0x5*(parseInt(f(0x1d0))/0x6)+-parseInt(f(0x1e1))/0x7+parseInt(f(0x1d9))/0x8+-parseInt(f(0x1cd))/0x9*(-parseInt(f(0x1c8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xb3d21));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1d7)]()[h(0x1c5)](h(0x1e3))[h(0x1d7)]()[h(0x1d4)](a104a)[h(0x1c5)](h(0x1e3));});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a104d(a,b);}a104a();function a104c(){const l=['14002wNGKEq','findProjectDirectory','73tbmzRZ','fsi','maka\x20g:dockerfile','apply','57060XNxorC','2915941JxqgQF','app','(((.+)+)+)+$','search','docker/Dockerfile','isFile','20230670CLOCuS','354985JBjhaZ','join','getGlobalConfig','withValue','9bIhPgL','getProjectConfig','dockerfile','30LAAFzH','5732684lBpGIU','maka\x20{generate,\x20g}:dockerfile','build','constructor','template','Generate\x20an\x20updated\x20dockerfile','toString','create','5906560RCTODl'];a104c=function(){return l;};return a104c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';Generator[a104i(0x1d8)]({'name':a104i(0x1cf),'usage':a104i(0x1d2),'shortDesc':a104i(0x1d6),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x1de)]},async function(){const j=a104i;try{const a=await this[j(0x1dd)][j(0x1ce)](),b=await this[j(0x1dd)][j(0x1cb)](),c=this[j(0x1dd)][j(0x1db)]();this[j(0x1dd)][j(0x1cc)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a104e[k(0x1ca)](c,k(0x1e2)),'bundlePath':a104e[k(0x1ca)](c,k(0x1d3),'app.tar.gz'),'useCert':this[k(0x1dd)][k(0x1c7)](b['cert'])};this['fsi'][k(0x1d5)]({'srcPath':k(0x1c6),'destPath':a104e[k(0x1ca)](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xd1;let f=c[d];return f;},a105d(a,b);}function a105c(){const u=['resourceName','baseDir','apply','setTemplate','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Creating\x20','graphql','hook/hook.js','features','true','\x20hook...','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','547996zrPRpQ','ssr','682738ellaTH','lib','template/template.css','1691316kkUQrn','layouts','pathFromApp','export\x20\x27','engines','pages','notice','client','warn','5iJttoB','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','react','25712XnWFtq','2180iGZJFq','rewriteDestinationPathForEngine','hook','apollo','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','checkNpmPackage','create','none','/imports/ui/hooks','16mgATdO','search','withTranslations','\x27;\x0a','fileName','export\x20{\x20','import\x20\x27./','.css','9662708wXnwPw','getProjectConfig','.app-tests.js','hooks','2OkQHJf','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','css','dir','cssCaseName','startup','imports','constructor','948168TkaUYM','template','error','components','/imports/ui/','6138HZspsb','assign','maka\x20g:hook\x20cool-hook','.js','relative','injectAtEndOfFile','templates.js','test/test.js','toString','fsi','(((.+)+)+)+$','@apollo/client'];a105c=function(){return u;};return a105c();}const a105r=a105d;(function(a,b){const o=a105d,c=a();while(!![]){try{const d=parseInt(o(0x116))/0x1*(parseInt(o(0xe0))/0x2)+parseInt(o(0xe8))/0x3+parseInt(o(0x105))/0x4*(parseInt(o(0x113))/0x5)+parseInt(o(0x10a))/0x6+parseInt(o(0x107))/0x7*(parseInt(o(0xd4))/0x8)+parseInt(o(0xed))/0x9*(parseInt(o(0x117))/0xa)+-parseInt(o(0xdc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x372b1));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0xfb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a[q(0xf5)]()[q(0xd5)]('(((.+)+)+)+$')[q(0xf5)]()[q(0xe7)](a105a)[q(0xd5)](q(0xf7));});a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a105r(0xd1)]({'name':a105r(0x119),'aliases':['h'],'checkWhere':![],'usage':a105r(0x11b),'shortDesc':a105r(0xe1),'validOpts':[{'name':a105r(0xfa),'values':[a105r(0xdf),a105r(0xeb),a105r(0x10f),a105r(0x10b)]}],'examples':[a105r(0xef)],'description':a105r(0x104)},async function(a,b){const s=a105r;Log[s(0x110)](s(0xfe)+b[s(0xf9)]+s(0x103));try{const c=this[s(0xf6)][s(0x11c)](s(0x115));if(!c){Log[s(0xea)](s(0xfd));throw new UsageError();}const d=this[s(0xf6)][s(0x10c)](b),f=b[s(0xfa)]?s(0xec)+b[s(0xfa)]:s(0xd3),g=this[s(0xf6)]['pathFromApp']({'pathParts':[f,b[s(0xe3)],paramCase(b[s(0xf9)]),paramCase(b[s(0xf9)])]}),h=await this['fsi'][s(0xdd)]();this[s(0xf6)]['withValue'](h,async()=>{const t=s;typeof h['template'][t(0xe2)]==='string'&&(h[t(0xe9)][t(0xe2)]=h[t(0xe9)][t(0xe2)]===t(0x102)?!![]:![],this[t(0xf6)][t(0xfc)](t(0xe2),h[t(0xe9)][t(0xe2)]));h['engines'][t(0xff)]===t(0x11a)&&!this['fsi'][t(0x11c)](t(0xf8))&&(Log[t(0x112)](t(0x114)),await this[t(0xf6)]['installNpmPackage']('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xf9)]),'camelCaseName':camelCase(b[t(0xf9)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0xf9)]),'graphql':h['engines'][t(0xff)],'theme':h[t(0x10e)]['theme'],'features':h[t(0x101)],'myPath':a105e[t(0xf1)](this[t(0xf6)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0xf9)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x101)][t(0xd6)]};this['fsi'][t(0xe9)]({'srcPath':t(0x100),'destPath':g+t(0xf0),'context':i,'config':h,'framework':'react'});h[t(0xe9)][t(0xe2)]&&(this['fsi'][t(0xe9)]({'srcPath':t(0x109),'destPath':g+t(0xdb),'context':Object[t(0xee)]({},i,{'className':i[t(0xe4)]}),'config':h}),this[t(0xf6)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x10e)]['js'],'content':t(0xda)+i['fileName']+'.'+h[t(0x10e)][t(0xe2)]+'\x27;'}));h['engines']['test']!==t(0xd2)&&this[t(0xf6)][t(0xe9)]({'srcPath':t(0xf4),'destPath':g+t(0xde),'framework':t(0x115),'context':i,'config':h});const j=b['dir']?'/'+b[t(0xe3)]+'/':'/',k=''+f+j+i[t(0xd8)]+'/'+i['fileName'];let l;if(h[t(0x10e)][t(0x106)]==='true'){const m=this['fsi']['pathFromApp']({'pathParts':[t(0xe6),t(0xe5),t(0x108),t(0xf3)]});l=this[t(0xf6)][t(0x118)]({'pathParts':[m],'config':h});}else{const n=this[t(0xf6)][t(0x10c)]({'pathParts':['imports',t(0xe5),t(0x111),t(0xf3)]});l=this[t(0xf6)][t(0x118)]({'pathParts':[n],'config':h});}h[t(0x10e)]['client']===t(0x115)?this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0xd9)+i['className']+'\x20}\x20from\x20\x27'+k+t(0xd7)}):this['fsi'][t(0xf2)]({'filePath':l,'content':t(0x10d)+k+'.'+h[t(0x10e)]['js']+t(0xd7)});});}catch(i){Log['error'](i);}});
1
+ function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x101;let f=c[d];return f;},a105d(a,b);}const a105r=a105d;function a105c(){const u=['test','lib','pages','1191330iDdqHU','features','warn','client','layouts','test/test.js','892505ihhRLC','getProjectConfig','1052673xmJGEE','apply','setTemplate','export\x20\x27','resourceName','import\x20\x27./','2NflmRU','startup','7CFVXXc','assign','template','pathFromApp','(((.+)+)+)+$','\x20hook...','.js','\x27;\x0a','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','constructor','fileName','hook','withValue','@apollo/client','installNpmPackage','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','cssCaseName','components','search','none','withTranslations','72aCIUMc','export\x20{\x20','55FKxzsR','rewriteDestinationPathForEngine','graphql','react','true','716388oXoAzk','120528TJFLYa','checkNpmPackage','8kVLTIM','notice','dir','Creating\x20','/imports/ui/','injectAtEndOfFile','/imports/ui/hooks','maka\x20g:hook\x20cool-hook','engines','error','.app-tests.js','imports','@apollo/client\x20isomorphic-fetch','string','templates.js','relative','fsi','2851784vOBxEs','toString','injectAtBeginningOfFile','css','hooks','393790GOlayA','baseDir','hook/hook.js','template/template.css'];a105c=function(){return u;};return a105c();}(function(a,b){const o=a105d,c=a();while(!![]){try{const d=parseInt(o(0x12b))/0x1+-parseInt(o(0x10b))/0x2*(parseInt(o(0x105))/0x3)+parseInt(o(0x12d))/0x4*(-parseInt(o(0x103))/0x5)+-parseInt(o(0x14a))/0x6+parseInt(o(0x10d))/0x7*(parseInt(o(0x13e))/0x8)+parseInt(o(0x123))/0x9*(parseInt(o(0x143))/0xa)+-parseInt(o(0x125))/0xb*(-parseInt(o(0x12a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x2cf10));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0x106)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a[q(0x13f)]()[q(0x120)]('(((.+)+)+)+$')[q(0x13f)]()[q(0x117)](a105a)[q(0x120)](q(0x111));});a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':a105r(0x119),'aliases':['h'],'checkWhere':![],'usage':a105r(0x11d),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':a105r(0x144),'values':[a105r(0x142),a105r(0x11f),a105r(0x149),a105r(0x101)]}],'examples':[a105r(0x134)],'description':a105r(0x115)},async function(a,b){const s=a105r;Log[s(0x12e)](s(0x130)+b[s(0x109)]+s(0x112));try{const c=this[s(0x13d)][s(0x12c)](s(0x128));if(!c){Log[s(0x136)](s(0x116));throw new UsageError();}const d=this[s(0x13d)][s(0x110)](b),f=b[s(0x144)]?s(0x131)+b[s(0x144)]:s(0x133),g=this[s(0x13d)][s(0x110)]({'pathParts':[f,b[s(0x12f)],paramCase(b[s(0x109)]),paramCase(b[s(0x109)])]}),h=await this[s(0x13d)][s(0x104)]();this[s(0x13d)][s(0x11a)](h,async()=>{const t=s;typeof h['template']['css']===t(0x13a)&&(h[t(0x10f)]['css']=h['template'][t(0x141)]===t(0x129)?!![]:![],this[t(0x13d)][t(0x107)]('css',h[t(0x10f)][t(0x141)]));h[t(0x135)][t(0x127)]==='apollo'&&!this['fsi']['checkNpmPackage'](t(0x11b))&&(Log[t(0x14c)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x13d)][t(0x11c)](t(0x139),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x109)]),'camelCaseName':camelCase(b[t(0x109)]),'className':pascalCase(b[t(0x109)]),'name':pascalCase(b[t(0x109)]),'graphql':h[t(0x135)][t(0x127)],'theme':h[t(0x135)]['theme'],'features':h['features'],'myPath':a105e[t(0x13c)](this[t(0x13d)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0x109)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x14b)][t(0x122)]};this[t(0x13d)][t(0x10f)]({'srcPath':t(0x145),'destPath':g+t(0x113),'context':i,'config':h,'framework':'react'});h['template'][t(0x141)]&&(this['fsi'][t(0x10f)]({'srcPath':t(0x146),'destPath':g+'.css','context':Object[t(0x10e)]({},i,{'className':i[t(0x11e)]}),'config':h}),this[t(0x13d)][t(0x140)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x10a)+i[t(0x118)]+'.'+h[t(0x135)][t(0x141)]+'\x27;'}));h['engines'][t(0x147)]!==t(0x121)&&this['fsi']['template']({'srcPath':t(0x102),'destPath':g+t(0x137),'framework':t(0x128),'context':i,'config':h});const j=b[t(0x12f)]?'/'+b[t(0x12f)]+'/':'/',k=''+f+j+i[t(0x118)]+'/'+i[t(0x118)];let l;if(h[t(0x135)]['ssr']===t(0x129)){const m=this['fsi'][t(0x110)]({'pathParts':['imports',t(0x10c),t(0x148),t(0x13b)]});l=this[t(0x13d)][t(0x126)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x110)]({'pathParts':[t(0x138),t(0x10c),'client',t(0x13b)]});l=this[t(0x13d)][t(0x126)]({'pathParts':[n],'config':h});}h['engines'][t(0x14d)]==='react'?this[t(0x13d)][t(0x132)]({'filePath':l,'content':t(0x124)+i['className']+'\x20}\x20from\x20\x27'+k+'\x27;\x0a'}):this[t(0x13d)][t(0x132)]({'filePath':l,'content':t(0x108)+k+'.'+h[t(0x135)]['js']+t(0x114)});});}catch(i){Log[s(0x136)](i);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0x1fb))/0x1*(parseInt(f(0x1f0))/0x2)+parseInt(f(0x1f8))/0x3+parseInt(f(0x1f7))/0x4+-parseInt(f(0x1fc))/0x5*(parseInt(f(0x1fa))/0x6)+parseInt(f(0x1f1))/0x7+-parseInt(f(0x1f2))/0x8*(-parseInt(f(0x1f3))/0x9)+-parseInt(f(0x1f9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x1bbd0));function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x1f0;var f=c[d];return f;},a106d(a,b);}var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a['toString']()['search'](h(0x1f4))[h(0x1f5)]()[h(0x1fd)](a106a)[h(0x1fe)]('(((.+)+)+)+$');});a106a();import'./kit.js';import'./mui/_index.js';function a106c(){var i=['406284pDhxrJ','496896LQYYgd','1950180AfZJBA','210ADuJGO','93TRJwAW','10055tZXWqm','constructor','search','3554TEXebk','1174782QeFPAp','488hrAkdU','16119yBgWvX','(((.+)+)+)+$','toString','apply'];a106c=function(){return i;};return a106c();}
1
+ function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0xad;var f=c[d];return f;},a106d(a,b);}(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0xb0))/0x1*(-parseInt(f(0xb5))/0x2)+-parseInt(f(0xb8))/0x3+-parseInt(f(0xaf))/0x4+parseInt(f(0xad))/0x5+parseInt(f(0xb6))/0x6+-parseInt(f(0xb2))/0x7*(-parseInt(f(0xba))/0x8)+-parseInt(f(0xae))/0x9*(-parseInt(f(0xb4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x9cdad));function a106c(){var i=['7PIGUVM','apply','5396210LgKker','13772RYGNeq','5341734PrIxSp','(((.+)+)+)+$','3537972XCWqPh','search','1589752zmoPUi','1120435uBFYER','27LgRECT','4468172qijEgu','1EcIKXY','toString'];a106c=function(){return i;};return a106c();}var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a['toString']()['search'](h(0xb7))[h(0xb1)]()['constructor'](a106a)[h(0xb9)](h(0xb7));});a106a();import'./kit.js';import'./mui/_index.js';
@@ -1 +1 @@
1
- const a107i=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=-parseInt(f(0x16f))/0x1+-parseInt(f(0x16e))/0x2+-parseInt(f(0x173))/0x3+-parseInt(f(0x169))/0x4+-parseInt(f(0x16b))/0x5+-parseInt(f(0x165))/0x6+parseInt(f(0x166))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x4f4a2));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a107d;if(c){const e=c[g(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const h=a107d;return a107a[h(0x171)]()[h(0x16c)](h(0x16a))[h(0x171)]()['constructor'](a107a)[h(0x16c)](h(0x16a));});a107a();function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x164;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../../generator.js';const KitGen=Generator['create']({'name':a107i(0x167),'aliases':['k'],'usage':a107i(0x172),'shortDesc':a107i(0x170),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a107i(0x16d),a107i(0x164)]},async function(){});export default KitGen;function a107c(){const j=['toString','maka\x20{generate,\x20g}:{kit}\x20<name>','53394vxTERW','maka\x20g:k','1415028GiSWKa','17740184LXHMfZ','kit','apply','2426364YLfTHt','(((.+)+)+)+$','3040390Dacpev','search','maka\x20g:kit','442524JTYcOA','519975lLdGyS','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.'];a107c=function(){return j;};return a107c();}
1
+ const a107i=a107d;(function(a,b){const f=a107d,c=a();while(!![]){try{const d=-parseInt(f(0x15a))/0x1+parseInt(f(0x155))/0x2+-parseInt(f(0x15d))/0x3+parseInt(f(0x156))/0x4*(-parseInt(f(0x150))/0x5)+-parseInt(f(0x151))/0x6*(parseInt(f(0x15b))/0x7)+-parseInt(f(0x159))/0x8+parseInt(f(0x14f))/0x9*(parseInt(f(0x14d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x53379));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a107d;if(c){const e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const h=a107d;return a107a['toString']()['search'](h(0x153))[h(0x152)]()['constructor'](a107a)[h(0x15e)](h(0x153));});a107a();import{Generator}from'../../generator.js';function a107c(){const j=['941304sVrhrV','search','30XgIFuu','kit','2283741lUGEiv','15pGXDPT','17016HLDfYb','toString','(((.+)+)+)+$','apply','993484xodihs','104148iToeJc','maka\x20{generate,\x20g}:{kit}\x20<name>','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','1134048fQKKoJ','309761okSDYu','182QaTrzM','create'];a107c=function(){return j;};return a107c();}function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x14d;let f=c[d];return f;},a107d(a,b);}const KitGen=Generator[a107i(0x15c)]({'name':a107i(0x14e),'aliases':['k'],'usage':a107i(0x157),'shortDesc':a107i(0x158),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit','maka\x20g:k']},async function(){});export default KitGen;
@@ -1 +1 @@
1
- (function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x198))/0x1+-parseInt(f(0x1a5))/0x2+-parseInt(f(0x1a0))/0x3+-parseInt(f(0x1a4))/0x4*(parseInt(f(0x19f))/0x5)+-parseInt(f(0x19d))/0x6+-parseInt(f(0x19e))/0x7*(-parseInt(f(0x19b))/0x8)+parseInt(f(0x1a1))/0x9*(parseInt(f(0x19a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xe34d3));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a[h(0x1a6)]()[h(0x1a2)](h(0x19c))[h(0x1a6)]()[h(0x1a3)](a108a)['search']('(((.+)+)+)+$');});a108a();import'./mui.generator.js';function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x198;var f=c[d];return f;},a108d(a,b);}import'./layout.mui.gen.js';function a108c(){var i=['toString','671366UIJSbR','apply','10BvfyoN','17232sIeFHV','(((.+)+)+)+$','6097266dBmOCF','1197SAkisp','5XzthJZ','3655302aoSrZo','48660741VijQgq','search','constructor','544952DFqiAc','3603614QYAdaS'];a108c=function(){return i;};return a108c();}
1
+ (function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x165))/0x1*(parseInt(f(0x15a))/0x2)+-parseInt(f(0x15d))/0x3+parseInt(f(0x163))/0x4+-parseInt(f(0x158))/0x5+parseInt(f(0x164))/0x6*(-parseInt(f(0x166))/0x7)+-parseInt(f(0x15b))/0x8*(parseInt(f(0x15f))/0x9)+-parseInt(f(0x15c))/0xa*(-parseInt(f(0x15e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xd4e47));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a['toString']()['search'](h(0x159))[h(0x162)]()[h(0x157)](a108a)[h(0x160)](h(0x159));});a108a();function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x157;var f=c[d];return f;},a108d(a,b);}import'./mui.generator.js';function a108c(){var i=['toString','3679984RxQbHW','4026OQLpWH','5911PsuBfb','16758FnlztW','constructor','7586725ZASVKN','(((.+)+)+)+$','76tjAwHp','688zPosdB','43620680grfTSx','2374524ItSKoD','11LHUREf','28278yIFrjv','search','apply'];a108c=function(){return i;};return a108c();}import'./layout.mui.gen.js';
@@ -1 +1 @@
1
- var a109i=a109d;(function(a,b){var f=a109d,c=a();while(!![]){try{var d=parseInt(f(0x12b))/0x1+-parseInt(f(0x126))/0x2+-parseInt(f(0x12c))/0x3*(-parseInt(f(0x127))/0x4)+parseInt(f(0x12d))/0x5+-parseInt(f(0x12e))/0x6+-parseInt(f(0x129))/0x7*(parseInt(f(0x125))/0x8)+parseInt(f(0x130))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xd7bf2));var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0x123)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a[h(0x12a)]()[h(0x128)]('(((.+)+)+)+$')['toString']()['constructor'](a109a)[h(0x128)](h(0x12f));});a109a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a109e from'./mui.generator.js';function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0x123;var f=c[d];return f;},a109d(a,b);}Generator['create']({'name':'layout','aliases':['l'],'usage':a109i(0x124),'shortDesc':'Generate\x20a\x20standard\x20MUI\x20layout','validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:l\x20master-layout']},async function(){var j=a109i;Log[j(0x131)](j(0x132));},a109e);function a109c(){var k=['678775dJcfbN','3uCLGuM','6081495OzXlAL','1550790PclWjW','(((.+)+)+)+$','6205950pHvgqE','notice','NIE','apply','maka\x20{generate,\x20g}:{kit}:{layout,\x20l}\x20<kit-name>','3728VCFMJd','2911840itHGsK','6363476dgqrdh','search','23695FzkQzv','toString'];a109c=function(){return k;};return a109c();}
1
+ var a109h=a109d;function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0xca;var f=c[d];return f;},a109d(a,b);}(function(a,b){var f=a109d,c=a();while(!![]){try{var d=parseInt(f(0xcc))/0x1*(parseInt(f(0xd1))/0x2)+parseInt(f(0xd9))/0x3*(parseInt(f(0xd5))/0x4)+-parseInt(f(0xd2))/0x5+-parseInt(f(0xda))/0x6+-parseInt(f(0xde))/0x7*(-parseInt(f(0xd0))/0x8)+-parseInt(f(0xca))/0x9+-parseInt(f(0xd8))/0xa*(-parseInt(f(0xcf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xcdf9a));var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var g=a109d;return a109a[g(0xd3)]()[g(0xd7)]('(((.+)+)+)+$')[g(0xd3)]()[g(0xdc)](a109a)['search'](g(0xcd));});a109a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a109e from'./mui.generator.js';function a109c(){var j=['8329590kIWHmG','notice','1oyjKcJ','(((.+)+)+)+$','create','11rMZZJc','1112408SGYlAs','1405022jyrTvI','6039870IeXMIG','toString','maka\x20{generate,\x20g}:{kit}:{layout,\x20l}\x20<kit-name>','16CJIccf','NIE','search','14830230mwONiQ','138714JbbWoj','5537334CtRPSL','layout','constructor','Generate\x20a\x20standard\x20MUI\x20layout','77jlZniz'];a109c=function(){return j;};return a109c();}Generator[a109h(0xce)]({'name':a109h(0xdb),'aliases':['l'],'usage':a109h(0xd4),'shortDesc':a109h(0xdd),'validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:l\x20master-layout']},async function(){var i=a109h;Log[i(0xcb)](i(0xd6));},a109e);
@@ -1 +1 @@
1
- function a110c(){const k=['4ojOfmJ','mui','toString','9vSFEaN','1172210DNVwMq','apply','889128qAxozn','738380kPokeN','496047AJLMDf','create','1236750yukulO','constructor','520rQVtvE','(((.+)+)+)+$','NIE','504210jtKnlh','102809XFfBWC','search'];a110c=function(){return k;};return a110c();}const a110i=a110d;function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xfd;let f=c[d];return f;},a110d(a,b);}(function(a,b){const f=a110d,c=a();while(!![]){try{const d=parseInt(f(0x107))/0x1+parseInt(f(0x10b))/0x2+parseInt(f(0x109))/0x3*(parseInt(f(0x101))/0x4)+-parseInt(f(0x105))/0x5+parseInt(f(0xfe))/0x6+parseInt(f(0xff))/0x7*(-parseInt(f(0x10d))/0x8)+-parseInt(f(0x104))/0x9*(parseInt(f(0x108))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x78980));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x106)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a['toString']()[h(0x100)](h(0x10e))[h(0x103)]()[h(0x10c)](a110a)[h(0x100)](h(0x10e));});a110a();import{Generator}from'../../../generator.js';import a110e from'../kit.js';const MuiGen=Generator[a110i(0x10a)]({'name':a110i(0x102),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':'Material-UI\x20Kit','validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:m']},async function(){const j=a110i;throw j(0xfd);},a110e);export default MuiGen;
1
+ const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x17e))/0x1+-parseInt(f(0x172))/0x2+-parseInt(f(0x17c))/0x3+-parseInt(f(0x17f))/0x4*(-parseInt(f(0x173))/0x5)+-parseInt(f(0x17d))/0x6*(-parseInt(f(0x171))/0x7)+-parseInt(f(0x174))/0x8+-parseInt(f(0x178))/0x9*(-parseInt(f(0x170))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x88291));function a110c(){const k=['apply','2222553OSXxQa','300KFeBwl','654903TMpyUb','1215260DXqJZF','(((.+)+)+)+$','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','constructor','search','11910gQcloF','129675fRRpaU','1354666hGCNTs','5sovdCv','7726256TnMrXq','Material-UI\x20Kit','toString','create','17883PhmYTy','NIE','maka\x20g:kit:m'];a110c=function(){return k;};return a110c();}function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x16e;let f=c[d];return f;},a110d(a,b);}const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0x176)]()[h(0x16f)](h(0x180))[h(0x176)]()[h(0x16e)](a110a)[h(0x16f)](h(0x180));});a110a();import{Generator}from'../../../generator.js';import a110e from'../kit.js';const MuiGen=Generator[a110i(0x177)]({'name':'mui','aliases':['m'],'usage':a110i(0x181),'noNeedResource':!![],'shortDesc':a110i(0x175),'validOpts':[''],'isPro':!![],'examples':[a110i(0x17a)]},async function(){const j=a110i;throw j(0x179);},a110e);export default MuiGen;
@@ -1 +1 @@
1
- const a111r=a111d;function a111c(){const u=['resourceName','setTemplate','217nRqPHo','fileName','9qEjhPU','.css','includes','2260WEmmQE','hook/hook.js','withTranslations','ssr','pathFromApp','findAppDirectory','injectAtEndOfFile','css','fsi','graphql','rewriteDestinationPathForEngine','string','component/component.js','import\x20\x27./','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','(((.+)+)+)+$','8019120nnPGWz','engines','react','split','withValue','3025wWvTOa','138750PGnyFL','toString','6686704ZGhRgS','checkNpmPackage','\x20}\x20from\x20\x27','none','client','theme','maka\x20g:l\x20web/safari','\x27;\x0a','dir','installNpmPackage','withHooks','test','Scaffolding\x20for\x20a\x20React\x20Layout.','4521cRRKbm','1492ZcwEKS','withHook','/imports/ui/layouts','.js','apply','1hUPqVc','lib','layout','warn','constructor','export\x20{\x20','imports','template/template.css','true','relative','startup','maka\x20g:layout\x20mobile/iPhone8','features','1117791BHGaaq','ramda','getProjectConfig','templates.js','624476GLpIhm','template','api'];a111c=function(){return u;};return a111c();}(function(a,b){const o=a111d,c=a();while(!![]){try{const d=-parseInt(o(0x1b7))/0x1*(parseInt(o(0x1c8))/0x2)+-parseInt(o(0x1c4))/0x3+parseInt(o(0x1b2))/0x4*(parseInt(o(0x1a1))/0x5)+parseInt(o(0x1a2))/0x6*(-parseInt(o(0x1cd))/0x7)+parseInt(o(0x1a4))/0x8*(parseInt(o(0x1cf))/0x9)+-parseInt(o(0x1d2))/0xa*(-parseInt(o(0x1b1))/0xb)+parseInt(o(0x19c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x66c4b));function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x199;let f=c[d];return f;},a111d(a,b);}const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a111d;if(c){const e=c[p(0x1b6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const q=a111d;return a111a[q(0x1a3)]()['search'](q(0x19b))[q(0x1a3)]()[q(0x1bb)](a111a)['search']('(((.+)+)+)+$');});a111a();import a111e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a111r(0x1b9),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':a111r(0x1b0),'validOpts':[],'examples':[a111r(0x1c2),a111r(0x1aa)]},function(a,b){const s=a111r,c=s(0x1b4),d=this[s(0x1da)][s(0x1d7)](),e=this[s(0x1da)][s(0x1d6)]({'pathParts':[c,b[s(0x1ac)],paramCase(b[s(0x1cb)]),paramCase(b['resourceName'])]}),f=this['fsi'][s(0x1c6)]();this['fsi'][s(0x1a0)](f,()=>{const t=s;typeof f[t(0x1c9)][t(0x1af)]===t(0x1dd)&&(f[t(0x1c9)][t(0x1af)]=f[t(0x1c9)][t(0x1af)]===t(0x1bf)?!![]:![],this[t(0x1da)][t(0x1cc)](t(0x1af),f[t(0x1c9)]['test']));typeof f['template'][t(0x1d9)]===t(0x1dd)&&(f[t(0x1c9)][t(0x1d9)]=f[t(0x1c9)][t(0x1d9)]===t(0x1bf)?!![]:![],this[t(0x1da)][t(0x1cc)](t(0x1d9),f[t(0x1c9)][t(0x1d9)]));typeof f[t(0x1c9)]['js']===t(0x1dd)&&(f[t(0x1c9)]['js']=f[t(0x1c9)]['js']===t(0x1bf)?!![]:![],this[t(0x1da)][t(0x1cc)]('js',f['template']['js']));!f[t(0x1c3)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x19f)](':')[0x1]:![],h=b['_']&&aliases[t(0x1d1)](g);h&&!this[t(0x1a5)]('ramda')&&(Log[t(0x1ba)](t(0x19a)),this['fsi'][t(0x1ad)](t(0x1c5),{'cwd':d}));if(h&&!this[t(0x1a5)]('react')){Log['warn']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x1cb)]),'myPath':a111e[t(0x1c0)](this[t(0x1da)]['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x1cb)]),'camelCaseName':camelCase(b[t(0x1cb)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x19d)][t(0x1db)],'features':f[t(0x1c3)],'client':f[t(0x19d)][t(0x1a8)],'api':f[t(0x19d)][t(0x1ca)],'ssr':f[t(0x19d)][t(0x1d5)],'test':f[t(0x19d)][t(0x1af)],'theme':f[t(0x19d)][t(0x1a9)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1c3)][t(0x1d4)]};f[t(0x1c3)]?.[t(0x1ae)]||b[t(0x1b3)]?this[t(0x1da)][t(0x1c9)]({'srcPath':t(0x1d3),'destPath':e+t(0x1b5),'framework':'react','context':i,'config':f}):this[t(0x1da)]['template']({'srcPath':t(0x1de),'destPath':e+t(0x1b5),'framework':t(0x19e),'context':i,'config':f});f[t(0x19d)][t(0x1af)]!==t(0x1a7)&&this[t(0x1da)][t(0x1c9)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':'react','context':i,'config':f});f[t(0x1c9)][t(0x1d9)]&&(this[t(0x1da)][t(0x1c9)]({'srcPath':t(0x1be),'destPath':e+t(0x1d0),'context':Object['assign']({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x1da)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x19d)]['js'],'content':t(0x199)+i[t(0x1ce)]+'.'+f['engines']['css']+'\x27;'}));const j=b['dir']?'/'+b['dir']+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x1ce)];let l;if(f[t(0x19d)]['ssr']===t(0x1bf)){const m=this[t(0x1da)][t(0x1d6)]({'pathParts':[t(0x1bd),t(0x1c1),t(0x1b8),'templates.js']});l=this[t(0x1da)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0x1da)][t(0x1d6)]({'pathParts':[t(0x1bd),'startup','client',t(0x1c7)]});l=this[t(0x1da)][t(0x1dc)]({'pathParts':[n],'config':f});}f[t(0x19d)][t(0x1a8)]===t(0x19e)?this[t(0x1da)]['injectAtEndOfFile']({'filePath':l,'content':t(0x1bc)+i['className']+t(0x1a6)+k+t(0x1ab)}):this[t(0x1da)][t(0x1d8)]({'filePath':l,'content':'export\x20\x27'+k+'.'+f[t(0x19d)]['js']+t(0x1ab)});});});
1
+ const a111r=a111d;(function(a,b){const o=a111d,c=a();while(!![]){try{const d=-parseInt(o(0x1e6))/0x1+-parseInt(o(0x205))/0x2+parseInt(o(0x1e7))/0x3+parseInt(o(0x207))/0x4+-parseInt(o(0x1f0))/0x5*(parseInt(o(0x1e8))/0x6)+-parseInt(o(0x1f7))/0x7+parseInt(o(0x1e0))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x6d1d9));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a111d;if(c){const e=c[p(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const q=a111d;return a111a[q(0x20b)]()[q(0x1ee)](q(0x20e))[q(0x20b)]()[q(0x1df)](a111a)[q(0x1ee)]('(((.+)+)+)+$');});a111a();function a111c(){const u=['\x27;\x0a','layout','ssr','maka\x20g:layout\x20mobile/iPhone8','injectAtEndOfFile','.css','split','pathFromApp','17914IqSpCY','none','849912yoWmxR','lib','warn','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','toString','test','imports','(((.+)+)+)+$','rewriteDestinationPathForEngine','withValue','withHooks','pathFromProject','template','export\x20\x27','react','fileName','create','true','api','css','hook/hook.js','setTemplate','.js','constructor','3374080iIpXhM','string','features','client','className','dir','43746suFMwk','2382693zGAlZi','78vJnhIf','maka\x20g:l\x20web/safari','fsi','import\x20\x27./','templates.js','relative','search','export\x20{\x20','21570FZDcuz','/imports/ui/layouts','engines','injectAtBeginningOfFile','.app-tests.js','apply','ramda','6109229JkEViL','findAppDirectory','component/component.js','startup','checkNpmPackage','resourceName'];a111c=function(){return u;};return a111c();}import a111e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a111d(a,b);}Generator[a111r(0x1d8)]({'name':a111r(0x1fe),'aliases':aliases,'usage':a111r(0x20a),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a111r(0x200),a111r(0x1e9)]},function(a,b){const s=a111r,c=s(0x1f1),d=this[s(0x1ea)][s(0x1f8)](),e=this[s(0x1ea)][s(0x204)]({'pathParts':[c,b[s(0x1e5)],paramCase(b[s(0x1fc)]),paramCase(b[s(0x1fc)])]}),f=this[s(0x1ea)]['getProjectConfig']();this[s(0x1ea)][s(0x210)](f,()=>{const t=s;typeof f[t(0x213)][t(0x20c)]===t(0x1e1)&&(f[t(0x213)][t(0x20c)]=f[t(0x213)][t(0x20c)]===t(0x1d9)?!![]:![],this[t(0x1ea)][t(0x1dd)]('test',f[t(0x213)]['test']));typeof f[t(0x213)][t(0x1db)]==='string'&&(f['template'][t(0x1db)]=f[t(0x213)][t(0x1db)]===t(0x1d9)?!![]:![],this[t(0x1ea)][t(0x1dd)](t(0x1db),f[t(0x213)][t(0x1db)]));typeof f[t(0x213)]['js']===t(0x1e1)&&(f['template']['js']=f[t(0x213)]['js']==='true'?!![]:![],this[t(0x1ea)]['setTemplate']('js',f[t(0x213)]['js']));!f[t(0x1e2)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x203)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x1fb)]('ramda')&&(Log[t(0x209)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x1ea)]['installNpmPackage'](t(0x1f6),{'cwd':d}));if(h&&!this[t(0x1fb)](t(0x215))){Log[t(0x209)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x1fc)]),'myPath':a111e[t(0x1ed)](this[t(0x1ea)][t(0x212)]({}),e),'cssCaseName':paramCase(b[t(0x1fc)]),'className':pascalCase(b[t(0x1fc)]),'camelCaseName':camelCase(b[t(0x1fc)]),'fileName':paramCase(b[t(0x1fc)]),'graphql':f[t(0x1f2)]['graphql'],'features':f[t(0x1e2)],'client':f[t(0x1f2)][t(0x1e3)],'api':f[t(0x1f2)][t(0x1da)],'ssr':f[t(0x1f2)][t(0x1ff)],'test':f[t(0x1f2)][t(0x20c)],'theme':f[t(0x1f2)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1e2)]['withTranslations']};f[t(0x1e2)]?.[t(0x211)]||b['withHook']?this[t(0x1ea)][t(0x213)]({'srcPath':t(0x1dc),'destPath':e+t(0x1de),'framework':t(0x215),'context':i,'config':f}):this[t(0x1ea)]['template']({'srcPath':t(0x1f9),'destPath':e+t(0x1de),'framework':'react','context':i,'config':f});f['engines'][t(0x20c)]!==t(0x206)&&this[t(0x1ea)][t(0x213)]({'srcPath':'test/test.js','destPath':e+t(0x1f4),'framework':t(0x215),'context':i,'config':f});f[t(0x213)][t(0x1db)]&&(this[t(0x1ea)][t(0x213)]({'srcPath':'template/template.css','destPath':e+t(0x202),'context':Object['assign']({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x1ea)][t(0x1f3)]({'filePath':e+'.'+f[t(0x1f2)]['js'],'content':t(0x1eb)+i[t(0x216)]+'.'+f[t(0x1f2)]['css']+'\x27;'}));const j=b['dir']?'/'+b[t(0x1e5)]+'/':'/',k=''+c+j+i[t(0x216)]+'/'+i[t(0x216)];let l;if(f[t(0x1f2)][t(0x1ff)]===t(0x1d9)){const m=this[t(0x1ea)]['pathFromApp']({'pathParts':[t(0x20d),t(0x1fa),t(0x208),t(0x1ec)]});l=this[t(0x1ea)][t(0x20f)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1ea)][t(0x204)]({'pathParts':[t(0x20d),t(0x1fa),t(0x1e3),'templates.js']});l=this[t(0x1ea)][t(0x20f)]({'pathParts':[n],'config':f});}f['engines'][t(0x1e3)]===t(0x215)?this[t(0x1ea)][t(0x201)]({'filePath':l,'content':t(0x1ef)+i[t(0x1e4)]+'\x20}\x20from\x20\x27'+k+t(0x1fd)}):this[t(0x1ea)][t(0x201)]({'filePath':l,'content':t(0x214)+k+'.'+f[t(0x1f2)]['js']+t(0x1fd)});});});
@@ -1 +1 @@
1
- const a112i=a112d;function a112c(){const j=['maka\x20g:scaffold\x20todos','maka\x20g:route\x20todos/edit','maka\x20generate:scaffold\x20todos','5684472BvSslU','354724vmVCcl','toString','constructor','5PPogoU','maka\x20g:package\x20package:name','apply','2647484swypOG','search','9792176OnSlBv','Scaffold\x20various\x20parts\x20of\x20your\x20application','5614833EFERkY','516108FaUcuu','(((.+)+)+)+$','166042IdMJNB','9GytRoA','maka\x20g:template\x20todos/todo_item'];a112c=function(){return j;};return a112c();}function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x15d;let f=c[d];return f;},a112d(a,b);}(function(a,b){const f=a112d,c=a();while(!![]){try{const d=parseInt(f(0x15e))/0x1+parseInt(f(0x16b))/0x2+-parseInt(f(0x170))/0x3+parseInt(f(0x165))/0x4*(-parseInt(f(0x168))/0x5)+-parseInt(f(0x164))/0x6+-parseInt(f(0x16f))/0x7+parseInt(f(0x16d))/0x8*(parseInt(f(0x15f))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xabc46));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a112d;if(c){const e=c[g(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const h=a112d;return a112a[h(0x166)]()[h(0x16c)](h(0x15d))[h(0x166)]()[h(0x167)](a112a)[h(0x16c)](h(0x15d));});a112a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':'maka\x20{generate,\x20g}:<generator>\x20<name>','validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a112i(0x16e),'examples':[a112i(0x163),a112i(0x161),a112i(0x160),a112i(0x169),a112i(0x162),'maka\x20g:api\x20trucks','maka\x20g:dbc\x20geoserver\x20--type=pgsql']},function(){});export default MakaGen;
1
+ const a112i=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=-parseInt(f(0x1c4))/0x1+-parseInt(f(0x1c7))/0x2+parseInt(f(0x1c5))/0x3*(-parseInt(f(0x1d7))/0x4)+parseInt(f(0x1d5))/0x5*(-parseInt(f(0x1d9))/0x6)+-parseInt(f(0x1ca))/0x7*(-parseInt(f(0x1cd))/0x8)+-parseInt(f(0x1c6))/0x9+parseInt(f(0x1d4))/0xa*(parseInt(f(0x1ce))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x313ab));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a112d;if(c){const e=c[g(0x1cf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const h=a112d;return a112a[h(0x1d3)]()[h(0x1c8)]('(((.+)+)+)+$')[h(0x1d3)]()[h(0x1c9)](a112a)[h(0x1c8)](h(0x1d2));});a112a();import{Generator}from'../generator.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a112d(a,b);}function a112c(){const j=['85016HYgptf','maka\x20g:scaffold\x20todos','348BuxzHJ','maka\x20{generate,\x20g}:<generator>\x20<name>','351598XrBudP','30PxNZxw','688797ilUWEw','226430KFFbCg','search','constructor','7UlHXGX','maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20g:package\x20package:name','2801672QoZFkt','517MXzToA','apply','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:template\x20todos/todo_item','(((.+)+)+)+$','toString','141280DMcMVJ','5060SvLLZi','maka\x20g:api\x20trucks'];a112c=function(){return j;};return a112c();}const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a112i(0x1da),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a112i(0x1d0),'examples':['maka\x20generate:scaffold\x20todos',a112i(0x1d8),a112i(0x1d1),a112i(0x1cc),'maka\x20g:route\x20todos/edit',a112i(0x1d6),a112i(0x1cb)]},function(){});export default MakaGen;
@@ -1 +1 @@
1
- const a113n=a113d;function a113c(){const q=['2783592zbwJaA','946718Xreabh','withValue','constructor','1199406BFXTnc','method','check','14101488MrEEHX','mdg:validated-method','2975992IvJKLq','6glLAjw','6831732RBoOtF','4619135qgIVNq','fsi','ddp-rate-limiter','appPathPrefix','injectAtEndOfFile','startup','engines','(((.+)+)+)+$','dir','installMeteorPackage','imports','getProjectConfig','toString','import\x20\x27./methods','tsx','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','resourceName','create','error','template','search','pathFromApp','warn','checkMeteorPackage','apply'];a113c=function(){return q;};return a113c();}(function(a,b){const k=a113d,c=a();while(!![]){try{const d=parseInt(k(0x7e))/0x1+-parseInt(k(0x81))/0x2*(-parseInt(k(0x87))/0x3)+-parseInt(k(0x86))/0x4+-parseInt(k(0x89))/0x5+-parseInt(k(0x88))/0x6+-parseInt(k(0x7d))/0x7+parseInt(k(0x84))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xac0c3));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a113d;if(c){const e=c[l(0x7c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const m=a113d;return a113a[m(0x70)]()[m(0x78)]('(((.+)+)+)+$')['toString']()[m(0x80)](a113a)[m(0x78)](m(0x6b));});a113a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x6b;let f=c[d];return f;},a113d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a113n(0x75)]({'name':a113n(0x82),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a113n(0x73),'validOpts':['dir'],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a113n;try{const c=this[o(0x8a)][o(0x6f)]();this[o(0x8a)][o(0x7f)](c,async()=>{const p=o,d=paramCase(b[p(0x74)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x74)]),'camelCase':camelCase(b[p(0x74)]),'noRename':!![]};let g='js';c[p(0x8f)]['js']===p(0x72)&&(g='ts');const h=this['fsi'][p(0x79)]({});(!this['fsi']['checkMeteorPackage'](p(0x83))||!this[p(0x8a)][p(0x7b)](p(0x8b))||!this['fsi']['checkMeteorPackage'](p(0x85)))&&(Log[p(0x7a)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[p(0x8a)][p(0x6d)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[p(0x8a)][p(0x77)]({'srcPath':'method/method.js','destPath':this[p(0x8a)][p(0x79)]({'pathParts':[p(0x6e),'startup',b['appPathPrefix'],'methods',b['dir'],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x6c)]?'/'+b['dir']+'/':'/',j=this[p(0x8a)]['pathFromApp']({'pathParts':[p(0x6e),p(0x8e),b[p(0x8c)],'index.'+c['engines']['js']]});this[p(0x8a)][p(0x8d)]({'filePath':j,'content':p(0x71)+i+d+'-rpc-method\x27;'});});}catch(d){Log[o(0x76)](d);}});
1
+ const a113m=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d=parseInt(k(0x12f))/0x1*(parseInt(k(0x12a))/0x2)+-parseInt(k(0x137))/0x3+parseInt(k(0x133))/0x4+parseInt(k(0x142))/0x5*(parseInt(k(0x147))/0x6)+-parseInt(k(0x12e))/0x7+parseInt(k(0x132))/0x8+-parseInt(k(0x138))/0x9*(parseInt(k(0x140))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xa478b));function a113c(){const p=['mdg:validated-method','imports','checkMeteorPackage','7681093YdJebd','1237zNxPjR','import\x20\x27./methods','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','9595104JfUznu','4514492oqowTR','index.','search','error','3035949nKtlEw','27ijMCiR','startup','(((.+)+)+)+$','-rpc-method.','method/method.js','injectAtEndOfFile','toString','check','3159990AmVzHP','resourceName','262955peWwMq','methods','pathFromApp','create','fsi','60TPpoTx','ddp-rate-limiter','-rpc-method\x27;','appPathPrefix','check\x20ddp-rate-limiter\x20mdg:validated-method','dir','getProjectConfig','maka\x20g:method\x20todos','1418rLNqho'];a113c=function(){return p;};return a113c();}function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x123;let f=c[d];return f;},a113d(a,b);}const a113b=(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;};}()),a113a=a113b(this,function(){const l=a113d;return a113a['toString']()[l(0x135)](l(0x13a))[l(0x13e)]()['constructor'](a113a)['search'](l(0x13a));});a113a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a113m(0x145)]({'name':'method','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a113m(0x131),'validOpts':[a113m(0x127)],'examples':[a113m(0x129)]},function(a,b){const n=a113m;try{const c=this['fsi'][n(0x128)]();this[n(0x146)]['withValue'](c,async()=>{const o=n,d=paramCase(b[o(0x141)]),f={'name':b[o(0x141)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x141)]),'noRename':!![]};let g='js';c['engines']['js']==='tsx'&&(g='ts');const h=this[o(0x146)][o(0x144)]({});(!this['fsi'][o(0x12d)](o(0x13f))||!this[o(0x146)][o(0x12d)](o(0x123))||!this[o(0x146)][o(0x12d)](o(0x12b)))&&(Log['warn']('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[o(0x146)]['installMeteorPackage'](o(0x126),{'cwd':h}));this['fsi']['template']({'srcPath':o(0x13c),'destPath':this[o(0x146)]['pathFromApp']({'pathParts':['imports',o(0x139),b['appPathPrefix'],o(0x143),b[o(0x127)],d+o(0x13b)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[o(0x146)]['pathFromApp']({'pathParts':[o(0x12c),o(0x139),b[o(0x125)],o(0x134)+c['engines']['js']]});this[o(0x146)][o(0x13d)]({'filePath':j,'content':o(0x130)+i+d+o(0x124)});});}catch(d){Log[n(0x136)](d);}});
@@ -1 +1 @@
1
- const a114n=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=parseInt(l(0x181))/0x1+parseInt(l(0x192))/0x2+-parseInt(l(0x173))/0x3+-parseInt(l(0x187))/0x4+parseInt(l(0x193))/0x5*(parseInt(l(0x180))/0x6)+-parseInt(l(0x19b))/0x7+-parseInt(l(0x17f))/0x8*(-parseInt(l(0x19a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xe9797));const a114b=(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;};}()),a114a=a114b(this,function(){const m=a114d;return a114a[m(0x177)]()[m(0x19c)]('(((.+)+)+)+$')[m(0x177)]()[m(0x176)](a114a)[m(0x19c)](m(0x17a));});a114a();import a114e from'path';function a114c(){const r=['package/','create','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','component','8rXHtFu','794298NRZggO','1523371EGjFvj','graphql','maka\x20g:package\x20todos:package','tests/client','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','template','1616488jhkxvy','getProjectConfig','withValue','hasOwnProperty','packages','layout','fsi','forEach','package.js','engines','theme','1516190zAtPJv','65XGJKMT','relative','.js','pathFromApp','noRename','resourceName','package','7021044wLiimg','12114781ULmLUD','search','5074335FxdHms','ssr','dir','constructor','toString','package/package.js','tests/server','(((.+)+)+)+$'];a114c=function(){return r;};return a114c();}function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x173;let f=c[d];return f;},a114d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a114n(0x17c)]({'name':a114n(0x199),'aliases':['p'],'usage':a114n(0x17d),'shortDesc':a114n(0x185),'validOpts':[a114n(0x175)],'examples':[a114n(0x183)]},async function(a,b){const o=a114n,c=paramCase(b['resourceName']),d=this['fsi'][o(0x196)]({'pathParts':[o(0x18b),b[o(0x175)],c]}),e=this[o(0x18d)]['pathFromAppWithNoReWrite']({'pathParts':[o(0x18b),b[o(0x175)],c,o(0x18f)]}),f=this['fsi'][o(0x188)]();this['fsi'][o(0x189)](f,async()=>{const p=o,g={'name':paramCase(b['resourceName']),'myPath':a114e[p(0x194)](this[p(0x18d)]['pathFromProject']({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[p(0x198)]),'camelCaseName':camelCase(b[p(0x198)]),'fileName':c,'client':f['engines']['client'],'graphql':f['engines'][p(0x182)],'ssr':f[p(0x190)][p(0x174)],'isComponent':b[p(0x18a)](p(0x17e)),'isLayout':b[p(0x18a)](p(0x18c)),'isStore':b[p(0x18a)]('store'),'features':f['features'],'noRename':!![],'theme':f['engines'][p(0x191)]};this[p(0x18d)][p(0x186)]({'srcPath':p(0x178),'destPath':e,'context':g,'config':f}),g[p(0x197)]=![];const h=d+'/client/'+c+'.js';this[p(0x18d)][p(0x186)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=['lib','server',p(0x184),p(0x179)];i[p(0x18e)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x195);this[q(0x18d)][q(0x186)]({'srcPath':q(0x17b)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
1
+ const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=parseInt(l(0xc6))/0x1+-parseInt(l(0xba))/0x2*(-parseInt(l(0xc3))/0x3)+parseInt(l(0xa1))/0x4+parseInt(l(0xbd))/0x5*(parseInt(l(0xb3))/0x6)+parseInt(l(0xbe))/0x7+-parseInt(l(0xbb))/0x8*(parseInt(l(0xa9))/0x9)+-parseInt(l(0xb0))/0xa*(parseInt(l(0xbc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x8c8d2));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0xab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a[n(0xcb)]()[n(0xb1)](n(0xb4))['toString']()['constructor'](a114a)[n(0xb1)](n(0xb4));});a114a();import a114e from'path';function a114c(){const s=['noRename','server','ssr','package.js','relative','packages','client','45DDVCXw','layout','apply','component','withValue','graphql','hasOwnProperty','10EbrMCi','search','theme','552kmBfha','(((.+)+)+)+$','forEach','package','getProjectConfig','pathFromProject','.js','34QtTWyr','1686584iYnZXc','13573549FVTpKs','53055IkRrzl','2185211xNWCJZ','tests/server','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','resourceName','dir','113907qfIgal','package/','pathFromApp','320959XeVsYa','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','template/template.js','store','/client/','toString','engines','create','fsi','/package.js','template','2435820OFEWAY'];a114c=function(){return s;};return a114c();}function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x9c;let f=c[d];return f;},a114d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a114o(0x9d)]({'name':a114o(0xb6),'aliases':['p'],'usage':a114o(0xc7),'shortDesc':a114o(0xc0),'validOpts':['dir'],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a114o,c=paramCase(b[p(0xc1)]),d=this[p(0x9e)][p(0xc5)]({'pathParts':['packages',b[p(0xc2)],c]}),e=this[p(0x9e)]['pathFromAppWithNoReWrite']({'pathParts':[p(0xa7),b[p(0xc2)],c,p(0xa5)]}),f=this['fsi'][p(0xb7)]();this[p(0x9e)][p(0xad)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xc1)]),'myPath':a114e[q(0xa6)](this[q(0x9e)][q(0xb8)]({}),d),'cssCaseName':paramCase(b[q(0xc1)]),'className':pascalCase(b[q(0xc1)]),'camelCaseName':camelCase(b[q(0xc1)]),'fileName':c,'client':f[q(0x9c)][q(0xa8)],'graphql':f[q(0x9c)][q(0xae)],'ssr':f[q(0x9c)][q(0xa4)],'isComponent':b[q(0xaf)](q(0xac)),'isLayout':b[q(0xaf)](q(0xaa)),'isStore':b[q(0xaf)](q(0xc9)),'features':f['features'],'noRename':!![],'theme':f[q(0x9c)][q(0xb2)]};this[q(0x9e)][q(0xa0)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0xa2)]=![];const h=d+q(0xca)+c+q(0xb9);this['fsi'][q(0xa0)]({'srcPath':q(0xc8),'destPath':h,'context':g,'config':f});const i=['lib',q(0xa3),'tests/client',q(0xbf)];i[q(0xb5)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this['fsi'][r(0xa0)]({'srcPath':r(0xc4)+j+r(0x9f),'destPath':k,'context':g,'config':f});});});});