@maka/maka-cli 4.5.2 → 4.5.3

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 (97) 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/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/build/_index.js +1 -1
  17. package/bundle/obf/src/commands/build/build.js +1 -1
  18. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/create.js +1 -1
  20. package/bundle/obf/src/commands/debug.js +1 -1
  21. package/bundle/obf/src/commands/deploy.js +1 -1
  22. package/bundle/obf/src/commands/game/_index.js +1 -1
  23. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/game/play.command.js +1 -1
  25. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/generate.js +1 -1
  29. package/bundle/obf/src/commands/get/_index.js +1 -1
  30. package/bundle/obf/src/commands/get/get.command.js +1 -1
  31. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/help.js +1 -1
  35. package/bundle/obf/src/commands/install.js +1 -1
  36. package/bundle/obf/src/commands/jsdoc.js +1 -1
  37. package/bundle/obf/src/commands/lint.js +1 -1
  38. package/bundle/obf/src/commands/login.js +1 -1
  39. package/bundle/obf/src/commands/logout.js +1 -1
  40. package/bundle/obf/src/commands/logs.js +1 -1
  41. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  42. package/bundle/obf/src/commands/murder.js +1 -1
  43. package/bundle/obf/src/commands/proxy.js +1 -1
  44. package/bundle/obf/src/commands/reconfig.js +1 -1
  45. package/bundle/obf/src/commands/run/_index.js +1 -1
  46. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  47. package/bundle/obf/src/commands/run/run.command.js +1 -1
  48. package/bundle/obf/src/commands/set/_index.js +1 -1
  49. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  50. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  51. package/bundle/obf/src/commands/set/set.command.js +1 -1
  52. package/bundle/obf/src/commands/ssh.js +1 -1
  53. package/bundle/obf/src/commands/ssl.js +1 -1
  54. package/bundle/obf/src/commands/test.js +1 -1
  55. package/bundle/obf/src/commands/version.js +1 -1
  56. package/bundle/obf/src/error.js +1 -1
  57. package/bundle/obf/src/generator.js +1 -1
  58. package/bundle/obf/src/generators/_index.js +1 -1
  59. package/bundle/obf/src/generators/api.js +1 -1
  60. package/bundle/obf/src/generators/collection.js +1 -1
  61. package/bundle/obf/src/generators/component.js +1 -1
  62. package/bundle/obf/src/generators/config.js +1 -1
  63. package/bundle/obf/src/generators/dbc.js +1 -1
  64. package/bundle/obf/src/generators/dockerfile.js +1 -1
  65. package/bundle/obf/src/generators/hook.js +1 -1
  66. package/bundle/obf/src/generators/kit.js +1 -1
  67. package/bundle/obf/src/generators/layout.js +1 -1
  68. package/bundle/obf/src/generators/maka.gen.js +1 -1
  69. package/bundle/obf/src/generators/methods.js +1 -1
  70. package/bundle/obf/src/generators/package.js +1 -1
  71. package/bundle/obf/src/generators/page.js +1 -1
  72. package/bundle/obf/src/generators/publish.js +1 -1
  73. package/bundle/obf/src/generators/route.js +1 -1
  74. package/bundle/obf/src/generators/service.js +1 -1
  75. package/bundle/obf/src/generators/services/_index.js +1 -1
  76. package/bundle/obf/src/generators/services/openssl.js +1 -1
  77. package/bundle/obf/src/generators/services/translation.js +1 -1
  78. package/bundle/obf/src/maka.js +1 -1
  79. package/bundle/obf/src/tool.js +1 -1
  80. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  81. package/bundle/obf/src/tools/actions/actions.test.js +1 -1
  82. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  83. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  84. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  85. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  86. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  87. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  88. package/bundle/obf/src/tools/https/https.class.js +1 -1
  89. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  90. package/bundle/obf/src/tools/log/log.class.js +1 -1
  91. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  92. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  93. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  94. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  95. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  96. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  97. package/package.json +1 -1
