@maka/maka-cli 4.4.5 → 4.5.0

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 +5 -2
  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 +5 -2
@@ -1 +1 @@
1
- const a55t=a55d;(function(a,b){const p=a55d,c=a();while(!![]){try{const d=parseInt(p(0x127))/0x1+parseInt(p(0x167))/0x2*(parseInt(p(0x139))/0x3)+parseInt(p(0x154))/0x4*(-parseInt(p(0x157))/0x5)+-parseInt(p(0x185))/0x6*(parseInt(p(0x141))/0x7)+parseInt(p(0x156))/0x8*(-parseInt(p(0x15d))/0x9)+parseInt(p(0x128))/0xa*(-parseInt(p(0x183))/0xb)+parseInt(p(0x13d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x6f3e4));const a55b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a55d;if(c){const e=c[q(0x132)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){const r=a55d;return a55a[r(0x186)]()[r(0x187)](r(0x14d))[r(0x186)]()[r(0x13b)](a55a)['search'](r(0x14d));});a55a();import a55e from'path';import a55f from'cli-table';import{paramCase}from'change-case';function a55d(a,b){const c=a55c();return a55d=function(d,e){d=d-0x123;let f=c[d];return f;},a55d(a,b);}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';function a55c(){const E=['cwd','error','_generators','checkWhere','list','options','client','find','join','Name','invoke','Both','4419316MajYIP','where','444hFXoyN','toString','search','sep','validateMakaSubscription','number','assign','To\x20use\x20this\x20generator,\x20\x22','Too\x20many\x20options','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','527981JihmKe','10IEQYUS','Generator.create\x20requires\x20a\x20handler\x20function!','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','findGenerator','pop','_handler','tableList','Alias','mustHaveMeteorInstalled','validateMakaProject','apply','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Description','parent','Generator\x20requires\x20a\x20name','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','roles','3DhVmTp','Server','constructor','filter','21744960RFPdYd','No\x20resource\x20name\x20specified','keys','Client','78148lgWJMv','bright','validateMeteorInstall','call','proFlags','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','fsi','lib','server','create','maxOptsLength','shortDesc','(((.+)+)+)+$','To\x20use\x20these\x20pro\x20flags,\x20\x22','mustBeInMakaProject','listGenerators','findProjectDirectory','minOptsLength','appPathPrefix','528500eoUqSE','colLocAnswer','8AYzbEL','25KyYbpW','push','aliases','Too\x20few\x20options','includes','usage','3777759dsKTvI','maxArgLength','Generators:','resourceName','addGenerator','minArgLength','Generator.create\x20requires\x20some\x20options!','domainLicense','map','name','847718Sworyz','Too\x20many\x20arguments','both','singleLicense','dir','addGenerator\x20requires\x20a\x20Generator\x20instance','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','length','Too\x20few\x20arguments','replace','validateParams','notice','exit','sort','help','proGenerators'];a55c=function(){return E;};return a55c();}import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const s=a55d,c=process[s(0x177)]();let d=null;try{process['chdir'](a),d=b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a55t(0x17c)];['_generators'];constructor(a,b){const u=a55t;super();if(!a)throw new Error(u(0x146));if(!a[u(0x166)])throw new Error(u(0x136));if(typeof b!=='function')throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[u(0x179)]=[],this[u(0x17c)]=Object[u(0x123)]({},a),this[u(0x166)]=this[u(0x17c)][u(0x166)],this[u(0x12d)]=b['bind'](this);}static[a55t(0x14a)](a,b,c){const v=a55t;if(!a)throw new Error(v(0x163));if(typeof b!=='function')throw new Error(v(0x129));const d=new Generator(a,b);return c=c||a55g,Object[v(0x123)](d,{'parent':c?.[v(0x17c)]?.['name']}),c[v(0x161)](d),d;}[a55t(0x161)](a){const w=a55t;if(!(a instanceof Generator))throw new Error(w(0x16c));this[w(0x179)][w(0x158)](a);}[a55t(0x12b)](a){const x=a55t,b=this[x(0x179)][x(0x17e)](c=>c['match'](a));return b;}async[a55t(0x189)](a,b){const y=a55t,c=this[y(0x12b)](a[0x0]);if(c){const d=c?.[y(0x166)]||a[0x0],e=c?.[y(0x135)]||'',f=Object[y(0x13f)](b),g=await this[y(0x147)]['getPro']();!g&&(Log[y(0x178)](y(0x12a)),process[y(0x173)](0x1));const h=!g?.[y(0x138)][y(0x15b)](y(0x16a))&&!g?.[y(0x138)][y(0x15b)](y(0x164)),i=g?.[y(0x176)][y(0x15b)](d)||g?.[y(0x176)][y(0x15b)](e);if(i&&h)throw y(0x124)+d+y(0x16d);if(f[y(0x16e)]>0x0){const j=g?.[y(0x145)][y(0x13c)](k=>f[y(0x15b)](k));if(j&&j[y(0x16e)]>0x0&&h)throw y(0x14e)+j?.[y(0x17f)](',\x20')+y(0x16d);}}}async[a55t(0x181)](a,b){const z=a55t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c}=this[z(0x17c)];try{await this[z(0x189)](a,b);}catch(f){Log[z(0x178)](f),process['exit'](0x1);}const d=a['slice']();b['resourceName']=d[0x0];try{if((a[0x0]===_prevGen||a[z(0x16e)]===0x0)&&b[z(0x175)])throw new UsageError();if(this[z(0x17c)][z(0x14f)]){const g=this[z(0x131)]();if(!g)throw new MustBeInProjectError();}if(this[z(0x17c)][z(0x130)]){const h=this[z(0x143)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[z(0x17c)][z(0x162)]==='number'){if(a[z(0x16e)]<this[z(0x17c)][z(0x162)]){Log[z(0x178)](z(0x16f));throw new UsageError();}}if(typeof this['options'][z(0x15e)]===z(0x18a)){if(a['length']>this[z(0x17c)]['maxArgLength']){Log[z(0x178)](z(0x168));throw new UsageError();}}if(typeof this[z(0x17c)][z(0x152)]===z(0x18a)){if(Object[z(0x13f)](b)[z(0x16e)]<this['options'][z(0x152)]){Log['error'](z(0x15a));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===z(0x18a)){if(Object[z(0x13f)](b)[z(0x16e)]>=this[z(0x17c)][z(0x14b)]){Log['error'](z(0x125));throw new UsageError();}}this[z(0x171)](a,b,this[z(0x17c)]);if(!b['resourceName']&&!this[z(0x17c)]['noResource']){Log[z(0x178)](z(0x13e));throw new UsageError();}_prevGen=a[0x0];}catch(i){Log[z(0x15c)](description,examples,usage,c);if(i instanceof UsageError)this[z(0x179)][z(0x16e)]>0x0&&b['help']&&(Log['notice'](z(0x15f)),this['tableList'](this['_generators']));else{if(i instanceof MustBeInProjectError)Log[z(0x178)](z(0x137));else{if(i instanceof NoMeteorFoundError)Log[z(0x178)](z(0x126)),Log[z(0x172)](z(0x133));else{if(i instanceof NoMeteorAppFoundError)Log[z(0x178)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw i;}}}process[z(0x173)](0x1);}return new Promise(j=>{inside(b['cwd'],async()=>{const A=a55d;try{if(!b['root']&&!this['fsi'][A(0x151)]())throw new MustBeInProjectError();const k=b[A(0x160)]?.[A(0x170)](/\\/g,'/')['split']('/');!b['dir']&&(k?.['length']>0x1?(b[A(0x160)]=k[A(0x12c)](),d[0x0]=b[A(0x160)],b[A(0x16b)]=k[A(0x165)](l=>{return paramCase(l);})[A(0x17f)](a55e[A(0x188)])):b[A(0x16b)]='');if(this[A(0x17c)][A(0x17a)]){if(!b[A(0x184)]){const m={'type':A(0x17b),'name':A(0x155),'message':'Location','choices':[{'name':A(0x140),'value':A(0x17d)},{'name':A(0x13a),'value':A(0x149)},{'name':A(0x182),'value':'both'}]},{colLocAnswer:n}=await Actions['options'](m);n?b['where']=n:b[A(0x184)]=A(0x169);}const l=[A(0x169),A(0x17d),A(0x149)];if(!l[A(0x15b)](b[A(0x184)])){Log[A(0x178)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[A(0x184)]){case A(0x169):b['appPathPrefix']=A(0x148);break;case A(0x149):b[A(0x153)]=A(0x149);break;case A(0x17d):b[A(0x153)]=A(0x17d);break;default:b['appPathPrefix']='';}}j(this[A(0x12d)][A(0x144)](this,d,b));}catch(o){console[A(0x178)](o);}});});}[a55t(0x150)](){const B=a55t;this[B(0x12e)](this[B(0x179)]);}[a55t(0x12e)](a){const C=a55t,b=new a55f({});b[C(0x158)]([C(0x180),C(0x12f),C(0x134)]),a[C(0x174)]()['forEach'](c=>{const D=C;b[D(0x158)]([c[D(0x166)],c[D(0x159)](),c[D(0x14c)]()]);}),Log[C(0x142)](b['toString']());}}
1
+ const a55t=a55d;(function(a,b){const p=a55d,c=a();while(!![]){try{const d=-parseInt(p(0x10d))/0x1+parseInt(p(0xf4))/0x2*(-parseInt(p(0xc6))/0x3)+parseInt(p(0xf3))/0x4+parseInt(p(0x114))/0x5*(-parseInt(p(0x104))/0x6)+-parseInt(p(0x10e))/0x7*(-parseInt(p(0xbf))/0x8)+-parseInt(p(0x102))/0x9*(-parseInt(p(0xd8))/0xa)+parseInt(p(0xb8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xa77db));function a55c(){const E=['client','length','help','minOptsLength','filter','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','exit','50klvanM','bright','lib','chdir','Too\x20few\x20arguments','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','listGenerators','addGenerator','noResource','list','Generator\x20requires\x20a\x20handler\x20function','notice','keys','Generator\x20requires\x20a\x20name','Name','usage','roles','There\x20is\x20no\x20Meteor\x20application\x20here','maxArgLength','_generators','push','function','validateMeteorInstall','search','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','both','fsi','825680mWJlAo','26246kSmtVi','options','validateMakaSubscription','Description','dir','findGenerator','appPathPrefix','Too\x20few\x20options','slice','root','sort','_handler','toString','Client','1818549PpTOhP','mustHaveMeteorInstalled','6WXNjAp','includes','apply','invoke','number','where','sep','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','proGenerators','874119KubmVa','2665537sKuNFA','findProjectDirectory','Generator.create\x20requires\x20a\x20handler\x20function!','maxOptsLength','No\x20resource\x20name\x20specified','call','5665710ziCtxB','minArgLength','name','24034967dYyVuP','create','addGenerator\x20requires\x20a\x20Generator\x20instance','domainLicense','Both','To\x20use\x20these\x20pro\x20flags,\x20\x22','mustBeInMakaProject','8EWAptp','resourceName','join','error','cwd','tableList','map','249hDwCzz','assign','To\x20use\x20this\x20generator,\x20\x22','shortDesc','parent','Location','(((.+)+)+)+$','validateParams','server','Generator.create\x20requires\x20some\x20options!','proFlags'];a55c=function(){return E;};return a55c();}const a55b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a55d;if(c){const e=c[q(0x106)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){const r=a55d;return a55a['toString']()[r(0xef)](r(0xcc))[r(0x100)]()['constructor'](a55a)['search'](r(0xcc));});a55a();import a55e from'path';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';function a55d(a,b){const c=a55c();return a55d=function(d,e){d=d-0xb7;let f=c[d];return f;},a55d(a,b);}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(0xc3)]();let d=null;try{process[s(0xdb)](a),d=b();}finally{process[s(0xdb)](c);}return d;}export class Generator extends Tool{[a55t(0xf5)];[a55t(0xeb)];constructor(a,b){const u=a55t;super();if(!a)throw new Error(u(0xf0));if(!a['name'])throw new Error(u(0xe5));if(typeof b!==u(0xed))throw new Error(u(0xe2));this[u(0xeb)]=[],this[u(0xf5)]=Object[u(0xc7)]({},a),this['name']=this['options'][u(0xb7)],this[u(0xff)]=b['bind'](this);}static[a55t(0xb9)](a,b,c){const v=a55t;if(!a)throw new Error(v(0xcf));if(typeof b!==v(0xed))throw new Error(v(0x110));const d=new Generator(a,b);return c=c||a55g,Object[v(0xc7)](d,{'parent':c?.[v(0xf5)]?.[v(0xb7)]}),c[v(0xdf)](d),d;}[a55t(0xdf)](a){const w=a55t;if(!(a instanceof Generator))throw new Error(w(0xba));this[w(0xeb)][w(0xec)](a);}[a55t(0xf9)](a){const b=this['_generators']['find'](c=>c['match'](a));return b;}async[a55t(0xf6)](a,b){const x=a55t,c=this[x(0xf9)](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.[x(0xca)]||'',f=Object[x(0xe4)](b),g=await this[x(0xf2)]['getPro']();!g&&(Log[x(0xc2)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[x(0xd7)](0x1));const h=!g?.[x(0xe8)]['includes']('singleLicense')&&!g?.[x(0xe8)]['includes'](x(0xbb)),i=g?.[x(0x10c)][x(0x105)](d)||g?.['proGenerators'][x(0x105)](e);if(i&&h)throw x(0xc8)+d+x(0xd6);if(f[x(0xd2)]>0x0){const j=g?.[x(0xd0)][x(0xd5)](k=>f[x(0x105)](k));if(j&&j[x(0xd2)]>0x0&&h)throw x(0xbd)+j?.['join'](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async[a55t(0x107)](a,b){const y=a55t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c}=this[y(0xf5)];try{await this['validateMakaSubscription'](a,b);}catch(f){Log['error'](f),process['exit'](0x1);}const d=a[y(0xfc)]();b[y(0xc0)]=d[0x0];try{if((a[0x0]===_prevGen||a[y(0xd2)]===0x0)&&b[y(0xd3)])throw new UsageError();if(this[y(0xf5)][y(0xbe)]){const g=this['validateMakaProject']();if(!g)throw new MustBeInProjectError();}if(this['options'][y(0x103)]){const h=this[y(0xee)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0xf5)]['minArgLength']===y(0x108)){if(a[y(0xd2)]<this[y(0xf5)][y(0x115)]){Log['error'](y(0xdc));throw new UsageError();}}if(typeof this['options']['maxArgLength']===y(0x108)){if(a[y(0xd2)]>this[y(0xf5)][y(0xea)]){Log[y(0xc2)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[y(0xf5)][y(0xd4)]===y(0x108)){if(Object[y(0xe4)](b)[y(0xd2)]<this[y(0xf5)][y(0xd4)]){Log[y(0xc2)](y(0xfb));throw new UsageError();}}if(typeof this[y(0xf5)][y(0x111)]===y(0x108)){if(Object[y(0xe4)](b)[y(0xd2)]>=this[y(0xf5)][y(0x111)]){Log[y(0xc2)]('Too\x20many\x20options');throw new UsageError();}}this[y(0xcd)](a,b,this[y(0xf5)]);if(!b[y(0xc0)]&&!this['options'][y(0xe0)]){Log[y(0xc2)](y(0x112));throw new UsageError();}_prevGen=a[0x0];}catch(i){Log[y(0xe7)](description,examples,usage,c);if(i instanceof UsageError)this[y(0xeb)][y(0xd2)]>0x0&&b[y(0xd3)]&&(Log[y(0xe3)]('Generators:'),this[y(0xc4)](this[y(0xeb)]));else{if(i instanceof MustBeInProjectError)Log['error'](y(0x10b));else{if(i instanceof NoMeteorFoundError)Log[y(0xc2)](y(0xdd)),Log[y(0xe3)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(i instanceof NoMeteorAppFoundError)Log[y(0xc2)](y(0xe9));else throw i;}}}process[y(0xd7)](0x1);}return new Promise(j=>{const z=y;inside(b[z(0xc3)],async()=>{const A=z;try{if(!b[A(0xfd)]&&!this['fsi'][A(0x10f)]())throw new MustBeInProjectError();const k=b[A(0xc0)]?.['replace'](/\\/g,'/')['split']('/');!b[A(0xf8)]&&(k?.[A(0xd2)]>0x1?(b[A(0xc0)]=k['pop'](),d[0x0]=b[A(0xc0)],b[A(0xf8)]=k[A(0xc5)](l=>{return paramCase(l);})[A(0xc1)](a55e[A(0x10a)])):b[A(0xf8)]='');if(this['options']['checkWhere']){if(!b[A(0x109)]){const m={'type':A(0xe1),'name':'colLocAnswer','message':A(0xcb),'choices':[{'name':A(0x101),'value':A(0xd1)},{'name':'Server','value':A(0xce)},{'name':A(0xbc),'value':A(0xf1)}]},{colLocAnswer:n}=await Actions[A(0xf5)](m);n?b[A(0x109)]=n:b[A(0x109)]=A(0xf1);}const l=[A(0xf1),'client',A(0xce)];if(!l['includes'](b[A(0x109)])){Log[A(0xc2)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[A(0x109)]){case A(0xf1):b['appPathPrefix']=A(0xda);break;case A(0xce):b[A(0xfa)]='server';break;case A(0xd1):b[A(0xfa)]=A(0xd1);break;default:b['appPathPrefix']='';}}j(this[A(0xff)][A(0x113)](this,d,b));}catch(o){console[A(0xc2)](o);}});});}[a55t(0xde)](){const B=a55t;this[B(0xc4)](this[B(0xeb)]);}[a55t(0xc4)](a){const C=a55t,b=new a55f({});b[C(0xec)]([C(0xe6),'Alias',C(0xf7)]),a[C(0xfe)]()['forEach'](c=>{const D=C;b[D(0xec)]([c[D(0xb7)],c['aliases'](),c[D(0xc9)]()]);}),Log[C(0xd9)](b['toString']());}}
@@ -1 +1 @@
1
- (function(a,b){var f=a56d,c=a();while(!![]){try{var d=-parseInt(f(0x12d))/0x1*(parseInt(f(0x12a))/0x2)+parseInt(f(0x12e))/0x3+-parseInt(f(0x124))/0x4+parseInt(f(0x125))/0x5*(-parseInt(f(0x129))/0x6)+-parseInt(f(0x12c))/0x7+parseInt(f(0x12b))/0x8+parseInt(f(0x128))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0xef5b1));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0x123)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a[h(0x130)]()[h(0x127)](h(0x12f))[h(0x130)]()[h(0x126)](a56a)['search'](h(0x12f));});function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x123;var f=c[d];return f;},a56d(a,b);}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';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';function a56c(){var i=['183850IuBSjA','7001304DuUZAX','5021793IOHLVu','2oMdfDw','4134033oSVksN','(((.+)+)+)+$','toString','apply','6083896xcylxU','8121515xqmUSQ','constructor','search','24963777LrgVbR','6qTEbex'];a56c=function(){return i;};return a56c();}
1
+ (function(a,b){var f=a56d,c=a();while(!![]){try{var d=-parseInt(f(0x89))/0x1+-parseInt(f(0x87))/0x2*(-parseInt(f(0x82))/0x3)+parseInt(f(0x8b))/0x4*(parseInt(f(0x84))/0x5)+parseInt(f(0x7d))/0x6*(-parseInt(f(0x88))/0x7)+parseInt(f(0x8c))/0x8*(-parseInt(f(0x8a))/0x9)+parseInt(f(0x7f))/0xa*(-parseInt(f(0x80))/0xb)+parseInt(f(0x81))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x8c53b));function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x7d;var f=c[d];return f;},a56d(a,b);}var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0x86)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a['toString']()[h(0x8d)](h(0x83))[h(0x7e)]()[h(0x85)](a56a)[h(0x8d)](h(0x83));});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 a56c(){var i=['1095618VdwDZW','387cJtKEH','142012KLGPEk','81792xOqquq','search','5568srwOeR','toString','8780mEDsPS','6853zdBdzS','13945812cTQtUV','15exeJvJ','(((.+)+)+)+$','160fKIlwq','constructor','apply','239280eCHmVR','1806DLdCNU'];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(0x219))/0x1*(parseInt(w(0x1d9))/0x2)+-parseInt(w(0x1f9))/0x3*(-parseInt(w(0x208))/0x4)+parseInt(w(0x1db))/0x5+parseInt(w(0x1fd))/0x6+parseInt(w(0x1e2))/0x7+parseInt(w(0x1f6))/0x8+-parseInt(w(0x20b))/0x9*(parseInt(w(0x20e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x2c46b));function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a57d(a,b);}const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a['toString']()[y(0x221)](y(0x227))[y(0x1fa)]()[y(0x20a)](a57a)[y(0x221)](y(0x227));});a57a();import{Generator}from'../generator.js';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 a57c(){const C=['test','api/fixtures.js','ddp-rate-limiter','create','log','engines','maka:check','2489464QwvtiM','length','error','418575MzkNNa','toString','GraphQL','\x27;\x0a','1854780EwXtkB','withValue','invoke','import\x20\x27./register-','import\x20{\x20typeDefs\x20as\x20','api/api.js','graphql','mdg:validated-method','push','/graphql/resolvers','/graphql/typeDefs','8qxjAah','api/register-api.js','constructor','10281951VVoLLz','Verifying\x20meteor\x20package\x20requirements\x20...','injectAtBeginningOfFile','10aPUvKP','injectIntoFile','withFixtures','\x0aimport\x20{\x20resolvers\x20as\x20','const','checkMeteorPackage','Resolvers\x20}\x20from\x20\x27','-api.','pathFromApp','exit','Resolvers);\x0a\x0a','18346XCenKJ','includes','options','imports','apiAnswers','RPC\x20(Methods)','index.','Publications','search','api/publications.js','withRest','maka:rest','rest','-api\x27;','(((.+)+)+)+$','fsi','maka\x20g:api\x20todos','api/typeDefs.js','none','No\x20API\x20boundaries\x20selected','notice','api/tests.js','getProjectConfig','withGql','TypeDefs\x20}\x20from\x20\x27','checkbox','if\x20\x5c(','20dWGyEd','withPubs','684865PJUAGt','REST\x20API','fixtures.','api','injectAtEndOfFile','typeList.push(','apollo','727986CLfAFu','rest-api.','server','collection','.app-tests.','startup','template','apply','dir','resolverList.push(','withMethods','register-','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).'];a57c=function(){return C;};return a57c();}Generator[a57z(0x1f2)]({'name':a57z(0x1de),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a57z(0x1ee),'validOpts':[a57z(0x1ea)],'examples':[a57z(0x229)]},async function(a,b){const A=a57z;try{const c=this[A(0x228)][A(0x22f)](),d=[{'name':A(0x21e),'value':A(0x1ec)},{'name':'Fixtures','value':'withFixtures'},{'name':A(0x220),'value':'withPubs'}];c[A(0x1f4)]['api']===A(0x225)&&d[A(0x205)]({'name':A(0x1dc),'value':'withRest'});c[A(0x1f4)]['graphql']===A(0x1e1)&&d[A(0x205)]({'name':A(0x1fb),'value':A(0x230)});const f={'type':A(0x1d7),'name':A(0x21d),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x21b)](f);g[A(0x1f7)]===0x0&&(Log[A(0x1f8)](A(0x22c)),process[A(0x217)](0x1)),this[A(0x228)][A(0x1fe)](c,async()=>{const B=A,h=this[B(0x228)][B(0x216)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x1ea)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1f4)][B(0x1de)],'graphql':c[B(0x1f4)]['graphql'],'test':c[B(0x1f4)]['test'],'noRename':!![],'withPubs':g['includes']('withPubs'),'withFixtures':g['includes'](B(0x210)),'withMethods':g['includes'](B(0x1ec)),'withRest':g[B(0x21a)]('withRest')};let n='js';c[B(0x1f4)]['js']==='tsx'&&(n='ts');(!this[B(0x228)][B(0x213)](B(0x224))||!this[B(0x228)][B(0x213)](B(0x1f5))||!this[B(0x228)][B(0x213)](B(0x1f1))||!this[B(0x228)][B(0x213)](B(0x204))||!this[B(0x228)][B(0x213)]('mongo'))&&(Log[B(0x22d)](B(0x20c)),await this[B(0x228)]['installMeteorPackage']('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a57e['findGenerator'](B(0x1e5));o&&await o[B(0x1ff)]([j],{'config':c,'where':B(0x1e4)});c[B(0x1f4)][B(0x1de)]===B(0x225)&&(m[B(0x223)]&&this[B(0x228)]['template']({'srcPath':B(0x202),'destPath':this[B(0x228)][B(0x216)]({'pathParts':['imports',B(0x1de),b[B(0x1ea)],j,B(0x1e3)+n]}),'context':m,'config':c}));m[B(0x1ec)]&&this['fsi'][B(0x1e8)]({'srcPath':'api/methods.js','destPath':this[B(0x228)][B(0x216)]({'pathParts':[B(0x21c),B(0x1de),b[B(0x1ea)],j,'rpc-methods.'+n]}),'context':m,'config':c});m[B(0x210)]&&this[B(0x228)]['template']({'srcPath':B(0x1f0),'destPath':this[B(0x228)][B(0x216)]({'pathParts':['imports','api',b[B(0x1ea)],j,B(0x1dd)+n]}),'context':m,'config':c});c[B(0x1f4)][B(0x1ef)]!==B(0x22b)&&this[B(0x228)][B(0x1e8)]({'srcPath':B(0x22e),'destPath':this[B(0x228)][B(0x216)]({'pathParts':[B(0x21c),B(0x1de),b[B(0x1ea)],j,j+B(0x1e6)+n]}),'context':m,'config':c});m[B(0x1da)]&&this[B(0x228)]['template']({'srcPath':B(0x222),'destPath':this[B(0x228)][B(0x216)]({'pathParts':['imports',B(0x1de),b[B(0x1ea)],j,'publications.'+n]}),'context':m,'config':c});if(c[B(0x1f4)][B(0x203)]===B(0x1e1)){if(g[B(0x21a)](B(0x230))){const q=this[B(0x228)][B(0x216)]({'pathParts':[B(0x21c),B(0x1e7),B(0x1e4),B(0x21f)+c[B(0x1f4)]['js']]}),r=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this['fsi']['pathFromApp']({'pathParts':[B(0x21c),'api',b[B(0x1ea)],j,B(0x203),'typeDefs.'+n]}),t='/imports/api'+l+j+B(0x207);this[B(0x228)][B(0x1e8)]({'srcPath':B(0x22a),'destPath':s,'context':m,'config':c}),this[B(0x228)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0x201)+k+B(0x231)+t+B(0x1fc)}),this[B(0x228)][B(0x20f)]({'filePath':r,'content':B(0x1e0)+k+'TypeDefs);\x0a','begin':B(0x212),'end':B(0x1d8)});const u=this['fsi'][B(0x216)]({'pathParts':[B(0x21c),'api',b[B(0x1ea)],j,B(0x203),'resolvers.'+n]}),v='/imports/api'+l+j+B(0x206);this[B(0x228)][B(0x1e8)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x228)][B(0x20d)]({'filePath':r,'content':B(0x211)+k+B(0x214)+v+'\x27;'}),this[B(0x228)]['injectIntoFile']({'filePath':r,'content':B(0x1eb)+k+B(0x218),'begin':B(0x212),'end':B(0x1d8)});}}this[B(0x228)][B(0x1e8)]({'srcPath':B(0x209),'destPath':this[B(0x228)][B(0x216)]({'pathParts':[B(0x21c),B(0x1e7),'server',B(0x1ed)+j+B(0x215)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x216)]({'pathParts':[B(0x21c),B(0x1e7),B(0x1e4),B(0x21f)+c[B(0x1f4)]['js']]});this[B(0x228)][B(0x1df)]({'filePath':p,'content':B(0x200)+j+B(0x226)});});}catch(h){console[A(0x1f3)](h),process[A(0x217)](0x0);}});
1
+ const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=-parseInt(w(0x125))/0x1+-parseInt(w(0x127))/0x2+-parseInt(w(0x140))/0x3*(-parseInt(w(0x155))/0x4)+-parseInt(w(0x142))/0x5*(parseInt(w(0x17b))/0x6)+-parseInt(w(0x12c))/0x7+parseInt(w(0x174))/0x8*(parseInt(w(0x147))/0x9)+parseInt(w(0x158))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x6998f));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a[y(0x16c)]()[y(0x138)](y(0x130))['toString']()[y(0x137)](a57a)[y(0x138)]('(((.+)+)+)+$');});a57a();function a57c(){const C=['api/typeDefs.js','template','pathFromApp','collection','Verifying\x20meteor\x20package\x20requirements\x20...','withMethods','create','api','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','/graphql/typeDefs','ddp-rate-limiter','maka:check','mongo','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','toString','typeDefs.','invoke','/imports/api','typeList.push(','register-','imports','mdg:validated-method','64536piISTQ','checkbox','apiAnswers','api/publications.js','api/fixtures.js','findGenerator','TypeDefs\x20}\x20from\x20\x27','594546BMUpnr','withFixtures','\x0aimport\x20{\x20resolvers\x20as\x20','startup','injectAtBeginningOfFile','-api\x27;','161189fvAfHf','checkMeteorPackage','404828HfARRo','apply','engines','error','publications.','4127494hPlCng','api/api.js','fsi','Resolvers);\x0a\x0a','(((.+)+)+)+$','const','installMeteorPackage','resolvers.','includes','if\x20\x5c(','test','constructor','search','RPC\x20(Methods)','dir','rest-api.','Resolvers\x20}\x20from\x20\x27','fixtures.','notice','withPubs','5826UYQHMl','maka\x20g:api\x20todos','25ArgobR','getProjectConfig','push','withGql','Publications','630Qwarji','exit','withRest','import\x20{\x20typeDefs\x20as\x20','index.','graphql','api/methods.js','No\x20API\x20boundaries\x20selected','server','\x27;\x0a','apollo','tsx','maka:rest','none','1700BcehiT','GraphQL','injectIntoFile','4911870pwzvOS','REST\x20API','Fixtures','TypeDefs);\x0a','rest','rpc-methods.'];a57c=function(){return C;};return a57c();}import{Generator}from'../generator.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x124;let f=c[d];return f;},a57d(a,b);}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';Generator[a57z(0x164)]({'name':a57z(0x165),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a57z(0x166),'validOpts':[a57z(0x13a)],'examples':[a57z(0x141)]},async function(a,b){const A=a57z;try{const c=this[A(0x12e)][A(0x143)](),d=[{'name':A(0x139),'value':A(0x163)},{'name':A(0x15a),'value':A(0x17c)},{'name':A(0x146),'value':A(0x13f)}];c[A(0x129)][A(0x165)]===A(0x15c)&&d[A(0x144)]({'name':A(0x159),'value':'withRest'});c[A(0x129)]['graphql']===A(0x151)&&d[A(0x144)]({'name':A(0x156),'value':A(0x145)});const f={'type':A(0x175),'name':A(0x176),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g['length']===0x0&&(Log[A(0x12a)](A(0x14e)),process[A(0x148)](0x1)),this[A(0x12e)]['withValue'](c,async()=>{const B=A,h=this[B(0x12e)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x13a)]?'/'+b[B(0x13a)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x129)][B(0x165)],'graphql':c['engines'][B(0x14c)],'test':c['engines'][B(0x136)],'noRename':!![],'withPubs':g['includes'](B(0x13f)),'withFixtures':g['includes'](B(0x17c)),'withMethods':g[B(0x134)](B(0x163)),'withRest':g[B(0x134)](B(0x149))};let n='js';c[B(0x129)]['js']===B(0x152)&&(n='ts');(!this[B(0x12e)][B(0x126)](B(0x153))||!this[B(0x12e)]['checkMeteorPackage'](B(0x169))||!this['fsi'][B(0x126)](B(0x168))||!this['fsi'][B(0x126)](B(0x173))||!this['fsi'][B(0x126)](B(0x16a)))&&(Log[B(0x13e)](B(0x162)),await this['fsi'][B(0x132)](B(0x16b),{'cwd':h}));const o=a57e[B(0x179)](B(0x161));o&&await o[B(0x16e)]([j],{'config':c,'where':B(0x14f)});c[B(0x129)][B(0x165)]===B(0x15c)&&(m['withRest']&&this['fsi'][B(0x15f)]({'srcPath':B(0x12d),'destPath':this[B(0x12e)][B(0x160)]({'pathParts':[B(0x172),B(0x165),b[B(0x13a)],j,B(0x13b)+n]}),'context':m,'config':c}));m[B(0x163)]&&this[B(0x12e)][B(0x15f)]({'srcPath':B(0x14d),'destPath':this[B(0x12e)]['pathFromApp']({'pathParts':['imports',B(0x165),b[B(0x13a)],j,B(0x15d)+n]}),'context':m,'config':c});m[B(0x17c)]&&this[B(0x12e)][B(0x15f)]({'srcPath':B(0x178),'destPath':this[B(0x12e)][B(0x160)]({'pathParts':[B(0x172),B(0x165),b['dir'],j,B(0x13d)+n]}),'context':m,'config':c});c['engines'][B(0x136)]!==B(0x154)&&this[B(0x12e)][B(0x15f)]({'srcPath':'api/tests.js','destPath':this[B(0x12e)][B(0x160)]({'pathParts':['imports',B(0x165),b['dir'],j,j+'.app-tests.'+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x12e)][B(0x15f)]({'srcPath':B(0x177),'destPath':this[B(0x12e)][B(0x160)]({'pathParts':['imports','api',b[B(0x13a)],j,B(0x12b)+n]}),'context':m,'config':c});if(c[B(0x129)][B(0x14c)]===B(0x151)){if(g[B(0x134)](B(0x145))){const q=this[B(0x12e)]['pathFromApp']({'pathParts':[B(0x172),B(0x17e),B(0x14f),'index.'+c[B(0x129)]['js']]}),r=this[B(0x12e)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[B(0x12e)]['pathFromApp']({'pathParts':[B(0x172),B(0x165),b[B(0x13a)],j,B(0x14c),B(0x16d)+n]}),t=B(0x16f)+l+j+B(0x167);this[B(0x12e)][B(0x15f)]({'srcPath':B(0x15e),'destPath':s,'context':m,'config':c}),this[B(0x12e)][B(0x17f)]({'filePath':r,'content':B(0x14a)+k+B(0x17a)+t+B(0x150)}),this['fsi'][B(0x157)]({'filePath':r,'content':B(0x170)+k+B(0x15b),'begin':B(0x131),'end':B(0x135)});const u=this[B(0x12e)][B(0x160)]({'pathParts':['imports',B(0x165),b[B(0x13a)],j,B(0x14c),B(0x133)+n]}),v=B(0x16f)+l+j+'/graphql/resolvers';this['fsi'][B(0x15f)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x12e)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0x17d)+k+B(0x13c)+v+'\x27;'}),this[B(0x12e)][B(0x157)]({'filePath':r,'content':'resolverList.push('+k+B(0x12f),'begin':'const','end':B(0x135)});}}this[B(0x12e)]['template']({'srcPath':'api/register-api.js','destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x172),'startup',B(0x14f),B(0x171)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x160)]({'pathParts':[B(0x172),B(0x17e),B(0x14f),B(0x14b)+c[B(0x129)]['js']]});this[B(0x12e)]['injectAtEndOfFile']({'filePath':p,'content':'import\x20\x27./register-'+j+B(0x124)});});}catch(h){console['log'](h),process['exit'](0x0);}});
@@ -1 +1 @@
1
- function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x12d;let f=c[d];return f;},a58d(a,b);}function a58c(){const q=['maka\x20g:collection\x20todos','where','355OJBfRx','collection','dir','\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','checkMeteorPackage','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>\x20[--where]','apply','search','1124148JIOpfR','error','template','717245NQLZTS','getProjectConfig','installMeteorPackage','collections','withValue','9428ZHxWhE','fsi','injectAtEndOfFile','(((.+)+)+)+$','mongo','imports','none','pathFromApp','maka:check','startup','collection/collection.js','notice','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','8606277zTVbDJ','appPathPrefix','engines','toString','col','tsx','1853538iFtfvP','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','collection/tests.js','test','create','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','968800gWXioi','1213254TLSbIO','resourceName','8kARaEy'];a58c=function(){return q;};return a58c();}const a58n=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0x143))/0x1+-parseInt(k(0x133))/0x2+parseInt(k(0x15b))/0x3+-parseInt(k(0x148))/0x4*(-parseInt(k(0x138))/0x5)+-parseInt(k(0x140))/0x6+parseInt(k(0x132))/0x7+-parseInt(k(0x135))/0x8*(-parseInt(k(0x155))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x59fe8));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a58d;if(c){const e=c[l(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const m=a58d;return a58a[m(0x158)]()['search'](m(0x14b))[m(0x158)]()['constructor'](a58a)[m(0x13f)]('(((.+)+)+)+$');});a58a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58n(0x130)]({'name':a58n(0x139),'aliases':[a58n(0x159)],'usage':a58n(0x13d),'checkWhere':!![],'shortDesc':a58n(0x131),'validOpts':[a58n(0x13a),a58n(0x137)],'description':a58n(0x13b),'examples':[a58n(0x136)]},async function(a,b){const o=a58n;try{const c=this[o(0x149)][o(0x14f)]({}),d=this['fsi'][o(0x144)]();this[o(0x149)][o(0x147)](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b[p(0x134)]),'collectionName':pascalCase(b[p(0x134)]),'fileName':f,'where':b[p(0x137)],'test':d['engines'][p(0x12f)],'noRename':!![]};let h='js';d[p(0x157)]['js']===p(0x15a)&&(h='ts');!this[p(0x149)]['checkMeteorPackage'](p(0x14c))&&(Log[p(0x153)](p(0x154)),await this[p(0x149)]['installMeteorPackage'](p(0x14c),{'cwd':c}));!this[p(0x149)][p(0x13c)](p(0x150))&&(Log[p(0x153)](p(0x12d)),await this['fsi'][p(0x145)](p(0x150),{'cwd':c}));this['fsi']['template']({'srcPath':p(0x152),'destPath':this['fsi'][p(0x14f)]({'pathParts':[p(0x14d),p(0x151),b[p(0x156)],'collections',b[p(0x13a)],f+'.'+h]}),'context':g,'config':d});d['engines']['test']!==p(0x14e)&&this['fsi'][p(0x142)]({'srcPath':p(0x12e),'destPath':this['fsi'][p(0x14f)]({'pathParts':[p(0x14d),p(0x151),b[p(0x156)],p(0x146),b[p(0x13a)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x13a)]+'/':'/',j=this[p(0x149)]['pathFromApp']({'pathParts':[p(0x14d),p(0x151),b['appPathPrefix'],'index.'+d[p(0x157)]['js']]});this[p(0x149)][p(0x14a)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0x141)](f);}});
1
+ const a58n=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0xf1))/0x1*(parseInt(k(0xc6))/0x2)+-parseInt(k(0xe7))/0x3+-parseInt(k(0xe6))/0x4+-parseInt(k(0xcd))/0x5+-parseInt(k(0xca))/0x6*(-parseInt(k(0xc8))/0x7)+-parseInt(k(0xc4))/0x8+parseInt(k(0xea))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0xad668));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a58d;if(c){const e=c[l(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const m=a58d;return a58a[m(0xce)]()[m(0xe3)](m(0xdb))['toString']()[m(0xdf)](a58a)[m(0xe3)](m(0xdb));});function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0xc4;let f=c[d];return f;},a58d(a,b);}a58a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58n(0xda)]({'name':a58n(0xcf),'aliases':['col'],'usage':a58n(0xd8),'checkWhere':!![],'shortDesc':a58n(0xd1),'validOpts':[a58n(0xd2),a58n(0xe9)],'description':a58n(0xcb),'examples':[a58n(0xd6)]},async function(a,b){const o=a58n;try{const c=this[o(0xcc)][o(0xdc)]({}),d=this[o(0xcc)][o(0xc7)]();this[o(0xcc)][o(0xe4)](d,async()=>{const p=o,f=paramCase(b[p(0xe1)]),g={'name':pascalCase(b[p(0xe1)]),'collectionName':pascalCase(b[p(0xe1)]),'fileName':f,'where':b[p(0xe9)],'test':d[p(0xe2)][p(0xc9)],'noRename':!![]};let h='js';d[p(0xe2)]['js']==='tsx'&&(h='ts');!this['fsi'][p(0xd0)](p(0xef))&&(Log['notice'](p(0xd5)),await this[p(0xcc)][p(0xec)]('mongo',{'cwd':c}));!this[p(0xcc)][p(0xd0)](p(0xeb))&&(Log[p(0xe5)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this['fsi'][p(0xec)](p(0xeb),{'cwd':c}));this[p(0xcc)][p(0xf0)]({'srcPath':p(0xde),'destPath':this[p(0xcc)][p(0xdc)]({'pathParts':[p(0xc5),'startup',b[p(0xd9)],'collections',b[p(0xd2)],f+'.'+h]}),'context':g,'config':d});d[p(0xe2)][p(0xc9)]!=='none'&&this['fsi'][p(0xf0)]({'srcPath':p(0xd4),'destPath':this[p(0xcc)]['pathFromApp']({'pathParts':[p(0xc5),p(0xee),b[p(0xd9)],p(0xe8),b[p(0xd2)],f+p(0xed)+h]}),'context':g,'config':d});const i=b[p(0xd2)]?'/'+b['dir']+'/':'/',j=this[p(0xcc)][p(0xdc)]({'pathParts':['imports','startup',b[p(0xd9)],p(0xd7)+d[p(0xe2)]['js']]});this[p(0xcc)][p(0xdd)]({'filePath':j,'content':p(0xd3)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});function a58c(){const q=['maka\x20g:collection\x20todos','index.','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>\x20[--where]','appPathPrefix','create','(((.+)+)+)+$','pathFromApp','injectAtEndOfFile','collection/collection.js','constructor','apply','resourceName','engines','search','withValue','notice','5423128wsqGGW','3990648ayDhpt','collections','where','38143971saMhDX','maka:check','installMeteorPackage','.app-tests.','startup','mongo','template','13PncvkG','7355032JEOkUc','imports','33946uYxWoK','getProjectConfig','14eVPkRq','test','2505582CUvabB','\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','fsi','2685695qHAMHM','toString','collection','checkMeteorPackage','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','dir','import\x20\x27./collections','collection/tests.js','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'];a58c=function(){return q;};return a58c();}
@@ -1 +1 @@
1
- function a59c(){const t=['6NoPGRq','installNpmPackage','test','injectAtBeginningOfFile','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','580690XqWwPx','string','1741908ykeLdx','10GoZQqz','graphql','root','checkNpmPackage','setTemplate','className','ramda','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','withTranslations','theme','reflux','search','engines','\x20};\x0a','apply','import\x20\x27./','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','getProjectConfig','8994ihMRSh','resourceName','error','injectAtEndOfFile','import\x20\x27','965DfALkn','features','comp','test/test.js','imports','findAppDirectory','.tests.js','492650qCvQji','react','/imports/ui/components','create','pathFromProject','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','import\x20{\x20','ssr','\x27;\x0a','248YlXjNL','fsi','lib','.js','dir','template','477482rPgofl','rewriteDestinationPathForEngine','startup','\x20}\x20from\x20\x27','20079USjNoE','warn','component','component/component.js','tsx','templates.js','true','css','fileName','pathFromApp','toString','export\x20{\x20','561624ihChlY','cssCaseName','client'];a59c=function(){return t;};return a59c();}const a59q=a59d;function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a59d(a,b);}(function(a,b){const n=a59d,c=a();while(!![]){try{const d=parseInt(n(0x20f))/0x1+parseInt(n(0x200))/0x2*(-parseInt(n(0x222))/0x3)+-parseInt(n(0x21f))/0x4+parseInt(n(0x1f9))/0x5*(parseInt(n(0x1f4))/0x6)+parseInt(n(0x229))/0x7+parseInt(n(0x209))/0x8*(-parseInt(n(0x213))/0x9)+-parseInt(n(0x22a))/0xa*(parseInt(n(0x227))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0x3fa12));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a59d;if(c){const e=c[o(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const p=a59d;return a59a[p(0x21d)]()[p(0x1ed)]('(((.+)+)+)+$')[p(0x21d)]()['constructor'](a59a)['search']('(((.+)+)+)+$');});a59a();import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a59q(0x1fb)];Generator[a59q(0x203)]({'name':a59q(0x215),'aliases':aliases,'usage':a59q(0x226),'shortDesc':a59q(0x1f2),'validOpts':[a59q(0x20d)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a59q;try{const c=this[r(0x20a)][r(0x1fe)](),d=r(0x202),f=this[r(0x20a)]['pathFromApp']({'pathParts':[d,b[r(0x20d)],paramCase(b[r(0x1f5)]),paramCase(b[r(0x1f5)])]}),g=await this[r(0x20a)][r(0x1f3)]();this[r(0x20a)]['withValue'](g,async()=>{const s=r;typeof g[s(0x20e)]['test']===s(0x228)&&(g['template'][s(0x224)]=g['template'][s(0x224)]===s(0x219)?!![]:![],this[s(0x20a)][s(0x1e6)](s(0x224),g['template'][s(0x224)]));typeof g[s(0x20e)]['css']===s(0x228)&&(g[s(0x20e)][s(0x21a)]=g[s(0x20e)][s(0x21a)]===s(0x219)?!![]:![],this[s(0x20a)][s(0x1e6)](s(0x21a),g[s(0x20e)][s(0x21a)]));typeof g[s(0x20e)]['js']===s(0x228)&&(g['template']['js']=g[s(0x20e)]['js']===s(0x219)?!![]:![],this[s(0x20a)][s(0x1e6)]('js',g[s(0x20e)]['js']));!g[s(0x1fa)]&&(g[s(0x1fa)]={});!b['root']&&!this[s(0x20a)][s(0x1e5)](s(0x1e8))&&(Log[s(0x214)](s(0x1e9)),await this[s(0x20a)][s(0x223)](s(0x1e8),{'cwd':c}));if(!b[s(0x1e4)]&&!this['fsi'][s(0x1e5)](s(0x201))){Log[s(0x1f6)](s(0x205));return;}const h={'name':pascalCase(b[s(0x1f5)]),'myPath':a59e['relative'](this[s(0x20a)][s(0x204)]({}),f),'cssCaseName':paramCase(b[s(0x1f5)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x1ee)][s(0x1e3)],'features':g[s(0x1fa)],'client':g[s(0x1ee)]['client'],'api':g['engines']['api'],'ssr':g['engines'][s(0x207)],'test':g[s(0x1ee)][s(0x224)],'theme':g[s(0x1ee)][s(0x1eb)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x1fa)][s(0x1ea)]};this['fsi']['template']({'srcPath':s(0x216),'destPath':f+s(0x20c),'context':h,'framework':s(0x201),'config':g});g['engines'][s(0x224)]!=='none'&&this[s(0x20a)][s(0x20e)]({'srcPath':s(0x1fc),'destPath':f+s(0x1ff),'context':h,'framework':s(0x201),'config':g});g[s(0x20e)][s(0x21a)]&&(this[s(0x20a)][s(0x20e)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object['assign']({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this['fsi'][s(0x225)]({'filePath':f+'.'+g[s(0x1ee)]['js'],'content':s(0x1f1)+h[s(0x220)]+'.'+g[s(0x1ee)][s(0x21a)]+'\x27;'}));const i=b[s(0x20d)]?'/'+b[s(0x20d)]+'/':'/',j=''+d+i+h[s(0x21b)]+'/'+h[s(0x21b)];let k;if(g['engines'][s(0x207)]===s(0x219)){const l=this['fsi']['pathFromApp']({'pathParts':[s(0x1fd),s(0x211),s(0x20b),'templates.js']});k=this[s(0x20a)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x20a)][s(0x21c)]({'pathParts':[s(0x1fd),s(0x211),s(0x221),s(0x218)]});k=this[s(0x20a)][s(0x210)]({'pathParts':[m],'config':g});}g['engines'][s(0x221)]==='react'||g[s(0x1ee)][s(0x221)]===s(0x1ec)?(g[s(0x1ee)]['js']===s(0x217)?this[s(0x20a)][s(0x225)]({'filePath':k,'content':s(0x206)+h['className']+s(0x212)+j+s(0x208)}):this['fsi'][s(0x225)]({'filePath':k,'content':s(0x206)+h[s(0x1e7)]+s(0x212)+j+'.'+g[s(0x1ee)]['js']+'\x27;\x0a'}),this[s(0x20a)]['injectAtEndOfFile']({'filePath':k,'content':s(0x21e)+h[s(0x1e7)]+s(0x1ef)})):this['fsi'][s(0x1f7)]({'filePath':k,'content':s(0x1f8)+j+'.'+g['engines']['js']+s(0x208)});});}catch(h){Log['error'](h);}});
1
+ const a59q=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=parseInt(n(0x179))/0x1+-parseInt(n(0x17c))/0x2+parseInt(n(0x14a))/0x3*(-parseInt(n(0x188))/0x4)+-parseInt(n(0x171))/0x5+-parseInt(n(0x182))/0x6*(parseInt(n(0x177))/0x7)+parseInt(n(0x16e))/0x8+parseInt(n(0x16c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0x6d1ab));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a59d;if(c){const e=c[o(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const p=a59d;return a59a[p(0x16a)]()[p(0x154)]('(((.+)+)+)+$')[p(0x16a)]()[p(0x15c)](a59a)['search'](p(0x174));});function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x148;let f=c[d];return f;},a59d(a,b);}a59a();import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];function a59c(){const t=['graphql','7nNfhtQ','fsi','641172gDYVve','imports','pathFromProject','460278YlKSgn','dir','warn','setTemplate','import\x20{\x20','string','4385778NftDjC','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','ssr','className','template','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','286588NPZsyC','\x20}\x20from\x20\x27','engines','features','6ONYYpl','injectAtEndOfFile','relative','checkNpmPackage','component/component.js','withTranslations','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','true','assign','installNpmPackage','search','pathFromApp','templates.js','\x27;\x0a','withValue','api','import\x20\x27','.tests.js','constructor','client','react','root','cssCaseName','lib','test','resourceName','error','startup','create','rewriteDestinationPathForEngine','css','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','toString','fileName','3875535PYCKDM','export\x20{\x20','4729136dwjRsZ','\x20};\x0a','injectAtBeginningOfFile','558210oRndTH','component','apply','(((.+)+)+)+$','getProjectConfig'];a59c=function(){return t;};return a59c();}Generator[a59q(0x166)]({'name':a59q(0x172),'aliases':aliases,'usage':a59q(0x169),'shortDesc':a59q(0x150),'validOpts':[a59q(0x17d)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a59q;try{const c=this[r(0x178)]['findAppDirectory'](),d='/imports/ui/components',f=this[r(0x178)]['pathFromApp']({'pathParts':[d,b['dir'],paramCase(b[r(0x163)]),paramCase(b[r(0x163)])]}),g=await this[r(0x178)][r(0x175)]();this[r(0x178)][r(0x158)](g,async()=>{const s=r;typeof g[s(0x186)]['test']===s(0x181)&&(g['template'][s(0x162)]=g[s(0x186)][s(0x162)]===s(0x151)?!![]:![],this['fsi'][s(0x17f)]('test',g[s(0x186)][s(0x162)]));typeof g[s(0x186)][s(0x168)]===s(0x181)&&(g[s(0x186)][s(0x168)]=g[s(0x186)]['css']===s(0x151)?!![]:![],this[s(0x178)][s(0x17f)]('css',g[s(0x186)][s(0x168)]));typeof g[s(0x186)]['js']===s(0x181)&&(g[s(0x186)]['js']=g[s(0x186)]['js']===s(0x151)?!![]:![],this[s(0x178)]['setTemplate']('js',g[s(0x186)]['js']));!g['features']&&(g[s(0x149)]={});!b[s(0x15f)]&&!this[s(0x178)][s(0x14d)]('ramda')&&(Log[s(0x17e)](s(0x187)),await this[s(0x178)][s(0x153)]('ramda',{'cwd':c}));if(!b['root']&&!this[s(0x178)][s(0x14d)](s(0x15e))){Log[s(0x164)](s(0x183));return;}const h={'name':pascalCase(b[s(0x163)]),'myPath':a59e[s(0x14c)](this[s(0x178)][s(0x17b)]({}),f),'cssCaseName':paramCase(b[s(0x163)]),'className':pascalCase(b[s(0x163)]),'camelCaseName':camelCase(b[s(0x163)]),'fileName':paramCase(b[s(0x163)]),'graphql':g['engines'][s(0x176)],'features':g['features'],'client':g[s(0x148)][s(0x15d)],'api':g[s(0x148)][s(0x159)],'ssr':g[s(0x148)][s(0x184)],'test':g[s(0x148)][s(0x162)],'theme':g[s(0x148)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x149)][s(0x14f)]};this[s(0x178)][s(0x186)]({'srcPath':s(0x14e),'destPath':f+'.js','context':h,'framework':s(0x15e),'config':g});g[s(0x148)][s(0x162)]!=='none'&&this['fsi'][s(0x186)]({'srcPath':'test/test.js','destPath':f+s(0x15b),'context':h,'framework':s(0x15e),'config':g});g[s(0x186)][s(0x168)]&&(this[s(0x178)][s(0x186)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[s(0x152)]({},h,{'className':paramCase(b[s(0x163)])}),'config':g}),this['fsi']['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x148)]['js'],'content':'import\x20\x27./'+h[s(0x160)]+'.'+g[s(0x148)][s(0x168)]+'\x27;'}));const i=b[s(0x17d)]?'/'+b[s(0x17d)]+'/':'/',j=''+d+i+h[s(0x16b)]+'/'+h[s(0x16b)];let k;if(g[s(0x148)]['ssr']===s(0x151)){const l=this[s(0x178)][s(0x155)]({'pathParts':[s(0x17a),'startup',s(0x161),s(0x156)]});k=this[s(0x178)][s(0x167)]({'pathParts':[l],'config':g});}else{const m=this[s(0x178)][s(0x155)]({'pathParts':[s(0x17a),s(0x165),s(0x15d),s(0x156)]});k=this[s(0x178)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g[s(0x148)][s(0x15d)]===s(0x15e)||g[s(0x148)][s(0x15d)]==='reflux'?(g['engines']['js']==='tsx'?this[s(0x178)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x180)+h[s(0x185)]+'\x20}\x20from\x20\x27'+j+s(0x157)}):this[s(0x178)][s(0x170)]({'filePath':k,'content':s(0x180)+h[s(0x185)]+s(0x189)+j+'.'+g['engines']['js']+'\x27;\x0a'}),this['fsi'][s(0x14b)]({'filePath':k,'content':s(0x16d)+h[s(0x185)]+s(0x16f)})):this[s(0x178)]['injectAtEndOfFile']({'filePath':k,'content':s(0x15a)+j+'.'+g[s(0x148)]['js']+s(0x157)});});}catch(h){Log[r(0x164)](h);}});
@@ -1 +1 @@
1
- const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=parseInt(h(0x17e))/0x1*(-parseInt(h(0x197))/0x2)+parseInt(h(0x19a))/0x3+parseInt(h(0x190))/0x4*(-parseInt(h(0x183))/0x5)+-parseInt(h(0x187))/0x6*(parseInt(h(0x193))/0x7)+parseInt(h(0x18b))/0x8+parseInt(h(0x18a))/0x9*(parseInt(h(0x189))/0xa)+parseInt(h(0x182))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0xc2d52));const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a[j(0x198)]()[j(0x184)]('(((.+)+)+)+$')[j(0x198)]()['constructor'](a60a)[j(0x184)](j(0x185));});a60a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x17d;let f=c[d];return f;},a60d(a,b);}Generator[a60k(0x196)]({'name':'config','usage':a60k(0x18d),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a60k(0x181)],'examples':[a60k(0x17d)]},function(a,b){const l=a60k,c=this[l(0x192)][l(0x195)]();this[l(0x192)][l(0x18c)](c,()=>{const m=l,d={'app':c[m(0x191)],'appFileCase':paramCase(c[m(0x191)]),'name':pascalCase(b[m(0x186)]),'fileName':paramCase(b[m(0x186)]),'camelCase':camelCase(b[m(0x186)]),'userName':m(0x19b),'isDocker':b[m(0x181)]};let e=a[0x0];if(e===m(0x19d))e='development';else e===m(0x194)&&(e=m(0x18f));const f=this['fsi'][m(0x180)]({'pathParts':['config',e,m(0x18e)]});this[m(0x192)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x192)][m(0x180)]({'pathParts':[m(0x188),e,m(0x17f)]});this[m(0x192)]['template']({'srcPath':m(0x19c),'destPath':g,'context':d,'config':c});}});});function a60c(){const n=['production','40UKYqAI','appName','fsi','4742703MBTRkG','prod','getProjectConfig','create','34ikTwiQ','toString','apply','1415319WnKGWU','ubuntu','config/process.env','dev','maka\x20g:config\x20production','37042roAdgV','process.env','pathFromProject','isDocker','24939486BudcuA','732280oQcTNJ','search','(((.+)+)+)+$','resourceName','12auLFJT','config','320JVxgTT','308421LalsHH','3294072JdYElb','withValue','maka\x20{generate,\x20g}:{config}\x20<name>','settings.json'];a60c=function(){return n;};return a60c();}
1
+ const a60k=a60d;function a60c(){const n=['toString','appName','config/process.env','maka\x20{generate,\x20g}:{config}\x20<name>','1679436NtvbUM','withValue','template','Generate\x20configuration\x20settings.','239589IYgzNR','resourceName','56180770iTKlob','config','isDocker','config/settings.json','apply','constructor','process.env','2QYEJMg','35yPBFFE','fsi','getProjectConfig','817998ZwlVhb','prod','1548246QcHIkZ','dev','9268345ezYMdY','964700FMpRQu','create','settings.json','pathFromProject','(((.+)+)+)+$','ubuntu','production','search','304RhANrk'];a60c=function(){return n;};return a60c();}(function(a,b){const h=a60d,c=a();while(!![]){try{const d=-parseInt(h(0xa4))/0x1*(parseInt(h(0xa8))/0x2)+parseInt(h(0xba))/0x3+-parseInt(h(0xad))/0x4+-parseInt(h(0xac))/0x5+-parseInt(h(0xaa))/0x6*(parseInt(h(0xa5))/0x7)+parseInt(h(0xb5))/0x8*(-parseInt(h(0xbe))/0x9)+parseInt(h(0xc0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0xeb2ac));const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a['toString']()[j(0xb4)](j(0xb1))[j(0xb6)]()[j(0xc5)](a60a)['search']('(((.+)+)+)+$');});a60a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0xa3;let f=c[d];return f;},a60d(a,b);}Generator[a60k(0xae)]({'name':a60k(0xc1),'usage':a60k(0xb9),'shortDesc':a60k(0xbd),'validOpts':[a60k(0xc2)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a60k,c=this[l(0xa6)][l(0xa7)]();this['fsi'][l(0xbb)](c,()=>{const m=l,d={'app':c[m(0xb7)],'appFileCase':paramCase(c[m(0xb7)]),'name':pascalCase(b[m(0xbf)]),'fileName':paramCase(b[m(0xbf)]),'camelCase':camelCase(b[m(0xbf)]),'userName':m(0xb2),'isDocker':b[m(0xc2)]};let e=a[0x0];if(e===m(0xab))e='development';else e===m(0xa9)&&(e=m(0xb3));const f=this[m(0xa6)][m(0xb0)]({'pathParts':[m(0xc1),e,m(0xaf)]});this[m(0xa6)][m(0xbc)]({'srcPath':m(0xc3),'destPath':f,'context':d,'config':c});if(!b[m(0xc2)]){const g=this[m(0xa6)]['pathFromProject']({'pathParts':[m(0xc1),e,m(0xa3)]});this['fsi'][m(0xbc)]({'srcPath':m(0xb8),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=-parseInt(n(0x9d))/0x1*(-parseInt(n(0xa9))/0x2)+parseInt(n(0xac))/0x3+parseInt(n(0xb6))/0x4+-parseInt(n(0xa2))/0x5+-parseInt(n(0xbb))/0x6+parseInt(n(0xb8))/0x7*(parseInt(n(0xc2))/0x8)+parseInt(n(0x90))/0x9*(-parseInt(n(0xa0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x2af8f));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0x8e)]()['search'](p(0xbf))[p(0x8e)]()['constructor'](a61a)[p(0x91)]('(((.+)+)+)+$');});function a61c(){const t=['resourceName','maka\x20g:dbc\x20geoserver\x20--type=pgsql','562yTTBot','imports','dir','140586ypqVVb','(blank)','dbc/register-dbc.js','import\x20\x27./register-','checkNpmPackage','apply','dbc/config.js','type','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','1272252ydOFfF','injectAtEndOfFile','458941ptBqMB','error','tsx','2048826KTgpXp','pathFromApp','server','Invalid\x20type\x20','(((.+)+)+)+$','better-sqlite3','fsi','8hgkWkn','MS\x20SQL','indexOf','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','pgsql','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','dbc','toString','options','137601tfxMxU','search','startup','-dbc\x27;','register-','config.','dbc/conn.js','getProjectConfig','warn','mssql','installNpmPackage','conn.','template','1120KRklGL','index.','PostgreSQL','140yvZznw','engines','68380dtTXnc','list','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','withValue','sqlite'];a61c=function(){return t;};return a61c();}a61a();import{camelCase,paramCase,pascalCase}from'change-case';function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x8e;let f=c[d];return f;},a61d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator['create']({'name':a61q(0xc8),'usage':a61q(0xc7),'shortDesc':a61q(0xc5),'validOpts':[a61q(0xb3),'dir'],'examples':[a61q(0xa8)]},async function(a,b){const r=a61q;try{const c=await this[r(0xc1)][r(0x97)](),d=this[r(0xc1)][r(0xbc)]({}),f=paramCase(b[r(0xa7)]);if(!b['type']){const h={'type':r(0xa3),'name':'dbAnswer','message':'DB\x20Driver','choices':[{'name':r(0x9f),'value':r(0xc6)},{'name':r(0xc3),'value':'mssql'}]},{dbAnswer:i}=await Actions[r(0x8f)](h);i&&(b[r(0xb3)]=i);}const g={'name':pascalCase(b[r(0xa7)]),'fileName':paramCase(b[r(0xa7)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[r(0xa1)]['js'],'noRename':!![]};this['fsi'][r(0xa5)](c,async()=>{const s=r;let j='js';c['engines']['js']===s(0xba)&&(j='ts');const k=['mssql','pgsql'];if(k[s(0xc4)](g['type'])<0x0){const m=g[s(0xb3)]?g[s(0xb3)]:s(0xad);Log[s(0xb9)](s(0xbe)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0xb3)]===s(0xc6)&&!this[s(0xc1)][s(0xb0)]('pg')&&(Log['warn'](s(0xb5)),await this[s(0xc1)][s(0x9a)]('pg',{'cwd':d}));b['type']==='mssql'&&!this['fsi'][s(0xb0)](s(0x99))&&(Log[s(0x98)](s(0xa4)),await this[s(0xc1)][s(0x9a)](s(0x99),{'cwd':d}));b[s(0xb3)]===s(0xa6)&&!this[s(0xc1)]['checkNpmPackage'](s(0xc0))&&(Log[s(0x98)](s(0xb4)),await this[s(0xc1)][s(0x9a)](s(0xc0),{'cwd':d}));this[s(0xc1)]['template']({'srcPath':s(0xb2),'destPath':this['fsi'][s(0xbc)]({'pathParts':[s(0xaa),s(0x92),s(0xbd),'dbc',b[s(0xab)],f,s(0x95)+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0x96),'destPath':this[s(0xc1)][s(0xbc)]({'pathParts':[s(0xaa),s(0x92),'server',s(0xc8),b[s(0xab)],f,s(0x9b)+j]}),'context':g,'config':c}),this[s(0xc1)][s(0x9c)]({'srcPath':s(0xae),'destPath':this[s(0xc1)][s(0xbc)]({'pathParts':[s(0xaa),'startup',s(0xbd),s(0x94)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0xc1)][s(0xbc)]({'pathParts':[s(0xaa),s(0x92),s(0xbd),s(0x9e)+c['engines']['js']]});this['fsi'][s(0xb7)]({'filePath':l,'content':s(0xaf)+f+s(0x93)});});}catch(j){Log[r(0xb9)](j);}});
1
+ const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=parseInt(n(0xbf))/0x1+parseInt(n(0xaf))/0x2*(-parseInt(n(0xba))/0x3)+-parseInt(n(0xd2))/0x4+-parseInt(n(0xbe))/0x5+parseInt(n(0xac))/0x6*(-parseInt(n(0xaa))/0x7)+parseInt(n(0xb7))/0x8+parseInt(n(0xde))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0xb318e));function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0xaa;let f=c[d];return f;},a61d(a,b);}const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0xb9)]()['search'](p(0xb8))[p(0xb9)]()[p(0xb5)](a61a)[p(0xc1)](p(0xb8));});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(0xae)]({'name':'dbc','usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a61q(0xc8),'dir'],'examples':[a61q(0xc3)]},async function(a,b){const r=a61q;try{const c=await this[r(0xb6)][r(0xad)](),d=this[r(0xb6)][r(0xb0)]({}),f=paramCase(b[r(0xbd)]);if(!b[r(0xc8)]){const h={'type':r(0xda),'name':r(0xcc),'message':r(0xc5),'choices':[{'name':r(0xe0),'value':r(0xc2)},{'name':r(0xab),'value':'mssql'}]},{dbAnswer:i}=await Actions[r(0xc0)](h);i&&(b[r(0xc8)]=i);}const g={'name':pascalCase(b[r(0xbd)]),'fileName':paramCase(b[r(0xbd)]),'camelCase':camelCase(b[r(0xbd)]),'type':b[r(0xc8)],'engine':c[r(0xd0)]['js'],'noRename':!![]};this[r(0xb6)][r(0xd1)](c,async()=>{const s=r;let j='js';c[s(0xd0)]['js']==='tsx'&&(j='ts');const k=[s(0xb2),s(0xc2)];if(k[s(0xd4)](g[s(0xc8)])<0x0){const m=g['type']?g['type']:s(0xcf);Log['error'](s(0xc6)+m+s(0xd5));return;}b[s(0xc8)]===s(0xc2)&&!this[s(0xb6)][s(0xdd)]('pg')&&(Log[s(0xd9)](s(0xbc)),await this[s(0xb6)][s(0xcb)]('pg',{'cwd':d}));b[s(0xc8)]===s(0xb2)&&!this[s(0xb6)][s(0xdd)](s(0xb2))&&(Log[s(0xd9)](s(0xc7)),await this[s(0xb6)][s(0xcb)]('mssql',{'cwd':d}));b['type']==='sqlite'&&!this['fsi']['checkNpmPackage']('better-sqlite3')&&(Log[s(0xd9)](s(0xc9)),await this['fsi'][s(0xcb)]('better-sqlite3',{'cwd':d}));this[s(0xb6)]['template']({'srcPath':'dbc/config.js','destPath':this[s(0xb6)][s(0xb0)]({'pathParts':[s(0xdb),s(0xc4),s(0xca),s(0xce),b['dir'],f,s(0xd7)+j]}),'context':g,'config':c}),this[s(0xb6)][s(0xcd)]({'srcPath':s(0xdf),'destPath':this[s(0xb6)][s(0xb0)]({'pathParts':['imports',s(0xc4),'server',s(0xce),b[s(0xd6)],f,s(0xbb)+j]}),'context':g,'config':c}),this[s(0xb6)][s(0xcd)]({'srcPath':s(0xb4),'destPath':this[s(0xb6)][s(0xb0)]({'pathParts':[s(0xdb),s(0xc4),s(0xca),'register-'+f+s(0xb1)+j]}),'context':g,'config':c});const l=this[s(0xb6)][s(0xb0)]({'pathParts':[s(0xdb),s(0xc4),s(0xca),s(0xd8)+c[s(0xd0)]['js']]});this[s(0xb6)][s(0xdc)]({'filePath':l,'content':'import\x20\x27./register-'+f+s(0xd3)});});}catch(j){Log['error'](j);}});function a61c(){const t=['apply','dbc/register-dbc.js','constructor','fsi','3079064IxXfNM','(((.+)+)+)+$','toString','4066329eHVwGq','conn.','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','resourceName','3927130WuOOme','754642AVHOuu','options','search','pgsql','maka\x20g:dbc\x20geoserver\x20--type=pgsql','startup','DB\x20Driver','Invalid\x20type\x20','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','type','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','server','installNpmPackage','dbAnswer','template','dbc','(blank)','engines','withValue','1693676DqrUcc','-dbc\x27;','indexOf',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','dir','config.','index.','warn','list','imports','injectAtEndOfFile','checkNpmPackage','32200713lNVaGQ','dbc/conn.js','PostgreSQL','9936584RkzmCb','MS\x20SQL','6nfMljg','getProjectConfig','create','2zIpgWH','pathFromApp','-dbc.','mssql'];a61c=function(){return t;};return a61c();}
@@ -1 +1 @@
1
- const a62i=a62d;function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x1df;let f=c[d];return f;},a62d(a,b);}(function(a,b){const f=a62d,c=a();while(!![]){try{const d=-parseInt(f(0x1f1))/0x1*(-parseInt(f(0x1e2))/0x2)+parseInt(f(0x1fd))/0x3+parseInt(f(0x1fa))/0x4*(-parseInt(f(0x1e3))/0x5)+-parseInt(f(0x1f4))/0x6+parseInt(f(0x1e6))/0x7*(-parseInt(f(0x1e8))/0x8)+parseInt(f(0x1f9))/0x9*(parseInt(f(0x1f8))/0xa)+-parseInt(f(0x1eb))/0xb*(-parseInt(f(0x1f5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x48367));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x1ea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x1ee)]()[h(0x1df)](h(0x1f3))[h(0x1ee)]()[h(0x1fe)](a62a)[h(0x1df)](h(0x1f3));});a62a();import{Generator}from'../generator.js';function a62c(){const l=['2018874QTDtIN','8127996cidBxf','withValue','getProjectConfig','539920WehGyf','36EJJxxI','2220HRBKyT','service','Generate\x20an\x20updated\x20dockerfile','121782jQCsJe','constructor','build','search','getGlobalConfig','findProjectDirectory','2HwfINr','2825vdNAQl','join','maka\x20g:dockerfile','3040373DUWrHv','Dockerfile','8aoZnnx','create','apply','11GaMWmh','maka\x20{generate,\x20g}:dockerfile','appName','toString','isFile','template','446281OukPwJ','fsi','(((.+)+)+)+$'];a62c=function(){return l;};return a62c();}import{Log}from'../tools/log/log.class.js';import a62e from'path';Generator[a62i(0x1e9)]({'name':'dockerfile','usage':a62i(0x1ec),'shortDesc':a62i(0x1fc),'validOpts':[],'noResource':!![],'examples':[a62i(0x1e5)]},async function(){const j=a62i;try{const a=await this[j(0x1f2)][j(0x1f7)](),b=await this[j(0x1f2)][j(0x1e0)](),c=this['fsi'][j(0x1e1)]();this[j(0x1f2)][j(0x1f6)](a,async()=>{const k=j,d={'app':b[k(0x1ed)],'config':a,'appPath':a62e[k(0x1e4)](c,'app'),'bundlePath':a62e['join'](c,k(0x1ff),'app.tar.gz'),'useCert':this[k(0x1f2)][k(0x1ef)](b['cert'])};this['fsi'][k(0x1f0)]({'srcPath':'docker/Dockerfile','destPath':a62e[k(0x1e4)](c,k(0x1e7)),'framework':k(0x1fb),'context':d,'config':a});});}catch(d){Log['error'](d);}});
1
+ const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=parseInt(f(0x116))/0x1*(-parseInt(f(0x111))/0x2)+parseInt(f(0x112))/0x3*(-parseInt(f(0x12d))/0x4)+parseInt(f(0x119))/0x5+parseInt(f(0x11d))/0x6*(-parseInt(f(0x115))/0x7)+parseInt(f(0x110))/0x8*(-parseInt(f(0x11f))/0x9)+parseInt(f(0x11e))/0xa+parseInt(f(0x129))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x722ec));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x10d)]()[h(0x126)](h(0x117))[h(0x10d)]()[h(0x124)](a62a)[h(0x126)]('(((.+)+)+)+$');});function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x10d;let f=c[d];return f;},a62d(a,b);}a62a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a62e from'path';function a62c(){const l=['withValue','app.tar.gz','constructor','fsi','search','maka\x20{generate,\x20g}:dockerfile','template','6212855TarUzL','Generate\x20an\x20updated\x20dockerfile','docker/Dockerfile','getProjectConfig','708220fQeMZd','toString','apply','dockerfile','49568brOyyM','504wwuLNS','3IedXGz','getGlobalConfig','error','378jfhhuN','3044NJYaKv','(((.+)+)+)+$','isFile','3704905wdyBLW','Dockerfile','maka\x20g:dockerfile','app','20052qZAIJj','8751370lSBjkX','855yTOwDq','join','appName'];a62c=function(){return l;};return a62c();}Generator['create']({'name':a62i(0x10f),'usage':a62i(0x127),'shortDesc':a62i(0x12a),'validOpts':[],'noResource':!![],'examples':[a62i(0x11b)]},async function(){const j=a62i;try{const a=await this[j(0x125)][j(0x12c)](),b=await this[j(0x125)][j(0x113)](),c=this[j(0x125)]['findProjectDirectory']();this[j(0x125)][j(0x122)](a,async()=>{const k=j,d={'app':b[k(0x121)],'config':a,'appPath':a62e[k(0x120)](c,k(0x11c)),'bundlePath':a62e[k(0x120)](c,'build',k(0x123)),'useCert':this[k(0x125)][k(0x118)](b['cert'])};this['fsi'][k(0x128)]({'srcPath':k(0x12b),'destPath':a62e['join'](c,k(0x11a)),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x114)](d);}});
@@ -1 +1 @@
1
- function a63c(){const t=['none','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','3825703wZpWPy','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','string','className','setTemplate','\x20}\x20from\x20\x27','10OnsZwN','true','withValue','import\x20\x27./','9QfbAHU','test/test.js','template/template.css','export\x20{\x20','css','@apollo/client\x20isomorphic-fetch','resourceName','17482250gFmcar','imports','54226EdsgUi','template','fileName','dir','installNpmPackage','cssCaseName','\x20};\x0a','12gygsSn','942537RYjXEL','apollo','2638284jtvVdR','@apollo/client','create','injectAtEndOfFile','ssr','pathFromApp','11QPFCxe','rewriteDestinationPathForEngine','relative','checkNpmPackage','import\x20\x27','.app-tests.js','injectAtBeginningOfFile','(((.+)+)+)+$','maka\x20g:hook\x20cool-hook','react','engines','graphql','\x27;\x0a','error','warn','.css','features','assign','.js','getProjectConfig','fsi','hook/hook.js','3820632qELYPX','toString','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','199604OpIhKF','tsx','constructor','search'];a63c=function(){return t;};return a63c();}const a63q=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=parseInt(o(0x1c1))/0x1*(-parseInt(o(0x1c8))/0x2)+parseInt(o(0x1c9))/0x3+-parseInt(o(0x1a8))/0x4*(-parseInt(o(0x1b4))/0x5)+-parseInt(o(0x1cb))/0x6+-parseInt(o(0x1ae))/0x7+parseInt(o(0x1a5))/0x8*(-parseInt(o(0x1b8))/0x9)+-parseInt(o(0x1bf))/0xa*(-parseInt(o(0x1d1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x5b124));const a63b=(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;};}()),a63a=a63b(this,function(){const p=a63d;return a63a[p(0x1a6)]()[p(0x1ab)](p(0x1d8))[p(0x1a6)]()[p(0x1aa)](a63a)[p(0x1ab)](p(0x1d8));});a63a();function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a63d(a,b);}import a63e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a63q(0x1cd)]({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a63q(0x1af),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[a63q(0x1c4)],'examples':[a63q(0x1d9)]},async function(a,b){const r=a63q;try{const c=this[r(0x1a3)][r(0x1d4)](r(0x1da));if(!c){Log[r(0x1de)](r(0x1a7));throw new UsageError();}const d=this[r(0x1a3)][r(0x1d0)](b),f='/imports/ui/hooks',g=this[r(0x1a3)][r(0x1d0)]({'pathParts':[f,b[r(0x1c4)],paramCase(b['resourceName']),paramCase(b[r(0x1be)])]}),h=await this[r(0x1a3)][r(0x1e4)]();this[r(0x1a3)][r(0x1b6)](h,async()=>{const s=r;typeof h[s(0x1c2)][s(0x1bc)]===s(0x1b0)&&(h['template'][s(0x1bc)]=h[s(0x1c2)][s(0x1bc)]===s(0x1b5)?!![]:![],this[s(0x1a3)][s(0x1b2)](s(0x1bc),h[s(0x1c2)][s(0x1bc)]));h[s(0x1db)][s(0x1dc)]===s(0x1ca)&&!this[s(0x1d4)](s(0x1cc))&&(Log[s(0x1df)](s(0x1ad)),await this[s(0x1a3)][s(0x1c5)](s(0x1bd),{'cwd':d}));const i={'cssCaseName':paramCase(b[s(0x1be)]),'className':pascalCase(b[s(0x1be)]),'name':pascalCase(b[s(0x1be)]),'graphql':h[s(0x1db)][s(0x1dc)],'theme':h['engines']['theme'],'features':h[s(0x1e1)],'myPath':a63e[s(0x1d3)](this['fsi']['pathFromProject']({}),g),'fileName':paramCase(b[s(0x1be)]),'isComponent':![],'isLayout':![],'withTranslations':h[s(0x1e1)]['withTranslations']};this[s(0x1a3)]['template']({'srcPath':s(0x1a4),'destPath':g+s(0x1e3),'context':i,'config':h,'framework':s(0x1da)});h[s(0x1c2)][s(0x1bc)]&&(this[s(0x1a3)][s(0x1c2)]({'srcPath':s(0x1ba),'destPath':g+s(0x1e0),'context':Object[s(0x1e2)]({},i,{'className':i[s(0x1c6)]}),'config':h}),this['fsi'][s(0x1d7)]({'filePath':g+'.'+h['engines']['js'],'content':s(0x1b7)+i[s(0x1c3)]+'.'+h[s(0x1db)][s(0x1bc)]+'\x27;'}));h['engines']['test']!==s(0x1ac)&&this[s(0x1a3)][s(0x1c2)]({'srcPath':s(0x1b9),'destPath':g+s(0x1d6),'framework':s(0x1da),'context':i,'config':h});const j=b['dir']?'/'+b[s(0x1c4)]+'/':'/',k=''+f+j+i[s(0x1c3)]+'/'+i[s(0x1c3)];let l;if(h['engines'][s(0x1cf)]==='true'){const m=this[s(0x1a3)]['pathFromApp']({'pathParts':[s(0x1c0),'startup','lib','templates.js']});l=this[s(0x1a3)][s(0x1d2)]({'pathParts':[m],'config':h});}else{const n=this[s(0x1a3)][s(0x1d0)]({'pathParts':[s(0x1c0),'startup','client','templates.js']});l=this[s(0x1a3)][s(0x1d2)]({'pathParts':[n],'config':h});}h[s(0x1db)]['client']===s(0x1da)?(h[s(0x1db)]['js']===s(0x1a9)?this[s(0x1a3)][s(0x1d7)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x1b1)]+s(0x1b3)+k+s(0x1dd)}):this[s(0x1a3)][s(0x1d7)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x1b1)]+s(0x1b3)+k+'.'+h['engines']['js']+s(0x1dd)}),this[s(0x1a3)]['injectAtEndOfFile']({'filePath':l,'content':s(0x1bb)+i[s(0x1b1)]+s(0x1c7)})):this[s(0x1a3)][s(0x1ce)]({'filePath':l,'content':s(0x1d5)+k+'.'+h[s(0x1db)]['js']+s(0x1dd)});});}catch(i){Log[r(0x1de)](i);}});
1
+ function a63c(){const u=['56948rLXvxU','features','cssCaseName','checkNpmPackage','template','\x20}\x20from\x20\x27','injectAtBeginningOfFile','(((.+)+)+)+$','import\x20\x27./','string','withTranslations','client','1342496WBVOkm','theme','lib','\x20};\x0a','setTemplate','6353336YXgtAn','apollo','pathFromApp','export\x20{\x20','installNpmPackage','/imports/ui/hooks','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','toString','imports','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','.css','template/template.css','tsx','test/test.js','hook','.app-tests.js','relative','true','assign','1330063bHEGLg','.js','search','className','15vmDXrI','\x27;\x0a','graphql','16050465uvfhBj','pathFromProject','injectAtEndOfFile','templates.js','apply','dir','resourceName','129izLHyP','getProjectConfig','css','fsi','997842tVLIhS','import\x20\x27','@apollo/client','rewriteDestinationPathForEngine','test','fileName','react','engines','none','warn','error','899548oqesYL','import\x20{\x20','maka\x20g:hook\x20cool-hook','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','@apollo/client\x20isomorphic-fetch','startup'];a63c=function(){return u;};return a63c();}const a63r=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=-parseInt(o(0xdf))/0x1+parseInt(o(0xf1))/0x2+parseInt(o(0xd0))/0x3*(-parseInt(o(0xe5))/0x4)+-parseInt(o(0x10d))/0x5*(-parseInt(o(0xd4))/0x6)+-parseInt(o(0x109))/0x7+-parseInt(o(0xf6))/0x8+parseInt(o(0xc9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x6fba7));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a['toString']()[q(0x10b)](q(0xec))[q(0xfd)]()['constructor'](a63a)['search'](q(0xec));});a63a();import a63e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0xc7;let f=c[d];return f;},a63d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':a63r(0x104),'aliases':['h'],'checkWhere':![],'usage':a63r(0xfc),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[a63r(0xce)],'examples':[a63r(0xe1)]},async function(a,b){const s=a63r;try{const c=this[s(0xd3)][s(0xe8)]('react');if(!c){Log[s(0xde)](s(0xff));throw new UsageError();}const d=this[s(0xd3)][s(0xf8)](b),f=s(0xfb),g=this[s(0xd3)][s(0xf8)]({'pathParts':[f,b[s(0xce)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),h=await this[s(0xd3)][s(0xd1)]();this[s(0xd3)]['withValue'](h,async()=>{const t=s;typeof h['template']['css']===t(0xee)&&(h[t(0xe9)][t(0xd2)]=h[t(0xe9)][t(0xd2)]===t(0x107)?!![]:![],this[t(0xd3)][t(0xf5)](t(0xd2),h[t(0xe9)][t(0xd2)]));h[t(0xdb)][t(0xc8)]===t(0xf7)&&!this[t(0xe8)](t(0xd6))&&(Log[t(0xdd)](t(0xe2)),await this[t(0xd3)][t(0xfa)](t(0xe3),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xcf)]),'className':pascalCase(b[t(0xcf)]),'name':pascalCase(b[t(0xcf)]),'graphql':h[t(0xdb)][t(0xc8)],'theme':h[t(0xdb)][t(0xf2)],'features':h[t(0xe6)],'myPath':a63e[t(0x106)](this[t(0xd3)][t(0xca)]({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xe6)][t(0xef)]};this[t(0xd3)]['template']({'srcPath':'hook/hook.js','destPath':g+t(0x10a),'context':i,'config':h,'framework':'react'});h['template']['css']&&(this[t(0xd3)][t(0xe9)]({'srcPath':t(0x101),'destPath':g+t(0x100),'context':Object[t(0x108)]({},i,{'className':i[t(0xe7)]}),'config':h}),this[t(0xd3)][t(0xeb)]({'filePath':g+'.'+h[t(0xdb)]['js'],'content':t(0xed)+i[t(0xd9)]+'.'+h[t(0xdb)][t(0xd2)]+'\x27;'}));h[t(0xdb)][t(0xd8)]!==t(0xdc)&&this['fsi']['template']({'srcPath':t(0x103),'destPath':g+t(0x105),'framework':t(0xda),'context':i,'config':h});const j=b['dir']?'/'+b[t(0xce)]+'/':'/',k=''+f+j+i[t(0xd9)]+'/'+i[t(0xd9)];let l;if(h['engines']['ssr']===t(0x107)){const m=this[t(0xd3)]['pathFromApp']({'pathParts':['imports','startup',t(0xf3),t(0xcc)]});l=this[t(0xd3)][t(0xd7)]({'pathParts':[m],'config':h});}else{const n=this[t(0xd3)][t(0xf8)]({'pathParts':[t(0xfe),t(0xe4),t(0xf0),t(0xcc)]});l=this[t(0xd3)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h[t(0xdb)][t(0xf0)]==='react'?(h[t(0xdb)]['js']===t(0x102)?this[t(0xd3)][t(0xeb)]({'filePath':l,'content':t(0xe0)+i[t(0x10c)]+'\x20}\x20from\x20\x27'+k+t(0xc7)}):this['fsi'][t(0xeb)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x10c)]+t(0xea)+k+'.'+h['engines']['js']+t(0xc7)}),this[t(0xd3)][t(0xcb)]({'filePath':l,'content':t(0xf9)+i[t(0x10c)]+t(0xf4)})):this[t(0xd3)][t(0xcb)]({'filePath':l,'content':t(0xd5)+k+'.'+h[t(0xdb)]['js']+t(0xc7)});});}catch(i){Log['error'](i);}});
@@ -1 +1 @@
1
- const a64k=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0xe2))/0x1+parseInt(h(0xe5))/0x2*(-parseInt(h(0xef))/0x3)+-parseInt(h(0xec))/0x4+-parseInt(h(0xe4))/0x5*(parseInt(h(0xdd))/0x6)+-parseInt(h(0xe1))/0x7+-parseInt(h(0xf2))/0x8*(-parseInt(h(0xde))/0x9)+parseInt(h(0xe6))/0xa*(parseInt(h(0xea))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0xf1a62));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a64d;if(c){const e=c[i(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const j=a64d;return a64a[j(0xf8)]()[j(0xf3)](j(0xf1))[j(0xf8)]()[j(0xda)](a64a)[j(0xf3)]('(((.+)+)+)+$');});a64a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0xda;let f=c[d];return f;},a64d(a,b);}function a64c(){const n=['10464OSkqwT','9zVzHCa','kit','getProjectConfig','5918458mcauXH','656071sXQyWV','NIE','1745FqgXWa','4xEMDhB','13878890BCxhOb','create','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','leaflet-map','33uPiPDP','maka\x20g:kit\x20--type=map','5589752BVSTNY','notice','apply','1512759GwOcpS','engines','(((.+)+)+)+$','10738336DfZSel','search','maka\x20g:k\x20city-map\x20--type=leaflet-map','(blank)','maka\x20{generate,\x20g}:{kit}\x20<kit-name>\x20--type=map','type','toString','fsi','indexOf','constructor','resourceName','error'];a64c=function(){return n;};return a64c();}Generator[a64k(0xe7)]({'name':a64k(0xdf),'aliases':['k'],'usage':a64k(0xf6),'shortDesc':a64k(0xe8),'validOpts':[a64k(0xf7)],'examples':[a64k(0xeb),a64k(0xf4)]},async function(a,b){const l=a64k;try{const c=this['fsi'][l(0xe0)]();this[l(0xf9)]['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xdb)]),'fileName':paramCase(b[m(0xdb)]),'camelCase':camelCase(b[m(0xdb)]),'type':b[m(0xf7)],'engine':c[m(0xf0)]['js'],'noRename':!![]},f=[m(0xe9),'login'];if(f[m(0xfa)](d['type'])<0x0){const g=d[m(0xf7)]?d['type']:m(0xf5);Log['error']('Invalid\x20type\x20'+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xf7)]==='map'&&Log[m(0xed)](m(0xe3)),b['type']==='login'&&Log[m(0xed)]('NIE');});}catch(d){Log[l(0xdc)](d);}});
1
+ function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0xb9;let f=c[d];return f;},a64d(a,b);}const a64j=a64d;function a64c(){const m=['401223JRZQWb','maka\x20g:kit\x20--type=map','map','24059lYHyeE','indexOf','3936670grSQdi','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','engines','maka\x20{generate,\x20g}:{kit}\x20<kit-name>\x20--type=map','324tdVhqz','4016292VKOFub','search','1497798OVRwjx','NIE','kit','11noWLVg','10125864SBCRdI','(blank)','create','notice','4969995XqKwJy',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','login','error','resourceName','toString','withValue','type','8TINckj','4ScxOVw','Invalid\x20type\x20','fsi','3sEjwKN','(((.+)+)+)+$'];a64c=function(){return m;};return a64c();}(function(a,b){const h=a64d,c=a();while(!![]){try{const d=parseInt(h(0xd0))/0x1*(-parseInt(h(0xcb))/0x2)+-parseInt(h(0xce))/0x3*(-parseInt(h(0xda))/0x4)+parseInt(h(0xc2))/0x5+parseInt(h(0xd9))/0x6*(parseInt(h(0xd3))/0x7)+-parseInt(h(0xca))/0x8*(parseInt(h(0xba))/0x9)+-parseInt(h(0xd5))/0xa*(-parseInt(h(0xbd))/0xb)+-parseInt(h(0xbe))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0xbaae7));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(0xc7)]()[i(0xb9)](i(0xcf))[i(0xc7)]()['constructor'](a64a)['search'](i(0xcf));});a64a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a64j(0xc0)]({'name':a64j(0xbc),'aliases':['k'],'usage':a64j(0xd8),'shortDesc':a64j(0xd6),'validOpts':['type'],'examples':[a64j(0xd1),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const k=a64j;try{const c=this[k(0xcd)]['getProjectConfig']();this[k(0xcd)][k(0xc8)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0xc6)]),'fileName':paramCase(b[l(0xc6)]),'camelCase':camelCase(b['resourceName']),'type':b[l(0xc9)],'engine':c[l(0xd7)]['js'],'noRename':!![]},f=['leaflet-map',l(0xc4)];if(f[l(0xd4)](d[l(0xc9)])<0x0){const g=d[l(0xc9)]?d[l(0xc9)]:l(0xbf);Log['error'](l(0xcc)+g+l(0xc3));return;}b[l(0xc9)]===l(0xd2)&&Log['notice'](l(0xbb)),b[l(0xc9)]===l(0xc4)&&Log[l(0xc1)](l(0xbb));});}catch(d){Log[k(0xc5)](d);}});
@@ -1 +1 @@
1
- const a65r=a65d;function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x73;let f=c[d];return f;},a65d(a,b);}(function(a,b){const o=a65d,c=a();while(!![]){try{const d=parseInt(o(0xa3))/0x1*(parseInt(o(0xa5))/0x2)+parseInt(o(0x79))/0x3*(-parseInt(o(0xa0))/0x4)+parseInt(o(0x96))/0x5+parseInt(o(0x92))/0x6*(-parseInt(o(0xb9))/0x7)+parseInt(o(0x7f))/0x8+-parseInt(o(0xbb))/0x9+parseInt(o(0xa1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0xbcdb2));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x7d)]()[q(0x76)]('(((.+)+)+)+$')['toString']()[q(0xad)](a65a)[q(0x76)](q(0x87));});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(0x7a)]({'name':'layout','aliases':aliases,'usage':a65r(0xb8),'shortDesc':a65r(0xa4),'validOpts':[],'examples':[a65r(0x73),a65r(0xb0)]},function(a,b){const s=a65r,c=s(0x95),d=this[s(0xb2)][s(0x83)](),e=this['fsi']['pathFromApp']({'pathParts':[c,b[s(0x94)],paramCase(b['resourceName']),paramCase(b[s(0x97)])]}),f=this[s(0xb2)][s(0x98)]();this[s(0xb2)][s(0x8a)](f,()=>{const t=s;typeof f[t(0x7b)][t(0x9a)]===t(0xab)&&(f[t(0x7b)]['test']=f[t(0x7b)][t(0x9a)]===t(0x8e)?!![]:![],this['fsi'][t(0xbc)](t(0x9a),f[t(0x7b)]['test']));typeof f[t(0x7b)]['css']===t(0xab)&&(f[t(0x7b)][t(0xb7)]=f[t(0x7b)]['css']===t(0x8e)?!![]:![],this[t(0xb2)][t(0xbc)](t(0xb7),f['template'][t(0xb7)]));typeof f[t(0x7b)]['js']===t(0xab)&&(f[t(0x7b)]['js']=f['template']['js']===t(0x8e)?!![]:![],this[t(0xb2)][t(0xbc)]('js',f['template']['js']));!f[t(0x77)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x7c)](':')[0x1]:![],h=b['_']&&aliases[t(0x9b)](g);h&&!this[t(0x9d)](t(0xa7))&&(Log[t(0x82)](t(0xb4)),this['fsi'][t(0x9e)](t(0xa7),{'cwd':d}));if(h&&!this[t(0x9d)](t(0x80))){Log[t(0x82)](t(0xa2));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a65e[t(0x8c)](this[t(0xb2)][t(0x8b)]({}),e),'cssCaseName':paramCase(b[t(0x97)]),'className':pascalCase(b[t(0x97)]),'camelCaseName':camelCase(b[t(0x97)]),'fileName':paramCase(b[t(0x97)]),'graphql':f[t(0x78)][t(0xa8)],'features':f[t(0x77)],'client':f[t(0x78)][t(0x89)],'api':f['engines'][t(0x75)],'ssr':f['engines'][t(0x8d)],'test':f['engines'][t(0x9a)],'theme':f[t(0x78)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][t(0xae)]};f[t(0x77)]?.[t(0x7e)]||b[t(0x8f)]?this[t(0xb2)][t(0x7b)]({'srcPath':'hook/hook.js','destPath':e+t(0xa6),'framework':t(0x80),'context':i,'config':f}):this['fsi']['template']({'srcPath':'component/component.js','destPath':e+t(0xa6),'framework':'react','context':i,'config':f});f[t(0x78)][t(0x9a)]!==t(0xac)&&this['fsi'][t(0x7b)]({'srcPath':t(0xb6),'destPath':e+t(0x9c),'framework':t(0x80),'context':i,'config':f});f['template'][t(0xb7)]&&(this[t(0xb2)][t(0x7b)]({'srcPath':t(0x86),'destPath':e+t(0x91),'context':Object['assign']({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0xb2)][t(0x93)]({'filePath':e+'.'+f[t(0x78)]['js'],'content':t(0x9f)+i[t(0xbd)]+'.'+f['engines'][t(0xb7)]+'\x27;'}));const j=b[t(0x94)]?'/'+b[t(0x94)]+'/':'/',k=''+c+j+i[t(0xbd)]+'/'+i[t(0xbd)];let l;if(f[t(0x78)][t(0x8d)]===t(0x8e)){const m=this['fsi']['pathFromApp']({'pathParts':['imports',t(0xb3),'lib',t(0xba)]});l=this[t(0xb2)][t(0x74)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x85)]({'pathParts':[t(0x90),'startup',t(0x89),'templates.js']});l=this[t(0xb2)][t(0x74)]({'pathParts':[n],'config':f});}f['engines']['client']===t(0x80)?(f[t(0x78)]['js']===t(0xaa)?this[t(0xb2)][t(0x93)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x84)]+t(0xb5)+k+t(0x88)}):this[t(0xb2)][t(0x93)]({'filePath':l,'content':t(0x81)+i[t(0x84)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x78)]['js']+t(0x88)}),this[t(0xb2)][t(0x99)]({'filePath':l,'content':t(0xa9)+i[t(0x84)]+t(0xaf)})):this[t(0xb2)][t(0x99)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0x78)]['js']+t(0x88)});});});function a65c(){const u=['.app-tests.js','checkNpmPackage','installNpmPackage','import\x20\x27./','1428MKzkQR','16702300SueSER','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','8448CkYDEf','Scaffolding\x20for\x20a\x20React\x20Layout.','20msLgIC','.js','ramda','graphql','export\x20{\x20','tsx','string','none','constructor','withTranslations','\x20};\x0a','maka\x20g:l\x20web/safari','apply','fsi','startup','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','\x20}\x20from\x20\x27','test/test.js','css','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','21kIijsM','templates.js','6692256VWWiyQ','setTemplate','fileName','maka\x20g:layout\x20mobile/iPhone8','rewriteDestinationPathForEngine','api','search','features','engines','11949tARkSY','create','template','split','toString','withHooks','3869704pEkGVf','react','import\x20{\x20','warn','findAppDirectory','className','pathFromApp','template/template.css','(((.+)+)+)+$','\x27;\x0a','client','withValue','pathFromProject','relative','ssr','true','withHook','imports','.css','271710azXGnZ','injectAtBeginningOfFile','dir','/imports/ui/layouts','4182505cvOCwm','resourceName','getProjectConfig','injectAtEndOfFile','test','includes'];a65c=function(){return u;};return a65c();}
1
+ const a65r=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d=parseInt(o(0x1bd))/0x1+parseInt(o(0x197))/0x2*(parseInt(o(0x1b3))/0x3)+-parseInt(o(0x1b0))/0x4+-parseInt(o(0x1ca))/0x5*(-parseInt(o(0x19f))/0x6)+parseInt(o(0x1c6))/0x7+-parseInt(o(0x19c))/0x8*(parseInt(o(0x1c2))/0x9)+-parseInt(o(0x192))/0xa*(parseInt(o(0x189))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0xe78eb));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x1ab)]()[q(0x188)]('(((.+)+)+)+$')[q(0x1ab)]()['constructor'](a65a)['search'](q(0x1a6));});a65a();import a65e from'path';import{Generator}from'../generator.js';function a65c(){const u=['ssr','layout','checkNpmPackage','none','(((.+)+)+)+$','injectAtBeginningOfFile','imports','warn','test','toString','split','includes','withHooks','rewriteDestinationPathForEngine','1744080oTiWeI','.app-tests.js','withTranslations','15KlvMAM','\x27;\x0a','maka\x20g:l\x20web/safari','create','.js','import\x20\x27','fsi','engines','getProjectConfig','client','733713rXyiUM','apply','findAppDirectory','className','tsx','5028084IvSJiY','assign','maka\x20g:layout\x20mobile/iPhone8','features','567637iOIRyB','string','installNpmPackage','hook/hook.js','45vpJbvX','startup','ramda','api','withHook','dir','search','11iHRxdx','.css','injectAtEndOfFile','graphql','lib','\x20};\x0a','fileName','react','export\x20{\x20','1468720HYdlLz','templates.js','true','withValue','import\x20{\x20','715304PMJegu','relative','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','setTemplate','template','16FFhXwn','\x20}\x20from\x20\x27','css','30426iCSiif','resourceName','/imports/ui/layouts'];a65c=function(){return u;};return a65c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x187;let f=c[d];return f;},a65d(a,b);}const aliases=['l'];Generator[a65r(0x1b6)]({'name':a65r(0x1a3),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a65r(0x1c4),a65r(0x1b5)]},function(a,b){const s=a65r,c=s(0x1a1),d=this[s(0x1b9)][s(0x1bf)](),e=this['fsi']['pathFromApp']({'pathParts':[c,b[s(0x187)],paramCase(b[s(0x1a0)]),paramCase(b[s(0x1a0)])]}),f=this[s(0x1b9)][s(0x1bb)]();this[s(0x1b9)][s(0x195)](f,()=>{const t=s;typeof f['template'][t(0x1aa)]==='string'&&(f[t(0x19b)]['test']=f[t(0x19b)][t(0x1aa)]===t(0x194)?!![]:![],this[t(0x1b9)][t(0x19a)]('test',f[t(0x19b)][t(0x1aa)]));typeof f[t(0x19b)][t(0x19e)]===t(0x1c7)&&(f[t(0x19b)][t(0x19e)]=f[t(0x19b)][t(0x19e)]===t(0x194)?!![]:![],this[t(0x1b9)][t(0x19a)](t(0x19e),f[t(0x19b)][t(0x19e)]));typeof f['template']['js']===t(0x1c7)&&(f[t(0x19b)]['js']=f[t(0x19b)]['js']==='true'?!![]:![],this[t(0x1b9)]['setTemplate']('js',f['template']['js']));!f[t(0x1c5)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x1ac)](':')[0x1]:![],h=b['_']&&aliases[t(0x1ad)](g);h&&!this[t(0x1a4)](t(0x1cc))&&(Log[t(0x1a9)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x1b9)][t(0x1c8)]('ramda',{'cwd':d}));if(h&&!this['checkNpmPackage'](t(0x190))){Log[t(0x1a9)](t(0x199));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a65e[t(0x198)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x1a0)]),'camelCaseName':camelCase(b[t(0x1a0)]),'fileName':paramCase(b[t(0x1a0)]),'graphql':f[t(0x1ba)][t(0x18c)],'features':f['features'],'client':f[t(0x1ba)][t(0x1bc)],'api':f[t(0x1ba)][t(0x1cd)],'ssr':f[t(0x1ba)][t(0x1a2)],'test':f[t(0x1ba)][t(0x1aa)],'theme':f[t(0x1ba)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1c5)][t(0x1b2)]};f['features']?.[t(0x1ae)]||b[t(0x1ce)]?this[t(0x1b9)][t(0x19b)]({'srcPath':t(0x1c9),'destPath':e+t(0x1b7),'framework':t(0x190),'context':i,'config':f}):this[t(0x1b9)]['template']({'srcPath':'component/component.js','destPath':e+t(0x1b7),'framework':t(0x190),'context':i,'config':f});f[t(0x1ba)][t(0x1aa)]!==t(0x1a5)&&this[t(0x1b9)][t(0x19b)]({'srcPath':'test/test.js','destPath':e+t(0x1b1),'framework':t(0x190),'context':i,'config':f});f[t(0x19b)][t(0x19e)]&&(this[t(0x1b9)][t(0x19b)]({'srcPath':'template/template.css','destPath':e+t(0x18a),'context':Object[t(0x1c3)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this['fsi'][t(0x1a7)]({'filePath':e+'.'+f[t(0x1ba)]['js'],'content':'import\x20\x27./'+i[t(0x18f)]+'.'+f[t(0x1ba)]['css']+'\x27;'}));const j=b[t(0x187)]?'/'+b[t(0x187)]+'/':'/',k=''+c+j+i[t(0x18f)]+'/'+i[t(0x18f)];let l;if(f['engines']['ssr']===t(0x194)){const m=this[t(0x1b9)]['pathFromApp']({'pathParts':[t(0x1a8),t(0x1cb),t(0x18d),t(0x193)]});l=this[t(0x1b9)][t(0x1af)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1b9)]['pathFromApp']({'pathParts':[t(0x1a8),t(0x1cb),t(0x1bc),t(0x193)]});l=this[t(0x1b9)][t(0x1af)]({'pathParts':[n],'config':f});}f[t(0x1ba)]['client']==='react'?(f[t(0x1ba)]['js']===t(0x1c1)?this[t(0x1b9)][t(0x1a7)]({'filePath':l,'content':t(0x196)+i['className']+'\x20}\x20from\x20\x27'+k+t(0x1b4)}):this[t(0x1b9)][t(0x1a7)]({'filePath':l,'content':t(0x196)+i[t(0x1c0)]+t(0x19d)+k+'.'+f[t(0x1ba)]['js']+'\x27;\x0a'}),this[t(0x1b9)]['injectAtEndOfFile']({'filePath':l,'content':t(0x191)+i[t(0x1c0)]+t(0x18e)})):this[t(0x1b9)][t(0x18b)]({'filePath':l,'content':t(0x1b8)+k+'.'+f[t(0x1ba)]['js']+t(0x1b4)});});});
@@ -1 +1 @@
1
- const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=parseInt(f(0xe1))/0x1+parseInt(f(0xe6))/0x2+parseInt(f(0xe5))/0x3*(-parseInt(f(0xe8))/0x4)+-parseInt(f(0xde))/0x5+parseInt(f(0xef))/0x6*(parseInt(f(0xe2))/0x7)+-parseInt(f(0xdf))/0x8+-parseInt(f(0xed))/0x9*(parseInt(f(0xee))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x1fd93));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0xe9)]()[h(0xeb)](h(0xe3))[h(0xe9)]()[h(0xec)](a66a)[h(0xeb)](h(0xe3));});a66a();function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0xde;let f=c[d];return f;},a66d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a66i(0xe4),'validOpts':[],'description':a66i(0xea),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':[a66i(0xe7),'maka\x20g:hook\x20cool-hook']},function(){return null;});export default MakaGen;function a66c(){const j=['1108632iKKzzJ','apply','242972LZbBAU','66206jYLsQS','(((.+)+)+)+$','Maka!','155631GUFFqg','403218bXKOUd','maka\x20generate:api\x20Trucks','12MgFSps','toString','\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','search','constructor','170811uwRNnU','10iXJyrG','78RJmLqs','619475prKwsD'];a66c=function(){return j;};return a66c();}
1
+ const a66h=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=-parseInt(f(0x118))/0x1+parseInt(f(0x111))/0x2+-parseInt(f(0x114))/0x3*(-parseInt(f(0x121))/0x4)+-parseInt(f(0x112))/0x5+-parseInt(f(0x115))/0x6*(-parseInt(f(0x116))/0x7)+parseInt(f(0x11f))/0x8*(parseInt(f(0x122))/0x9)+parseInt(f(0x11a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x71c5e));function a66c(){const i=['4835240sAUgET','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','(((.+)+)+)+$','maka\x20generate:api\x20Trucks','search','19048xAqGSJ','maka','68GoKWGD','369ceSRpu','toString','Maka!','775978ltFuFm','27150XyYmqH','\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','24834MCQfZx','1218894LUyLRz','7jJYwCs','constructor','841565UQvghk','maka\x20g:hook\x20cool-hook'];a66c=function(){return i;};return a66c();}function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x111;let f=c[d];return f;},a66d(a,b);}const a66b=(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;};}()),a66a=a66b(this,function(){const g=a66d;return a66a[g(0x123)]()[g(0x11e)](g(0x11c))['toString']()[g(0x117)](a66a)[g(0x11e)](g(0x11c));});a66a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a66h(0x120),'shortDesc':a66h(0x124),'validOpts':[],'description':a66h(0x113),'usage':a66h(0x11b),'examples':[a66h(0x11d),a66h(0x119)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- function a67c(){const q=['tsx','29669880jsmAcS','imports','resourceName','dir','627546bObGrS','230348PtIpAA','import\x20\x27./methods','search','engines','apply','95VzKSib','maka\x20{generate,\x20g}:{method,\x20m}\x20name','(((.+)+)+)+$','error','template','method/method.js','create','36TOMdbE','77ajNLFX','mdg:validated-method','checkMeteorPackage','injectAtEndOfFile','maka\x20g:method\x20todos','startup','methods','warn','check\x20ddp-rate-limiter\x20mdg:validated-method','installMeteorPackage','1409535yHfJEL','-rpc-method\x27;','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','30PgkHLZ','fsi','pathFromApp','withValue','4318061nXYwvA','-rpc-method.','toString','288586nVnYDu','2548216xQrkUp','ddp-rate-limiter','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','3KqJKWD'];a67c=function(){return q;};return a67c();}function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0xd4;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(0xfc))/0x1*(parseInt(k(0xf8))/0x2)+parseInt(k(0xee))/0x3+parseInt(k(0xd7))/0x4*(parseInt(k(0xdc))/0x5)+-parseInt(k(0xd6))/0x6*(parseInt(k(0xe4))/0x7)+parseInt(k(0xf9))/0x8*(parseInt(k(0xe3))/0x9)+parseInt(k(0xf1))/0xa*(parseInt(k(0xf5))/0xb)+-parseInt(k(0xfe))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xc992f));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a67d;if(c){const e=c[l(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const m=a67d;return a67a[m(0xf7)]()['search'](m(0xde))[m(0xf7)]()['constructor'](a67a)[m(0xd9)](m(0xde));});a67a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0xe2)]({'name':'method','aliases':['m'],'usage':a67n(0xdd),'checkWhere':!![],'shortDesc':a67n(0xf0),'validOpts':[a67n(0xd5)],'examples':[a67n(0xe8)]},function(a,b){const o=a67n;try{const c=this[o(0xf2)]['getProjectConfig']();this['fsi'][o(0xf4)](c,async()=>{const p=o,d=paramCase(b[p(0xd4)]),f={'name':b[p(0xd4)],'fileName':d,'className':pascalCase(b[p(0xd4)]),'camelCase':camelCase(b[p(0xd4)]),'noRename':!![]};let g='js';c[p(0xda)]['js']===p(0xfd)&&(g='ts');const h=this[p(0xf2)][p(0xf3)]({});(!this[p(0xf2)][p(0xe6)]('check')||!this[p(0xf2)]['checkMeteorPackage'](p(0xfa))||!this[p(0xf2)][p(0xe6)](p(0xe5)))&&(Log[p(0xeb)](p(0xfb)),this['fsi'][p(0xed)](p(0xec),{'cwd':h}));this[p(0xf2)][p(0xe0)]({'srcPath':p(0xe1),'destPath':this[p(0xf2)][p(0xf3)]({'pathParts':[p(0xff),p(0xe9),b['appPathPrefix'],p(0xea),b['dir'],d+p(0xf6)+g]}),'context':f,'config':c});const i=b[p(0xd5)]?'/'+b[p(0xd5)]+'/':'/',j=this[p(0xf2)][p(0xf3)]({'pathParts':[p(0xff),p(0xe9),b['appPathPrefix'],'index.'+c['engines']['js']]});this['fsi'][p(0xe7)]({'filePath':j,'content':p(0xd8)+i+d+p(0xef)});});}catch(d){Log[o(0xdf)](d);}});
1
+ function a67c(){const p=['mdg:validated-method','installMeteorPackage','2582760OUzhUm','104175FcsuRN','appPathPrefix','startup','method','withValue','139674PQIfRF','pathFromApp','dir','10860jnmYJh','error','template','(((.+)+)+)+$','method/method.js','methods','788332AXiIJW','injectAtEndOfFile','fsi','2346337BUAzNp','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','create','8RMzMYS','engines','4GbHHqY','warn','maka\x20{generate,\x20g}:{method,\x20m}\x20name','4012002pUiZwY','-rpc-method.','590lEXFfU','resourceName','maka\x20g:method\x20todos','tsx','check','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','checkMeteorPackage','search','imports','import\x20\x27./methods','getProjectConfig'];a67c=function(){return p;};return a67c();}const a67m=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0x125))/0x1+parseInt(k(0x105))/0x2+-parseInt(k(0x128))/0x3*(-parseInt(k(0x10d))/0x4)+-parseInt(k(0x11f))/0x5+parseInt(k(0x110))/0x6+parseInt(k(0x108))/0x7*(parseInt(k(0x10b))/0x8)+parseInt(k(0x120))/0x9*(-parseInt(k(0x112))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x53751));const a67b=(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;};}()),a67a=a67b(this,function(){const l=a67d;return a67a['toString']()['search'](l(0x102))['toString']()['constructor'](a67a)[l(0x119)](l(0x102));});a67a();import{Generator}from'../generator.js';function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x101;let f=c[d];return f;},a67d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67m(0x10a)]({'name':a67m(0x123),'aliases':['m'],'usage':a67m(0x10f),'checkWhere':!![],'shortDesc':a67m(0x117),'validOpts':[a67m(0x127)],'examples':[a67m(0x114)]},function(a,b){const n=a67m;try{const c=this[n(0x107)][n(0x11c)]();this[n(0x107)][n(0x124)](c,async()=>{const o=n,d=paramCase(b[o(0x113)]),f={'name':b[o(0x113)],'fileName':d,'className':pascalCase(b[o(0x113)]),'camelCase':camelCase(b[o(0x113)]),'noRename':!![]};let g='js';c[o(0x10c)]['js']===o(0x115)&&(g='ts');const h=this['fsi'][o(0x126)]({});(!this['fsi']['checkMeteorPackage'](o(0x116))||!this[o(0x107)][o(0x118)]('ddp-rate-limiter')||!this[o(0x107)][o(0x118)](o(0x11d)))&&(Log[o(0x10e)](o(0x109)),this['fsi'][o(0x11e)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[o(0x107)][o(0x101)]({'srcPath':o(0x103),'destPath':this[o(0x107)][o(0x126)]({'pathParts':['imports',o(0x122),b[o(0x121)],o(0x104),b['dir'],d+o(0x111)+g]}),'context':f,'config':c});const i=b[o(0x127)]?'/'+b[o(0x127)]+'/':'/',j=this[o(0x107)][o(0x126)]({'pathParts':[o(0x11a),o(0x122),b[o(0x121)],'index.'+c['engines']['js']]});this[o(0x107)][o(0x106)]({'filePath':j,'content':o(0x11b)+i+d+'-rpc-method\x27;'});});}catch(d){Log[n(0x129)](d);}});
@@ -1 +1 @@
1
- const a68o=a68d;function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x7e;let f=c[d];return f;},a68d(a,b);}(function(a,b){const l=a68d,c=a();while(!![]){try{const d=parseInt(l(0x9b))/0x1*(parseInt(l(0xa0))/0x2)+parseInt(l(0x8b))/0x3*(parseInt(l(0x91))/0x4)+parseInt(l(0x83))/0x5+parseInt(l(0x97))/0x6*(-parseInt(l(0x94))/0x7)+parseInt(l(0x88))/0x8+-parseInt(l(0xab))/0x9+-parseInt(l(0xaa))/0xa*(parseInt(l(0xa8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x2b930));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0x7e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a[n(0xa6)]()['search']('(((.+)+)+)+$')[n(0xa6)]()['constructor'](a68a)[n(0x96)](n(0x9d));});a68a();import a68e from'path';import{Generator}from'../generator.js';function a68c(){const s=['855942jHTIaI','create','fsi','server','maka\x20g:package\x20todos:package','lib','4tXsySX','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','resourceName','3262TePQfF','theme','search','462CcCGsR','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','ssr','dir','54458juwcwG','tests/server','(((.+)+)+)+$','package','package/package.js','2ifRrRz','forEach','package.js','.js','getProjectConfig','noRename','toString','layout','4514103izSSEf','pathFromApp','10Giyoqy','2382678ZWoDwi','pathFromProject','hasOwnProperty','component','apply','engines','features','template','client','1418575oVNgZE','/package.js','packages','tests/client','pathFromAppWithNoReWrite','2127920GVbUXN','graphql','/client/'];a68c=function(){return s;};return a68c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68o(0x8c)]({'name':a68o(0x9e),'aliases':['p'],'usage':a68o(0x98),'shortDesc':a68o(0x92),'validOpts':['dir'],'examples':[a68o(0x8f)]},async function(a,b){const p=a68o,c=paramCase(b[p(0x93)]),d=this[p(0x8d)][p(0xa9)]({'pathParts':[p(0x85),b[p(0x9a)],c]}),e=this['fsi'][p(0x87)]({'pathParts':[p(0x85),b[p(0x9a)],c,p(0xa2)]}),f=this[p(0x8d)][p(0xa4)]();this[p(0x8d)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a68e['relative'](this[q(0x8d)][q(0xac)]({}),d),'cssCaseName':paramCase(b[q(0x93)]),'className':pascalCase(b[q(0x93)]),'camelCaseName':camelCase(b[q(0x93)]),'fileName':c,'client':f[q(0x7f)][q(0x82)],'graphql':f[q(0x7f)][q(0x89)],'ssr':f['engines'][q(0x99)],'isComponent':b[q(0xad)](q(0xae)),'isLayout':b['hasOwnProperty'](q(0xa7)),'isStore':b[q(0xad)]('store'),'features':f[q(0x80)],'noRename':!![],'theme':f['engines'][q(0x95)]};this[q(0x8d)][q(0x81)]({'srcPath':q(0x9f),'destPath':e,'context':g,'config':f}),g[q(0xa5)]=![];const h=d+q(0x8a)+c+q(0xa3);this[q(0x8d)]['template']({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0x90),q(0x8e),q(0x86),q(0x9c)];i[q(0xa1)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xa3);this[r(0x8d)][r(0x81)]({'srcPath':'package/'+j+r(0x84),'destPath':k,'context':g,'config':f});});});});
1
+ const a68n=a68d;(function(a,b){const l=a68d,c=a();while(!![]){try{const d=-parseInt(l(0x1b3))/0x1*(-parseInt(l(0x1bd))/0x2)+-parseInt(l(0x194))/0x3*(parseInt(l(0x1a0))/0x4)+-parseInt(l(0x1a9))/0x5*(-parseInt(l(0x1bc))/0x6)+parseInt(l(0x19c))/0x7+-parseInt(l(0x1a2))/0x8+-parseInt(l(0x1a3))/0x9*(parseInt(l(0x1b7))/0xa)+-parseInt(l(0x1be))/0xb*(-parseInt(l(0x1a7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0xe5cb3));const a68b=(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;};}()),a68a=a68b(this,function(){const m=a68d;return a68a[m(0x1b0)]()[m(0x1b8)](m(0x1a4))[m(0x1b0)]()['constructor'](a68a)[m(0x1b8)](m(0x1a4));});a68a();import a68e from'path';import{Generator}from'../generator.js';function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x18e;let f=c[d];return f;},a68d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68n(0x1a8)]({'name':a68n(0x1b2),'aliases':['p'],'usage':a68n(0x1b4),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const o=a68n,c=paramCase(b[o(0x18f)]),d=this[o(0x1b9)][o(0x196)]({'pathParts':[o(0x19e),b[o(0x191)],c]}),e=this['fsi'][o(0x1a5)]({'pathParts':['packages',b[o(0x191)],c,'package.js']}),f=this[o(0x1b9)][o(0x1ab)]();this[o(0x1b9)][o(0x1bf)](f,async()=>{const p=o,g={'name':paramCase(b[p(0x18f)]),'myPath':a68e[p(0x1ad)](this[p(0x1b9)][p(0x190)]({}),d),'cssCaseName':paramCase(b[p(0x18f)]),'className':pascalCase(b[p(0x18f)]),'camelCaseName':camelCase(b[p(0x18f)]),'fileName':c,'client':f['engines'][p(0x192)],'graphql':f[p(0x199)][p(0x1ac)],'ssr':f['engines'][p(0x1af)],'isComponent':b[p(0x1b1)](p(0x1aa)),'isLayout':b[p(0x1b1)](p(0x1b5)),'isStore':b['hasOwnProperty'](p(0x193)),'features':f[p(0x197)],'noRename':!![],'theme':f['engines'][p(0x19f)]};this[p(0x1b9)]['template']({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[p(0x19b)]=![];const h=d+p(0x195)+c+p(0x19d);this[p(0x1b9)][p(0x19a)]({'srcPath':p(0x1a1),'destPath':h,'context':g,'config':f});const i=[p(0x1a6),p(0x1ae),p(0x198),p(0x18e)];i[p(0x1ba)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x19d);this['fsi'][q(0x19a)]({'srcPath':q(0x1bb)+j+q(0x1b6),'destPath':k,'context':g,'config':f});});});});function a68c(){const r=['292038KBOBxf','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','layout','/package.js','50hNRAlb','search','fsi','forEach','package/','1179006oAKLrX','8pERgiY','4247903MENBmZ','withValue','tests/server','resourceName','pathFromProject','dir','client','store','9cwigoN','/client/','pathFromApp','features','tests/client','engines','template','noRename','11847885esvaoR','.js','packages','theme','2506892lEEUMO','template/template.js','5812264przldj','1202022KulxqY','(((.+)+)+)+$','pathFromAppWithNoReWrite','lib','36OBemdO','create','5hOdHSo','component','getProjectConfig','graphql','relative','server','ssr','toString','hasOwnProperty','package'];a68c=function(){return r;};return a68c();}
@@ -1 +1 @@
1
- const a69o=a69d;function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x8c;let f=c[d];return f;},a69d(a,b);}(function(a,b){const m=a69d,c=a();while(!![]){try{const d=parseInt(m(0xbd))/0x1+-parseInt(m(0xb2))/0x2*(-parseInt(m(0x8d))/0x3)+-parseInt(m(0x93))/0x4+-parseInt(m(0xa1))/0x5+-parseInt(m(0xa7))/0x6+-parseInt(m(0x98))/0x7*(parseInt(m(0x8e))/0x8)+parseInt(m(0x9b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x2c9f2));const a69b=(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;};}()),a69a=a69b(this,function(){const n=a69d;return a69a[n(0xc4)]()[n(0xd6)](n(0xa2))['toString']()[n(0xc5)](a69a)[n(0xd6)]('(((.+)+)+)+$');});a69a();import a69e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a69c(){const r=['maka\x20g:page\x20todos/todos-item','resourceName','.html','pathFromApp','getProjectConfig','template/template.html','root','injectAtBeginningOfFile','Generate\x20a\x20page.','.app-tests.js','257571ByDdKd','import\x20\x27./','graphql','vanilla','import\x20{\x20','rewriteDestinationPathForEngine','/imports/ui/pages','toString','constructor','Updating\x20npm\x20packages\x20...','tsx','injectAtEndOfFile','html','dir','component','string','engines','test','client','template','.js','hasOwnProperty','store','ssr','features','search','css','.css','ramda','withHook','3cWbLsC','441832xdUMHN','templates.js','withHooks','template/template.css','relative','595676AYajqY','hook/hook.js','create','imports','\x20}\x20from\x20\x27','35OPcHmX','component/component.js','assign','6050295BViHRz','layout','fsi','\x27;\x0a','withValue','startup','1190935DkBmcS','(((.+)+)+)+$','\x20};\x0a','page','warn','theme','1086018HjMudP','react','none','fileName','export\x20{\x20','className','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','setTemplate','true','import\x20\x27','test/test.js','194396yynCfO'];a69c=function(){return r;};return a69c();}Generator[a69o(0x95)]({'name':a69o(0xa4),'aliases':aliases,'usage':a69o(0xad),'shortDesc':a69o(0xbb),'validOpts':[a69o(0xca),a69o(0x8c)],'examples':[a69o(0xb3)]},function(a,b){const p=a69o,c=p(0xc3),d=this[p(0x9d)]['pathFromApp'](b),e=this[p(0x9d)][p(0xb6)]({'pathParts':[c,b[p(0xca)],paramCase(b[p(0xb4)]),paramCase(b['resourceName'])]}),f=this['fsi'][p(0xb7)]();this[p(0x9d)][p(0x9f)](f,()=>{const q=p;typeof f[q(0xd0)][q(0xc9)]===q(0xcc)&&(f['template'][q(0xc9)]=f['template']['html']==='true'?!![]:![],this['fsi'][q(0xae)]('html',f[q(0xd0)]['html']));typeof f[q(0xd0)][q(0xce)]==='string'&&(f[q(0xd0)][q(0xce)]=f[q(0xd0)]['test']===q(0xaf)?!![]:![],this[q(0x9d)][q(0xae)](q(0xce),f[q(0xd0)][q(0xce)]));typeof f[q(0xd0)]['css']===q(0xcc)&&(f[q(0xd0)][q(0xd7)]=f['template'][q(0xd7)]==='true'?!![]:![],this[q(0x9d)][q(0xae)](q(0xd7),f[q(0xd0)][q(0xd7)]));typeof f[q(0xd0)]['js']===q(0xcc)&&(f['template']['js']=f['template']['js']===q(0xaf)?!![]:![],this['fsi'][q(0xae)]('js',f[q(0xd0)]['js']));!f[q(0xd5)]&&(f['features']={});!b[q(0xb9)]&&!this['fsi']['checkNpmPackage'](q(0xd9))&&(Log[q(0xa5)](q(0xc6)),this[q(0x9d)]['installNpmPackage'](q(0xd9),{'cwd':d}));const g={'name':pascalCase(b[q(0xb4)]),'myPath':a69e[q(0x92)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b[q(0xb4)]),'className':pascalCase(b[q(0xb4)]),'camelCaseName':camelCase(b[q(0xb4)]),'fileName':paramCase(b[q(0xb4)]),'graphql':f[q(0xcd)][q(0xbf)],'features':f[q(0xd5)],'client':f[q(0xcd)][q(0xcf)],'api':f['engines']['api'],'ssr':f[q(0xcd)]['ssr'],'isStore':b[q(0xd2)](q(0xd3)),'isComponent':b[q(0xd2)](q(0xcb)),'isLayout':b[q(0xd2)](q(0x9c)),'withTranslations':f[q(0xd5)]['withTranslations'],'test':f[q(0xcd)][q(0xce)],'theme':f[q(0xcd)][q(0xa6)]};f[q(0xd0)][q(0xc9)]&&this[q(0x9d)][q(0xd0)]({'srcPath':q(0xb8),'destPath':e+q(0xb5),'context':g,'config':f});f[q(0xd5)]?.[q(0x90)]||b[q(0x8c)]?this[q(0x9d)][q(0xd0)]({'srcPath':q(0x94),'destPath':e+'.js','framework':q(0xa8),'context':g,'config':f}):this['fsi'][q(0xd0)]({'srcPath':q(0x99),'destPath':e+q(0xd1),'framework':q(0xa8),'context':g,'config':f});f['engines'][q(0xce)]!==q(0xa9)&&this[q(0x9d)][q(0xd0)]({'srcPath':q(0xb1),'destPath':e+q(0xbc),'framework':q(0xa8),'context':g,'config':f});f[q(0xd0)][q(0xd7)]&&this[q(0x9d)][q(0xd0)]({'srcPath':q(0x91),'destPath':e+q(0xd8),'context':Object[q(0x9a)]({},g,{'className':paramCase(b[q(0xb4)])}),'config':f});f[q(0xcd)][q(0xcf)]!==q(0xa8)&&f['engines'][q(0xcf)]!==q(0xc0)?(f[q(0xd0)]['css']&&this[q(0x9d)][q(0xba)]({'filePath':e+'.'+f[q(0xcd)]['js'],'content':q(0xbe)+g['fileName']+'.'+f[q(0xcd)][q(0xc9)]+q(0x9e)+q(0xbe)+g[q(0xaa)]+'.'+f[q(0xcd)][q(0xd7)]+'\x27;'}),!f[q(0xd0)][q(0xd7)]&&this['fsi'][q(0xba)]({'filePath':e+'.'+f[q(0xcd)]['js'],'content':q(0xbe)+g['fileName']+'.'+f[q(0xcd)][q(0xc9)]+'\x27;'})):f[q(0xd0)][q(0xd7)]&&this[q(0x9d)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0xcd)]['js'],'content':'import\x20\x27./'+g[q(0xaa)]+'.'+f[q(0xcd)][q(0xd7)]+'\x27;'});const h=b['dir']?'/'+b[q(0xca)]+'/':'/',i=''+c+h+g['fileName']+'/'+g[q(0xaa)];let j;if(f[q(0xcd)][q(0xd4)]===q(0xaf)){const k=this['fsi'][q(0xb6)]({'pathParts':[q(0x96),q(0xa0),'lib',q(0x8f)]});j=this[q(0x9d)][q(0xc2)]({'pathParts':[k],'config':f});}else{const l=this['fsi'][q(0xb6)]({'pathParts':[q(0x96),'startup',q(0xcf),'templates.js']});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f['engines'][q(0xcf)]===q(0xa8)?(f[q(0xcd)]['js']===q(0xc7)?this['fsi']['injectAtBeginningOfFile']({'filePath':j,'content':q(0xc1)+g['className']+'\x20}\x20from\x20\x27'+i+'\x27;\x0a'}):this[q(0x9d)][q(0xba)]({'filePath':j,'content':q(0xc1)+g['className']+q(0x97)+i+'.'+f['engines']['js']+'\x27;\x0a'}),this['fsi']['injectAtEndOfFile']({'filePath':j,'content':q(0xab)+g[q(0xac)]+q(0xa3)})):this[q(0x9d)][q(0xc8)]({'filePath':j,'content':q(0xb0)+i+'.'+f[q(0xcd)]['js']+q(0x9e)});});});
1
+ const a69p=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=-parseInt(m(0x115))/0x1+-parseInt(m(0x121))/0x2*(parseInt(m(0x114))/0x3)+parseInt(m(0x11c))/0x4+parseInt(m(0x130))/0x5*(-parseInt(m(0x12b))/0x6)+parseInt(m(0x135))/0x7*(parseInt(m(0x12e))/0x8)+-parseInt(m(0x13d))/0x9*(-parseInt(m(0x12c))/0xa)+parseInt(m(0x122))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x2a078));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a69d;if(c){const e=c[n(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const o=a69d;return a69a[o(0x150)]()[o(0x10a)](o(0x11d))[o(0x150)]()[o(0x153)](a69a)[o(0x10a)]('(((.+)+)+)+$');});a69a();import a69e from'path';import{Generator}from'../generator.js';function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x109;let f=c[d];return f;},a69d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a69c(){const s=['graphql','injectAtEndOfFile','api','4hybViz','157773OoiAep','test','string','import\x20\x27','fileName','layout','withTranslations','.js','\x20}\x20from\x20\x27','11478fUtMcL','2676790wWKUsr','none','3208oRLnAK','import\x20\x27./','510oCQJbK','theme','resourceName','react','import\x20{\x20','5397aEancX','warn','pathFromApp','apply','relative','className','getProjectConfig','template','9YmIYYr','withValue','engines','/imports/ui/pages','client','injectAtBeginningOfFile','withHook','templates.js','dir','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','features','withHooks','imports','.css','hasOwnProperty','checkNpmPackage','rewriteDestinationPathForEngine','Updating\x20npm\x20packages\x20...','.app-tests.js','toString','page','store','constructor','setTemplate','search','pathFromProject','startup','template/template.html','test/test.js','true','css','hook/hook.js','html','\x27;\x0a','502206kjEOoG','164292bQDZvF','component','export\x20{\x20','assign','ramda','fsi','tsx','1100724GDymFr','(((.+)+)+)+$'];a69c=function(){return s;};return a69c();}const aliases=['p'];Generator['create']({'name':a69p(0x151),'aliases':aliases,'usage':a69p(0x146),'shortDesc':'Generate\x20a\x20page.','validOpts':[a69p(0x145),a69p(0x143)],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a69p,c=q(0x140),d=this[q(0x11a)][q(0x137)](b),e=this[q(0x11a)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[q(0x132)]),paramCase(b['resourceName'])]}),f=this[q(0x11a)][q(0x13b)]();this['fsi'][q(0x13e)](f,()=>{const r=q;typeof f['template'][r(0x112)]===r(0x124)&&(f[r(0x13c)][r(0x112)]=f[r(0x13c)]['html']===r(0x10f)?!![]:![],this[r(0x11a)][r(0x109)](r(0x112),f[r(0x13c)][r(0x112)]));typeof f[r(0x13c)][r(0x123)]===r(0x124)&&(f[r(0x13c)][r(0x123)]=f[r(0x13c)][r(0x123)]===r(0x10f)?!![]:![],this['fsi']['setTemplate'](r(0x123),f['template'][r(0x123)]));typeof f['template'][r(0x110)]==='string'&&(f['template']['css']=f['template'][r(0x110)]===r(0x10f)?!![]:![],this[r(0x11a)]['setTemplate'](r(0x110),f[r(0x13c)]['css']));typeof f['template']['js']===r(0x124)&&(f['template']['js']=f[r(0x13c)]['js']===r(0x10f)?!![]:![],this[r(0x11a)][r(0x109)]('js',f['template']['js']));!f[r(0x147)]&&(f['features']={});!b['root']&&!this[r(0x11a)][r(0x14c)](r(0x119))&&(Log[r(0x136)](r(0x14e)),this[r(0x11a)]['installNpmPackage'](r(0x119),{'cwd':d}));const g={'name':pascalCase(b[r(0x132)]),'myPath':a69e[r(0x139)](this[r(0x11a)][r(0x10b)]({}),e),'cssCaseName':paramCase(b[r(0x132)]),'className':pascalCase(b[r(0x132)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x132)]),'graphql':f[r(0x13f)][r(0x11e)],'features':f[r(0x147)],'client':f[r(0x13f)][r(0x141)],'api':f[r(0x13f)][r(0x120)],'ssr':f[r(0x13f)]['ssr'],'isStore':b[r(0x14b)](r(0x152)),'isComponent':b[r(0x14b)](r(0x116)),'isLayout':b[r(0x14b)](r(0x127)),'withTranslations':f[r(0x147)][r(0x128)],'test':f[r(0x13f)]['test'],'theme':f['engines'][r(0x131)]};f['template'][r(0x112)]&&this[r(0x11a)][r(0x13c)]({'srcPath':r(0x10d),'destPath':e+'.html','context':g,'config':f});f[r(0x147)]?.[r(0x148)]||b['withHook']?this[r(0x11a)]['template']({'srcPath':r(0x111),'destPath':e+r(0x129),'framework':r(0x133),'context':g,'config':f}):this[r(0x11a)][r(0x13c)]({'srcPath':'component/component.js','destPath':e+r(0x129),'framework':'react','context':g,'config':f});f[r(0x13f)]['test']!==r(0x12d)&&this[r(0x11a)][r(0x13c)]({'srcPath':r(0x10e),'destPath':e+r(0x14f),'framework':r(0x133),'context':g,'config':f});f[r(0x13c)][r(0x110)]&&this[r(0x11a)]['template']({'srcPath':'template/template.css','destPath':e+r(0x14a),'context':Object[r(0x118)]({},g,{'className':paramCase(b[r(0x132)])}),'config':f});f['engines'][r(0x141)]!==r(0x133)&&f['engines'][r(0x141)]!=='vanilla'?(f['template'][r(0x110)]&&this[r(0x11a)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x13f)]['js'],'content':r(0x12f)+g[r(0x126)]+'.'+f[r(0x13f)][r(0x112)]+r(0x113)+r(0x12f)+g['fileName']+'.'+f[r(0x13f)]['css']+'\x27;'}),!f['template'][r(0x110)]&&this[r(0x11a)]['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[r(0x126)]+'.'+f['engines'][r(0x112)]+'\x27;'})):f[r(0x13c)]['css']&&this[r(0x11a)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x13f)]['js'],'content':r(0x12f)+g['fileName']+'.'+f[r(0x13f)][r(0x110)]+'\x27;'});const h=b[r(0x145)]?'/'+b[r(0x145)]+'/':'/',i=''+c+h+g[r(0x126)]+'/'+g[r(0x126)];let j;if(f['engines']['ssr']===r(0x10f)){const k=this[r(0x11a)][r(0x137)]({'pathParts':[r(0x149),r(0x10c),'lib',r(0x144)]});j=this[r(0x11a)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this[r(0x11a)][r(0x137)]({'pathParts':[r(0x149),r(0x10c),r(0x141),r(0x144)]});j=this[r(0x11a)][r(0x14d)]({'pathParts':[l],'config':f});}f[r(0x13f)]['client']===r(0x133)?(f[r(0x13f)]['js']===r(0x11b)?this[r(0x11a)][r(0x142)]({'filePath':j,'content':r(0x134)+g[r(0x13a)]+r(0x12a)+i+r(0x113)}):this[r(0x11a)][r(0x142)]({'filePath':j,'content':'import\x20{\x20'+g[r(0x13a)]+r(0x12a)+i+'.'+f[r(0x13f)]['js']+r(0x113)}),this[r(0x11a)][r(0x11f)]({'filePath':j,'content':r(0x117)+g[r(0x13a)]+'\x20};\x0a'})):this[r(0x11a)]['injectAtEndOfFile']({'filePath':j,'content':r(0x125)+i+'.'+f[r(0x13f)]['js']+'\x27;\x0a'});});});