@@ -1 +1 @@
1
- const a55t=a55d;(function(a,b){const p=a55d,c=a();while(!![]){try{const d=parseInt(p(0xc3))/0x1*(parseInt(p(0xca))/0x2)+parseInt(p(0xa3))/0x3+-parseInt(p(0xf7))/0x4+-parseInt(p(0xf5))/0x5+-parseInt(p(0xee))/0x6*(parseInt(p(0x9e))/0x7)+-parseInt(p(0xd5))/0x8+-parseInt(p(0xd9))/0x9*(-parseInt(p(0x9c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x93736));const a55b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a55d;if(c){const e=c[q(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){const r=a55d;return a55a[r(0xad)]()['search'](r(0xb2))['toString']()['constructor'](a55a)['search'](r(0xb2));});a55a();function a55c(){const F=['There\x20is\x20no\x20Meteor\x20application\x20here','To\x20use\x20these\x20pro\x20flags,\x20\x22','To\x20use\x20this\x20generator,\x20\x22','proGenerators','sort','chdir','colLocAnswer','resourceName','filter','Too\x20few\x20arguments','addGenerator\x20requires\x20a\x20Generator\x20instance','dir','validateMakaSubscription','61651MIGgUw','server','findGenerator','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','where','join','Generator.create\x20requires\x20a\x20handler\x20function!','38zNtvBK','validateMakaProject','slice','apply','help','Please\x20run\x20\x22maka\x20install\x20meteor\x22','fsi','minArgLength','roles','bind','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','5759272EQChKN','name','error','Too\x20many\x20arguments','1998423tZXAlA','Location','Client','mustBeInMakaProject','both','assign','_handler','exit','list','Too\x20many\x20options','sep','split','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','No\x20resource\x20name\x20specified','client','length','create','forEach','minOptsLength','bright','maxOptsLength','77982zlvQhB','invoke','Both','mustHaveMeteorInstalled','listGenerators','_generators','cwd','3804330mKohzz','appPathPrefix','3531564lDsKjv','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','maxArgLength','getPro','call','tableList','110etxtCh','Description','413OnAlJB','number','push','shortDesc','find','361683tdlQFG','options','pop','checkWhere','parent','validateParams','includes','domainLicense','proFlags','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','toString','validateMeteorInstall','Too\x20few\x20options','Generator\x20requires\x20a\x20name','notice','(((.+)+)+)+$','function','keys','findProjectDirectory'];a55c=function(){return F;};return a55c();}import a55e from'path';import a55f from'cli-table';import{paramCase}from'change-case';import a55g from'./generators/maka.gen.js';function a55d(a,b){const c=a55c();return a55d=function(d,e){d=d-0x99;let f=c[d];return f;},a55d(a,b);}import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const s=a55d,c=process[s(0xf4)]();let d=null;try{process[s(0xbb)](a),d=b();}finally{process[s(0xbb)](c);}return d;}export class Generator extends Tool{[a55t(0xa4)];[a55t(0xf3)];constructor(a,b){const u=a55t;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[u(0xd6)])throw new Error(u(0xb0));if(typeof b!==u(0xb3))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[u(0xf3)]=[],this[u(0xa4)]=Object['assign']({},a),this['name']=this['options'][u(0xd6)],this['_handler']=b[u(0xd3)](this);}static[a55t(0xe9)](a,b,c){const v=a55t;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==v(0xb3))throw new Error(v(0xc9));const d=new Generator(a,b);return c=c||a55g,Object[v(0xde)](d,{'parent':c?.[v(0xa4)]?.[v(0xd6)]}),c['addGenerator'](d),d;}['addGenerator'](a){const w=a55t;if(!(a instanceof Generator))throw new Error(w(0xc0));this[w(0xf3)]['push'](a);}['findGenerator'](a){const x=a55t,b=this[x(0xf3)][x(0xa2)](c=>c['match'](a));return b;}async[a55t(0xc2)](a,b){const y=a55t,c=this[y(0xc5)](a[0x0]);if(c){const d=c?.[y(0xd6)]||a[0x0],e=c?.[y(0xa7)]||'',f=Object[y(0xb4)](b),g=await this[y(0xd0)][y(0x99)]();!g&&(Log[y(0xd7)](y(0xac)),process['exit'](0x1));const h=!g?.[y(0xd2)][y(0xa9)]('singleLicense')&&!g?.[y(0xd2)][y(0xa9)](y(0xaa)),i=g?.[y(0xb9)]['includes'](d)||g?.['proGenerators']['includes'](e);if(i&&h)throw y(0xb8)+d+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(f['length']>0x0){const j=g?.[y(0xab)][y(0xbe)](k=>f[y(0xa9)](k));if(j&&j[y(0xe8)]>0x0&&h)throw y(0xb7)+j?.[y(0xc8)](',\x20')+y(0xd4);}}}async[a55t(0xef)](a,b){const z=a55t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c}=this[z(0xa4)];try{await this[z(0xc2)](a,b);}catch(f){Log['error'](f),process[z(0xe0)](0x1);}const d=a[z(0xcc)]();b[z(0xbd)]=d[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b[z(0xce)])throw new UsageError();if(this[z(0xa4)][z(0xdc)]){const g=this[z(0xcb)]();if(!g)throw new MustBeInProjectError();}if(this[z(0xa4)][z(0xf1)]){const h=this[z(0xae)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[z(0xa4)][z(0xd1)]===z(0x9f)){if(a[z(0xe8)]<this[z(0xa4)][z(0xd1)]){Log[z(0xd7)](z(0xbf));throw new UsageError();}}if(typeof this['options'][z(0xf9)]===z(0x9f)){if(a[z(0xe8)]>this[z(0xa4)][z(0xf9)]){Log['error'](z(0xd8));throw new UsageError();}}if(typeof this[z(0xa4)][z(0xeb)]===z(0x9f)){if(Object[z(0xb4)](b)[z(0xe8)]<this[z(0xa4)][z(0xeb)]){Log[z(0xd7)](z(0xaf));throw new UsageError();}}if(typeof this[z(0xa4)][z(0xed)]===z(0x9f)){if(Object[z(0xb4)](b)['length']>=this[z(0xa4)][z(0xed)]){Log[z(0xd7)](z(0xe2));throw new UsageError();}}this[z(0xa8)](a,b,this['options']);if(!b[z(0xbd)]&&!this[z(0xa4)]['noResource']){Log['error'](z(0xe6));throw new UsageError();}_prevGen=a[0x0];}catch(i){Log['usage'](description,examples,usage,c);if(i instanceof UsageError)this[z(0xf3)][z(0xe8)]>0x0&&b['help']&&(Log[z(0xb1)]('Generators:'),this[z(0x9b)](this[z(0xf3)]));else{if(i instanceof MustBeInProjectError)Log[z(0xd7)](z(0xe5));else{if(i instanceof NoMeteorFoundError)Log[z(0xd7)](z(0xc6)),Log[z(0xb1)](z(0xcf));else{if(i instanceof NoMeteorAppFoundError)Log[z(0xd7)](z(0xb6));else throw i;}}}process[z(0xe0)](0x1);}return new Promise(j=>{const A=z;inside(b[A(0xf4)],async()=>{const B=A;try{if(!b['root']&&!this[B(0xd0)][B(0xb5)]())throw new MustBeInProjectError();const k=b[B(0xbd)]?.['replace'](/\\/g,'/')[B(0xe4)]('/');!b[B(0xc1)]&&(k?.[B(0xe8)]>0x1?(b[B(0xbd)]=k[B(0xa5)](),d[0x0]=b[B(0xbd)],b[B(0xc1)]=k['map'](l=>{return paramCase(l);})['join'](a55e[B(0xe3)])):b[B(0xc1)]='');if(this[B(0xa4)][B(0xa6)]){if(!b[B(0xc7)]){const m={'type':B(0xe1),'name':B(0xbc),'message':B(0xda),'choices':[{'name':B(0xdb),'value':B(0xe7)},{'name':'Server','value':B(0xc4)},{'name':B(0xf0),'value':'both'}]},{colLocAnswer:n}=await Actions[B(0xa4)](m);n?b['where']=n:b[B(0xc7)]=B(0xdd);}const l=[B(0xdd),B(0xe7),B(0xc4)];if(!l[B(0xa9)](b[B(0xc7)])){Log[B(0xd7)](B(0xf8));throw new UsageError();}switch(b[B(0xc7)]){case B(0xdd):b[B(0xf6)]='lib';break;case B(0xc4):b[B(0xf6)]=B(0xc4);break;case B(0xe7):b[B(0xf6)]='client';break;default:b[B(0xf6)]='';}}j(this[B(0xdf)][B(0x9a)](this,d,b));}catch(o){console['error'](o);}});});}[a55t(0xf2)](){const C=a55t;this['tableList'](this[C(0xf3)]);}[a55t(0x9b)](a){const D=a55t,b=new a55f({});b[D(0xa0)](['Name','Alias',D(0x9d)]),a[D(0xba)]()[D(0xea)](c=>{const E=D;b['push']([c[E(0xd6)],c['aliases'](),c[E(0xa1)]()]);}),Log[D(0xec)](b['toString']());}}
1
+ const a55u=a55d;(function(a,b){const q=a55d,c=a();while(!![]){try{const d=parseInt(q(0x1e4))/0x1*(parseInt(q(0x210))/0x2)+-parseInt(q(0x1ff))/0x3*(parseInt(q(0x231))/0x4)+parseInt(q(0x22c))/0x5*(-parseInt(q(0x20a))/0x6)+-parseInt(q(0x207))/0x7*(parseInt(q(0x224))/0x8)+-parseInt(q(0x1f0))/0x9*(-parseInt(q(0x1f9))/0xa)+parseInt(q(0x233))/0xb+parseInt(q(0x1e3))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xe6fda));const a55b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a55d;if(c){const e=c[r(0x220)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){const s=a55d;return a55a[s(0x21a)]()[s(0x211)](s(0x1e6))[s(0x21a)]()[s(0x223)](a55a)[s(0x211)](s(0x1e6));});function a55d(a,b){const c=a55c();return a55d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a55d(a,b);}a55a();import a55e from'path';function a55c(){const F=['list','help','chdir','Generator.create\x20requires\x20a\x20handler\x20function!','parent','exit','10AotuGc','options','mustHaveMeteorInstalled','usage','match','_generators','117447udJBRg','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','call','addGenerator\x20requires\x20a\x20Generator\x20instance','pop','findGenerator','Description','Both','7xicudk','minOptsLength','notice','7994166rQWMjX','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','join','Please\x20run\x20\x22maka\x20install\x20meteor\x22','domainLicense','findProjectDirectory','7432MKvedh','search','_handler','lib','maxOptsLength','resourceName','tableList','number','aliases','appPathPrefix','toString','function','validateMeteorInstall','roles','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','keys','apply','fsi','proGenerators','constructor','5419840lvvjFb','replace','error','slice','sep','Generators:','Generator.create\x20requires\x20some\x20options!','Generator\x20requires\x20a\x20handler\x20function','5kgdqHG','client','colLocAnswer','shortDesc','length','40Glxkqn','proFlags','6903182CdOmVd','filter','dir','name','root','Server','getPro','includes','where','Too\x20many\x20arguments','noResource','both','There\x20is\x20no\x20Meteor\x20application\x20here','Name','bright','find','listGenerators','addGenerator','create','To\x20use\x20these\x20pro\x20flags,\x20\x22','mustBeInMakaProject','Too\x20few\x20arguments','To\x20use\x20this\x20generator,\x20\x22','18955716ieDYdg','127Gurxsj','Alias','(((.+)+)+)+$','server','maxArgLength','Generator\x20requires\x20a\x20name','minArgLength','assign','split','invoke','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','push','6014988lucwJl','map','validateMakaSubscription'];a55c=function(){return F;};return a55c();}import a55f from'cli-table';import{paramCase}from'change-case';import a55g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const t=a55d,c=process['cwd']();let d=null;try{process[t(0x1f5)](a),d=b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a55u(0x1fa)];[a55u(0x1fe)];constructor(a,b){const v=a55u;super();if(!a)throw new Error(v(0x200));if(!a[v(0x236)])throw new Error(v(0x1e9));if(typeof b!==v(0x21b))throw new Error(v(0x22b));this[v(0x1fe)]=[],this[v(0x1fa)]=Object[v(0x1eb)]({},a),this['name']=this[v(0x1fa)]['name'],this[v(0x212)]=b['bind'](this);}static[a55u(0x245)](a,b,c){const w=a55u;if(!a)throw new Error(w(0x22a));if(typeof b!==w(0x21b))throw new Error(w(0x1f6));const d=new Generator(a,b);return c=c||a55g,Object[w(0x1eb)](d,{'parent':c?.[w(0x1fa)]?.['name']}),c[w(0x244)](d),d;}['addGenerator'](a){const x=a55u;if(!(a instanceof Generator))throw new Error(x(0x202));this[x(0x1fe)][x(0x1ef)](a);}['findGenerator'](a){const y=a55u,b=this[y(0x1fe)][y(0x242)](c=>c[y(0x1fd)](a));return b;}async[a55u(0x1f2)](a,b){const z=a55u,c=this[z(0x204)](a[0x0]);if(c){const d=c?.[z(0x236)]||a[0x0],e=c?.[z(0x1f7)]||'',f=Object[z(0x21f)](b),g=await this[z(0x221)][z(0x239)]();!g&&(Log[z(0x226)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const h=!g?.[z(0x21d)][z(0x23a)]('singleLicense')&&!g?.[z(0x21d)][z(0x23a)](z(0x20e)),i=g?.[z(0x222)][z(0x23a)](d)||g?.[z(0x222)][z(0x23a)](e);if(i&&h)throw z(0x1e2)+d+z(0x21e);if(f[z(0x230)]>0x0){const j=g?.[z(0x232)][z(0x234)](k=>f[z(0x23a)](k));if(j&&j[z(0x230)]>0x0&&h)throw z(0x246)+j?.['join'](',\x20')+z(0x21e);}}}async[a55u(0x1ed)](a,b){const A=a55u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[A(0x1fa)];try{await this['validateMakaSubscription'](a,b);}catch(g){Log[A(0x226)](g),process['exit'](0x1);}const f=a[A(0x227)]();b['resourceName']=f[0x0];try{if((a[0x0]===_prevGen||a[A(0x230)]===0x0)&&b['help'])throw new UsageError();if(this[A(0x1fa)][A(0x247)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this['options'][A(0x1fb)]){const i=this[A(0x21c)]();if(!i)throw new NoMeteorFoundError();}if(typeof this['options']['minArgLength']==='number'){if(a[A(0x230)]<this[A(0x1fa)][A(0x1ea)]){Log[A(0x226)](A(0x248));throw new UsageError();}}if(typeof this[A(0x1fa)][A(0x1e8)]==='number'){if(a[A(0x230)]>this[A(0x1fa)][A(0x1e8)]){Log[A(0x226)](A(0x23c));throw new UsageError();}}if(typeof this['options'][A(0x208)]===A(0x217)){if(Object[A(0x21f)](b)[A(0x230)]<this['options'][A(0x208)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[A(0x1fa)][A(0x214)]===A(0x217)){if(Object['keys'](b)['length']>=this[A(0x1fa)]['maxOptsLength']){Log[A(0x226)]('Too\x20many\x20options');throw new UsageError();}}this['validateParams'](a,b,this[A(0x1fa)]);if(!b[A(0x215)]&&!this[A(0x1fa)][A(0x23d)]){Log['error']('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[A(0x1fc)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this['_generators'][A(0x230)]>0x0&&b[A(0x1f4)]&&(Log[A(0x209)](A(0x229)),this[A(0x216)](this[A(0x1fe)]));else{if(j instanceof MustBeInProjectError)Log[A(0x226)](A(0x20b));else{if(j instanceof NoMeteorFoundError)Log['error'](A(0x1ee)),Log[A(0x209)](A(0x20d));else{if(j instanceof NoMeteorAppFoundError)Log[A(0x226)](A(0x23f));else throw j;}}}process[A(0x1f8)](0x1);}return new Promise(k=>{inside(b['cwd'],async()=>{const B=a55d;try{if(!b[B(0x237)]&&!this['fsi'][B(0x20f)]())throw new MustBeInProjectError();const l=b['resourceName']?.[B(0x225)](/\\/g,'/')[B(0x1ec)]('/');!b[B(0x235)]&&(l?.[B(0x230)]>0x1?(b[B(0x215)]=l[B(0x203)](),f[0x0]=b[B(0x215)],b[B(0x235)]=l[B(0x1f1)](m=>{return paramCase(m);})[B(0x20c)](a55e[B(0x228)])):b[B(0x235)]='');if(this[B(0x1fa)]['checkWhere']){if(!b[B(0x23b)]){const n={'type':B(0x1f3),'name':B(0x22e),'message':'Location','choices':[{'name':'Client','value':B(0x22d)},{'name':B(0x238),'value':'server'},{'name':B(0x206),'value':'both'}]},{colLocAnswer:o}=await Actions[B(0x1fa)](n);o?b['where']=o:b[B(0x23b)]=B(0x23e);}const m=['both','client','server'];if(!m[B(0x23a)](b['where'])){Log[B(0x226)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b['where']){case'both':b[B(0x219)]=B(0x213);break;case B(0x1e7):b[B(0x219)]=B(0x1e7);break;case B(0x22d):b[B(0x219)]='client';break;default:b[B(0x219)]='';}}k(this[B(0x212)][B(0x201)](this,f,b));}catch(p){console[B(0x226)](p);}});});}[a55u(0x243)](){const C=a55u;this[C(0x216)](this[C(0x1fe)]);}[a55u(0x216)](a){const D=a55u,b=new a55f({});b[D(0x1ef)]([D(0x240),D(0x1e5),D(0x205)]),a['sort']()['forEach'](c=>{const E=D;b[E(0x1ef)]([c[E(0x236)],c[E(0x218)](),c[E(0x22f)]()]);}),Log[D(0x241)](b['toString']());}}
@@ -1 +1 @@
1
- function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x1be;var f=c[d];return f;},a56d(a,b);}(function(a,b){var f=a56d,c=a();while(!![]){try{var d=-parseInt(f(0x1c4))/0x1*(parseInt(f(0x1c3))/0x2)+-parseInt(f(0x1bf))/0x3+-parseInt(f(0x1c8))/0x4+parseInt(f(0x1c6))/0x5*(-parseInt(f(0x1c5))/0x6)+parseInt(f(0x1c2))/0x7+-parseInt(f(0x1cb))/0x8*(-parseInt(f(0x1c1))/0x9)+parseInt(f(0x1c9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x912cb));var a56b=(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;};}()),a56a=a56b(this,function(){var g=a56d;return a56a[g(0x1ca)]()['search'](g(0x1c7))['toString']()[g(0x1be)](a56a)[g(0x1c0)](g(0x1c7));});a56a();import'./services/_index.js';import'./api.js';function a56c(){var h=['3996xqjcyO','5510bbyyEs','(((.+)+)+)+$','4582004mzkliQ','22131780iiawuu','toString','6757064xCqiHG','constructor','2573016KwUsDD','search','9CMvKmN','4642127GqvwYH','408SHAaqg','1908AHjMqv'];a56c=function(){return h;};return a56c();}import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';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=a56d,c=a();while(!![]){try{var d=parseInt(f(0xee))/0x1*(parseInt(f(0xe8))/0x2)+-parseInt(f(0xf0))/0x3*(-parseInt(f(0xf5))/0x4)+parseInt(f(0xef))/0x5*(parseInt(f(0xed))/0x6)+parseInt(f(0xeb))/0x7+parseInt(f(0xf3))/0x8*(parseInt(f(0xec))/0x9)+-parseInt(f(0xe5))/0xa*(parseInt(f(0xea))/0xb)+-parseInt(f(0xf1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0xedf99));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a[h(0xe7)]()[h(0xf2)](h(0xe6))[h(0xe7)]()[h(0xe9)](a56a)[h(0xf2)](h(0xe6));});a56a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0xe5;var f=c[d];return f;},a56d(a,b);}function a56c(){var i=['45HvsiXw','6ObGSFs','676ofoVve','7706015jiBFeg','93xLQbnH','48386940mblmhE','search','1486136TtqAQg','apply','243812gOpBwA','61960rWKKym','(((.+)+)+)+$','toString','1418YvFwCc','constructor','44HzDRoi','1350363vauFnc'];a56c=function(){return i;};return a56c();}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 +1 @@
1
- const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=parseInt(w(0x1bf))/0x1+-parseInt(w(0x1c3))/0x2*(-parseInt(w(0x1c9))/0x3)+-parseInt(w(0x1d0))/0x4*(-parseInt(w(0x1c2))/0x5)+-parseInt(w(0x1dd))/0x6+-parseInt(w(0x1ee))/0x7*(-parseInt(w(0x1fc))/0x8)+-parseInt(w(0x1a4))/0x9+-parseInt(w(0x1df))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x9475c));function a57c(){const C=['/imports/api','injectAtBeginningOfFile','resolvers.','register-','2367812XZYPzn','imports','rpc-methods.','Resolvers\x20}\x20from\x20\x27','withValue','includes','checkbox','exit','typeList.push(','import\x20{\x20typeDefs\x20as\x20','invoke','toString','import\x20\x27./register-','4232364prtvJq','mdg:validated-method','22403860piHdGp','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','maka\x20g:api\x20todos','Fixtures','TypeDefs\x20}\x20from\x20\x27','.app-tests.','checkMeteorPackage','apollo','mongo','withRest','none','graphql','dir','/graphql/typeDefs','injectAtEndOfFile','118006qishdW','const','fsi','pathFromApp','-api\x27;','api/resolvers.js','api','Publications','GraphQL','test','API\x20boundaries\x20to\x20create','rewriteDestinationPathForEngine','length','-api.','272voCogP','withMethods','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','api/tests.js','RPC\x20(Methods)','withPubs','withFixtures','/graphql/resolvers','ddp-rate-limiter','1234530fPDNOT','search','apiAnswers','No\x20API\x20boundaries\x20selected','api/typeDefs.js','engines','create','rest','notice','getProjectConfig','typeDefs.','push','constructor','server','maka:rest','api/methods.js','apply','findGenerator','index.','options','Resolvers);\x0a\x0a','collection','rest-api.','publications.','error','withGql','REST\x20API','898290SmqNzT','if\x20\x5c(','Verifying\x20meteor\x20package\x20requirements\x20...','10cFAmZG','24956aXjJMc','\x27;\x0a','template','injectIntoFile','api/register-api.js','startup','249sUDwzO','(((.+)+)+)+$','TypeDefs);\x0a'];a57c=function(){return C;};return a57c();}const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a[y(0x1db)]()[y(0x1a5)](y(0x1ca))['toString']()[y(0x1b0)](a57a)['search'](y(0x1ca));});a57a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a57d(a,b);}import a57e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a57z(0x1aa)]({'name':'api','aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a57z(0x1fe),'validOpts':[a57z(0x1eb)],'examples':[a57z(0x1e1)]},async function(a,b){const A=a57z;try{const c=this[A(0x1f0)][A(0x1ad)](),d=[{'name':A(0x200),'value':A(0x1fd)},{'name':A(0x1e2),'value':'withFixtures'},{'name':A(0x1f5),'value':'withPubs'}];c['engines']['api']===A(0x1ab)&&d[A(0x1af)]({'name':A(0x1be),'value':A(0x1e8)});c[A(0x1a9)][A(0x1ea)]==='apollo'&&d[A(0x1af)]({'name':A(0x1f6),'value':A(0x1bd)});const f={'type':A(0x1d6),'name':A(0x1a6),'message':A(0x1f8),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x1b7)](f);g[A(0x1fa)]===0x0&&(Log[A(0x1bc)](A(0x1a7)),process[A(0x1d7)](0x1)),this[A(0x1f0)][A(0x1d4)](c,async()=>{const B=A,h=this[B(0x1f0)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x1eb)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x1f4)],'graphql':c[B(0x1a9)]['graphql'],'test':c[B(0x1a9)][B(0x1f7)],'noRename':!![],'withPubs':g['includes'](B(0x1a0)),'withFixtures':g[B(0x1d5)]('withFixtures'),'withMethods':g[B(0x1d5)](B(0x1fd)),'withRest':g[B(0x1d5)](B(0x1e8))};let n='js';c[B(0x1a9)]['js']==='tsx'&&(n='ts');(!this[B(0x1f0)][B(0x1e5)](B(0x1b2))||!this[B(0x1f0)][B(0x1e5)]('maka:check')||!this[B(0x1f0)][B(0x1e5)](B(0x1a3))||!this[B(0x1f0)][B(0x1e5)](B(0x1de))||!this[B(0x1f0)][B(0x1e5)](B(0x1e7)))&&(Log[B(0x1ac)](B(0x1c1)),await this[B(0x1f0)]['installMeteorPackage'](B(0x1e0),{'cwd':h}));const o=a57e[B(0x1b5)](B(0x1b9));o&&await o[B(0x1da)]([j],{'config':c,'where':'server'});c[B(0x1a9)][B(0x1f4)]==='rest'&&(m[B(0x1e8)]&&this[B(0x1f0)][B(0x1c5)]({'srcPath':'api/api.js','destPath':this['fsi']['pathFromApp']({'pathParts':['imports',B(0x1f4),b['dir'],j,B(0x1ba)+n]}),'context':m,'config':c}));m[B(0x1fd)]&&this[B(0x1f0)][B(0x1c5)]({'srcPath':B(0x1b3),'destPath':this[B(0x1f0)][B(0x1f1)]({'pathParts':[B(0x1d1),B(0x1f4),b[B(0x1eb)],j,B(0x1d2)+n]}),'context':m,'config':c});m[B(0x1a1)]&&this[B(0x1f0)][B(0x1c5)]({'srcPath':'api/fixtures.js','destPath':this[B(0x1f0)]['pathFromApp']({'pathParts':['imports','api',b['dir'],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x1a9)][B(0x1f7)]!==B(0x1e9)&&this[B(0x1f0)][B(0x1c5)]({'srcPath':B(0x1ff),'destPath':this[B(0x1f0)][B(0x1f1)]({'pathParts':[B(0x1d1),B(0x1f4),b[B(0x1eb)],j,j+B(0x1e4)+n]}),'context':m,'config':c});m[B(0x1a0)]&&this[B(0x1f0)][B(0x1c5)]({'srcPath':'api/publications.js','destPath':this[B(0x1f0)][B(0x1f1)]({'pathParts':[B(0x1d1),B(0x1f4),b[B(0x1eb)],j,B(0x1bb)+n]}),'context':m,'config':c});if(c[B(0x1a9)][B(0x1ea)]===B(0x1e6)){if(g['includes'](B(0x1bd))){const q=this['fsi']['pathFromApp']({'pathParts':[B(0x1d1),B(0x1c8),B(0x1b1),B(0x1b6)+c[B(0x1a9)]['js']]}),r=this[B(0x1f0)][B(0x1f9)]({'pathParts':[q],'config':c}),s=this['fsi']['pathFromApp']({'pathParts':[B(0x1d1),B(0x1f4),b['dir'],j,B(0x1ea),B(0x1ae)+n]}),t=B(0x1cc)+l+j+B(0x1ec);this[B(0x1f0)][B(0x1c5)]({'srcPath':B(0x1a8),'destPath':s,'context':m,'config':c}),this[B(0x1f0)][B(0x1cd)]({'filePath':r,'content':B(0x1d9)+k+B(0x1e3)+t+B(0x1c4)}),this[B(0x1f0)][B(0x1c6)]({'filePath':r,'content':B(0x1d8)+k+B(0x1cb),'begin':'const','end':B(0x1c0)});const u=this[B(0x1f0)][B(0x1f1)]({'pathParts':[B(0x1d1),B(0x1f4),b[B(0x1eb)],j,B(0x1ea),B(0x1ce)+n]}),v=B(0x1cc)+l+j+B(0x1a2);this[B(0x1f0)][B(0x1c5)]({'srcPath':B(0x1f3),'destPath':u,'context':m,'config':c}),this[B(0x1f0)][B(0x1cd)]({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+B(0x1d3)+v+'\x27;'}),this[B(0x1f0)]['injectIntoFile']({'filePath':r,'content':'resolverList.push('+k+B(0x1b8),'begin':B(0x1ef),'end':B(0x1c0)});}}this[B(0x1f0)][B(0x1c5)]({'srcPath':B(0x1c7),'destPath':this[B(0x1f0)][B(0x1f1)]({'pathParts':[B(0x1d1),B(0x1c8),'server',B(0x1cf)+j+B(0x1fb)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1f0)][B(0x1f1)]({'pathParts':[B(0x1d1),B(0x1c8),B(0x1b1),B(0x1b6)+c['engines']['js']]});this[B(0x1f0)][B(0x1ed)]({'filePath':p,'content':B(0x1dc)+j+B(0x1f2)});});}catch(h){console['log'](h),process[A(0x1d7)](0x0);}});
1
+ const a57y=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=parseInt(w(0x1b5))/0x1*(-parseInt(w(0x1de))/0x2)+-parseInt(w(0x1b8))/0x3+parseInt(w(0x18f))/0x4+parseInt(w(0x1db))/0x5+-parseInt(w(0x1bb))/0x6*(-parseInt(w(0x1d8))/0x7)+-parseInt(w(0x1ba))/0x8*(-parseInt(w(0x1ce))/0x9)+-parseInt(w(0x1b2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x21595));const a57b=(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;};}()),a57a=a57b(this,function(){const x=a57d;return a57a[x(0x1b3)]()['search'](x(0x1d1))[x(0x1b3)]()[x(0x19d)](a57a)[x(0x1dc)](x(0x1d1));});a57a();import{Generator}from'../generator.js';function a57c(){const B=['log','369QiLaSY','-api.','maka\x20g:api\x20todos','(((.+)+)+)+$','const','typeList.push(','Verifying\x20meteor\x20package\x20requirements\x20...','notice','installMeteorPackage','api/methods.js','220136VzDpNU','Resolvers\x20}\x20from\x20\x27','options','1162620EFqXMk','search','withPubs','2MwEIHa','api/fixtures.js','withFixtures','checkbox','import\x20{\x20typeDefs\x20as\x20','injectIntoFile','imports','386056LTvCEc','exit','index.','Resolvers);\x0a\x0a','fsi','if\x20\x5c(','withMethods','rest','server','/imports/api','ddp-rate-limiter','invoke','withRest','mdg:validated-method','constructor','length','RPC\x20(Methods)','resolverList.push(','No\x20API\x20boundaries\x20selected','template','withGql','engines','maka:rest','api/resolvers.js','tsx','dir','checkMeteorPackage','\x0aimport\x20{\x20resolvers\x20as\x20','maka:check','Fixtures','Publications','push','/graphql/resolvers','api','injectAtBeginningOfFile','1877420DbfPLh','toString','-api\x27;','2228SleYMs','withValue','test','711594TgTQYl','rest-api.','33528SqMJmI','12nvihZL','REST\x20API','graphql','TypeDefs\x20}\x20from\x20\x27','rpc-methods.','includes','pathFromApp','error','none','api/api.js','fixtures.','api/publications.js','api/register-api.js','startup','apollo','apiAnswers','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','/graphql/typeDefs'];a57c=function(){return B;};return a57c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x18b;let f=c[d];return f;},a57d(a,b);}Generator['create']({'name':a57y(0x1b0),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a57y(0x1a8)],'examples':[a57y(0x1d0)]},async function(a,b){const z=a57y;try{const c=this[z(0x193)]['getProjectConfig'](),d=[{'name':z(0x19f),'value':z(0x195)},{'name':z(0x1ac),'value':z(0x1e0)},{'name':z(0x1ad),'value':'withPubs'}];c[z(0x1a4)][z(0x1b0)]===z(0x196)&&d[z(0x1ae)]({'name':z(0x1bc),'value':z(0x19b)});c[z(0x1a4)][z(0x1bd)]===z(0x1c9)&&d['push']({'name':'GraphQL','value':z(0x1a3)});const f={'type':z(0x18b),'name':z(0x1ca),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x1da)](f);g[z(0x19e)]===0x0&&(Log[z(0x1c2)](z(0x1a1)),process[z(0x190)](0x1)),this[z(0x193)][z(0x1b6)](c,async()=>{const A=z,h=this[A(0x193)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[A(0x1a8)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][A(0x1b0)],'graphql':c[A(0x1a4)]['graphql'],'test':c[A(0x1a4)][A(0x1b7)],'noRename':!![],'withPubs':g[A(0x1c0)](A(0x1dd)),'withFixtures':g[A(0x1c0)](A(0x1e0)),'withMethods':g[A(0x1c0)]('withMethods'),'withRest':g['includes']('withRest')};let n='js';c[A(0x1a4)]['js']===A(0x1a7)&&(n='ts');(!this['fsi'][A(0x1a9)](A(0x1a5))||!this[A(0x193)]['checkMeteorPackage'](A(0x1ab))||!this['fsi'][A(0x1a9)](A(0x199))||!this[A(0x193)][A(0x1a9)](A(0x19c))||!this[A(0x193)][A(0x1a9)]('mongo'))&&(Log[A(0x1d5)](A(0x1d4)),await this[A(0x193)][A(0x1d6)](A(0x1cb),{'cwd':h}));const o=a57e['findGenerator']('collection');o&&await o[A(0x19a)]([j],{'config':c,'where':A(0x197)});c['engines'][A(0x1b0)]===A(0x196)&&(m['withRest']&&this[A(0x193)][A(0x1a2)]({'srcPath':A(0x1c4),'destPath':this[A(0x193)][A(0x1c1)]({'pathParts':['imports','api',b['dir'],j,A(0x1b9)+n]}),'context':m,'config':c}));m['withMethods']&&this[A(0x193)][A(0x1a2)]({'srcPath':A(0x1d7),'destPath':this[A(0x193)]['pathFromApp']({'pathParts':['imports','api',b['dir'],j,A(0x1bf)+n]}),'context':m,'config':c});m[A(0x1e0)]&&this[A(0x193)][A(0x1a2)]({'srcPath':A(0x1df),'destPath':this[A(0x193)]['pathFromApp']({'pathParts':['imports','api',b[A(0x1a8)],j,A(0x1c5)+n]}),'context':m,'config':c});c[A(0x1a4)][A(0x1b7)]!==A(0x1c3)&&this[A(0x193)][A(0x1a2)]({'srcPath':'api/tests.js','destPath':this['fsi']['pathFromApp']({'pathParts':[A(0x18e),A(0x1b0),b[A(0x1a8)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m[A(0x1dd)]&&this[A(0x193)][A(0x1a2)]({'srcPath':A(0x1c6),'destPath':this[A(0x193)][A(0x1c1)]({'pathParts':[A(0x18e),'api',b[A(0x1a8)],j,'publications.'+n]}),'context':m,'config':c});if(c[A(0x1a4)][A(0x1bd)]===A(0x1c9)){if(g[A(0x1c0)](A(0x1a3))){const q=this[A(0x193)]['pathFromApp']({'pathParts':[A(0x18e),A(0x1c8),A(0x197),A(0x191)+c[A(0x1a4)]['js']]}),r=this[A(0x193)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[A(0x193)][A(0x1c1)]({'pathParts':[A(0x18e),A(0x1b0),b[A(0x1a8)],j,A(0x1bd),'typeDefs.'+n]}),t='/imports/api'+l+j+A(0x1cc);this[A(0x193)]['template']({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this[A(0x193)][A(0x1b1)]({'filePath':r,'content':A(0x18c)+k+A(0x1be)+t+'\x27;\x0a'}),this[A(0x193)][A(0x18d)]({'filePath':r,'content':A(0x1d3)+k+'TypeDefs);\x0a','begin':'const','end':A(0x194)});const u=this[A(0x193)][A(0x1c1)]({'pathParts':[A(0x18e),A(0x1b0),b[A(0x1a8)],j,'graphql','resolvers.'+n]}),v=A(0x198)+l+j+A(0x1af);this[A(0x193)][A(0x1a2)]({'srcPath':A(0x1a6),'destPath':u,'context':m,'config':c}),this[A(0x193)][A(0x1b1)]({'filePath':r,'content':A(0x1aa)+k+A(0x1d9)+v+'\x27;'}),this[A(0x193)][A(0x18d)]({'filePath':r,'content':A(0x1a0)+k+A(0x192),'begin':A(0x1d2),'end':A(0x194)});}}this['fsi'][A(0x1a2)]({'srcPath':A(0x1c7),'destPath':this[A(0x193)][A(0x1c1)]({'pathParts':['imports',A(0x1c8),A(0x197),'register-'+j+A(0x1cf)+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0x193)]['pathFromApp']({'pathParts':[A(0x18e),A(0x1c8),A(0x197),'index.'+c[A(0x1a4)]['js']]});this['fsi']['injectAtEndOfFile']({'filePath':p,'content':'import\x20\x27./register-'+j+A(0x1b4)});});}catch(h){console[z(0x1cd)](h),process[z(0x190)](0x0);}});
@@ -1 +1 @@
1
- const a58n=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0x1c6))/0x1+parseInt(k(0x1d6))/0x2*(-parseInt(k(0x1e6))/0x3)+-parseInt(k(0x1e7))/0x4+parseInt(k(0x1de))/0x5+parseInt(k(0x1e4))/0x6+-parseInt(k(0x1c5))/0x7*(parseInt(k(0x1cb))/0x8)+-parseInt(k(0x1bf))/0x9*(-parseInt(k(0x1c4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x7669d));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a58d;if(c){const e=c[l(0x1e2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const m=a58d;return a58a['toString']()[m(0x1d4)](m(0x1db))[m(0x1d1)]()['constructor'](a58a)[m(0x1d4)](m(0x1db));});a58a();function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a58d(a,b);}function a58c(){const q=['col','appPathPrefix','template','(((.+)+)+)+$','collections','where','1557755vVuuRq','injectAtEndOfFile','collection/tests.js','engines','apply','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','1307580Tngnrd','resourceName','228ZMhSQd','3438764OzOzjh','none','notice','fsi','186642JezpKh','\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','startup','checkMeteorPackage','maka\x20g:collection\x20todos','830fKZMUd','7eQdGqG','856377HalmuD','test','imports','mongo','withValue','41488bJOFLa','dir','getProjectConfig','import\x20\x27./collections','pathFromApp','create','toString','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','.app-tests.','search','error','1170AuSjno','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'];a58c=function(){return q;};return a58c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58n(0x1d0)]({'name':'collection','aliases':[a58n(0x1d8)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>\x20[--where]','checkWhere':!![],'shortDesc':a58n(0x1e3),'validOpts':[a58n(0x1cc),'where'],'description':a58n(0x1c0),'examples':[a58n(0x1c3)]},async function(a,b){const o=a58n;try{const c=this[o(0x1ea)]['pathFromApp']({}),d=this[o(0x1ea)][o(0x1cd)]();this['fsi'][o(0x1ca)](d,async()=>{const p=o,f=paramCase(b[p(0x1e5)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x1e5)]),'fileName':f,'where':b[p(0x1dd)],'test':d[p(0x1e1)][p(0x1c7)],'noRename':!![]};let h='js';d[p(0x1e1)]['js']==='tsx'&&(h='ts');!this['fsi'][p(0x1c2)](p(0x1c9))&&(Log[p(0x1e9)](p(0x1d7)),await this[p(0x1ea)]['installMeteorPackage'](p(0x1c9),{'cwd':c}));!this['fsi'][p(0x1c2)]('maka:check')&&(Log[p(0x1e9)](p(0x1d2)),await this[p(0x1ea)]['installMeteorPackage']('maka:check',{'cwd':c}));this[p(0x1ea)][p(0x1da)]({'srcPath':'collection/collection.js','destPath':this[p(0x1ea)][p(0x1cf)]({'pathParts':['imports',p(0x1c1),b[p(0x1d9)],p(0x1dc),b[p(0x1cc)],f+'.'+h]}),'context':g,'config':d});d[p(0x1e1)]['test']!==p(0x1e8)&&this[p(0x1ea)][p(0x1da)]({'srcPath':p(0x1e0),'destPath':this[p(0x1ea)][p(0x1cf)]({'pathParts':[p(0x1c8),p(0x1c1),b[p(0x1d9)],p(0x1dc),b[p(0x1cc)],f+p(0x1d3)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x1cc)]+'/':'/',j=this[p(0x1ea)][p(0x1cf)]({'pathParts':['imports','startup',b[p(0x1d9)],'index.'+d[p(0x1e1)]['js']]});this[p(0x1ea)][p(0x1df)]({'filePath':j,'content':p(0x1ce)+i+f+'\x27;'});});}catch(f){Log[o(0x1d5)](f);}});
1
+ const a58m=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0x17b))/0x1+parseInt(k(0x17c))/0x2*(-parseInt(k(0x171))/0x3)+-parseInt(k(0x164))/0x4*(-parseInt(k(0x173))/0x5)+parseInt(k(0x168))/0x6*(parseInt(k(0x166))/0x7)+parseInt(k(0x160))/0x8+parseInt(k(0x158))/0x9+parseInt(k(0x16c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x75fdf));function a58c(){const p=['maka:check','51822WTcRLR','withValue','col','(((.+)+)+)+$','1837260hTsvDE','getProjectConfig','appPathPrefix','maka\x20g:collection\x20todos','notice','54915pCGlBr','pathFromApp','20peQryg','search','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','create','\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','toString','template','mongo','543676epxSVI','60NsZiOS','error','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','where','fsi','.app-tests.','tsx','engines','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','checkMeteorPackage','5137173PvKpLv','index.','startup','collections','collection','dir','collection/tests.js','injectAtEndOfFile','2235688PZOtoN','collection/collection.js','installMeteorPackage','resourceName','15280CFnbgx','imports','427EpVKMi'];a58c=function(){return p;};return a58c();}function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x158;let f=c[d];return f;},a58d(a,b);}const a58b=(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;};}()),a58a=a58b(this,function(){const l=a58d;return a58a[l(0x178)]()[l(0x174)](l(0x16b))[l(0x178)]()['constructor'](a58a)[l(0x174)](l(0x16b));});a58a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58m(0x176)]({'name':a58m(0x15c),'aliases':[a58m(0x16a)],'usage':a58m(0x175),'checkWhere':!![],'shortDesc':a58m(0x184),'validOpts':[a58m(0x15d),a58m(0x17f)],'description':a58m(0x177),'examples':[a58m(0x16f)]},async function(a,b){const n=a58m;try{const c=this[n(0x180)]['pathFromApp']({}),d=this['fsi'][n(0x16d)]();this['fsi'][n(0x169)](d,async()=>{const o=n,f=paramCase(b[o(0x163)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[o(0x163)]),'fileName':f,'where':b[o(0x17f)],'test':d[o(0x183)]['test'],'noRename':!![]};let h='js';d['engines']['js']===o(0x182)&&(h='ts');!this[o(0x180)][o(0x185)](o(0x17a))&&(Log[o(0x170)](o(0x17e)),await this[o(0x180)]['installMeteorPackage'](o(0x17a),{'cwd':c}));!this[o(0x180)][o(0x185)](o(0x167))&&(Log[o(0x170)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[o(0x180)][o(0x162)](o(0x167),{'cwd':c}));this[o(0x180)][o(0x179)]({'srcPath':o(0x161),'destPath':this[o(0x180)][o(0x172)]({'pathParts':[o(0x165),o(0x15a),b[o(0x16e)],o(0x15b),b[o(0x15d)],f+'.'+h]}),'context':g,'config':d});d[o(0x183)]['test']!=='none'&&this[o(0x180)][o(0x179)]({'srcPath':o(0x15e),'destPath':this[o(0x180)][o(0x172)]({'pathParts':[o(0x165),o(0x15a),b[o(0x16e)],o(0x15b),b[o(0x15d)],f+o(0x181)+h]}),'context':g,'config':d});const i=b[o(0x15d)]?'/'+b[o(0x15d)]+'/':'/',j=this[o(0x180)][o(0x172)]({'pathParts':[o(0x165),o(0x15a),b[o(0x16e)],o(0x159)+d[o(0x183)]['js']]});this[o(0x180)][o(0x15f)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[n(0x17d)](f);}});
@@ -1 +1 @@
1
- const a59p=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=parseInt(n(0xf3))/0x1*(-parseInt(n(0xe7))/0x2)+parseInt(n(0xfd))/0x3*(parseInt(n(0x124))/0x4)+parseInt(n(0x10d))/0x5+parseInt(n(0x118))/0x6+parseInt(n(0x10a))/0x7+parseInt(n(0x10b))/0x8*(-parseInt(n(0x122))/0x9)+-parseInt(n(0xe0))/0xa*(parseInt(n(0xeb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0x1a367));const a59b=(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;};}()),a59a=a59b(this,function(){const o=a59d;return a59a[o(0x105)]()[o(0x117)](o(0xff))[o(0x105)]()[o(0xfb)](a59a)[o(0x117)](o(0xff));});a59a();import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0xde;let f=c[d];return f;},a59d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a59p(0x11d)];function a59c(){const s=['withValue','test','55138SgLXok','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','.tests.js','setTemplate','.css','withTranslations','root','installNpmPackage','constructor','\x20}\x20from\x20\x27','220752QktEZV','engines','(((.+)+)+)+$','export\x20{\x20','injectAtBeginningOfFile','fsi','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','toString','template','graphql','checkNpmPackage','fileName','1052254keUttA','40wLFRdp','maka\x20g:comp\x20todos/todos-item','977395xkfAoE','relative','import\x20\x27./','ssr','string','className','cssCaseName','.js','ramda','/imports/ui/components','search','701790cBSbTC','test/test.js','css','reflux','true','comp','theme','error','\x27;\x0a','features','26316MLnpQQ','import\x20{\x20','4ITtEyN','component/component.js','pathFromApp','none','templates.js','rewriteDestinationPathForEngine','getProjectConfig','3592250pZLJUT','injectAtEndOfFile','lib','startup','resourceName','template/template.css','dir','2ryYZOF','\x20};\x0a','api','tsx','11xsVHpa','import\x20\x27','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','imports','client','react'];a59c=function(){return s;};return a59c();}Generator['create']({'name':'component','aliases':aliases,'usage':a59p(0x103),'shortDesc':a59p(0xf4),'validOpts':['dir'],'examples':[a59p(0x10c)]},async function(a,b){const q=a59p;try{const c=this[q(0x102)]['findAppDirectory'](),d=q(0x116),f=this[q(0x102)][q(0x126)]({'pathParts':[d,b[q(0xe6)],paramCase(b[q(0xe4)]),paramCase(b['resourceName'])]}),g=await this['fsi'][q(0xdf)]();this[q(0x102)][q(0xf1)](g,async()=>{const r=q;typeof g[r(0x106)]['test']===r(0x111)&&(g['template'][r(0xf2)]=g[r(0x106)][r(0xf2)]===r(0x11c)?!![]:![],this[r(0x102)][r(0xf6)](r(0xf2),g['template']['test']));typeof g[r(0x106)][r(0x11a)]==='string'&&(g[r(0x106)][r(0x11a)]=g[r(0x106)][r(0x11a)]===r(0x11c)?!![]:![],this[r(0x102)][r(0xf6)](r(0x11a),g['template']['css']));typeof g[r(0x106)]['js']===r(0x111)&&(g[r(0x106)]['js']=g[r(0x106)]['js']===r(0x11c)?!![]:![],this['fsi']['setTemplate']('js',g[r(0x106)]['js']));!g['features']&&(g[r(0x121)]={});!b['root']&&!this[r(0x102)][r(0x108)](r(0x115))&&(Log['warn'](r(0x104)),await this[r(0x102)][r(0xfa)](r(0x115),{'cwd':c}));if(!b[r(0xf9)]&&!this[r(0x102)][r(0x108)](r(0xf0))){Log[r(0x11f)](r(0xed));return;}const h={'name':pascalCase(b[r(0xe4)]),'myPath':a59e[r(0x10e)](this['fsi']['pathFromProject']({}),f),'cssCaseName':paramCase(b[r(0xe4)]),'className':pascalCase(b[r(0xe4)]),'camelCaseName':camelCase(b[r(0xe4)]),'fileName':paramCase(b[r(0xe4)]),'graphql':g[r(0xfe)][r(0x107)],'features':g[r(0x121)],'client':g[r(0xfe)][r(0xef)],'api':g[r(0xfe)][r(0xe9)],'ssr':g[r(0xfe)][r(0x110)],'test':g['engines']['test'],'theme':g['engines'][r(0x11e)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0x121)][r(0xf8)]};this['fsi'][r(0x106)]({'srcPath':r(0x125),'destPath':f+r(0x114),'context':h,'framework':r(0xf0),'config':g});g[r(0xfe)][r(0xf2)]!==r(0x127)&&this[r(0x102)][r(0x106)]({'srcPath':r(0x119),'destPath':f+r(0xf5),'context':h,'framework':'react','config':g});g['template'][r(0x11a)]&&(this[r(0x102)][r(0x106)]({'srcPath':r(0xe5),'destPath':f+r(0xf7),'context':Object['assign']({},h,{'className':paramCase(b[r(0xe4)])}),'config':g}),this[r(0x102)][r(0x101)]({'filePath':f+'.'+g[r(0xfe)]['js'],'content':r(0x10f)+h[r(0x113)]+'.'+g[r(0xfe)][r(0x11a)]+'\x27;'}));const i=b[r(0xe6)]?'/'+b['dir']+'/':'/',j=''+d+i+h[r(0x109)]+'/'+h['fileName'];let k;if(g[r(0xfe)][r(0x110)]===r(0x11c)){const l=this[r(0x102)][r(0x126)]({'pathParts':[r(0xee),r(0xe3),r(0xe2),r(0x128)]});k=this[r(0x102)][r(0xde)]({'pathParts':[l],'config':g});}else{const m=this[r(0x102)][r(0x126)]({'pathParts':[r(0xee),r(0xe3),'client',r(0x128)]});k=this[r(0x102)][r(0xde)]({'pathParts':[m],'config':g});}g[r(0xfe)]['client']===r(0xf0)||g[r(0xfe)]['client']===r(0x11b)?(g[r(0xfe)]['js']===r(0xea)?this[r(0x102)][r(0x101)]({'filePath':k,'content':r(0x123)+h[r(0x112)]+r(0xfc)+j+r(0x120)}):this['fsi'][r(0x101)]({'filePath':k,'content':r(0x123)+h[r(0x112)]+r(0xfc)+j+'.'+g['engines']['js']+r(0x120)}),this[r(0x102)][r(0xe1)]({'filePath':k,'content':r(0x100)+h[r(0x112)]+r(0xe8)})):this[r(0x102)][r(0xe1)]({'filePath':k,'content':r(0xec)+j+'.'+g[r(0xfe)]['js']+r(0x120)});});}catch(h){Log[q(0x11f)](h);}});
1
+ const a59q=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=-parseInt(n(0xcd))/0x1*(parseInt(n(0xd5))/0x2)+parseInt(n(0xaa))/0x3*(-parseInt(n(0xbb))/0x4)+parseInt(n(0xd0))/0x5*(-parseInt(n(0x8f))/0x6)+-parseInt(n(0xc2))/0x7*(-parseInt(n(0xb1))/0x8)+-parseInt(n(0xb2))/0x9*(-parseInt(n(0x8a))/0xa)+parseInt(n(0xbf))/0xb*(parseInt(n(0xa7))/0xc)+-parseInt(n(0xca))/0xd*(-parseInt(n(0x96))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xa4484));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a59d;if(c){const e=c[o(0x8d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const p=a59d;return a59a['toString']()[p(0x95)](p(0xab))[p(0xa1)]()[p(0xa2)](a59a)[p(0x95)]('(((.+)+)+)+$');});a59a();import a59e from'path';function a59c(){const t=['assign','13YiuFyQ','withTranslations','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','253Yslclp','api','theme','10zOcIkt','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','templates.js','pathFromApp','import\x20\x27./','9382rLDKIm','relative','dir','64530ezGLKa','rewriteDestinationPathForEngine','features','apply','engines','3189714vJfiNX','tsx','\x20};\x0a','ssr','none','cssCaseName','search','29364650TkaXhf','checkNpmPackage','comp','true','pathFromProject','css','fsi','lib','component/component.js','/imports/ui/components','startup','toString','constructor','installNpmPackage','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','react','injectAtBeginningOfFile','11287428dHDgOW','.js','reflux','417zZaoEz','(((.+)+)+)+$','test','findAppDirectory','\x27;\x0a','template','className','8UaZLSx','729GSEwhH','root','import\x20{\x20','\x20}\x20from\x20\x27','resourceName','imports','.css','import\x20\x27','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','20188Ndizgy','client','injectAtEndOfFile','warn','11LCCsTO','error','ramda','445949UedUvF','setTemplate','string','component','test/test.js','withValue','.tests.js'];a59c=function(){return t;};return a59c();}import{camelCase,paramCase,pascalCase}from'change-case';function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x89;let f=c[d];return f;},a59d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a59q(0x98)];Generator['create']({'name':a59q(0xc5),'aliases':aliases,'usage':a59q(0xd1),'shortDesc':a59q(0xba),'validOpts':[a59q(0x89)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a59q;try{const c=this[r(0x9c)][r(0xad)](),d=r(0x9f),f=this[r(0x9c)][r(0xd3)]({'pathParts':[d,b[r(0x89)],paramCase(b[r(0xb6)]),paramCase(b[r(0xb6)])]}),g=await this[r(0x9c)]['getProjectConfig']();this[r(0x9c)][r(0xc7)](g,async()=>{const s=r;typeof g[s(0xaf)][s(0xac)]==='string'&&(g['template'][s(0xac)]=g['template'][s(0xac)]===s(0x99)?!![]:![],this[s(0x9c)][s(0xc3)]('test',g[s(0xaf)][s(0xac)]));typeof g[s(0xaf)]['css']===s(0xc4)&&(g['template'][s(0x9b)]=g[s(0xaf)]['css']===s(0x99)?!![]:![],this[s(0x9c)][s(0xc3)](s(0x9b),g[s(0xaf)][s(0x9b)]));typeof g[s(0xaf)]['js']==='string'&&(g[s(0xaf)]['js']=g['template']['js']===s(0x99)?!![]:![],this[s(0x9c)]['setTemplate']('js',g[s(0xaf)]['js']));!g[s(0x8c)]&&(g[s(0x8c)]={});!b['root']&&!this[s(0x9c)][s(0x97)](s(0xc1))&&(Log[s(0xbe)](s(0xa4)),await this[s(0x9c)][s(0xa3)](s(0xc1),{'cwd':c}));if(!b[s(0xb3)]&&!this['fsi']['checkNpmPackage'](s(0xa5))){Log[s(0xc0)](s(0xcc));return;}const h={'name':pascalCase(b[s(0xb6)]),'myPath':a59e[s(0xd6)](this[s(0x9c)][s(0x9a)]({}),f),'cssCaseName':paramCase(b[s(0xb6)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0xb6)]),'fileName':paramCase(b['resourceName']),'graphql':g['engines']['graphql'],'features':g[s(0x8c)],'client':g[s(0x8e)][s(0xbc)],'api':g[s(0x8e)][s(0xce)],'ssr':g[s(0x8e)][s(0x92)],'test':g[s(0x8e)][s(0xac)],'theme':g[s(0x8e)][s(0xcf)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x8c)][s(0xcb)]};this['fsi']['template']({'srcPath':s(0x9e),'destPath':f+s(0xa8),'context':h,'framework':s(0xa5),'config':g});g[s(0x8e)][s(0xac)]!==s(0x93)&&this['fsi'][s(0xaf)]({'srcPath':s(0xc6),'destPath':f+s(0xc8),'context':h,'framework':'react','config':g});g[s(0xaf)][s(0x9b)]&&(this['fsi'][s(0xaf)]({'srcPath':'template/template.css','destPath':f+s(0xb8),'context':Object[s(0xc9)]({},h,{'className':paramCase(b[s(0xb6)])}),'config':g}),this[s(0x9c)][s(0xa6)]({'filePath':f+'.'+g[s(0x8e)]['js'],'content':s(0xd4)+h[s(0x94)]+'.'+g[s(0x8e)][s(0x9b)]+'\x27;'}));const i=b[s(0x89)]?'/'+b['dir']+'/':'/',j=''+d+i+h['fileName']+'/'+h['fileName'];let k;if(g[s(0x8e)][s(0x92)]==='true'){const l=this[s(0x9c)][s(0xd3)]({'pathParts':['imports',s(0xa0),s(0x9d),s(0xd2)]});k=this['fsi'][s(0x8b)]({'pathParts':[l],'config':g});}else{const m=this['fsi']['pathFromApp']({'pathParts':[s(0xb7),s(0xa0),'client','templates.js']});k=this[s(0x9c)][s(0x8b)]({'pathParts':[m],'config':g});}g[s(0x8e)][s(0xbc)]===s(0xa5)||g[s(0x8e)][s(0xbc)]===s(0xa9)?(g[s(0x8e)]['js']===s(0x90)?this['fsi'][s(0xa6)]({'filePath':k,'content':s(0xb4)+h[s(0xb0)]+s(0xb5)+j+s(0xae)}):this[s(0x9c)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0xb4)+h[s(0xb0)]+s(0xb5)+j+'.'+g[s(0x8e)]['js']+s(0xae)}),this[s(0x9c)][s(0xbd)]({'filePath':k,'content':'export\x20{\x20'+h['className']+s(0x91)})):this[s(0x9c)][s(0xbd)]({'filePath':k,'content':s(0xb9)+j+'.'+g[s(0x8e)]['js']+s(0xae)});});}catch(h){Log[r(0xc0)](h);}});
@@ -1 +1 @@
1
- function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x19a;let f=c[d];return f;},a60d(a,b);}const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=parseInt(h(0x1a7))/0x1+parseInt(h(0x1a3))/0x2*(parseInt(h(0x1b3))/0x3)+parseInt(h(0x1a8))/0x4+-parseInt(h(0x1b0))/0x5+parseInt(h(0x1b7))/0x6+-parseInt(h(0x1a2))/0x7*(parseInt(h(0x1b4))/0x8)+-parseInt(h(0x1b6))/0x9*(parseInt(h(0x1b5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0xabe74));const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x1b2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a[j(0x1ba)]()['search'](j(0x1a0))[j(0x1ba)]()['constructor'](a60a)[j(0x1ac)](j(0x1a0));});function a60c(){const n=['appName','toString','template','ubuntu','production','create','config/process.env','config/settings.json','(((.+)+)+)+$','withValue','29848aHSaqu','22DjurNg','pathFromProject','maka\x20{generate,\x20g}:{config}\x20<name>','resourceName','911144JFpGhf','4033112ZAfCVj','getProjectConfig','Generate\x20configuration\x20settings.','settings.json','search','maka\x20g:config\x20production','config','dev','2560210vxngnN','fsi','apply','201939VGitlu','2296rYDgzN','654140OaPKIw','99jqzGNr','2997690JDgTeg','isDocker'];a60c=function(){return n;};return a60c();}a60a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a60k(0x19d)]({'name':a60k(0x1ae),'usage':a60k(0x1a5),'shortDesc':a60k(0x1aa),'validOpts':[a60k(0x1b8)],'examples':[a60k(0x1ad)]},function(a,b){const l=a60k,c=this[l(0x1b1)][l(0x1a9)]();this[l(0x1b1)][l(0x1a1)](c,async()=>{const m=l,d={'app':c[m(0x1b9)],'appFileCase':paramCase(c[m(0x1b9)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x1a6)]),'camelCase':camelCase(b[m(0x1a6)]),'userName':m(0x19b),'isDocker':b[m(0x1b8)]};let e=a[0x0];if(e===m(0x1af))e='development';else e==='prod'&&(e=m(0x19c));const f=this[m(0x1b1)][m(0x1a4)]({'pathParts':[m(0x1ae),e,m(0x1ab)]});this[m(0x1b1)][m(0x19a)]({'srcPath':m(0x19f),'destPath':f,'context':d,'config':c});if(!b[m(0x1b8)]){const g=this['fsi'][m(0x1a4)]({'pathParts':[m(0x1ae),e,'process.env']});this['fsi']['template']({'srcPath':m(0x19e),'destPath':g,'context':d,'config':c});}});});
1
+ const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=-parseInt(h(0x19f))/0x1+parseInt(h(0x1b3))/0x2+-parseInt(h(0x1ac))/0x3+parseInt(h(0x1a9))/0x4*(-parseInt(h(0x1b1))/0x5)+parseInt(h(0x1a3))/0x6*(parseInt(h(0x19b))/0x7)+-parseInt(h(0x1af))/0x8+parseInt(h(0x1b6))/0x9*(parseInt(h(0x1b4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x70747));const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a['toString']()['search'](j(0x1b7))[j(0x1a2)]()[j(0x1a0)](a60a)[j(0x19a)]('(((.+)+)+)+$');});a60a();function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x199;let f=c[d];return f;},a60d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a60k(0x1ae)]({'name':a60k(0x199),'usage':a60k(0x1a8),'shortDesc':a60k(0x19e),'validOpts':[a60k(0x1b2)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a60k,c=this[l(0x1b0)][l(0x1b8)]();this[l(0x1b0)][l(0x1a5)](c,async()=>{const m=l,d={'app':c[m(0x1ad)],'appFileCase':paramCase(c[m(0x1ad)]),'name':pascalCase(b[m(0x19d)]),'fileName':paramCase(b[m(0x19d)]),'camelCase':camelCase(b[m(0x19d)]),'userName':m(0x19c),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0x1a6))e='development';else e==='prod'&&(e='production');const f=this[m(0x1b0)][m(0x1b5)]({'pathParts':[m(0x199),e,m(0x1aa)]});this[m(0x1b0)][m(0x1a7)]({'srcPath':m(0x1a4),'destPath':f,'context':d,'config':c});if(!b[m(0x1b2)]){const g=this[m(0x1b0)]['pathFromProject']({'pathParts':[m(0x199),e,m(0x1ab)]});this[m(0x1b0)][m(0x1a7)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});function a60c(){const n=['(((.+)+)+)+$','getProjectConfig','config','search','222348Xxxlqq','ubuntu','resourceName','Generate\x20configuration\x20settings.','513846excDJu','constructor','apply','toString','42LIAMla','config/settings.json','withValue','dev','template','maka\x20{generate,\x20g}:{config}\x20<name>','2249636QjXkbZ','settings.json','process.env','2038536iewVRP','appName','create','5202312HodJJn','fsi','5KHZaJU','isDocker','1464484SMNRND','22790yGvKGy','pathFromProject','7551iepVqz'];a60c=function(){return n;};return a60c();}
@@ -1 +1 @@
1
- function a61c(){const t=['server','injectAtEndOfFile','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','DB\x20Driver','-dbc\x27;','MS\x20SQL','tsx','installNpmPackage','dbc/register-dbc.js','(blank)','pgsql','indexOf','4rwpByS','Invalid\x20type\x20','(((.+)+)+)+$','mssql','7678560tkPFYi','dbc/config.js','6572055NCEaya','toString','warn','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','search','3431396rhTLAl','type','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','fsi','conn.','PostgreSQL','9vYSBGY','error','better-sqlite3','import\x20\x27./register-','dbAnswer','options','create','checkNpmPackage','config.',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','dir','4828011ALpjew','pathFromApp','1603090etqxyn','engines','getProjectConfig','91QvJYDu','constructor','834774CZibxL','resourceName','4811690txEZVl','imports','template','dbc','maka\x20g:dbc\x20geoserver\x20--type=pgsql','apply','startup','index.'];a61c=function(){return t;};return a61c();}function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a61d(a,b);}const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=-parseInt(n(0x1e4))/0x1+-parseInt(n(0x1d1))/0x2+-parseInt(n(0x1e2))/0x3*(-parseInt(n(0x1c5))/0x4)+parseInt(n(0x1cb))/0x5+-parseInt(n(0x1e9))/0x6*(-parseInt(n(0x1e7))/0x7)+-parseInt(n(0x1c9))/0x8+-parseInt(n(0x1d7))/0x9*(-parseInt(n(0x1b1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0xe444a));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0x1b6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0x1cc)]()['search'](p(0x1c7))[p(0x1cc)]()[p(0x1e8)](a61a)[p(0x1d0)](p(0x1c7));});a61a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a61q(0x1dd)]({'name':a61q(0x1b4),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','shortDesc':a61q(0x1bb),'validOpts':[a61q(0x1d2),a61q(0x1e1)],'examples':[a61q(0x1b5)]},async function(a,b){const r=a61q;try{const c=await this['fsi'][r(0x1e6)](),d=this[r(0x1d4)][r(0x1e3)]({}),f=paramCase(b[r(0x1ea)]);if(!b[r(0x1d2)]){const h={'type':'list','name':r(0x1db),'message':r(0x1bc),'choices':[{'name':r(0x1d6),'value':r(0x1c3)},{'name':r(0x1be),'value':r(0x1c8)}]},{dbAnswer:i}=await Actions[r(0x1dc)](h);i&&(b['type']=i);}const g={'name':pascalCase(b[r(0x1ea)]),'fileName':paramCase(b[r(0x1ea)]),'camelCase':camelCase(b[r(0x1ea)]),'type':b[r(0x1d2)],'engine':c[r(0x1e5)]['js'],'noRename':!![]};this['fsi']['withValue'](c,async()=>{const s=r;let j='js';c[s(0x1e5)]['js']===s(0x1bf)&&(j='ts');const k=['mssql',s(0x1c3)];if(k[s(0x1c4)](g[s(0x1d2)])<0x0){const m=g['type']?g[s(0x1d2)]:s(0x1c2);Log[s(0x1d8)](s(0x1c6)+m+s(0x1e0));return;}b['type']===s(0x1c3)&&!this[s(0x1d4)][s(0x1de)]('pg')&&(Log['warn'](s(0x1cf)),await this[s(0x1d4)]['installNpmPackage']('pg',{'cwd':d}));b[s(0x1d2)]==='mssql'&&!this[s(0x1d4)][s(0x1de)](s(0x1c8))&&(Log[s(0x1cd)](s(0x1ce)),await this['fsi']['installNpmPackage'](s(0x1c8),{'cwd':d}));b[s(0x1d2)]==='sqlite'&&!this['fsi']['checkNpmPackage'](s(0x1d9))&&(Log[s(0x1cd)](s(0x1d3)),await this[s(0x1d4)][s(0x1c0)](s(0x1d9),{'cwd':d}));this[s(0x1d4)][s(0x1b3)]({'srcPath':s(0x1ca),'destPath':this[s(0x1d4)][s(0x1e3)]({'pathParts':[s(0x1b2),s(0x1b7),'server','dbc',b[s(0x1e1)],f,s(0x1df)+j]}),'context':g,'config':c}),this[s(0x1d4)][s(0x1b3)]({'srcPath':'dbc/conn.js','destPath':this[s(0x1d4)][s(0x1e3)]({'pathParts':['imports','startup',s(0x1b9),s(0x1b4),b[s(0x1e1)],f,s(0x1d5)+j]}),'context':g,'config':c}),this[s(0x1d4)][s(0x1b3)]({'srcPath':s(0x1c1),'destPath':this['fsi']['pathFromApp']({'pathParts':[s(0x1b2),'startup',s(0x1b9),'register-'+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x1d4)]['pathFromApp']({'pathParts':[s(0x1b2),s(0x1b7),s(0x1b9),s(0x1b8)+c[s(0x1e5)]['js']]});this[s(0x1d4)][s(0x1ba)]({'filePath':l,'content':s(0x1da)+f+s(0x1bd)});});}catch(j){Log['error'](j);}});
1
+ const a61p=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=parseInt(n(0x19e))/0x1+-parseInt(n(0x19c))/0x2+-parseInt(n(0x188))/0x3*(-parseInt(n(0x1ac))/0x4)+parseInt(n(0x1b7))/0x5+parseInt(n(0x193))/0x6+-parseInt(n(0x1a2))/0x7*(-parseInt(n(0x18d))/0x8)+-parseInt(n(0x1b1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x683cf));function a61c(){const s=['better-sqlite3','fsi','checkNpmPackage','template','dir','1317676jYWPxZ','-dbc.','constructor','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','indexOf','13188132KudKdt','type','pgsql','dbc','getProjectConfig','toString','3288245oBeidO','engines','server','DB\x20Driver','config.','3SvVpBh','conn.','maka\x20g:dbc\x20geoserver\x20--type=pgsql','installNpmPackage','startup','2656xbtdaU','imports','error','pathFromApp','dbAnswer','options','3439554ruGyRw','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','mssql','search','sqlite',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','(blank)','import\x20\x27./register-','index.','507196UPaenZ','tsx','242954UMtBGg','(((.+)+)+)+$','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','warn','7224xwLdJD','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','PostgreSQL','resourceName','dbc/config.js'];a61c=function(){return s;};return a61c();}const a61b=(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;};}()),a61a=a61b(this,function(){const o=a61d;return a61a[o(0x1b6)]()['search'](o(0x19f))[o(0x1b6)]()[o(0x1ae)](a61a)[o(0x196)](o(0x19f));});a61a();function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x187;let f=c[d];return f;},a61d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator['create']({'name':a61p(0x1b4),'usage':a61p(0x194),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a61p(0x1b2),a61p(0x1ab)],'examples':[a61p(0x18a)]},async function(a,b){const q=a61p;try{const c=await this[q(0x1a8)][q(0x1b5)](),d=this[q(0x1a8)][q(0x190)]({}),f=paramCase(b[q(0x1a5)]);if(!b[q(0x1b2)]){const h={'type':'list','name':q(0x191),'message':q(0x1ba),'choices':[{'name':q(0x1a4),'value':'pgsql'},{'name':'MS\x20SQL','value':'mssql'}]},{dbAnswer:i}=await Actions[q(0x192)](h);i&&(b['type']=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[q(0x1a5)]),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};this['fsi']['withValue'](c,async()=>{const r=q;let j='js';c[r(0x1b8)]['js']===r(0x19d)&&(j='ts');const k=[r(0x195),r(0x1b3)];if(k[r(0x1b0)](g[r(0x1b2)])<0x0){const m=g[r(0x1b2)]?g['type']:r(0x199);Log[r(0x18f)]('Invalid\x20type\x20'+m+r(0x198));return;}b[r(0x1b2)]===r(0x1b3)&&!this[r(0x1a8)][r(0x1a9)]('pg')&&(Log[r(0x1a1)](r(0x1a3)),await this[r(0x1a8)][r(0x18b)]('pg',{'cwd':d}));b[r(0x1b2)]===r(0x195)&&!this[r(0x1a8)][r(0x1a9)]('mssql')&&(Log[r(0x1a1)](r(0x1af)),await this[r(0x1a8)]['installNpmPackage'](r(0x195),{'cwd':d}));b[r(0x1b2)]===r(0x197)&&!this[r(0x1a8)]['checkNpmPackage'](r(0x1a7))&&(Log['warn'](r(0x1a0)),await this[r(0x1a8)][r(0x18b)](r(0x1a7),{'cwd':d}));this[r(0x1a8)]['template']({'srcPath':r(0x1a6),'destPath':this['fsi'][r(0x190)]({'pathParts':[r(0x18e),r(0x18c),'server','dbc',b[r(0x1ab)],f,r(0x187)+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':'dbc/conn.js','destPath':this[r(0x1a8)][r(0x190)]({'pathParts':[r(0x18e),r(0x18c),'server',r(0x1b4),b[r(0x1ab)],f,r(0x189)+j]}),'context':g,'config':c}),this[r(0x1a8)][r(0x1aa)]({'srcPath':'dbc/register-dbc.js','destPath':this[r(0x1a8)]['pathFromApp']({'pathParts':['imports',r(0x18c),r(0x1b9),'register-'+f+r(0x1ad)+j]}),'context':g,'config':c});const l=this['fsi']['pathFromApp']({'pathParts':['imports','startup',r(0x1b9),r(0x19b)+c[r(0x1b8)]['js']]});this[r(0x1a8)]['injectAtEndOfFile']({'filePath':l,'content':r(0x19a)+f+'-dbc\x27;'});});}catch(j){Log['error'](j);}});
@@ -1 +1 @@
1
- const a62h=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=parseInt(f(0xbc))/0x1*(parseInt(f(0xb4))/0x2)+parseInt(f(0xac))/0x3+-parseInt(f(0xb3))/0x4+parseInt(f(0xa5))/0x5*(parseInt(f(0x9e))/0x6)+parseInt(f(0xaa))/0x7+-parseInt(f(0xa7))/0x8*(-parseInt(f(0xb5))/0x9)+-parseInt(f(0xb1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x42f33));function a62c(){const k=['app','docker/Dockerfile','app.tar.gz','118765qbpkOw','maka\x20{generate,\x20g}:dockerfile','30592CdPvyN','error','withValue','3500175pvmQgY','template','1571319BJenCR','join','build','Generate\x20an\x20updated\x20dockerfile','fsi','17076950rXbBrU','(((.+)+)+)+$','701076BORIkp','11764tRzQhe','648QmgaMg','getProjectConfig','findProjectDirectory','search','maka\x20g:dockerfile','toString','service','53jQLOcp','constructor','Dockerfile','getGlobalConfig','create','138GmcZdi','cert','appName','dockerfile'];a62c=function(){return k;};return a62c();}const a62b=(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;};}()),a62a=a62b(this,function(){const g=a62d;return a62a['toString']()[g(0xb8)](g(0xb2))[g(0xba)]()[g(0xbd)](a62a)['search'](g(0xb2));});a62a();function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x9e;let f=c[d];return f;},a62d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a62e from'path';Generator[a62h(0xc0)]({'name':a62h(0xa1),'usage':a62h(0xa6),'shortDesc':a62h(0xaf),'validOpts':[],'noResource':!![],'examples':[a62h(0xb9)]},async function(){const i=a62h;try{const a=await this[i(0xb0)][i(0xb6)](),b=await this[i(0xb0)][i(0xbf)](),c=this['fsi'][i(0xb7)]();this[i(0xb0)][i(0xa9)](a,async()=>{const j=i,d={'app':b[j(0xa0)],'config':a,'appPath':a62e['join'](c,j(0xa2)),'bundlePath':a62e['join'](c,j(0xae),j(0xa4)),'useCert':this['fsi']['isFile'](b[j(0x9f)])};this['fsi'][j(0xab)]({'srcPath':j(0xa3),'destPath':a62e[j(0xad)](c,j(0xbe)),'framework':j(0xbb),'context':d,'config':a});});}catch(d){Log[i(0xa8)](d);}});
1
+ const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=-parseInt(f(0x13b))/0x1*(-parseInt(f(0x130))/0x2)+-parseInt(f(0x136))/0x3+-parseInt(f(0x125))/0x4*(-parseInt(f(0x12b))/0x5)+-parseInt(f(0x131))/0x6+parseInt(f(0x12e))/0x7+-parseInt(f(0x138))/0x8*(parseInt(f(0x13f))/0x9)+parseInt(f(0x135))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0xbdc50));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a['toString']()[h(0x12a)]('(((.+)+)+)+$')[h(0x124)]()[h(0x122)](a62a)[h(0x12a)](h(0x12c));});a62a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a62e from'path';Generator[a62i(0x140)]({'name':a62i(0x128),'usage':a62i(0x133),'shortDesc':a62i(0x137),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a62i;try{const a=await this[j(0x13e)][j(0x132)](),b=await this['fsi'][j(0x121)](),c=this[j(0x13e)][j(0x126)]();this[j(0x13e)][j(0x12f)](a,async()=>{const k=j,d={'app':b[k(0x141)],'config':a,'appPath':a62e[k(0x13a)](c,k(0x129)),'bundlePath':a62e[k(0x13a)](c,k(0x12d),k(0x13c)),'useCert':this[k(0x13e)][k(0x127)](b['cert'])};this[k(0x13e)][k(0x142)]({'srcPath':'docker/Dockerfile','destPath':a62e[k(0x13a)](c,k(0x13d)),'framework':k(0x139),'context':d,'config':a});});}catch(d){Log[j(0x123)](d);}});function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x121;let f=c[d];return f;},a62d(a,b);}function a62c(){const l=['toString','8MKXBxL','findProjectDirectory','isFile','dockerfile','app','search','394435HluhAx','(((.+)+)+)+$','build','1859116sfdTDb','withValue','241742fDovzi','3039840lFIlxc','getProjectConfig','maka\x20{generate,\x20g}:dockerfile','apply','14157660nmnDMY','3546171BEkgSX','Generate\x20an\x20updated\x20dockerfile','8fNkqwr','service','join','8EgjnSZ','app.tar.gz','Dockerfile','fsi','3060927MMrtKX','create','appName','template','getGlobalConfig','constructor','error'];a62c=function(){return l;};return a62c();}
@@ -1 +1 @@
1
- const a63r=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=-parseInt(o(0x1d2))/0x1+-parseInt(o(0x1be))/0x2+parseInt(o(0x1a2))/0x3+-parseInt(o(0x1ac))/0x4+-parseInt(o(0x1a3))/0x5*(-parseInt(o(0x1c3))/0x6)+-parseInt(o(0x1aa))/0x7+parseInt(o(0x1cd))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0xaa34b));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a['toString']()['search'](q(0x1a7))[q(0x1a6)]()['constructor'](a63a)[q(0x1a4)](q(0x1a7));});a63a();import a63e from'path';function a63c(){const u=['fileName','className','apollo','getProjectConfig','472839WQwDqp','55755nRbtAd','search','string','toString','(((.+)+)+)+$','true','create','6568891eQkANV','@apollo/client\x20isomorphic-fetch','1620528oEXizE','import\x20{\x20','apply','css','\x20};\x0a','startup','imports','react','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','engines','rewriteDestinationPathForEngine','hook','warn','client','.app-tests.js','withValue','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','resourceName','320606KgrPtU','/imports/ui/hooks','tsx','injectAtEndOfFile','import\x20\x27./','42TkYcXg','maka\x20g:hook\x20cool-hook','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','hook/hook.js','injectAtBeginningOfFile','fsi','pathFromApp','test','\x27;\x0a','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','17440488SspNoP','import\x20\x27','\x20}\x20from\x20\x27','cssCaseName','ssr','214720HlvEha','relative','templates.js','.css','setTemplate','template','graphql','lib','test/test.js','installNpmPackage','features','none','.js','error','checkNpmPackage','dir'];a63c=function(){return u;};return a63c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x19b;let f=c[d];return f;},a63d(a,b);}Generator[a63r(0x1a9)]({'name':a63r(0x1b7),'aliases':['h'],'checkWhere':![],'usage':a63r(0x1c5),'shortDesc':a63r(0x1cc),'validOpts':[a63r(0x19d)],'examples':[a63r(0x1c4)]},async function(a,b){const s=a63r;try{const c=this[s(0x1c8)][s(0x19c)](s(0x1b3));if(!c){Log[s(0x19b)](s(0x1b4));throw new UsageError();}const d=this[s(0x1c8)]['pathFromApp'](b),f=s(0x1bf),g=this[s(0x1c8)][s(0x1c9)]({'pathParts':[f,b['dir'],paramCase(b[s(0x1bd)]),paramCase(b[s(0x1bd)])]}),h=await this[s(0x1c8)][s(0x1a1)]();this[s(0x1c8)][s(0x1bb)](h,async()=>{const t=s;typeof h[t(0x1d7)][t(0x1af)]===t(0x1a5)&&(h['template']['css']=h[t(0x1d7)][t(0x1af)]===t(0x1a8)?!![]:![],this[t(0x1c8)][t(0x1d6)](t(0x1af),h[t(0x1d7)][t(0x1af)]));h[t(0x1b5)][t(0x1d8)]===t(0x1a0)&&!this[t(0x19c)]('@apollo/client')&&(Log[t(0x1b8)](t(0x1bc)),await this[t(0x1c8)][t(0x1db)](t(0x1ab),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1bd)]),'className':pascalCase(b[t(0x1bd)]),'name':pascalCase(b[t(0x1bd)]),'graphql':h[t(0x1b5)][t(0x1d8)],'theme':h[t(0x1b5)]['theme'],'features':h[t(0x1dc)],'myPath':a63e[t(0x1d3)](this[t(0x1c8)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0x1bd)]),'isComponent':![],'isLayout':![],'withTranslations':h['features']['withTranslations']};this['fsi'][t(0x1d7)]({'srcPath':t(0x1c6),'destPath':g+t(0x1de),'context':i,'config':h,'framework':t(0x1b3)});h[t(0x1d7)][t(0x1af)]&&(this[t(0x1c8)][t(0x1d7)]({'srcPath':'template/template.css','destPath':g+t(0x1d5),'context':Object['assign']({},i,{'className':i[t(0x1d0)]}),'config':h}),this[t(0x1c8)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x1b5)]['js'],'content':t(0x1c2)+i['fileName']+'.'+h[t(0x1b5)][t(0x1af)]+'\x27;'}));h[t(0x1b5)][t(0x1ca)]!==t(0x1dd)&&this[t(0x1c8)][t(0x1d7)]({'srcPath':t(0x1da),'destPath':g+t(0x1ba),'framework':t(0x1b3),'context':i,'config':h});const j=b['dir']?'/'+b[t(0x19d)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x19e)];let l;if(h[t(0x1b5)][t(0x1d1)]===t(0x1a8)){const m=this[t(0x1c8)][t(0x1c9)]({'pathParts':['imports',t(0x1b1),t(0x1d9),'templates.js']});l=this[t(0x1c8)][t(0x1b6)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x1c9)]({'pathParts':[t(0x1b2),t(0x1b1),t(0x1b9),t(0x1d4)]});l=this[t(0x1c8)][t(0x1b6)]({'pathParts':[n],'config':h});}h[t(0x1b5)][t(0x1b9)]===t(0x1b3)?(h[t(0x1b5)]['js']===t(0x1c0)?this['fsi'][t(0x1c7)]({'filePath':l,'content':t(0x1ad)+i[t(0x19f)]+t(0x1cf)+k+t(0x1cb)}):this[t(0x1c8)][t(0x1c7)]({'filePath':l,'content':t(0x1ad)+i[t(0x19f)]+t(0x1cf)+k+'.'+h['engines']['js']+t(0x1cb)}),this[t(0x1c8)][t(0x1c1)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x19f)]+t(0x1b0)})):this[t(0x1c8)]['injectAtEndOfFile']({'filePath':l,'content':t(0x1ce)+k+'.'+h[t(0x1b5)]['js']+t(0x1cb)});});}catch(i){Log[s(0x19b)](i);}});
1
+ const a63r=a63d;function a63c(){const u=['\x27;\x0a','3476574qJZemM','@apollo/client\x20isomorphic-fetch','startup','4368008hqOUGo','resourceName','withTranslations','6312306CCTQWD','@apollo/client','apollo','graphql','dir','setTemplate','react','/imports/ui/hooks','\x20}\x20from\x20\x27','injectAtBeginningOfFile','relative','engines','create','rewriteDestinationPathForEngine','8558976GzDCoJ','client','imports','injectAtEndOfFile','fsi','theme','assign','template','withValue','ssr','checkNpmPackage','none','apply','hook','.app-tests.js','55130XCSDeb','test/test.js','import\x20\x27./','pathFromApp','constructor','css','search','369izoMVj','hook/hook.js','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','true','import\x20\x27','2GFpAzS','installNpmPackage','error','className','fileName','maka\x20g:hook\x20cool-hook','178817JJaPEp','string','pathFromProject','15WEWvEg','test','(((.+)+)+)+$','lib','templates.js','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','features','.js','1730688YTHRsO'];a63c=function(){return u;};return a63c();}(function(a,b){const o=a63d,c=a();while(!![]){try{const d=parseInt(o(0xc1))/0x1*(-parseInt(o(0xbb))/0x2)+parseInt(o(0xce))/0x3+parseInt(o(0xd1))/0x4+parseInt(o(0xc4))/0x5*(parseInt(o(0xcc))/0x6)+-parseInt(o(0xd4))/0x7+-parseInt(o(0xe2))/0x8+parseInt(o(0xb6))/0x9*(-parseInt(o(0xf1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0xb498c));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a['toString']()[q(0xb5)]('(((.+)+)+)+$')['toString']()[q(0xb3)](a63a)[q(0xb5)](q(0xc6));});a63a();import a63e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0xb2;let f=c[d];return f;},a63d(a,b);}import{UsageError}from'../error.js';Generator[a63r(0xe0)]({'name':a63r(0xef),'aliases':['h'],'checkWhere':![],'usage':a63r(0xc9),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[a63r(0xd8)],'examples':[a63r(0xc0)]},async function(a,b){const s=a63r;try{const c=this[s(0xe6)][s(0xec)]('react');if(!c){Log[s(0xbd)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[s(0xe6)][s(0xb2)](b),f=s(0xdb),g=this['fsi'][s(0xb2)]({'pathParts':[f,b['dir'],paramCase(b[s(0xd2)]),paramCase(b[s(0xd2)])]}),h=await this['fsi']['getProjectConfig']();this[s(0xe6)][s(0xea)](h,async()=>{const t=s;typeof h[t(0xe9)]['css']===t(0xc2)&&(h['template'][t(0xb4)]=h[t(0xe9)][t(0xb4)]===t(0xb9)?!![]:![],this[t(0xe6)][t(0xd9)]('css',h[t(0xe9)][t(0xb4)]));h[t(0xdf)]['graphql']===t(0xd6)&&!this[t(0xec)](t(0xd5))&&(Log['warn'](t(0xb8)),await this[t(0xe6)][t(0xbc)](t(0xcf),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xd2)]),'className':pascalCase(b[t(0xd2)]),'name':pascalCase(b[t(0xd2)]),'graphql':h['engines'][t(0xd7)],'theme':h[t(0xdf)][t(0xe7)],'features':h[t(0xca)],'myPath':a63e[t(0xde)](this['fsi'][t(0xc3)]({}),g),'fileName':paramCase(b[t(0xd2)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xca)][t(0xd3)]};this['fsi'][t(0xe9)]({'srcPath':t(0xb7),'destPath':g+t(0xcb),'context':i,'config':h,'framework':t(0xda)});h[t(0xe9)][t(0xb4)]&&(this[t(0xe6)][t(0xe9)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[t(0xe8)]({},i,{'className':i['cssCaseName']}),'config':h}),this[t(0xe6)]['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':t(0xf3)+i[t(0xbf)]+'.'+h[t(0xdf)]['css']+'\x27;'}));h[t(0xdf)][t(0xc5)]!==t(0xed)&&this[t(0xe6)][t(0xe9)]({'srcPath':t(0xf2),'destPath':g+t(0xf0),'framework':t(0xda),'context':i,'config':h});const j=b['dir']?'/'+b[t(0xd8)]+'/':'/',k=''+f+j+i[t(0xbf)]+'/'+i[t(0xbf)];let l;if(h[t(0xdf)][t(0xeb)]===t(0xb9)){const m=this[t(0xe6)][t(0xb2)]({'pathParts':[t(0xe4),t(0xd0),t(0xc7),t(0xc8)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0xe6)][t(0xb2)]({'pathParts':[t(0xe4),t(0xd0),t(0xe3),t(0xc8)]});l=this[t(0xe6)][t(0xe1)]({'pathParts':[n],'config':h});}h[t(0xdf)][t(0xe3)]===t(0xda)?(h[t(0xdf)]['js']==='tsx'?this[t(0xe6)]['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i[t(0xbe)]+'\x20}\x20from\x20\x27'+k+t(0xcd)}):this[t(0xe6)][t(0xdd)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xbe)]+t(0xdc)+k+'.'+h[t(0xdf)]['js']+t(0xcd)}),this[t(0xe6)][t(0xe5)]({'filePath':l,'content':'export\x20{\x20'+i['className']+'\x20};\x0a'})):this[t(0xe6)][t(0xe5)]({'filePath':l,'content':t(0xba)+k+'.'+h[t(0xdf)]['js']+t(0xcd)});});}catch(i){Log[s(0xbd)](i);}});
@@ -1 +1 @@
1
- const a64j=a64d;function a64c(){const m=['getProjectConfig','maka\x20g:k\x20city-map\x20--type=leaflet-map','toString','login','constructor','12aYyPvY','(blank)','171965qSwrpi','5792346vUhLWb','maka\x20g:kit\x20--type=map','2820349lkoJcf','2433TLOlNK','search','1230430hdyyVj','indexOf','kit','withValue','maka\x20{generate,\x20g}:{kit}\x20<kit-name>\x20--type=map','error','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','create','755232jFbKDx','leaflet-map','NIE','type','resourceName','324wXBPZE','fsi','(((.+)+)+)+$','map','370934ZFyLps','notice'];a64c=function(){return m;};return a64c();}(function(a,b){const h=a64d,c=a();while(!![]){try{const d=parseInt(h(0x13b))/0x1+parseInt(h(0x132))/0x2+parseInt(h(0x13f))/0x3*(parseInt(h(0x14e))/0x4)+parseInt(h(0x141))/0x5*(-parseInt(h(0x139))/0x6)+-parseInt(h(0x13e))/0x7+parseInt(h(0x149))/0x8+parseInt(h(0x13c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x40f3a));const a64b=(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;};}()),a64a=a64b(this,function(){const i=a64d;return a64a[i(0x136)]()['search']('(((.+)+)+)+$')[i(0x136)]()[i(0x138)](a64a)[i(0x140)](i(0x130));});function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x130;let f=c[d];return f;},a64d(a,b);}a64a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a64j(0x148)]({'name':a64j(0x143),'aliases':['k'],'usage':a64j(0x145),'shortDesc':a64j(0x147),'validOpts':[a64j(0x14c)],'examples':[a64j(0x13d),a64j(0x135)]},async function(a,b){const k=a64j;try{const c=this[k(0x14f)][k(0x134)]();this[k(0x14f)][k(0x144)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x14d)]),'fileName':paramCase(b[l(0x14d)]),'camelCase':camelCase(b[l(0x14d)]),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]},f=[l(0x14a),'login'];if(f[l(0x142)](d['type'])<0x0){const g=d[l(0x14c)]?d[l(0x14c)]:l(0x13a);Log['error']('Invalid\x20type\x20'+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[l(0x14c)]===l(0x131)&&Log[l(0x133)]('NIE'),b[l(0x14c)]===l(0x137)&&Log['notice'](l(0x14b));});}catch(d){Log[k(0x146)](d);}});
1
+ function a64c(){const n=['login','Invalid\x20type\x20','kit','7680520KljKDM','4302184fwlSAi','getProjectConfig','4106pwPxHO','932304lcSQJu','(((.+)+)+)+$','search','apply','441056QtbcNp','engines','type','maka\x20g:k\x20city-map\x20--type=leaflet-map','map','11440212QXnceF','fsi','210NFbIdm','maka\x20g:kit\x20--type=map','3033750pvNUPx','NIE','error','toString','resourceName'];a64c=function(){return n;};return a64c();}const a64k=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0xf2))/0x1+-parseInt(h(0xed))/0x2*(-parseInt(h(0xf9))/0x3)+parseInt(h(0xee))/0x4+parseInt(h(0xea))/0x5+parseInt(h(0xe2))/0x6+-parseInt(h(0xf7))/0x7+parseInt(h(0xeb))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0xd7114));function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0xe1;let f=c[d];return f;},a64d(a,b);}const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a64d;if(c){const e=c[i(0xf1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const j=a64d;return a64a[j(0xe5)]()['search'](j(0xef))[j(0xe5)]()['constructor'](a64a)[j(0xf0)](j(0xef));});a64a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a64k(0xe9),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a64k(0xf4)],'examples':[a64k(0xe1),a64k(0xf5)]},async function(a,b){const l=a64k;try{const c=this[l(0xf8)][l(0xec)]();this['fsi']['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xe6)]),'fileName':paramCase(b[m(0xe6)]),'camelCase':camelCase(b[m(0xe6)]),'type':b[m(0xf4)],'engine':c[m(0xf3)]['js'],'noRename':!![]},f=['leaflet-map',m(0xe7)];if(f['indexOf'](d['type'])<0x0){const g=d[m(0xf4)]?d['type']:'(blank)';Log['error'](m(0xe8)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xf4)]===m(0xf6)&&Log['notice'](m(0xe3)),b[m(0xf4)]===m(0xe7)&&Log['notice']('NIE');});}catch(d){Log[l(0xe4)](d);}});
@@ -1 +1 @@
1
- const a65r=a65d;function a65c(){const u=['(((.+)+)+)+$','2767527YNHCWx','warn','rewriteDestinationPathForEngine','import\x20{\x20','startup','8439970zvPTby','search','setTemplate','Scaffolding\x20for\x20a\x20React\x20Layout.','templates.js','true','ssr','template','css','resourceName','import\x20\x27./','fileName','layout','toString','imports','relative','findAppDirectory','.css','graphql','withHook','30142iTVZKa','apply','features','3ycKxbq','react','832TqFVln','maka\x20g:layout\x20mobile/iPhone8','engines','includes','ramda','\x27;\x0a','2492022xNrlPs','165972nMyXwM','maka\x20g:l\x20web/safari','2062692Cgfbck','\x20}\x20from\x20\x27','create','installNpmPackage','component/component.js','getProjectConfig','pathFromApp','string','import\x20\x27','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','template/template.css','split','api','/imports/ui/layouts','assign','test','dir','className','injectAtEndOfFile','client','172222ihjuql','checkNpmPackage','hook/hook.js','fsi','5qPlChR','\x20};\x0a','pathFromProject','constructor'];a65c=function(){return u;};return a65c();}function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x9f;let f=c[d];return f;},a65d(a,b);}(function(a,b){const o=a65d,c=a();while(!![]){try{const d=parseInt(o(0xe0))/0x1+parseInt(o(0xb2))/0x2*(-parseInt(o(0xd7))/0x3)+parseInt(o(0xe2))/0x4+-parseInt(o(0xb6))/0x5*(parseInt(o(0xdf))/0x6)+parseInt(o(0xd4))/0x7*(-parseInt(o(0xd9))/0x8)+-parseInt(o(0xbb))/0x9+parseInt(o(0xc0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x41a43));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0xcd)]()[q(0xc1)](q(0xba))['toString']()[q(0xb9)](a65a)['search']('(((.+)+)+)+$');});a65a();import a65e 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[a65r(0xa0)]({'name':a65r(0xcc),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':a65r(0xc3),'validOpts':[],'examples':[a65r(0xda),a65r(0xe1)]},function(a,b){const s=a65r,c=s(0xab),d=this[s(0xb5)][s(0xd0)](),e=this[s(0xb5)][s(0xa4)]({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this[s(0xb5)][s(0xa3)]();this[s(0xb5)]['withValue'](f,()=>{const t=s;typeof f[t(0xc7)]['test']===t(0xa5)&&(f[t(0xc7)][t(0xad)]=f[t(0xc7)][t(0xad)]===t(0xc5)?!![]:![],this[t(0xb5)][t(0xc2)](t(0xad),f[t(0xc7)][t(0xad)]));typeof f['template'][t(0xc8)]==='string'&&(f[t(0xc7)][t(0xc8)]=f['template'][t(0xc8)]===t(0xc5)?!![]:![],this['fsi'][t(0xc2)](t(0xc8),f[t(0xc7)]['css']));typeof f['template']['js']===t(0xa5)&&(f[t(0xc7)]['js']=f['template']['js']===t(0xc5)?!![]:![],this[t(0xb5)]['setTemplate']('js',f[t(0xc7)]['js']));!f[t(0xd6)]&&(f[t(0xd6)]={});const g=b['_']?b['_'][0x0][t(0xa9)](':')[0x1]:![],h=b['_']&&aliases[t(0xdc)](g);h&&!this[t(0xb3)](t(0xdd))&&(Log[t(0xbc)](t(0xa7)),this[t(0xb5)][t(0xa1)](t(0xdd),{'cwd':d}));if(h&&!this[t(0xb3)](t(0xd8))){Log[t(0xbc)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0xc9)]),'myPath':a65e[t(0xcf)](this[t(0xb5)][t(0xb8)]({}),e),'cssCaseName':paramCase(b[t(0xc9)]),'className':pascalCase(b[t(0xc9)]),'camelCaseName':camelCase(b[t(0xc9)]),'fileName':paramCase(b[t(0xc9)]),'graphql':f[t(0xdb)][t(0xd2)],'features':f[t(0xd6)],'client':f[t(0xdb)][t(0xb1)],'api':f['engines'][t(0xaa)],'ssr':f[t(0xdb)][t(0xc6)],'test':f[t(0xdb)][t(0xad)],'theme':f[t(0xdb)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0xd6)]['withTranslations']};f[t(0xd6)]?.['withHooks']||b[t(0xd3)]?this[t(0xb5)][t(0xc7)]({'srcPath':t(0xb4),'destPath':e+'.js','framework':t(0xd8),'context':i,'config':f}):this[t(0xb5)][t(0xc7)]({'srcPath':t(0xa2),'destPath':e+'.js','framework':t(0xd8),'context':i,'config':f});f[t(0xdb)][t(0xad)]!=='none'&&this['fsi'][t(0xc7)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':t(0xd8),'context':i,'config':f});f[t(0xc7)][t(0xc8)]&&(this['fsi']['template']({'srcPath':t(0xa8),'destPath':e+t(0xd1),'context':Object[t(0xac)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0xb5)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0xdb)]['js'],'content':t(0xca)+i[t(0xcb)]+'.'+f['engines'][t(0xc8)]+'\x27;'}));const j=b['dir']?'/'+b[t(0xae)]+'/':'/',k=''+c+j+i[t(0xcb)]+'/'+i[t(0xcb)];let l;if(f[t(0xdb)][t(0xc6)]===t(0xc5)){const m=this[t(0xb5)][t(0xa4)]({'pathParts':[t(0xce),t(0xbf),'lib','templates.js']});l=this[t(0xb5)][t(0xbd)]({'pathParts':[m],'config':f});}else{const n=this[t(0xb5)][t(0xa4)]({'pathParts':[t(0xce),t(0xbf),t(0xb1),t(0xc4)]});l=this['fsi'][t(0xbd)]({'pathParts':[n],'config':f});}f[t(0xdb)][t(0xb1)]===t(0xd8)?(f['engines']['js']==='tsx'?this[t(0xb5)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0xbe)+i[t(0xaf)]+t(0x9f)+k+t(0xde)}):this['fsi']['injectAtBeginningOfFile']({'filePath':l,'content':t(0xbe)+i['className']+t(0x9f)+k+'.'+f[t(0xdb)]['js']+t(0xde)}),this[t(0xb5)][t(0xb0)]({'filePath':l,'content':'export\x20{\x20'+i[t(0xaf)]+t(0xb7)})):this['fsi'][t(0xb0)]({'filePath':l,'content':t(0xa6)+k+'.'+f['engines']['js']+'\x27;\x0a'});});});
1
+ const a65r=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d=parseInt(o(0x1d6))/0x1+parseInt(o(0x1c3))/0x2+-parseInt(o(0x1e7))/0x3*(parseInt(o(0x1d1))/0x4)+parseInt(o(0x1c8))/0x5*(parseInt(o(0x1f5))/0x6)+-parseInt(o(0x1f2))/0x7+-parseInt(o(0x1d2))/0x8+-parseInt(o(0x1ca))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0xc7d22));function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x1be;let f=c[d];return f;},a65d(a,b);}const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x1c1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x1f3)]()[q(0x1dc)](q(0x1f9))[q(0x1f3)]()[q(0x1e6)](a65a)[q(0x1dc)](q(0x1f9));});function a65c(){const u=['1479776reBthc','startup','engines','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','withTranslations','6377165caXHmz','component/component.js','8433072TDdukv','features','none','layout','ramda','maka\x20g:l\x20web/safari','warn','4sfUBLr','488048DtGyWp','import\x20\x27./','fileName','withHook','1065485vmHljP','maka\x20g:layout\x20mobile/iPhone8','.css','getProjectConfig','templates.js','theme','search','ssr','pathFromProject','tsx','.js','pathFromApp','dir','\x27;\x0a','test/test.js','api','constructor','1225347GCInSZ','withHooks','injectAtEndOfFile','injectAtBeginningOfFile','string','/imports/ui/layouts','setTemplate','template','css','split','\x20}\x20from\x20\x27','5991139WFlToq','toString','react','6rTepEQ','fsi','client','className','(((.+)+)+)+$','installNpmPackage','true','resourceName','import\x20{\x20','test','checkNpmPackage','imports','apply','import\x20\x27'];a65c=function(){return u;};return a65c();}a65a();import a65e 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':a65r(0x1cd),'aliases':aliases,'usage':a65r(0x1c6),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a65r(0x1d7),a65r(0x1cf)]},function(a,b){const s=a65r,c=s(0x1ec),d=this[s(0x1f6)]['findAppDirectory'](),e=this[s(0x1f6)]['pathFromApp']({'pathParts':[c,b[s(0x1e2)],paramCase(b[s(0x1fc)]),paramCase(b['resourceName'])]}),f=this[s(0x1f6)][s(0x1d9)]();this['fsi']['withValue'](f,()=>{const t=s;typeof f[t(0x1ee)]['test']===t(0x1eb)&&(f['template'][t(0x1be)]=f[t(0x1ee)]['test']==='true'?!![]:![],this[t(0x1f6)]['setTemplate'](t(0x1be),f['template']['test']));typeof f[t(0x1ee)][t(0x1ef)]===t(0x1eb)&&(f[t(0x1ee)][t(0x1ef)]=f[t(0x1ee)][t(0x1ef)]===t(0x1fb)?!![]:![],this[t(0x1f6)][t(0x1ed)](t(0x1ef),f[t(0x1ee)]['css']));typeof f['template']['js']===t(0x1eb)&&(f[t(0x1ee)]['js']=f[t(0x1ee)]['js']===t(0x1fb)?!![]:![],this['fsi'][t(0x1ed)]('js',f[t(0x1ee)]['js']));!f[t(0x1cb)]&&(f[t(0x1cb)]={});const g=b['_']?b['_'][0x0][t(0x1f0)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x1bf)](t(0x1ce))&&(Log[t(0x1d0)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x1f6)][t(0x1fa)](t(0x1ce),{'cwd':d}));if(h&&!this['checkNpmPackage'](t(0x1f4))){Log[t(0x1d0)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x1fc)]),'myPath':a65e['relative'](this[t(0x1f6)][t(0x1de)]({}),e),'cssCaseName':paramCase(b[t(0x1fc)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1fc)]),'fileName':paramCase(b[t(0x1fc)]),'graphql':f[t(0x1c5)]['graphql'],'features':f[t(0x1cb)],'client':f['engines'][t(0x1f7)],'api':f[t(0x1c5)][t(0x1e5)],'ssr':f['engines']['ssr'],'test':f[t(0x1c5)][t(0x1be)],'theme':f[t(0x1c5)][t(0x1db)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1cb)][t(0x1c7)]};f[t(0x1cb)]?.[t(0x1e8)]||b[t(0x1d5)]?this[t(0x1f6)][t(0x1ee)]({'srcPath':'hook/hook.js','destPath':e+t(0x1e0),'framework':t(0x1f4),'context':i,'config':f}):this[t(0x1f6)]['template']({'srcPath':t(0x1c9),'destPath':e+t(0x1e0),'framework':t(0x1f4),'context':i,'config':f});f[t(0x1c5)][t(0x1be)]!==t(0x1cc)&&this[t(0x1f6)][t(0x1ee)]({'srcPath':t(0x1e4),'destPath':e+'.app-tests.js','framework':t(0x1f4),'context':i,'config':f});f[t(0x1ee)][t(0x1ef)]&&(this[t(0x1f6)][t(0x1ee)]({'srcPath':'template/template.css','destPath':e+t(0x1d8),'context':Object['assign']({},i,{'className':paramCase(b[t(0x1fc)])}),'config':f}),this[t(0x1f6)][t(0x1ea)]({'filePath':e+'.'+f['engines']['js'],'content':t(0x1d3)+i[t(0x1d4)]+'.'+f[t(0x1c5)][t(0x1ef)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x1e2)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x1d4)];let l;if(f[t(0x1c5)][t(0x1dd)]==='true'){const m=this[t(0x1f6)][t(0x1e1)]({'pathParts':[t(0x1c0),'startup','lib',t(0x1da)]});l=this[t(0x1f6)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0x1f6)]['pathFromApp']({'pathParts':['imports',t(0x1c4),t(0x1f7),'templates.js']});l=this[t(0x1f6)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[t(0x1c5)][t(0x1f7)]===t(0x1f4)?(f[t(0x1c5)]['js']===t(0x1df)?this[t(0x1f6)][t(0x1ea)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x1f8)]+'\x20}\x20from\x20\x27'+k+t(0x1e3)}):this[t(0x1f6)][t(0x1ea)]({'filePath':l,'content':t(0x1fd)+i[t(0x1f8)]+t(0x1f1)+k+'.'+f['engines']['js']+t(0x1e3)}),this[t(0x1f6)][t(0x1e9)]({'filePath':l,'content':'export\x20{\x20'+i['className']+'\x20};\x0a'})):this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0x1c2)+k+'.'+f['engines']['js']+t(0x1e3)});});});
@@ -1 +1 @@
1
- const a66i=a66d;function a66c(){const j=['maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','5262PeRGZn','4907NkdkZL','Maka!','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','constructor','9297vKWplp','maka\x20generate:api\x20Trucks','1340lKTCXO','576750mWEuwf','maka','158860jsKxNu','(((.+)+)+)+$','2889CWKCEt','1276226JGhyqn','1778344yUqzVg','apply','maka\x20g:hook\x20cool-hook','search','toString','290tdKFNB'];a66c=function(){return j;};return a66c();}(function(a,b){const f=a66d,c=a();while(!![]){try{const d=parseInt(f(0xcf))/0x1+-parseInt(f(0xd2))/0x2+-parseInt(f(0xd1))/0x3*(-parseInt(f(0xcc))/0x4)+parseInt(f(0xcd))/0x5+-parseInt(f(0xc5))/0x6*(-parseInt(f(0xc6))/0x7)+-parseInt(f(0xd3))/0x8+-parseInt(f(0xca))/0x9*(parseInt(f(0xd8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x4e6cd));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0xd7)]()[h(0xd6)](h(0xd0))[h(0xd7)]()[h(0xc9)](a66a)[h(0xd6)](h(0xd0));});a66a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a66i(0xce),'shortDesc':a66i(0xc7),'validOpts':[],'description':a66i(0xc8),'usage':a66i(0xd9),'examples':[a66i(0xcb),a66i(0xd5)]},function(){return null;});function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0xc5;let f=c[d];return f;},a66d(a,b);}export default MakaGen;
1
+ const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=-parseInt(f(0x173))/0x1+parseInt(f(0x16b))/0x2*(-parseInt(f(0x16d))/0x3)+-parseInt(f(0x171))/0x4+-parseInt(f(0x177))/0x5+parseInt(f(0x170))/0x6+parseInt(f(0x172))/0x7*(parseInt(f(0x16a))/0x8)+-parseInt(f(0x16e))/0x9*(-parseInt(f(0x167))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0xa664b));function a66c(){const j=['maka','291816XMufxR','2415800ikkMuP','8870561LnVoQP','1299596RPezBy','toString','(((.+)+)+)+$','constructor','2999815ySULPh','10qTiLLP','apply','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','8RugYti','1752pqDYga','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','4362SnWSxq','28286109PEADcC'];a66c=function(){return j;};return a66c();}const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0x174)]()['search'](h(0x175))[h(0x174)]()[h(0x176)](a66a)['search']('(((.+)+)+)+$');});function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x167;let f=c[d];return f;},a66d(a,b);}a66a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a66i(0x16f),'shortDesc':'Maka!','validOpts':[],'description':a66i(0x169),'usage':a66i(0x16c),'examples':['maka\x20generate:api\x20Trucks','maka\x20g:hook\x20cool-hook']},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a67n=a67d;function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x137;let f=c[d];return f;},a67d(a,b);}(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0x13e))/0x1+parseInt(k(0x14c))/0x2+parseInt(k(0x14b))/0x3*(parseInt(k(0x150))/0x4)+parseInt(k(0x155))/0x5*(parseInt(k(0x142))/0x6)+parseInt(k(0x15b))/0x7*(parseInt(k(0x146))/0x8)+parseInt(k(0x139))/0x9*(-parseInt(k(0x148))/0xa)+parseInt(k(0x140))/0xb*(-parseInt(k(0x137))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xec5ec));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a67d;if(c){const e=c[l(0x141)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const m=a67d;return a67a['toString']()[m(0x147)](m(0x159))[m(0x14f)]()['constructor'](a67a)[m(0x147)](m(0x159));});a67a();function a67c(){const q=['engines','-rpc-method.','checkMeteorPackage','(((.+)+)+)+$','create','8680AIPaQn','appPathPrefix','dir','method','30749100dgNBAJ','pathFromApp','99ZNqjJh','tsx','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','check\x20ddp-rate-limiter\x20mdg:validated-method','imports','757820ExInar','error','11bxUJSe','apply','8070ZnqhWz','ddp-rate-limiter','warn','fsi','904EddMAt','search','45520BxmOTI','mdg:validated-method','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','3HggTOq','2282566VjBhVq','resourceName','method/method.js','toString','5482524hhiTQZ','startup','index.','installMeteorPackage','maka\x20g:method\x20todos','635nhIMfJ'];a67c=function(){return q;};return a67c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0x15a)]({'name':a67n(0x15e),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a67n(0x13b),'validOpts':[a67n(0x15d)],'examples':[a67n(0x154)]},function(a,b){const p=a67n;try{const c=this['fsi']['getProjectConfig']();this['fsi']['withValue'](c,async()=>{const o=a67d,d=paramCase(b['resourceName']),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[o(0x14d)]),'camelCase':camelCase(b[o(0x14d)]),'noRename':!![]};let g='js';c[o(0x156)]['js']===o(0x13a)&&(g='ts');const h=this[o(0x145)]['pathFromApp']({});(!this[o(0x145)]['checkMeteorPackage']('check')||!this['fsi'][o(0x158)](o(0x143))||!this[o(0x145)][o(0x158)](o(0x149)))&&(Log[o(0x144)](o(0x14a)),this[o(0x145)][o(0x153)](o(0x13c),{'cwd':h}));this[o(0x145)]['template']({'srcPath':o(0x14e),'destPath':this['fsi']['pathFromApp']({'pathParts':['imports',o(0x151),b[o(0x15c)],'methods',b[o(0x15d)],d+o(0x157)+g]}),'context':f,'config':c});const i=b[o(0x15d)]?'/'+b[o(0x15d)]+'/':'/',j=this['fsi'][o(0x138)]({'pathParts':[o(0x13d),o(0x151),b[o(0x15c)],o(0x152)+c[o(0x156)]['js']]});this[o(0x145)]['injectAtEndOfFile']({'filePath':j,'content':'import\x20\x27./methods'+i+d+'-rpc-method\x27;'});});}catch(d){Log[p(0x13f)](d);}});
1
+ function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x6d;let f=c[d];return f;},a67d(a,b);}const a67n=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0x79))/0x1*(-parseInt(k(0x7c))/0x2)+-parseInt(k(0x78))/0x3*(-parseInt(k(0x80))/0x4)+-parseInt(k(0x7a))/0x5*(parseInt(k(0x88))/0x6)+-parseInt(k(0x7f))/0x7*(parseInt(k(0x6d))/0x8)+-parseInt(k(0x7d))/0x9+-parseInt(k(0x77))/0xa+parseInt(k(0x76))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xc4b29));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a67d;if(c){const e=c[l(0x75)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const m=a67d;return a67a[m(0x85)]()[m(0x8c)](m(0x81))[m(0x85)]()[m(0x73)](a67a)['search'](m(0x81));});function a67c(){const q=['maka\x20g:method\x20todos','constructor','resourceName','apply','18534703hdJKFh','2447510SeEbRA','66513SyoCgz','1765JgSrza','10FBgkPp','appPathPrefix','854WiJarW','42588PiNhJh','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','1013089NCnNtO','256SszcrQ','(((.+)+)+)+$','installMeteorPackage','maka\x20{generate,\x20g}:{method,\x20m}\x20name','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','toString','getProjectConfig','fsi','411870SleOPV','checkMeteorPackage','warn','imports','search','methods','pathFromApp','template','-rpc-method.','create','dir','startup','64CsrnSL','tsx','-rpc-method\x27;','method','engines'];a67c=function(){return q;};return a67c();}a67a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0x91)]({'name':a67n(0x70),'aliases':['m'],'usage':a67n(0x83),'checkWhere':!![],'shortDesc':a67n(0x84),'validOpts':[a67n(0x92)],'examples':[a67n(0x72)]},function(a,b){const o=a67n;try{const c=this[o(0x87)][o(0x86)]();this['fsi']['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x74)]),f={'name':b[p(0x74)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[p(0x74)]),'noRename':!![]};let g='js';c[p(0x71)]['js']===p(0x6e)&&(g='ts');const h=this[p(0x87)][p(0x8e)]({});(!this[p(0x87)][p(0x89)]('check')||!this[p(0x87)][p(0x89)]('ddp-rate-limiter')||!this['fsi'][p(0x89)]('mdg:validated-method'))&&(Log[p(0x8a)](p(0x7e)),this[p(0x87)][p(0x82)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this['fsi'][p(0x8f)]({'srcPath':'method/method.js','destPath':this[p(0x87)]['pathFromApp']({'pathParts':[p(0x8b),p(0x93),b[p(0x7b)],p(0x8d),b[p(0x92)],d+p(0x90)+g]}),'context':f,'config':c});const i=b[p(0x92)]?'/'+b[p(0x92)]+'/':'/',j=this[p(0x87)]['pathFromApp']({'pathParts':[p(0x8b),p(0x93),b[p(0x7b)],'index.'+c[p(0x71)]['js']]});this['fsi']['injectAtEndOfFile']({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0x6f)});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a68o=a68d;function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0xdb;let f=c[d];return f;},a68d(a,b);}(function(a,b){const l=a68d,c=a();while(!![]){try{const d=-parseInt(l(0x106))/0x1+parseInt(l(0xf0))/0x2+parseInt(l(0x105))/0x3+parseInt(l(0xf7))/0x4*(-parseInt(l(0xef))/0x5)+-parseInt(l(0xde))/0x6*(parseInt(l(0x100))/0x7)+-parseInt(l(0xee))/0x8+parseInt(l(0xe5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0xda07f));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0x108)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a['toString']()[n(0xf1)]('(((.+)+)+)+$')[n(0xec)]()['constructor'](a68a)['search'](n(0x104));});a68a();import a68e from'path';function a68c(){const s=['pathFromProject','noRename','/client/','ssr','14214807tUPFPq','engines','withValue','package.js','maka\x20g:package\x20todos:package','lib','component','toString','client','5815288dRUsyY','20200WvIByB','2658028jYHevw','search','layout','graphql','template','pathFromAppWithNoReWrite','theme','64VZDIWn','package/package.js','relative','resourceName','forEach','fsi','dir','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','.js','14phNJeo','package','features','getProjectConfig','(((.+)+)+)+$','1086354aOCJql','265545oeTpAO','tests/server','apply','store','package/','server','3961212LGXTYq','hasOwnProperty','packages'];a68c=function(){return s;};return a68c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a68o(0x101),'aliases':['p'],'usage':a68o(0xfe),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a68o(0xfd)],'examples':[a68o(0xe9)]},async function(a,b){const p=a68o,c=paramCase(b[p(0xfa)]),d=this[p(0xfc)]['pathFromApp']({'pathParts':[p(0xe0),b['dir'],c]}),e=this[p(0xfc)][p(0xf5)]({'pathParts':[p(0xe0),b['dir'],c,p(0xe8)]}),f=this['fsi'][p(0x103)]();this[p(0xfc)][p(0xe7)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xfa)]),'myPath':a68e[q(0xf9)](this[q(0xfc)][q(0xe1)]({}),d),'cssCaseName':paramCase(b[q(0xfa)]),'className':pascalCase(b[q(0xfa)]),'camelCaseName':camelCase(b[q(0xfa)]),'fileName':c,'client':f[q(0xe6)][q(0xed)],'graphql':f['engines'][q(0xf3)],'ssr':f[q(0xe6)][q(0xe4)],'isComponent':b[q(0xdf)](q(0xeb)),'isLayout':b['hasOwnProperty'](q(0xf2)),'isStore':b[q(0xdf)](q(0xdb)),'features':f[q(0x102)],'noRename':!![],'theme':f[q(0xe6)][q(0xf6)]};this[q(0xfc)]['template']({'srcPath':q(0xf8),'destPath':e,'context':g,'config':f}),g[q(0xe2)]=![];const h=d+q(0xe3)+c+q(0xff);this[q(0xfc)]['template']({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0xea),q(0xdd),'tests/client',q(0x107)];i[q(0xfb)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this[r(0xfc)][r(0xf4)]({'srcPath':r(0xdc)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
1
+ const a68o=a68d;(function(a,b){const l=a68d,c=a();while(!![]){try{const d=-parseInt(l(0x103))/0x1+-parseInt(l(0x122))/0x2+-parseInt(l(0x10e))/0x3*(-parseInt(l(0x116))/0x4)+-parseInt(l(0x118))/0x5*(-parseInt(l(0x119))/0x6)+-parseInt(l(0x10a))/0x7+parseInt(l(0x125))/0x8+-parseInt(l(0x123))/0x9*(parseInt(l(0x10d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x22c0a));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a[n(0x10c)]()[n(0x11e)](n(0x113))[n(0x10c)]()[n(0x114)](a68a)['search'](n(0x113));});a68a();function a68c(){const s=['2448ZpvFSD','.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','package/package.js','hasOwnProperty','search','fsi','apply','relative','88810iYInPA','9252qFCwXh','template/template.js','2028640PpwIIV','ssr','tests/client','package','withValue','dir','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','client','package.js','server','template','lib','19260VMQULo','create','store','resourceName','maka\x20g:package\x20todos:package','noRename','packages','1662493famvrG','graphql','toString','2620XJTPWo','21441KpAFKa','component','pathFromApp','features','engines','(((.+)+)+)+$','constructor','pathFromAppWithNoReWrite','152nKVhYW','layout','2300TiuBEg'];a68c=function(){return s;};return a68c();}import a68e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x100;let f=c[d];return f;},a68d(a,b);}Generator[a68o(0x104)]({'name':a68o(0x128),'aliases':['p'],'usage':a68o(0x11b),'shortDesc':a68o(0x12b),'validOpts':[a68o(0x12a)],'examples':[a68o(0x107)]},async function(a,b){const p=a68o,c=paramCase(b[p(0x106)]),d=this[p(0x11f)][p(0x110)]({'pathParts':[p(0x109),b[p(0x12a)],c]}),e=this['fsi'][p(0x115)]({'pathParts':[p(0x109),b[p(0x12a)],c,p(0x12d)]}),f=this['fsi']['getProjectConfig']();this[p(0x11f)][p(0x129)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x106)]),'myPath':a68e[q(0x121)](this[q(0x11f)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x106)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x106)]),'fileName':c,'client':f[q(0x112)][q(0x12c)],'graphql':f[q(0x112)][q(0x10b)],'ssr':f['engines'][q(0x126)],'isComponent':b[q(0x11d)](q(0x10f)),'isLayout':b[q(0x11d)](q(0x117)),'isStore':b[q(0x11d)](q(0x105)),'features':f[q(0x111)],'noRename':!![],'theme':f[q(0x112)]['theme']};this['fsi']['template']({'srcPath':q(0x11c),'destPath':e,'context':g,'config':f}),g[q(0x108)]=![];const h=d+'/client/'+c+q(0x11a);this[q(0x11f)][q(0x101)]({'srcPath':q(0x124),'destPath':h,'context':g,'config':f});const i=[q(0x102),q(0x100),q(0x127),'tests/server'];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this[r(0x11f)][r(0x101)]({'srcPath':'package/'+j+'/package.js','destPath':k,'context':g,'config':f});});});});