@maka/maka-cli 4.3.31 → 4.4.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 +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/build/_index.js +1 -1
  17. package/bundle/obf/src/commands/build/build.js +1 -1
  18. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/create.js +1 -1
  20. package/bundle/obf/src/commands/debug.js +1 -1
  21. package/bundle/obf/src/commands/deploy.js +1 -1
  22. package/bundle/obf/src/commands/game/_index.js +1 -1
  23. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/game/play.command.js +1 -1
  25. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/generate.js +1 -1
  29. package/bundle/obf/src/commands/get/_index.js +1 -1
  30. package/bundle/obf/src/commands/get/get.command.js +1 -1
  31. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/help.js +1 -1
  35. package/bundle/obf/src/commands/install.js +1 -1
  36. package/bundle/obf/src/commands/jsdoc.js +1 -1
  37. package/bundle/obf/src/commands/lint.js +1 -1
  38. package/bundle/obf/src/commands/login.js +1 -1
  39. package/bundle/obf/src/commands/logout.js +1 -1
  40. package/bundle/obf/src/commands/logs.js +1 -1
  41. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  42. package/bundle/obf/src/commands/murder.js +1 -1
  43. package/bundle/obf/src/commands/proxy.js +1 -1
  44. package/bundle/obf/src/commands/reconfig.js +1 -1
  45. package/bundle/obf/src/commands/run/_index.js +1 -1
  46. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  47. package/bundle/obf/src/commands/run/run.command.js +1 -1
  48. package/bundle/obf/src/commands/set/_index.js +1 -1
  49. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  50. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  51. package/bundle/obf/src/commands/set/set.command.js +1 -1
  52. package/bundle/obf/src/commands/ssh.js +1 -1
  53. package/bundle/obf/src/commands/ssl.js +1 -1
  54. package/bundle/obf/src/commands/test.js +1 -1
  55. package/bundle/obf/src/commands/version.js +1 -1
  56. package/bundle/obf/src/error.js +1 -1
  57. package/bundle/obf/src/generator.js +1 -1
  58. package/bundle/obf/src/generators/_index.js +1 -1
  59. package/bundle/obf/src/generators/api.js +1 -1
  60. package/bundle/obf/src/generators/collection.js +1 -1
  61. package/bundle/obf/src/generators/component.js +1 -1
  62. package/bundle/obf/src/generators/config.js +1 -1
  63. package/bundle/obf/src/generators/dbc.js +1 -1
  64. package/bundle/obf/src/generators/dockerfile.js +1 -1
  65. package/bundle/obf/src/generators/hook.js +1 -1
  66. package/bundle/obf/src/generators/kit.js +1 -1
  67. package/bundle/obf/src/generators/layout.js +1 -1
  68. package/bundle/obf/src/generators/maka.gen.js +1 -1
  69. package/bundle/obf/src/generators/methods.js +1 -1
  70. package/bundle/obf/src/generators/package.js +1 -1
  71. package/bundle/obf/src/generators/page.js +1 -1
  72. package/bundle/obf/src/generators/publish.js +1 -1
  73. package/bundle/obf/src/generators/route.js +1 -1
  74. package/bundle/obf/src/generators/service.js +1 -1
  75. package/bundle/obf/src/generators/services/_index.js +1 -1
  76. package/bundle/obf/src/generators/services/openssl.js +1 -1
  77. package/bundle/obf/src/generators/services/translation.js +1 -1
  78. package/bundle/obf/src/maka.js +1 -1
  79. package/bundle/obf/src/tool.js +1 -1
  80. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  81. package/bundle/obf/src/tools/actions/actions.test.js +1 -1
  82. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  83. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  84. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  85. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  86. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  87. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  88. package/bundle/obf/src/tools/https/https.class.js +1 -1
  89. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  90. package/bundle/obf/src/tools/log/log.class.js +1 -1
  91. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  92. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  93. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  94. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  95. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  96. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  97. package/package.json +1 -1
@@ -1 +1 @@
1
- const a55s=a55d;(function(a,b){const p=a55d,c=a();while(!![]){try{const d=-parseInt(p(0xf8))/0x1+-parseInt(p(0x11b))/0x2*(-parseInt(p(0xd3))/0x3)+parseInt(p(0x121))/0x4*(parseInt(p(0xfc))/0x5)+parseInt(p(0x104))/0x6*(parseInt(p(0xe4))/0x7)+-parseInt(p(0xfd))/0x8*(-parseInt(p(0x100))/0x9)+parseInt(p(0x122))/0xa+-parseInt(p(0xf9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x89a03));const a55b=(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;};}()),a55a=a55b(this,function(){const q=a55d;return a55a[q(0xf2)]()[q(0xdf)]('(((.+)+)+)+$')[q(0xf2)]()[q(0x10f)](a55a)['search'](q(0xde));});a55a();import a55e from'path';function a55d(a,b){const c=a55c();return a55d=function(d,e){d=d-0xc0;let f=c[d];return f;},a55d(a,b);}import a55f from'cli-table';import{paramCase}from'change-case';import a55g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const r=a55d,c=process[r(0x114)]();let d=null;try{process[r(0x11e)](a),d=b();}finally{process[r(0x11e)](c);}return d;}export class Generator extends Tool{[a55s(0x11c)];[a55s(0xef)];constructor(a,b){const t=a55s;super();if(!a)throw new Error(t(0xd9));if(!a['name'])throw new Error(t(0x11f));if(typeof b!==t(0xd6))throw new Error(t(0xf6));this['_generators']=[],this[t(0x11c)]=Object['assign']({},a),this[t(0xe1)]=this['options'][t(0xe1)],this[t(0xfb)]=b[t(0xd1)](this);}static['create'](a,b,c){const u=a55s;if(!a)throw new Error(u(0xff));if(typeof b!==u(0xd6))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const d=new Generator(a,b);return c=c||a55g,Object[u(0xd0)](d,{'parent':c?.[u(0x11c)]?.[u(0xe1)]}),c[u(0x115)](d),d;}[a55s(0x115)](a){const v=a55s;if(!(a instanceof Generator))throw new Error(v(0x117));this[v(0xef)][v(0x102)](a);}['findGenerator'](a){const w=a55s,b=this['_generators'][w(0xd2)](c=>c[w(0xc7)](a));return b;}async[a55s(0x118)](a,b){const x=a55s,c=this[x(0xc4)](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.[x(0x11d)]||'',f=Object[x(0xe3)](b),g=await this[x(0xd7)]['getPro']();!g&&(Log[x(0xec)](x(0xcb)),process['exit'](0x1));const h=!g?.[x(0xe6)]['includes'](x(0xe8))&&!g?.[x(0xe6)][x(0xcf)]('domainLicense'),i=g?.[x(0xea)]['includes'](d)||g?.[x(0xea)][x(0xcf)](e);if(i&&h)throw'To\x20use\x20this\x20generator,\x20\x22'+d+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(f[x(0xc1)]>0x0){const j=g?.['proFlags']['filter'](k=>f[x(0xcf)](k));if(j&&j[x(0xc1)]>0x0&&h)throw x(0x123)+j?.[x(0x106)](',\x20')+x(0x10b);}}}async[a55s(0xda)](a,b){const y=a55s,{usage:usage='',description:description='',examples:examples=[],shortDesc:c}=this[y(0x11c)];try{await this['validateMakaSubscription'](a,b);}catch(f){Log['error'](f),process[y(0xed)](0x1);}const d=a[y(0x10d)]();b[y(0x10c)]=d[0x0];try{if((a[0x0]===_prevGen||a[y(0xc1)]===0x0)&&b[y(0xc6)])throw new UsageError();if(this[y(0x11c)][y(0xf1)]){const g=this[y(0xeb)]();if(!g)throw new MustBeInProjectError();}if(this[y(0x11c)][y(0x11a)]){const h=this[y(0xd4)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[y(0x11c)][y(0xcd)]===y(0xc2)){if(a[y(0xc1)]<this[y(0x11c)][y(0xcd)]){Log[y(0xec)](y(0xf0));throw new UsageError();}}if(typeof this[y(0x11c)][y(0xe7)]==='number'){if(a['length']>this[y(0x11c)][y(0xe7)]){Log[y(0xec)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[y(0x11c)][y(0xe9)]===y(0xc2)){if(Object['keys'](b)['length']<this[y(0x11c)]['minOptsLength']){Log[y(0xec)](y(0xc8));throw new UsageError();}}if(typeof this[y(0x11c)][y(0xd5)]==='number'){if(Object[y(0xe3)](b)[y(0xc1)]>=this['options'][y(0xd5)]){Log[y(0xec)]('Too\x20many\x20options');throw new UsageError();}}this['validateParams'](a,b,this[y(0x11c)]);if(!b['resourceName']&&!this['options'][y(0xdd)]){Log[y(0xec)](y(0x10e));throw new UsageError();}_prevGen=a[0x0];}catch(i){Log['usage'](description,examples,usage,c);if(i instanceof UsageError)this[y(0xef)]['length']>0x0&&b[y(0xc6)]&&(Log['notice'](y(0xcc)),this[y(0xe2)](this[y(0xef)]));else{if(i instanceof MustBeInProjectError)Log['error'](y(0xc0));else{if(i instanceof NoMeteorFoundError)Log[y(0xec)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[y(0xee)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(i instanceof NoMeteorAppFoundError)Log[y(0xec)](y(0x110));else throw i;}}}process[y(0xed)](0x1);}return new Promise(j=>{const z=y;inside(b[z(0x114)],async()=>{const A=z;try{if(!b[A(0x119)]&&!this[A(0xd7)][A(0xdc)]())throw new MustBeInProjectError();const k=b[A(0x10c)]?.[A(0x105)](/\\/g,'/')[A(0x112)]('/');!b[A(0x107)]&&(k?.[A(0xc1)]>0x1?(b[A(0x10c)]=k[A(0x120)](),d[0x0]=b[A(0x10c)],b[A(0x107)]=k[A(0xdb)](l=>{return paramCase(l);})[A(0x106)](a55e[A(0x103)])):b[A(0x107)]='');if(this[A(0x11c)][A(0xf4)]){if(!b[A(0x109)]){const m={'type':A(0xf3),'name':A(0x108),'message':'Location','choices':[{'name':A(0x101),'value':A(0xca)},{'name':A(0xd8),'value':'server'},{'name':A(0xce),'value':'both'}]},{colLocAnswer:n}=await Actions[A(0x11c)](m);n?b[A(0x109)]=n:b[A(0x109)]=A(0x10a);}const l=[A(0x10a),A(0xca),A(0x116)];if(!l['includes'](b[A(0x109)])){Log[A(0xec)](A(0xfa));throw new UsageError();}switch(b[A(0x109)]){case A(0x10a):b[A(0xc3)]=A(0xe0);break;case A(0x116):b['appPathPrefix']=A(0x116);break;case A(0xca):b['appPathPrefix']=A(0xca);break;default:b[A(0xc3)]='';}}j(this[A(0xfb)][A(0xfe)](this,d,b));}catch(o){console[A(0xec)](o);}});});}[a55s(0x111)](){const B=a55s;this['tableList'](this[B(0xef)]);}[a55s(0xe2)](a){const C=a55s,b=new a55f({});b[C(0x102)]([C(0xe5),C(0xf7),'Description']),a[C(0x113)]()[C(0xc9)](c=>{const D=C;b[D(0x102)]([c[D(0xe1)],c['aliases'](),c[D(0xc5)]()]);}),Log[C(0xf5)](b[C(0xf2)]());}}function a55c(){const E=['mustBeInMakaProject','toString','list','checkWhere','bright','Generator\x20requires\x20a\x20handler\x20function','Alias','786943LPGcNz','6448629dtpGvX','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','_handler','15tqrfVo','2303632BOJuRX','call','Generator.create\x20requires\x20some\x20options!','9bMTpVH','Client','push','sep','6nbsOMc','replace','join','dir','colLocAnswer','where','both','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','resourceName','slice','No\x20resource\x20name\x20specified','constructor','There\x20is\x20no\x20Meteor\x20application\x20here','listGenerators','split','sort','cwd','addGenerator','server','addGenerator\x20requires\x20a\x20Generator\x20instance','validateMakaSubscription','root','mustHaveMeteorInstalled','46cFHgoa','options','parent','chdir','Generator\x20requires\x20a\x20name','pop','348692GPhrLa','7188050QOhIQr','To\x20use\x20these\x20pro\x20flags,\x20\x22','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','length','number','appPathPrefix','findGenerator','shortDesc','help','match','Too\x20few\x20options','forEach','client','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','Generators:','minArgLength','Both','includes','assign','bind','find','78438NsdBOm','validateMeteorInstall','maxOptsLength','function','fsi','Server','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','invoke','map','findProjectDirectory','noResource','(((.+)+)+)+$','search','lib','name','tableList','keys','470827MarnSt','Name','roles','maxArgLength','singleLicense','minOptsLength','proGenerators','validateMakaProject','error','exit','notice','_generators','Too\x20few\x20arguments'];a55c=function(){return E;};return a55c();}
1
+ const a55t=a55d;function a55c(){const F=['Too\x20many\x20arguments','To\x20use\x20this\x20generator,\x20\x22','11RXZlxg','Generator.create\x20requires\x20a\x20handler\x20function!','list','40637990nbEJiF','_generators','number','Location','Too\x20few\x20options','validateMakaProject','maxOptsLength','find','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','singleLicense','Too\x20many\x20options','bright','shortDesc','name','server','slice','validateMakaSubscription','call','push','4711145pHOqkc','filter','toString','split','keys','No\x20resource\x20name\x20specified','Please\x20run\x20\x22maka\x20install\x20meteor\x22','cwd','bind','domainLicense','dir','Server','14847Rxisqa','42633ogMStC','1156506JLfqWH','replace','join','appPathPrefix','addGenerator\x20requires\x20a\x20Generator\x20instance','Alias','help','assign','1752PyfURv','proFlags','mustHaveMeteorInstalled','map','resourceName','exit','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','findProjectDirectory','includes','function','getPro','where','Name','_handler','error','client','pop','apply','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','forEach','sort','2298dSeIdM','tableList','length','search','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','To\x20use\x20these\x20pro\x20flags,\x20\x22','options','342381gEWtQo','listGenerators','notice','maxArgLength','parent','both','4NJBZXy','proGenerators','minOptsLength','Too\x20few\x20arguments','1164339BRlblj','colLocAnswer','chdir','checkWhere','roles','(((.+)+)+)+$','minArgLength','usage','aliases','Generators:','addGenerator','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'];a55c=function(){return F;};return a55c();}(function(a,b){const p=a55d,c=a();while(!![]){try{const d=-parseInt(p(0xeb))/0x1+-parseInt(p(0xc7))/0x2+-parseInt(p(0xf5))/0x3*(-parseInt(p(0xf1))/0x4)+-parseInt(p(0x119))/0x5+parseInt(p(0xe4))/0x6*(-parseInt(p(0x125))/0x7)+parseInt(p(0xcf))/0x8*(-parseInt(p(0xc6))/0x9)+parseInt(p(0x106))/0xa*(parseInt(p(0x103))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0xb47e7));const a55b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a55d;if(c){const e=c[q(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){const r=a55d;return a55a[r(0x11b)]()['search'](r(0xfa))[r(0x11b)]()['constructor'](a55a)[r(0xe7)]('(((.+)+)+)+$');});a55a();import a55e from'path';import a55f from'cli-table';function a55d(a,b){const c=a55c();return a55d=function(d,e){d=d-0xc6;let f=c[d];return f;},a55d(a,b);}import{paramCase}from'change-case';import a55g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const s=a55d,c=process['cwd']();let d=null;try{process[s(0xf7)](a),d=b();}finally{process[s(0xf7)](c);}return d;}export class Generator extends Tool{[a55t(0xea)];[a55t(0x107)];constructor(a,b){const u=a55t;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[u(0x113)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==u(0xd8))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[u(0x107)]=[],this[u(0xea)]=Object['assign']({},a),this[u(0x113)]=this['options'][u(0x113)],this[u(0xdc)]=b[u(0x121)](this);}static['create'](a,b,c){const v=a55t;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==v(0xd8))throw new Error(v(0x104));const d=new Generator(a,b);return c=c||a55g,Object[v(0xce)](d,{'parent':c?.[v(0xea)]?.[v(0x113)]}),c[v(0xff)](d),d;}[a55t(0xff)](a){const w=a55t;if(!(a instanceof Generator))throw new Error(w(0xcb));this[w(0x107)][w(0x118)](a);}['findGenerator'](a){const x=a55t,b=this[x(0x107)][x(0x10d)](c=>c['match'](a));return b;}async['validateMakaSubscription'](a,b){const y=a55t,c=this['findGenerator'](a[0x0]);if(c){const d=c?.[y(0x113)]||a[0x0],e=c?.[y(0xef)]||'',f=Object[y(0x11d)](b),g=await this['fsi'][y(0xd9)]();!g&&(Log[y(0xdd)](y(0x100)),process[y(0xd4)](0x1));const h=!g?.[y(0xf9)][y(0xd7)](y(0x10f))&&!g?.[y(0xf9)]['includes'](y(0x122)),i=g?.[y(0xf2)][y(0xd7)](d)||g?.[y(0xf2)]['includes'](e);if(i&&h)throw y(0x102)+d+y(0xd5);if(f[y(0xe6)]>0x0){const j=g?.[y(0xd0)][y(0x11a)](k=>f[y(0xd7)](k));if(j&&j[y(0xe6)]>0x0&&h)throw y(0xe9)+j?.[y(0xc9)](',\x20')+y(0xd5);}}}async['invoke'](a,b){const z=a55t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c}=this[z(0xea)];try{await this[z(0x116)](a,b);}catch(f){Log['error'](f),process[z(0xd4)](0x1);}const d=a[z(0x115)]();b['resourceName']=d[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b['help'])throw new UsageError();if(this[z(0xea)]['mustBeInMakaProject']){const g=this[z(0x10b)]();if(!g)throw new MustBeInProjectError();}if(this[z(0xea)][z(0xd1)]){const h=this['validateMeteorInstall']();if(!h)throw new NoMeteorFoundError();}if(typeof this['options'][z(0xfb)]==='number'){if(a[z(0xe6)]<this[z(0xea)][z(0xfb)]){Log[z(0xdd)](z(0xf4));throw new UsageError();}}if(typeof this[z(0xea)][z(0xee)]==='number'){if(a[z(0xe6)]>this[z(0xea)][z(0xee)]){Log[z(0xdd)](z(0x101));throw new UsageError();}}if(typeof this['options'][z(0xf3)]===z(0x108)){if(Object['keys'](b)[z(0xe6)]<this[z(0xea)][z(0xf3)]){Log['error'](z(0x10a));throw new UsageError();}}if(typeof this[z(0xea)]['maxOptsLength']===z(0x108)){if(Object['keys'](b)[z(0xe6)]>=this[z(0xea)][z(0x10c)]){Log['error'](z(0x110));throw new UsageError();}}this['validateParams'](a,b,this[z(0xea)]);if(!b[z(0xd3)]&&!this[z(0xea)]['noResource']){Log[z(0xdd)](z(0x11e));throw new UsageError();}_prevGen=a[0x0];}catch(i){Log[z(0xfc)](description,examples,usage,c);if(i instanceof UsageError)this['_generators']['length']>0x0&&b[z(0xcd)]&&(Log[z(0xed)](z(0xfe)),this[z(0xe5)](this[z(0x107)]));else{if(i instanceof MustBeInProjectError)Log[z(0xdd)](z(0xe1));else{if(i instanceof NoMeteorFoundError)Log[z(0xdd)](z(0x10e)),Log['notice'](z(0x11f));else{if(i instanceof NoMeteorAppFoundError)Log[z(0xdd)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw i;}}}process['exit'](0x1);}return new Promise(j=>{const A=z;inside(b[A(0x120)],async()=>{const B=A;try{if(!b['root']&&!this['fsi'][B(0xd6)]())throw new MustBeInProjectError();const k=b['resourceName']?.[B(0xc8)](/\\/g,'/')[B(0x11c)]('/');!b[B(0x123)]&&(k?.['length']>0x1?(b['resourceName']=k[B(0xdf)](),d[0x0]=b[B(0xd3)],b['dir']=k[B(0xd2)](l=>{return paramCase(l);})['join'](a55e['sep'])):b[B(0x123)]='');if(this['options'][B(0xf8)]){if(!b[B(0xda)]){const m={'type':B(0x105),'name':B(0xf6),'message':B(0x109),'choices':[{'name':'Client','value':B(0xde)},{'name':B(0x124),'value':B(0x114)},{'name':'Both','value':'both'}]},{colLocAnswer:n}=await Actions[B(0xea)](m);n?b['where']=n:b[B(0xda)]=B(0xf0);}const l=[B(0xf0),B(0xde),B(0x114)];if(!l['includes'](b[B(0xda)])){Log['error'](B(0xe8));throw new UsageError();}switch(b[B(0xda)]){case B(0xf0):b['appPathPrefix']='lib';break;case B(0x114):b[B(0xca)]=B(0x114);break;case B(0xde):b[B(0xca)]=B(0xde);break;default:b[B(0xca)]='';}}j(this[B(0xdc)][B(0x117)](this,d,b));}catch(o){console[B(0xdd)](o);}});});}[a55t(0xec)](){const C=a55t;this['tableList'](this[C(0x107)]);}[a55t(0xe5)](a){const D=a55t,b=new a55f({});b[D(0x118)]([D(0xdb),D(0xcc),'Description']),a[D(0xe3)]()[D(0xe2)](c=>{const E=D;b['push']([c['name'],c[E(0xfd)](),c[E(0x112)]()]);}),Log[D(0x111)](b[D(0x11b)]());}}
@@ -1 +1 @@
1
- (function(a,b){var f=a56d,c=a();while(!![]){try{var d=parseInt(f(0x98))/0x1+-parseInt(f(0xa2))/0x2*(parseInt(f(0x9b))/0x3)+parseInt(f(0x9d))/0x4+-parseInt(f(0x95))/0x5+-parseInt(f(0xa1))/0x6*(parseInt(f(0x9e))/0x7)+parseInt(f(0x99))/0x8+-parseInt(f(0xa0))/0x9*(-parseInt(f(0x9c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x9858d));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a[h(0x96)]()[h(0x97)]('(((.+)+)+)+$')[h(0x96)]()['constructor'](a56a)[h(0x97)](h(0x9f));});a56a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';function a56c(){var i=['search','753476eNVdOH','7995056THsYTo','apply','3041373HZqbvz','380auFfZf','1435228FlFWvK','28zsHZjx','(((.+)+)+)+$','233433rWMixp','491154DWVJge','2cCROBH','5660155uRbKPF','toString'];a56c=function(){return i;};return a56c();}import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x95;var f=c[d];return f;},a56d(a,b);}import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
1
+ (function(a,b){var f=a56d,c=a();while(!![]){try{var d=parseInt(f(0x1d9))/0x1*(-parseInt(f(0x1e1))/0x2)+parseInt(f(0x1df))/0x3+-parseInt(f(0x1e3))/0x4*(parseInt(f(0x1de))/0x5)+parseInt(f(0x1d7))/0x6*(-parseInt(f(0x1e2))/0x7)+-parseInt(f(0x1e0))/0x8+-parseInt(f(0x1db))/0x9+parseInt(f(0x1d6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x69aa6));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a['toString']()[h(0x1dc)](h(0x1dd))[h(0x1da)]()['constructor'](a56a)[h(0x1dc)]('(((.+)+)+)+$');});a56a();import'./services/_index.js';import'./api.js';function a56c(){var i=['448Fzslzm','308612aaidFR','27667500kibXYc','62646AfPShf','apply','3777uteyIY','toString','1350126htMXkw','search','(((.+)+)+)+$','55YXqGzi','107217OXNjeH','4957344yWpxeY','44GDfxLy'];a56c=function(){return i;};return a56c();}import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x1d6;var f=c[d];return f;},a56d(a,b);}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(0x18d))/0x1*(parseInt(w(0x176))/0x2)+parseInt(w(0x14c))/0x3+parseInt(w(0x196))/0x4+parseInt(w(0x191))/0x5+parseInt(w(0x164))/0x6+-parseInt(w(0x17c))/0x7*(-parseInt(w(0x189))/0x8)+-parseInt(w(0x14e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xf0162));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a[y(0x148)]()[y(0x155)](y(0x162))[y(0x148)]()[y(0x192)](a57a)[y(0x155)](y(0x162));});a57a();import{Generator}from'../generator.js';function a57c(){const C=['mdg:validated-method','TypeDefs);\x0a','Resolvers);\x0a\x0a','1099WEDPAY','API\x20boundaries\x20to\x20create','Publications','invoke','maka:check','installMeteorPackage','injectAtEndOfFile','error','apply','Verifying\x20meteor\x20package\x20requirements\x20...','includes','test','/graphql/resolvers','43640uAJmCA','api/publications.js','collection','apollo','52484BfBXrD','checkMeteorPackage','exit','REST\x20API','6745755IqtJfy','constructor','template','options','tsx','1820600IAmFCA','withRest','RPC\x20(Methods)','imports','api/api.js','ddp-rate-limiter','withValue','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','api/register-api.js','mongo','maka\x20{generate,\x20g}:{api}\x20<resource-name>','toString','injectIntoFile','maka\x20g:api\x20todos','resolverList.push(','752454riVixO','api/resolvers.js','15947883ixyVGF','Fixtures','import\x20{\x20typeDefs\x20as\x20','register-','rest-api.','api/typeDefs.js','api/tests.js','search','startup','const','notice','/graphql/typeDefs','maka:rest','\x27;\x0a','typeDefs.','api','withGql','TypeDefs\x20}\x20from\x20\x27','.app-tests.','/imports/api','(((.+)+)+)+$','getProjectConfig','5990850PvGTiO','injectAtBeginningOfFile','withFixtures','fsi','log','server','dir','index.','pathFromApp','\x0aimport\x20{\x20resolvers\x20as\x20','rest','-api\x27;','findGenerator','resolvers.','graphql','engines','withPubs','Resolvers\x20}\x20from\x20\x27','44NVLOZB','rpc-methods.','push'];a57c=function(){return C;};return a57c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x147;let f=c[d];return f;},a57d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a57z(0x15d),'aliases':['a'],'usage':a57z(0x147),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a57z(0x16a)],'examples':[a57z(0x14a)]},async function(a,b){const A=a57z;try{const c=this['fsi'][A(0x163)](),d=[{'name':A(0x198),'value':'withMethods'},{'name':A(0x14f),'value':A(0x166)},{'name':A(0x17e),'value':A(0x174)}];c[A(0x173)][A(0x15d)]===A(0x16e)&&d[A(0x178)]({'name':A(0x190),'value':A(0x197)});c[A(0x173)][A(0x172)]===A(0x18c)&&d[A(0x178)]({'name':'GraphQL','value':A(0x15e)});const f={'type':'checkbox','name':'apiAnswers','message':A(0x17d),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x194)](f);g['length']===0x0&&(Log[A(0x183)]('No\x20API\x20boundaries\x20selected'),process[A(0x18f)](0x1)),this[A(0x167)][A(0x19c)](c,async()=>{const B=A,h=this[B(0x167)][B(0x16c)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x16a)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x173)][B(0x15d)],'graphql':c[B(0x173)][B(0x172)],'test':c[B(0x173)][B(0x187)],'noRename':!![],'withPubs':g[B(0x186)](B(0x174)),'withFixtures':g[B(0x186)](B(0x166)),'withMethods':g['includes']('withMethods'),'withRest':g[B(0x186)](B(0x197))};let n='js';c[B(0x173)]['js']===B(0x195)&&(n='ts');(!this[B(0x167)][B(0x18e)](B(0x15a))||!this['fsi'][B(0x18e)](B(0x180))||!this[B(0x167)][B(0x18e)](B(0x19b))||!this[B(0x167)][B(0x18e)](B(0x179))||!this[B(0x167)][B(0x18e)](B(0x19f)))&&(Log[B(0x158)](B(0x185)),await this['fsi'][B(0x181)](B(0x19d),{'cwd':h}));const o=a57e[B(0x170)](B(0x18b));o&&await o[B(0x17f)]([j],{'config':c,'where':B(0x169)});c['engines'][B(0x15d)]===B(0x16e)&&(m['withRest']&&this[B(0x167)][B(0x193)]({'srcPath':B(0x19a),'destPath':this['fsi'][B(0x16c)]({'pathParts':[B(0x199),'api',b[B(0x16a)],j,B(0x152)+n]}),'context':m,'config':c}));m['withMethods']&&this[B(0x167)][B(0x193)]({'srcPath':'api/methods.js','destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x199),B(0x15d),b[B(0x16a)],j,B(0x177)+n]}),'context':m,'config':c});m[B(0x166)]&&this[B(0x167)][B(0x193)]({'srcPath':'api/fixtures.js','destPath':this[B(0x167)][B(0x16c)]({'pathParts':['imports',B(0x15d),b['dir'],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x173)][B(0x187)]!=='none'&&this[B(0x167)][B(0x193)]({'srcPath':B(0x154),'destPath':this['fsi'][B(0x16c)]({'pathParts':['imports',B(0x15d),b['dir'],j,j+B(0x160)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x167)][B(0x193)]({'srcPath':B(0x18a),'destPath':this[B(0x167)][B(0x16c)]({'pathParts':[B(0x199),'api',b['dir'],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][B(0x172)]==='apollo'){if(g[B(0x186)](B(0x15e))){const q=this['fsi'][B(0x16c)]({'pathParts':[B(0x199),B(0x156),B(0x169),B(0x16b)+c['engines']['js']]}),r=this[B(0x167)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[B(0x167)][B(0x16c)]({'pathParts':['imports',B(0x15d),b[B(0x16a)],j,B(0x172),B(0x15c)+n]}),t='/imports/api'+l+j+B(0x159);this[B(0x167)][B(0x193)]({'srcPath':B(0x153),'destPath':s,'context':m,'config':c}),this[B(0x167)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0x150)+k+B(0x15f)+t+B(0x15b)}),this[B(0x167)][B(0x149)]({'filePath':r,'content':'typeList.push('+k+B(0x17a),'begin':B(0x157),'end':'if\x20\x5c('});const u=this[B(0x167)][B(0x16c)]({'pathParts':[B(0x199),B(0x15d),b['dir'],j,B(0x172),B(0x171)+n]}),v=B(0x161)+l+j+B(0x188);this['fsi'][B(0x193)]({'srcPath':B(0x14d),'destPath':u,'context':m,'config':c}),this[B(0x167)][B(0x165)]({'filePath':r,'content':B(0x16d)+k+B(0x175)+v+'\x27;'}),this[B(0x167)]['injectIntoFile']({'filePath':r,'content':B(0x14b)+k+B(0x17b),'begin':B(0x157),'end':'if\x20\x5c('});}}this[B(0x167)]['template']({'srcPath':B(0x19e),'destPath':this[B(0x167)][B(0x16c)]({'pathParts':[B(0x199),B(0x156),B(0x169),B(0x151)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x167)][B(0x16c)]({'pathParts':['imports','startup',B(0x169),B(0x16b)+c['engines']['js']]});this['fsi'][B(0x182)]({'filePath':p,'content':'import\x20\x27./register-'+j+B(0x16f)});});}catch(h){console[A(0x168)](h),process[A(0x18f)](0x0);}});
1
+ const a57y=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=-parseInt(w(0xae))/0x1*(parseInt(w(0x9f))/0x2)+-parseInt(w(0xca))/0x3+-parseInt(w(0xac))/0x4+-parseInt(w(0xa0))/0x5+parseInt(w(0x8b))/0x6+-parseInt(w(0xa6))/0x7+parseInt(w(0xa4))/0x8*(parseInt(w(0xb8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xe451b));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const x=a57d;return a57a['toString']()['search']('(((.+)+)+)+$')[x(0x93)]()[x(0x9b)](a57a)['search'](x(0x81));});a57a();function a57c(){const B=['api/fixtures.js','API\x20boundaries\x20to\x20create','fsi','withRest','collection','import\x20{\x20typeDefs\x20as\x20','\x27;\x0a','typeDefs.','maka:rest','6658914iDoUlJ','api/typeDefs.js','none','apiAnswers','log','mdg:validated-method','api/resolvers.js','installMeteorPackage','toString','/imports/api','rewriteDestinationPathForEngine','rpc-methods.','Fixtures','engines','api/publications.js','template','constructor','startup','graphql','api','2LtydWo','4696765dAJBuH','if\x20\x5c(','test','checkMeteorPackage','3404536FlUGjX','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','4917199DwKeCF','getProjectConfig','import\x20\x27./register-','pathFromApp','No\x20API\x20boundaries\x20selected','GraphQL','1243516omDtTY','withValue','1828221tJDtvp','injectIntoFile','index.','injectAtEndOfFile','findGenerator','rest','withFixtures','dir','injectAtBeginningOfFile','api/tests.js','108pstajd','ddp-rate-limiter','/graphql/resolvers','Resolvers\x20}\x20from\x20\x27','mongo','withGql','resolvers.','apollo','REST\x20API','typeList.push(','Publications','includes','withPubs','const','imports','-api\x27;','.app-tests.','withMethods','4501554vqXDVu','length','Resolvers);\x0a\x0a','create','maka:check','server','rest-api.','checkbox','push','\x0aimport\x20{\x20resolvers\x20as\x20','Verifying\x20meteor\x20package\x20requirements\x20...','publications.','(((.+)+)+)+$'];a57c=function(){return B;};return a57c();}import{Generator}from'../generator.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x7e;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[a57y(0xcd)]({'name':a57y(0x9e),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a57y(0xa5),'validOpts':[a57y(0xb5)],'examples':['maka\x20g:api\x20todos']},async function(a,b){const z=a57y;try{const c=this[z(0x84)][z(0xa7)](),d=[{'name':'RPC\x20(Methods)','value':'withMethods'},{'name':z(0x97),'value':z(0xb4)},{'name':z(0xc2),'value':z(0xc4)}];c[z(0x98)][z(0x9e)]==='rest'&&d[z(0xd2)]({'name':z(0xc0),'value':z(0x85)});c['engines'][z(0x9d)]===z(0xbf)&&d[z(0xd2)]({'name':z(0xab),'value':z(0xbd)});const f={'type':z(0xd1),'name':z(0x8e),'message':z(0x83),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[z(0xcb)]===0x0&&(Log['error'](z(0xaa)),process['exit'](0x1)),this[z(0x84)][z(0xad)](c,async()=>{const A=z,h=this['fsi'][A(0xa9)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[A(0xb5)]?'/'+b[A(0xb5)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][A(0x9e)],'graphql':c[A(0x98)][A(0x9d)],'test':c['engines']['test'],'noRename':!![],'withPubs':g[A(0xc3)](A(0xc4)),'withFixtures':g[A(0xc3)]('withFixtures'),'withMethods':g[A(0xc3)](A(0xc9)),'withRest':g[A(0xc3)](A(0x85))};let n='js';c[A(0x98)]['js']==='tsx'&&(n='ts');(!this['fsi'][A(0xa3)](A(0x8a))||!this[A(0x84)][A(0xa3)](A(0xce))||!this[A(0x84)][A(0xa3)](A(0xb9))||!this[A(0x84)][A(0xa3)](A(0x90))||!this['fsi'][A(0xa3)](A(0xbc)))&&(Log['notice'](A(0x7f)),await this['fsi'][A(0x92)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a57e[A(0xb2)](A(0x86));o&&await o['invoke']([j],{'config':c,'where':A(0xcf)});c['engines'][A(0x9e)]===A(0xb3)&&(m[A(0x85)]&&this[A(0x84)][A(0x9a)]({'srcPath':'api/api.js','destPath':this[A(0x84)][A(0xa9)]({'pathParts':['imports',A(0x9e),b[A(0xb5)],j,A(0xd0)+n]}),'context':m,'config':c}));m[A(0xc9)]&&this['fsi'][A(0x9a)]({'srcPath':'api/methods.js','destPath':this['fsi'][A(0xa9)]({'pathParts':[A(0xc6),A(0x9e),b[A(0xb5)],j,A(0x96)+n]}),'context':m,'config':c});m['withFixtures']&&this[A(0x84)][A(0x9a)]({'srcPath':A(0x82),'destPath':this[A(0x84)]['pathFromApp']({'pathParts':[A(0xc6),A(0x9e),b[A(0xb5)],j,'fixtures.'+n]}),'context':m,'config':c});c['engines'][A(0xa2)]!==A(0x8d)&&this[A(0x84)][A(0x9a)]({'srcPath':A(0xb7),'destPath':this['fsi'][A(0xa9)]({'pathParts':[A(0xc6),A(0x9e),b[A(0xb5)],j,j+A(0xc8)+n]}),'context':m,'config':c});m[A(0xc4)]&&this[A(0x84)][A(0x9a)]({'srcPath':A(0x99),'destPath':this['fsi'][A(0xa9)]({'pathParts':[A(0xc6),'api',b[A(0xb5)],j,A(0x80)+n]}),'context':m,'config':c});if(c[A(0x98)][A(0x9d)]==='apollo'){if(g['includes']('withGql')){const q=this[A(0x84)][A(0xa9)]({'pathParts':['imports','startup','server',A(0xb0)+c[A(0x98)]['js']]}),r=this[A(0x84)][A(0x95)]({'pathParts':[q],'config':c}),s=this[A(0x84)][A(0xa9)]({'pathParts':['imports',A(0x9e),b[A(0xb5)],j,A(0x9d),A(0x89)+n]}),t=A(0x94)+l+j+'/graphql/typeDefs';this[A(0x84)][A(0x9a)]({'srcPath':A(0x8c),'destPath':s,'context':m,'config':c}),this[A(0x84)][A(0xb6)]({'filePath':r,'content':A(0x87)+k+'TypeDefs\x20}\x20from\x20\x27'+t+A(0x88)}),this[A(0x84)]['injectIntoFile']({'filePath':r,'content':A(0xc1)+k+'TypeDefs);\x0a','begin':A(0xc5),'end':A(0xa1)});const u=this[A(0x84)][A(0xa9)]({'pathParts':[A(0xc6),A(0x9e),b[A(0xb5)],j,'graphql',A(0xbe)+n]}),v=A(0x94)+l+j+A(0xba);this[A(0x84)][A(0x9a)]({'srcPath':A(0x91),'destPath':u,'context':m,'config':c}),this[A(0x84)]['injectAtBeginningOfFile']({'filePath':r,'content':A(0x7e)+k+A(0xbb)+v+'\x27;'}),this[A(0x84)][A(0xaf)]({'filePath':r,'content':'resolverList.push('+k+A(0xcc),'begin':'const','end':'if\x20\x5c('});}}this[A(0x84)][A(0x9a)]({'srcPath':'api/register-api.js','destPath':this[A(0x84)]['pathFromApp']({'pathParts':[A(0xc6),A(0x9c),A(0xcf),'register-'+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0x84)][A(0xa9)]({'pathParts':['imports',A(0x9c),A(0xcf),'index.'+c[A(0x98)]['js']]});this[A(0x84)][A(0xb1)]({'filePath':p,'content':A(0xa8)+j+A(0xc7)});});}catch(h){console[z(0x8f)](h),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a58m=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0xf3))/0x1+-parseInt(k(0xf5))/0x2*(parseInt(k(0xed))/0x3)+-parseInt(k(0x108))/0x4+-parseInt(k(0xe6))/0x5*(-parseInt(k(0xf4))/0x6)+parseInt(k(0x109))/0x7*(-parseInt(k(0xe2))/0x8)+parseInt(k(0xe8))/0x9*(-parseInt(k(0x10e))/0xa)+parseInt(k(0xee))/0xb*(parseInt(k(0xe3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x88d00));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const l=a58d;return a58a['toString']()[l(0x10d)](l(0x10c))[l(0xf9)]()[l(0xf0)](a58a)['search']('(((.+)+)+)+$');});function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0xe2;let f=c[d];return f;},a58d(a,b);}a58a();import{paramCase,pascalCase}from'change-case';function a58c(){const p=['Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','dir','fsi','resourceName','maka\x20g:collection\x20todos','tsx','collection','collection/collection.js','.app-tests.','template','366532XaLZde','31451DuzCDo','import\x20\x27./collections','appPathPrefix','(((.+)+)+)+$','search','3400330LmtEWb','528plOCTZ','113580VNiJrc','imports','engines','5194705UQmJjh','create','18ofVQQZ','injectAtEndOfFile','checkMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','getProjectConfig','88119ETAVSU','2442JmGMBf','mongo','constructor','installMeteorPackage','maka:check','689106AQYEim','6xLFaLZ','56naMRwi','test','notice','pathFromApp','toString','index.','startup','where','collections'];a58c=function(){return p;};return a58c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58m(0xe7)]({'name':a58m(0x104),'aliases':['col'],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>\x20[--where]','checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a58m(0xff),a58m(0xfc)],'description':'\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','examples':[a58m(0x102)]},async function(a,b){const n=a58m;try{const c=this['fsi'][n(0xf8)]({}),d=this[n(0x100)][n(0xec)]();this[n(0x100)]['withValue'](d,async()=>{const o=n,f=paramCase(b[o(0x101)]),g={'name':pascalCase(b[o(0x101)]),'collectionName':pascalCase(b[o(0x101)]),'fileName':f,'where':b[o(0xfc)],'test':d[o(0xe5)][o(0xf6)],'noRename':!![]};let h='js';d[o(0xe5)]['js']===o(0x103)&&(h='ts');!this[o(0x100)][o(0xea)](o(0xef))&&(Log[o(0xf7)](o(0xfe)),await this['fsi']['installMeteorPackage'](o(0xef),{'cwd':c}));!this[o(0x100)]['checkMeteorPackage'](o(0xf2))&&(Log['notice'](o(0xeb)),await this[o(0x100)][o(0xf1)](o(0xf2),{'cwd':c}));this['fsi'][o(0x107)]({'srcPath':o(0x105),'destPath':this[o(0x100)][o(0xf8)]({'pathParts':[o(0xe4),o(0xfb),b[o(0x10b)],o(0xfd),b[o(0xff)],f+'.'+h]}),'context':g,'config':d});d[o(0xe5)][o(0xf6)]!=='none'&&this[o(0x100)]['template']({'srcPath':'collection/tests.js','destPath':this[o(0x100)]['pathFromApp']({'pathParts':['imports','startup',b[o(0x10b)],'collections',b[o(0xff)],f+o(0x106)+h]}),'context':g,'config':d});const i=b[o(0xff)]?'/'+b['dir']+'/':'/',j=this[o(0x100)]['pathFromApp']({'pathParts':[o(0xe4),o(0xfb),b[o(0x10b)],o(0xfa)+d[o(0xe5)]['js']]});this[o(0x100)][o(0xe9)]({'filePath':j,'content':o(0x10a)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
1
+ const a58m=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=parseInt(k(0x1bf))/0x1*(parseInt(k(0x1b2))/0x2)+parseInt(k(0x1c1))/0x3+parseInt(k(0x1ab))/0x4*(parseInt(k(0x1a9))/0x5)+-parseInt(k(0x1b6))/0x6+parseInt(k(0x1b1))/0x7*(-parseInt(k(0x1bd))/0x8)+parseInt(k(0x1af))/0x9*(-parseInt(k(0x1b0))/0xa)+-parseInt(k(0x1cb))/0xb*(-parseInt(k(0x1a3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0xc6af2));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const l=a58d;return a58a['toString']()[l(0x1ad)]('(((.+)+)+)+$')[l(0x1ae)]()[l(0x1b3)](a58a)[l(0x1ad)](l(0x1c5));});function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x19e;let f=c[d];return f;},a58d(a,b);}a58a();import{paramCase,pascalCase}from'change-case';function a58c(){const p=['\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','(((.+)+)+)+$','index.','notice','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','template','engines','11BpfpvV','.app-tests.','imports','create','installMeteorPackage','collections','86964hulsqv','maka\x20g:collection\x20todos','resourceName','checkMeteorPackage','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>\x20[--where]','getProjectConfig','6120470Opiwza','dir','4wfFTyb','collection/tests.js','search','toString','9kbyvWp','6462590XQzpLO','9375555NaAiQC','1832UApQTQ','constructor','fsi','appPathPrefix','5058924rHLFKn','col','test','startup','none','collection/collection.js','mongo','8wsXxEU','error','910hpVjqG','where','4733061ggbenF','pathFromApp','maka:check'];a58c=function(){return p;};return a58c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58m(0x1a0)]({'name':'collection','aliases':[a58m(0x1b7)],'usage':a58m(0x1a7),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a58m(0x1aa),a58m(0x1c0)],'description':a58m(0x1c4),'examples':[a58m(0x1a4)]},async function(a,b){const n=a58m;try{const c=this['fsi'][n(0x1c2)]({}),d=this[n(0x1b4)][n(0x1a8)]();this[n(0x1b4)]['withValue'](d,async()=>{const o=n,f=paramCase(b[o(0x1a5)]),g={'name':pascalCase(b[o(0x1a5)]),'collectionName':pascalCase(b[o(0x1a5)]),'fileName':f,'where':b[o(0x1c0)],'test':d[o(0x1ca)][o(0x1b8)],'noRename':!![]};let h='js';d[o(0x1ca)]['js']==='tsx'&&(h='ts');!this[o(0x1b4)][o(0x1a6)](o(0x1bc))&&(Log['notice'](o(0x1c8)),await this[o(0x1b4)][o(0x1a1)](o(0x1bc),{'cwd':c}));!this[o(0x1b4)]['checkMeteorPackage'](o(0x1c3))&&(Log[o(0x1c7)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this['fsi'][o(0x1a1)](o(0x1c3),{'cwd':c}));this['fsi']['template']({'srcPath':o(0x1bb),'destPath':this['fsi'][o(0x1c2)]({'pathParts':[o(0x19f),o(0x1b9),b[o(0x1b5)],o(0x1a2),b[o(0x1aa)],f+'.'+h]}),'context':g,'config':d});d[o(0x1ca)][o(0x1b8)]!==o(0x1ba)&&this[o(0x1b4)][o(0x1c9)]({'srcPath':o(0x1ac),'destPath':this[o(0x1b4)][o(0x1c2)]({'pathParts':[o(0x19f),o(0x1b9),b[o(0x1b5)],'collections',b[o(0x1aa)],f+o(0x19e)+h]}),'context':g,'config':d});const i=b[o(0x1aa)]?'/'+b['dir']+'/':'/',j=this[o(0x1b4)][o(0x1c2)]({'pathParts':['imports',o(0x1b9),b['appPathPrefix'],o(0x1c6)+d[o(0x1ca)]['js']]});this[o(0x1b4)]['injectAtEndOfFile']({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[n(0x1be)](f);}});
@@ -1 +1 @@
1
- const a59q=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=parseInt(n(0x174))/0x1+-parseInt(n(0x17b))/0x2+-parseInt(n(0x175))/0x3*(-parseInt(n(0x19b))/0x4)+parseInt(n(0x170))/0x5+-parseInt(n(0x16a))/0x6*(parseInt(n(0x17c))/0x7)+-parseInt(n(0x177))/0x8*(-parseInt(n(0x18f))/0x9)+-parseInt(n(0x157))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xc068a));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(0x188)]()[p(0x167)](p(0x16b))['toString']()[p(0x195)](a59a)[p(0x167)]('(((.+)+)+)+$');});a59a();function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x155;let f=c[d];return f;},a59d(a,b);}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(0x15f)];function a59c(){const t=['pathFromProject','startup','injectAtBeginningOfFile','96498ClmXxS','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','api','graphql','ramda','templates.js','constructor','true','template','lib','getProjectConfig','tsx','5284wkkePh','string','error','import\x20\x27./','15885880wOuIHl','className','import\x20\x27','features','rewriteDestinationPathForEngine','warn','fileName','client','comp','react','\x20}\x20from\x20\x27','theme','imports','injectAtEndOfFile','dir','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','search','relative','maka\x20g:comp\x20todos/todos-item','738maBUyM','(((.+)+)+)+$','reflux','test','.css','fsi','3048875teJgxZ','ssr','assign','apply','790934bIWryk','2424LNrjTq','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','1048qzgyyb','findAppDirectory','checkNpmPackage','engines','2870406zbiCNg','3458ecLMRJ','component','export\x20{\x20','withValue','none','setTemplate','/imports/ui/components','test/test.js','import\x20{\x20','root','resourceName','pathFromApp','toString','installNpmPackage','component/component.js','css'];a59c=function(){return t;};return a59c();}Generator['create']({'name':a59q(0x17d),'aliases':aliases,'usage':a59q(0x176),'shortDesc':a59q(0x190),'validOpts':['dir'],'examples':[a59q(0x169)]},async function(a,b){const r=a59q;try{const c=this['fsi'][r(0x178)](),d=r(0x182),f=this[r(0x16f)][r(0x187)]({'pathParts':[d,b[r(0x165)],paramCase(b[r(0x186)]),paramCase(b['resourceName'])]}),g=await this[r(0x16f)][r(0x199)]();this[r(0x16f)][r(0x17f)](g,async()=>{const s=r;typeof g[s(0x197)][s(0x16d)]===s(0x19c)&&(g[s(0x197)][s(0x16d)]=g[s(0x197)][s(0x16d)]==='true'?!![]:![],this[s(0x16f)][s(0x181)]('test',g['template'][s(0x16d)]));typeof g[s(0x197)][s(0x18b)]===s(0x19c)&&(g[s(0x197)]['css']=g[s(0x197)][s(0x18b)]===s(0x196)?!![]:![],this[s(0x16f)][s(0x181)](s(0x18b),g[s(0x197)][s(0x18b)]));typeof g[s(0x197)]['js']===s(0x19c)&&(g[s(0x197)]['js']=g[s(0x197)]['js']===s(0x196)?!![]:![],this[s(0x16f)][s(0x181)]('js',g[s(0x197)]['js']));!g[s(0x15a)]&&(g[s(0x15a)]={});!b['root']&&!this[s(0x16f)][s(0x179)](s(0x193))&&(Log[s(0x15c)](s(0x166)),await this[s(0x16f)][s(0x189)](s(0x193),{'cwd':c}));if(!b[s(0x185)]&&!this['fsi'][s(0x179)](s(0x160))){Log[s(0x155)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[s(0x186)]),'myPath':a59e[s(0x168)](this[s(0x16f)][s(0x18c)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x186)]),'fileName':paramCase(b[s(0x186)]),'graphql':g[s(0x17a)][s(0x192)],'features':g[s(0x15a)],'client':g['engines'][s(0x15e)],'api':g[s(0x17a)][s(0x191)],'ssr':g[s(0x17a)][s(0x171)],'test':g['engines'][s(0x16d)],'theme':g['engines'][s(0x162)],'isLayout':![],'isComponent':!![],'withTranslations':g['features']['withTranslations']};this[s(0x16f)][s(0x197)]({'srcPath':s(0x18a),'destPath':f+'.js','context':h,'framework':'react','config':g});g[s(0x17a)][s(0x16d)]!==s(0x180)&&this['fsi'][s(0x197)]({'srcPath':s(0x183),'destPath':f+'.tests.js','context':h,'framework':s(0x160),'config':g});g[s(0x197)][s(0x18b)]&&(this[s(0x16f)][s(0x197)]({'srcPath':'template/template.css','destPath':f+s(0x16e),'context':Object[s(0x172)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[s(0x16f)][s(0x18e)]({'filePath':f+'.'+g[s(0x17a)]['js'],'content':s(0x156)+h['cssCaseName']+'.'+g['engines'][s(0x18b)]+'\x27;'}));const i=b[s(0x165)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x15d)]+'/'+h[s(0x15d)];let k;if(g[s(0x17a)]['ssr']===s(0x196)){const l=this[s(0x16f)]['pathFromApp']({'pathParts':[s(0x163),s(0x18d),s(0x198),'templates.js']});k=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x16f)][s(0x187)]({'pathParts':[s(0x163),s(0x18d),s(0x15e),s(0x194)]});k=this['fsi'][s(0x15b)]({'pathParts':[m],'config':g});}g['engines'][s(0x15e)]===s(0x160)||g[s(0x17a)][s(0x15e)]===s(0x16c)?(g[s(0x17a)]['js']===s(0x19a)?this[s(0x16f)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x184)+h[s(0x158)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this[s(0x16f)][s(0x18e)]({'filePath':k,'content':s(0x184)+h[s(0x158)]+s(0x161)+j+'.'+g['engines']['js']+'\x27;\x0a'}),this[s(0x16f)][s(0x164)]({'filePath':k,'content':s(0x17e)+h['className']+'\x20};\x0a'})):this[s(0x16f)]['injectAtEndOfFile']({'filePath':k,'content':s(0x159)+j+'.'+g['engines']['js']+'\x27;\x0a'});});}catch(h){Log[r(0x155)](h);}});
1
+ const a59p=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=-parseInt(n(0xab))/0x1+-parseInt(n(0xa9))/0x2*(-parseInt(n(0x7f))/0x3)+parseInt(n(0xa3))/0x4*(parseInt(n(0x93))/0x5)+-parseInt(n(0x8e))/0x6+-parseInt(n(0xa7))/0x7*(parseInt(n(0xa4))/0x8)+parseInt(n(0xc1))/0x9*(-parseInt(n(0x9b))/0xa)+parseInt(n(0xbe))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0x94200));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const o=a59d;return a59a[o(0xb7)]()['search'](o(0x8a))[o(0xb7)]()[o(0xaf)](a59a)[o(0xc2)](o(0x8a));});function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x7e;let f=c[d];return f;},a59d(a,b);}function a59c(){const s=['withTranslations','features','test','css','\x20};\x0a','installNpmPackage','tsx','(((.+)+)+)+$','.tests.js','injectAtBeginningOfFile','string','1378734YXdwWy','import\x20\x27','reflux','dir','template','5fPrLoj','imports','client','maka\x20g:comp\x20todos/todos-item','comp','api','graphql','cssCaseName','10YkRrTI','injectAtEndOfFile','setTemplate','template/template.css','component','rewriteDestinationPathForEngine','startup','react','4450748nQtVuS','232TuPDxR','lib','templates.js','199451OEGFFr','\x20}\x20from\x20\x27','434OahZOA','pathFromApp','667511eSjQyo','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','.css','withValue','constructor','warn','\x27;\x0a','checkNpmPackage','create','/imports/ui/components','true','relative','toString','pathFromProject','fileName','ramda','findAppDirectory','import\x20{\x20','ssr','14883209CLyZve','export\x20{\x20','engines','9594918xCMrJI','search','className','resourceName','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','component/component.js','test/test.js','getProjectConfig','12867sXrpbK','fsi','.js','root'];a59c=function(){return s;};return a59c();}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=[a59p(0x97)];Generator[a59p(0xb3)]({'name':a59p(0x9f),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a59p(0xc5),'validOpts':['dir'],'examples':[a59p(0x96)]},async function(a,b){const q=a59p;try{const c=this[q(0x80)][q(0xbb)](),d=q(0xb4),f=this[q(0x80)][q(0xaa)]({'pathParts':[d,b[q(0x91)],paramCase(b[q(0xc4)]),paramCase(b[q(0xc4)])]}),g=await this['fsi'][q(0x7e)]();this[q(0x80)][q(0xae)](g,async()=>{const r=q;typeof g['template']['test']===r(0x8d)&&(g[r(0x92)][r(0x85)]=g[r(0x92)][r(0x85)]===r(0xb5)?!![]:![],this['fsi'][r(0x9d)]('test',g[r(0x92)]['test']));typeof g[r(0x92)][r(0x86)]===r(0x8d)&&(g['template'][r(0x86)]=g[r(0x92)][r(0x86)]===r(0xb5)?!![]:![],this['fsi'][r(0x9d)](r(0x86),g['template'][r(0x86)]));typeof g['template']['js']===r(0x8d)&&(g[r(0x92)]['js']=g['template']['js']===r(0xb5)?!![]:![],this[r(0x80)]['setTemplate']('js',g[r(0x92)]['js']));!g[r(0x84)]&&(g[r(0x84)]={});!b[r(0x82)]&&!this[r(0x80)]['checkNpmPackage'](r(0xba))&&(Log[r(0xb0)](r(0xac)),await this[r(0x80)][r(0x88)](r(0xba),{'cwd':c}));if(!b['root']&&!this[r(0x80)][r(0xb2)]('react')){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[r(0xc4)]),'myPath':a59e[r(0xb6)](this[r(0x80)][r(0xb8)]({}),f),'cssCaseName':paramCase(b[r(0xc4)]),'className':pascalCase(b[r(0xc4)]),'camelCaseName':camelCase(b[r(0xc4)]),'fileName':paramCase(b[r(0xc4)]),'graphql':g['engines'][r(0x99)],'features':g[r(0x84)],'client':g['engines'][r(0x95)],'api':g[r(0xc0)][r(0x98)],'ssr':g[r(0xc0)]['ssr'],'test':g['engines'][r(0x85)],'theme':g[r(0xc0)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0x84)][r(0x83)]};this[r(0x80)][r(0x92)]({'srcPath':r(0xc6),'destPath':f+r(0x81),'context':h,'framework':'react','config':g});g['engines'][r(0x85)]!=='none'&&this[r(0x80)][r(0x92)]({'srcPath':r(0xc7),'destPath':f+r(0x8b),'context':h,'framework':r(0xa2),'config':g});g[r(0x92)][r(0x86)]&&(this[r(0x80)][r(0x92)]({'srcPath':r(0x9e),'destPath':f+r(0xad),'context':Object['assign']({},h,{'className':paramCase(b[r(0xc4)])}),'config':g}),this['fsi'][r(0x8c)]({'filePath':f+'.'+g[r(0xc0)]['js'],'content':'import\x20\x27./'+h[r(0x9a)]+'.'+g[r(0xc0)][r(0x86)]+'\x27;'}));const i=b[r(0x91)]?'/'+b[r(0x91)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[r(0xb9)];let k;if(g[r(0xc0)][r(0xbd)]===r(0xb5)){const l=this[r(0x80)][r(0xaa)]({'pathParts':[r(0x94),r(0xa1),r(0xa5),r(0xa6)]});k=this['fsi'][r(0xa0)]({'pathParts':[l],'config':g});}else{const m=this[r(0x80)][r(0xaa)]({'pathParts':[r(0x94),r(0xa1),r(0x95),'templates.js']});k=this[r(0x80)][r(0xa0)]({'pathParts':[m],'config':g});}g[r(0xc0)][r(0x95)]===r(0xa2)||g[r(0xc0)][r(0x95)]===r(0x90)?(g['engines']['js']===r(0x89)?this[r(0x80)][r(0x8c)]({'filePath':k,'content':r(0xbc)+h[r(0xc3)]+r(0xa8)+j+'\x27;\x0a'}):this[r(0x80)][r(0x8c)]({'filePath':k,'content':'import\x20{\x20'+h[r(0xc3)]+r(0xa8)+j+'.'+g[r(0xc0)]['js']+r(0xb1)}),this[r(0x80)][r(0x9c)]({'filePath':k,'content':r(0xbf)+h[r(0xc3)]+r(0x87)})):this[r(0x80)][r(0x9c)]({'filePath':k,'content':r(0x8f)+j+'.'+g[r(0xc0)]['js']+r(0xb1)});});}catch(h){Log['error'](h);}});
@@ -1 +1 @@
1
- const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=-parseInt(h(0x13c))/0x1+-parseInt(h(0x140))/0x2+-parseInt(h(0x13a))/0x3+-parseInt(h(0x14f))/0x4+-parseInt(h(0x152))/0x5+parseInt(h(0x14e))/0x6+parseInt(h(0x156))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x8ec3c));function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x139;let f=c[d];return f;},a60d(a,b);}const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a[j(0x155)]()[j(0x13f)](j(0x14b))[j(0x155)]()[j(0x149)](a60a)[j(0x13f)]('(((.+)+)+)+$');});a60a();function a60c(){const n=['maka\x20g:config\x20production','search','675366rcUEgP','pathFromProject','prod','production','apply','template','settings.json','config/process.env','Generate\x20configuration\x20settings.','constructor','maka\x20{generate,\x20g}:{config}\x20<name>','(((.+)+)+)+$','config/settings.json','isDocker','132804OKvDqc','1110100XsXJMR','getProjectConfig','process.env','2389750iByQBD','appName','config','toString','21041314oEfJzY','resourceName','fsi','1740450emVVLg','create','769964SptgIF','ubuntu'];a60c=function(){return n;};return a60c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a60k(0x13b)]({'name':a60k(0x154),'usage':a60k(0x14a),'shortDesc':a60k(0x148),'validOpts':[a60k(0x14d)],'examples':[a60k(0x13e)]},function(a,b){const l=a60k,c=this[l(0x139)][l(0x150)]();this[l(0x139)]['withValue'](c,()=>{const m=l,d={'app':c[m(0x153)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x157)]),'camelCase':camelCase(b[m(0x157)]),'userName':m(0x13d),'isDocker':b[m(0x14d)]};let e=a[0x0];if(e==='dev')e='development';else e===m(0x142)&&(e=m(0x143));const f=this[m(0x139)]['pathFromProject']({'pathParts':[m(0x154),e,m(0x146)]});this[m(0x139)][m(0x145)]({'srcPath':m(0x14c),'destPath':f,'context':d,'config':c});if(!b[m(0x14d)]){const g=this[m(0x139)][m(0x141)]({'pathParts':[m(0x154),e,m(0x151)]});this[m(0x139)][m(0x145)]({'srcPath':m(0x147),'destPath':g,'context':d,'config':c});}});});
1
+ const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=-parseInt(h(0x1a7))/0x1+-parseInt(h(0x1bd))/0x2+parseInt(h(0x19c))/0x3*(-parseInt(h(0x1b1))/0x4)+-parseInt(h(0x1b6))/0x5*(-parseInt(h(0x1be))/0x6)+-parseInt(h(0x1aa))/0x7+parseInt(h(0x1bb))/0x8+-parseInt(h(0x19d))/0x9*(-parseInt(h(0x1b9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x28cb2));const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x1a3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a[j(0x1a2)]()[j(0x1b5)](j(0x1ab))[j(0x1a2)]()[j(0x1ac)](a60a)['search'](j(0x1ab));});a60a();import{Generator}from'../generator.js';function a60c(){const n=['fsi','create','ubuntu','toString','apply','dev','template','config','333590auMAwu','settings.json','production','1600963GGgblQ','(((.+)+)+)+$','constructor','withValue','config/process.env','maka\x20{generate,\x20g}:{config}\x20<name>','config/settings.json','772aTuWUE','process.env','resourceName','pathFromProject','search','974065APSTcw','prod','isDocker','6501070bxcpgv','appName','2348504AmJalw','getProjectConfig','654910WwJFgA','6iEwSzj','Generate\x20configuration\x20settings.','1269qkVOGX','9dJfWTp','development'];a60c=function(){return n;};return a60c();}import{camelCase,paramCase,pascalCase}from'change-case';function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x19b;let f=c[d];return f;},a60d(a,b);}Generator[a60k(0x1a0)]({'name':a60k(0x1a6),'usage':a60k(0x1af),'shortDesc':a60k(0x19b),'validOpts':[a60k(0x1b8)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a60k,c=this[l(0x19f)][l(0x1bc)]();this[l(0x19f)][l(0x1ad)](c,()=>{const m=l,d={'app':c[m(0x1ba)],'appFileCase':paramCase(c[m(0x1ba)]),'name':pascalCase(b[m(0x1b3)]),'fileName':paramCase(b[m(0x1b3)]),'camelCase':camelCase(b[m(0x1b3)]),'userName':m(0x1a1),'isDocker':b[m(0x1b8)]};let e=a[0x0];if(e===m(0x1a4))e=m(0x19e);else e===m(0x1b7)&&(e=m(0x1a9));const f=this[m(0x19f)][m(0x1b4)]({'pathParts':[m(0x1a6),e,m(0x1a8)]});this['fsi'][m(0x1a5)]({'srcPath':m(0x1b0),'destPath':f,'context':d,'config':c});if(!b[m(0x1b8)]){const g=this[m(0x19f)][m(0x1b4)]({'pathParts':[m(0x1a6),e,m(0x1b2)]});this[m(0x19f)][m(0x1a5)]({'srcPath':m(0x1ae),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- function a61c(){const t=['list','startup','pathFromApp','446935VtOsjS','78Qnfqph','constructor','create','tsx','indexOf','46903747DCeEJH','14552694UvUgUL','pgsql','4509284DbAJNE','PostgreSQL','conn.','index.','(((.+)+)+)+$','10JuvVsj','dir','3LVqVjT','type','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','installNpmPackage','sqlite','DB\x20Driver','mssql','injectAtEndOfFile','server','engines','error','8YpdDOq',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','Invalid\x20type\x20','dbc','fsi','withValue','search','1322802PqSjMO','template','-dbc.','checkNpmPackage','12UzTSmN','imports','getProjectConfig','(blank)','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','12293365nOgzxZ','warn','import\x20\x27./register-','config.','dbc/config.js','better-sqlite3','toString','apply','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','2575884aiPQLz','resourceName','dbc/register-dbc.js','dbc/conn.js','maka\x20g:dbc\x20geoserver\x20--type=pgsql'];a61c=function(){return t;};return a61c();}function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0xa5;let f=c[d];return f;},a61d(a,b);}const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=-parseInt(n(0xc3))/0x1+-parseInt(n(0xd5))/0x2*(-parseInt(n(0xb1))/0x3)+-parseInt(n(0xaa))/0x4+parseInt(n(0xdd))/0x5*(parseInt(n(0xde))/0x6)+parseInt(n(0xcc))/0x7*(-parseInt(n(0xbc))/0x8)+parseInt(n(0xa8))/0x9*(-parseInt(n(0xaf))/0xa)+-parseInt(n(0xa7))/0xb*(-parseInt(n(0xc7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0xd972a));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0xd2)]()[p(0xc2)](p(0xae))[p(0xd2)]()[p(0xdf)](a61a)[p(0xc2)](p(0xae));});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(0xe0)]({'name':a61q(0xbf),'usage':a61q(0xcb),'shortDesc':a61q(0xd4),'validOpts':['type',a61q(0xb0)],'examples':[a61q(0xd9)]},async function(a,b){const r=a61q;try{const c=await this[r(0xc0)][r(0xc9)](),d=this[r(0xc0)][r(0xdc)]({}),f=paramCase(b[r(0xd6)]);if(!b['type']){const h={'type':r(0xda),'name':'dbAnswer','message':r(0xb6),'choices':[{'name':r(0xab),'value':r(0xa9)},{'name':'MS\x20SQL','value':'mssql'}]},{dbAnswer:i}=await Actions['options'](h);i&&(b['type']=i);}const g={'name':pascalCase(b[r(0xd6)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[r(0xd6)]),'type':b[r(0xb2)],'engine':c[r(0xba)]['js'],'noRename':!![]};this['fsi'][r(0xc1)](c,async()=>{const s=r;let j='js';c[s(0xba)]['js']===s(0xa5)&&(j='ts');const k=['mssql',s(0xa9)];if(k[s(0xa6)](g[s(0xb2)])<0x0){const m=g[s(0xb2)]?g[s(0xb2)]:s(0xca);Log[s(0xbb)](s(0xbe)+m+s(0xbd));return;}b[s(0xb2)]===s(0xa9)&&!this[s(0xc0)][s(0xc6)]('pg')&&(Log[s(0xcd)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[s(0xc0)][s(0xb4)]('pg',{'cwd':d}));b[s(0xb2)]===s(0xb7)&&!this['fsi']['checkNpmPackage'](s(0xb7))&&(Log[s(0xcd)](s(0xb3)),await this['fsi']['installNpmPackage'](s(0xb7),{'cwd':d}));b['type']===s(0xb5)&&!this['fsi'][s(0xc6)](s(0xd1))&&(Log[s(0xcd)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0xc0)]['installNpmPackage'](s(0xd1),{'cwd':d}));this[s(0xc0)]['template']({'srcPath':s(0xd0),'destPath':this[s(0xc0)][s(0xdc)]({'pathParts':['imports',s(0xdb),s(0xb9),s(0xbf),b[s(0xb0)],f,s(0xcf)+j]}),'context':g,'config':c}),this[s(0xc0)][s(0xc4)]({'srcPath':s(0xd8),'destPath':this[s(0xc0)][s(0xdc)]({'pathParts':[s(0xc8),'startup','server',s(0xbf),b[s(0xb0)],f,s(0xac)+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0xd7),'destPath':this['fsi'][s(0xdc)]({'pathParts':[s(0xc8),s(0xdb),s(0xb9),'register-'+f+s(0xc5)+j]}),'context':g,'config':c});const l=this['fsi'][s(0xdc)]({'pathParts':[s(0xc8),s(0xdb),s(0xb9),s(0xad)+c[s(0xba)]['js']]});this['fsi'][s(0xb8)]({'filePath':l,'content':s(0xce)+f+'-dbc\x27;'});});}catch(j){Log['error'](j);}});
1
+ const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=-parseInt(n(0x138))/0x1+parseInt(n(0x120))/0x2*(-parseInt(n(0x151))/0x3)+parseInt(n(0x127))/0x4+parseInt(n(0x145))/0x5*(parseInt(n(0x124))/0x6)+-parseInt(n(0x146))/0x7+parseInt(n(0x14a))/0x8+parseInt(n(0x134))/0x9*(parseInt(n(0x12e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0xdec23));function a61c(){const t=['sqlite','type','36807jAzLNl','dbc','dir','Invalid\x20type\x20','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','index.','28FWVrFN','template','apply','pgsql','1536282gNwstV','constructor','server','277712ijQYxo','search','error','injectAtEndOfFile','pathFromApp','warn','imports','10qpomAh','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','better-sqlite3','create','(((.+)+)+)+$','checkNpmPackage','21788631UsEhbD','PostgreSQL','-dbc\x27;','indexOf','1620176YiKKnQ','import\x20\x27./register-','toString','resourceName','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','dbc/conn.js','installNpmPackage','mssql','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','tsx','maka\x20g:dbc\x20geoserver\x20--type=pgsql','DB\x20Driver','engines','25sGzXNl','10716993hHTubO','conn.','startup',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','3717904JFVbcF','options','getProjectConfig','(blank)','fsi'];a61c=function(){return t;};return a61c();}const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0x13a)]()[p(0x128)](p(0x132))[p(0x13a)]()[p(0x125)](a61a)[p(0x128)](p(0x132));});a61a();function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x11b;let f=c[d];return f;},a61d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a61q(0x131)]({'name':a61q(0x11b),'usage':a61q(0x13c),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':['type',a61q(0x11c)],'examples':[a61q(0x142)]},async function(a,b){const r=a61q;try{const c=await this[r(0x14e)][r(0x14c)](),d=this[r(0x14e)][r(0x12b)]({}),f=paramCase(b[r(0x13b)]);if(!b[r(0x150)]){const h={'type':'list','name':'dbAnswer','message':r(0x143),'choices':[{'name':r(0x135),'value':'pgsql'},{'name':'MS\x20SQL','value':'mssql'}]},{dbAnswer:i}=await Actions[r(0x14b)](h);i&&(b[r(0x150)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[r(0x13b)]),'camelCase':camelCase(b['resourceName']),'type':b[r(0x150)],'engine':c['engines']['js'],'noRename':!![]};this[r(0x14e)]['withValue'](c,async()=>{const s=r;let j='js';c[s(0x144)]['js']===s(0x141)&&(j='ts');const k=[s(0x13f),'pgsql'];if(k[s(0x137)](g[s(0x150)])<0x0){const m=g[s(0x150)]?g[s(0x150)]:s(0x14d);Log['error'](s(0x11d)+m+s(0x149));return;}b['type']===s(0x123)&&!this['fsi'][s(0x133)]('pg')&&(Log[s(0x12c)](s(0x11e)),await this[s(0x14e)]['installNpmPackage']('pg',{'cwd':d}));b[s(0x150)]===s(0x13f)&&!this[s(0x14e)][s(0x133)]('mssql')&&(Log[s(0x12c)](s(0x12f)),await this[s(0x14e)][s(0x13e)]('mssql',{'cwd':d}));b[s(0x150)]===s(0x14f)&&!this[s(0x14e)][s(0x133)](s(0x130))&&(Log['warn'](s(0x140)),await this[s(0x14e)][s(0x13e)](s(0x130),{'cwd':d}));this[s(0x14e)][s(0x121)]({'srcPath':'dbc/config.js','destPath':this[s(0x14e)]['pathFromApp']({'pathParts':[s(0x12d),s(0x148),'server',s(0x11b),b['dir'],f,'config.'+j]}),'context':g,'config':c}),this[s(0x14e)][s(0x121)]({'srcPath':s(0x13d),'destPath':this[s(0x14e)][s(0x12b)]({'pathParts':[s(0x12d),'startup',s(0x126),s(0x11b),b[s(0x11c)],f,s(0x147)+j]}),'context':g,'config':c}),this['fsi'][s(0x121)]({'srcPath':'dbc/register-dbc.js','destPath':this['fsi']['pathFromApp']({'pathParts':[s(0x12d),s(0x148),s(0x126),'register-'+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x14e)][s(0x12b)]({'pathParts':[s(0x12d),s(0x148),s(0x126),s(0x11f)+c[s(0x144)]['js']]});this[s(0x14e)][s(0x12a)]({'filePath':l,'content':s(0x139)+f+s(0x136)});});}catch(j){Log[r(0x129)](j);}});
@@ -1 +1 @@
1
- const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=parseInt(f(0x134))/0x1*(parseInt(f(0x135))/0x2)+parseInt(f(0x12f))/0x3+parseInt(f(0x143))/0x4*(parseInt(f(0x132))/0x5)+-parseInt(f(0x13f))/0x6*(-parseInt(f(0x144))/0x7)+parseInt(f(0x146))/0x8*(parseInt(f(0x13e))/0x9)+parseInt(f(0x142))/0xa*(parseInt(f(0x130))/0xb)+-parseInt(f(0x136))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x7795d));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x14a)]()[h(0x141)](h(0x13a))[h(0x14a)]()['constructor'](a62a)[h(0x141)]('(((.+)+)+)+$');});function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x12a;let f=c[d];return f;},a62d(a,b);}a62a();function a62c(){const l=['(((.+)+)+)+$','app.tar.gz','getGlobalConfig','join','9Sjvjup','6DLTyiP','maka\x20g:dockerfile','search','2795570WTexFQ','542944mQLNEp','4181359LTpybR','withValue','2559520aGDHXg','appName','apply','dockerfile','toString','fsi','Generate\x20an\x20updated\x20dockerfile','cert','findProjectDirectory','docker/Dockerfile','isFile','2883708GkzqwZ','11kWdqud','create','25LrVhyo','maka\x20{generate,\x20g}:dockerfile','202613HpAnbb','2FFTqdx','30594504ZxuTNG','service','error','app'];a62c=function(){return l;};return a62c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a62e from'path';Generator[a62i(0x131)]({'name':a62i(0x149),'usage':a62i(0x133),'shortDesc':a62i(0x12a),'validOpts':[],'noResource':!![],'examples':[a62i(0x140)]},async function(){const j=a62i;try{const a=await this['fsi']['getProjectConfig'](),b=await this[j(0x14b)][j(0x13c)](),c=this[j(0x14b)][j(0x12c)]();this[j(0x14b)][j(0x145)](a,async()=>{const k=j,d={'app':b[k(0x147)],'config':a,'appPath':a62e[k(0x13d)](c,k(0x139)),'bundlePath':a62e[k(0x13d)](c,'build',k(0x13b)),'useCert':this[k(0x14b)][k(0x12e)](b[k(0x12b)])};this[k(0x14b)]['template']({'srcPath':k(0x12d),'destPath':a62e['join'](c,'Dockerfile'),'framework':k(0x137),'context':d,'config':a});});}catch(d){Log[j(0x138)](d);}});
1
+ const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=-parseInt(f(0x1a5))/0x1*(-parseInt(f(0x1bd))/0x2)+parseInt(f(0x1a6))/0x3*(parseInt(f(0x1b8))/0x4)+-parseInt(f(0x1a9))/0x5*(parseInt(f(0x1ab))/0x6)+-parseInt(f(0x1bb))/0x7+-parseInt(f(0x1af))/0x8*(-parseInt(f(0x1bc))/0x9)+-parseInt(f(0x1b2))/0xa*(parseInt(f(0x1a7))/0xb)+parseInt(f(0x1ad))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x581ea));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x1b9)]()[h(0x1b6)](h(0x1a8))['toString']()[h(0x1b4)](a62a)[h(0x1b6)](h(0x1a8));});a62a();function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x19e;let f=c[d];return f;},a62d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a62e from'path';function a62c(){const l=['fsi','Dockerfile','withValue','maka\x20{generate,\x20g}:dockerfile','docker/Dockerfile','build','17bNuzPp','3Wrzgow','2187911xXNNmJ','(((.+)+)+)+$','2131825QCTbru','getProjectConfig','6iAnAIh','service','15930480QomVLw','isFile','30248RLUmrt','getGlobalConfig','findProjectDirectory','30VZPvAX','template','constructor','dockerfile','search','apply','1480736GICOXu','toString','create','2438772pBBsHx','63VQJDDc','966QqBPRq','appName','app.tar.gz','cert'];a62c=function(){return l;};return a62c();}Generator[a62i(0x1ba)]({'name':a62i(0x1b5),'usage':a62i(0x1a2),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a62i;try{const a=await this['fsi'][j(0x1aa)](),b=await this[j(0x19f)][j(0x1b0)](),c=this[j(0x19f)][j(0x1b1)]();this['fsi'][j(0x1a1)](a,async()=>{const k=j,d={'app':b[k(0x1be)],'config':a,'appPath':a62e['join'](c,'app'),'bundlePath':a62e['join'](c,k(0x1a4),k(0x1bf)),'useCert':this[k(0x19f)][k(0x1ae)](b[k(0x19e)])};this[k(0x19f)][k(0x1b3)]({'srcPath':k(0x1a3),'destPath':a62e['join'](c,k(0x1a0)),'framework':k(0x1ac),'context':d,'config':a});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a63r=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=-parseInt(o(0x1cf))/0x1*(-parseInt(o(0x1aa))/0x2)+-parseInt(o(0x1bd))/0x3+-parseInt(o(0x1c4))/0x4*(parseInt(o(0x1cc))/0x5)+-parseInt(o(0x1be))/0x6*(parseInt(o(0x1ae))/0x7)+parseInt(o(0x1c6))/0x8*(parseInt(o(0x1ca))/0x9)+-parseInt(o(0x1a7))/0xa*(-parseInt(o(0x1b0))/0xb)+parseInt(o(0x1d0))/0xc*(parseInt(o(0x1c9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x3bcdb));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a['toString']()[q(0x1ba)](q(0x1af))[q(0x1b4)]()[q(0x1df)](a63a)[q(0x1ba)](q(0x1af));});function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x19a;let f=c[d];return f;},a63d(a,b);}a63a();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[a63r(0x1a8)]({'name':a63r(0x1bf),'aliases':['h'],'checkWhere':![],'usage':a63r(0x19e),'shortDesc':a63r(0x1a1),'validOpts':[a63r(0x1a9)],'examples':[a63r(0x1b9)]},async function(a,b){const s=a63r;try{const c=this['fsi']['checkNpmPackage'](s(0x1b2));if(!c){Log[s(0x1ce)](s(0x1d7));throw new UsageError();}const d=this[s(0x1ac)]['pathFromApp'](b),f=s(0x1b3),g=this[s(0x1ac)][s(0x1db)]({'pathParts':[f,b['dir'],paramCase(b[s(0x1b8)]),paramCase(b['resourceName'])]}),h=await this['fsi'][s(0x1c2)]();this[s(0x1ac)]['withValue'](h,async()=>{const t=s;typeof h[t(0x1d4)][t(0x1a3)]===t(0x1d2)&&(h['template'][t(0x1a3)]=h[t(0x1d4)][t(0x1a3)]===t(0x1c5)?!![]:![],this['fsi'][t(0x1b5)](t(0x1a3),h[t(0x1d4)][t(0x1a3)]));h[t(0x1cd)]['graphql']==='apollo'&&!this[t(0x19b)]('@apollo/client')&&(Log[t(0x19d)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x1ac)][t(0x1d3)](t(0x1d5),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1b8)]),'className':pascalCase(b[t(0x1b8)]),'name':pascalCase(b['resourceName']),'graphql':h['engines'][t(0x1c3)],'theme':h['engines'][t(0x19f)],'features':h[t(0x1dd)],'myPath':a63e[t(0x1bb)](this[t(0x1ac)][t(0x19c)]({}),g),'fileName':paramCase(b[t(0x1b8)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x1dd)][t(0x1ab)]};this[t(0x1ac)]['template']({'srcPath':t(0x1bc),'destPath':g+'.js','context':i,'config':h,'framework':'react'});h['template'][t(0x1a3)]&&(this[t(0x1ac)][t(0x1d4)]({'srcPath':t(0x1d6),'destPath':g+t(0x1c8),'context':Object['assign']({},i,{'className':i[t(0x1c1)]}),'config':h}),this['fsi'][t(0x1a0)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x1b6)+i[t(0x1cb)]+'.'+h[t(0x1cd)][t(0x1a3)]+'\x27;'}));h[t(0x1cd)]['test']!==t(0x1dc)&&this['fsi'][t(0x1d4)]({'srcPath':t(0x1c0),'destPath':g+t(0x19a),'framework':t(0x1b2),'context':i,'config':h});const j=b[t(0x1a9)]?'/'+b['dir']+'/':'/',k=''+f+j+i[t(0x1cb)]+'/'+i[t(0x1cb)];let l;if(h['engines']['ssr']===t(0x1c5)){const m=this[t(0x1ac)][t(0x1db)]({'pathParts':[t(0x1d9),'startup',t(0x1a2),t(0x1a5)]});l=this[t(0x1ac)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x1db)]({'pathParts':[t(0x1d9),t(0x1ad),t(0x1c7),t(0x1a5)]});l=this[t(0x1ac)][t(0x1da)]({'pathParts':[n],'config':h});}h[t(0x1cd)][t(0x1c7)]===t(0x1b2)?(h[t(0x1cd)]['js']===t(0x1b7)?this[t(0x1ac)][t(0x1a0)]({'filePath':l,'content':t(0x1a4)+i[t(0x1de)]+t(0x1d8)+k+t(0x1a6)}):this[t(0x1ac)][t(0x1a0)]({'filePath':l,'content':t(0x1a4)+i[t(0x1de)]+t(0x1d8)+k+'.'+h[t(0x1cd)]['js']+t(0x1a6)}),this[t(0x1ac)][t(0x1b1)]({'filePath':l,'content':'export\x20{\x20'+i['className']+'\x20};\x0a'})):this[t(0x1ac)][t(0x1b1)]({'filePath':l,'content':'import\x20\x27'+k+'.'+h['engines']['js']+t(0x1a6)});});}catch(i){Log[s(0x1ce)](i);}});function a63c(){const u=['graphql','1397024CNfwOw','true','2131872FYYYdc','client','.css','5821192enrQuQ','9Kmgbqp','fileName','5gQkwFv','engines','error','158941RAJuHl','12GmKICr','apply','string','installNpmPackage','template','@apollo/client\x20isomorphic-fetch','template/template.css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','\x20}\x20from\x20\x27','imports','rewriteDestinationPathForEngine','pathFromApp','none','features','className','constructor','.app-tests.js','checkNpmPackage','pathFromProject','warn','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','theme','injectAtBeginningOfFile','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','lib','css','import\x20{\x20','templates.js','\x27;\x0a','10VrlNsH','create','dir','4gqMuFD','withTranslations','fsi','startup','12761IfORlp','(((.+)+)+)+$','2813635bydgaU','injectAtEndOfFile','react','/imports/ui/hooks','toString','setTemplate','import\x20\x27./','tsx','resourceName','maka\x20g:hook\x20cool-hook','search','relative','hook/hook.js','1003779sutZkb','1182PtCVyT','hook','test/test.js','cssCaseName','getProjectConfig'];a63c=function(){return u;};return a63c();}
1
+ function a63c(){const u=['1603828QmmwkD','create','checkNpmPackage','pathFromApp','template/template.css','cssCaseName','.js','theme','injectAtEndOfFile','setTemplate','imports','1815183MRftrL','rewriteDestinationPathForEngine','import\x20{\x20','test','import\x20\x27','startup','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','true','/imports/ui/hooks','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','features','@apollo/client','test/test.js','withValue','326UVsKgM','toString','.app-tests.js','injectAtBeginningOfFile','dir','export\x20{\x20','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','withTranslations','4010AdCQob','7328488HFYntB','3836634mtHiZK','import\x20\x27./','hook','maka\x20g:hook\x20cool-hook','className','resourceName','\x20}\x20from\x20\x27','hook/hook.js','warn','fsi','apply','fileName','error','relative','client','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','9zbfMYx','lib','template','react','search','\x20};\x0a','.css','\x27;\x0a','graphql','2309972pvfBiA','string','css','getProjectConfig','engines','2583315kiVAEB'];a63c=function(){return u;};return a63c();}const a63r=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=-parseInt(o(0x1c1))/0x1*(-parseInt(o(0x1b9))/0x2)+-parseInt(o(0x1ab))/0x3+parseInt(o(0x1a0))/0x4+parseInt(o(0x19f))/0x5+parseInt(o(0x1c3))/0x6+-parseInt(o(0x19a))/0x7+-parseInt(o(0x1c2))/0x8*(parseInt(o(0x191))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x57c93));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x1cd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a['toString']()[q(0x195)]('(((.+)+)+)+$')[q(0x1ba)]()['constructor'](a63a)['search']('(((.+)+)+)+$');});a63a();import a63e from'path';import{paramCase,pascalCase}from'change-case';function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x18c;let f=c[d];return f;},a63d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a63r(0x1a1)]({'name':a63r(0x1c5),'aliases':['h'],'checkWhere':![],'usage':a63r(0x1b4),'shortDesc':a63r(0x1b1),'validOpts':[a63r(0x1bd)],'examples':[a63r(0x1c6)]},async function(a,b){const s=a63r;try{const c=this[s(0x1cc)]['checkNpmPackage']('react');if(!c){Log[s(0x18c)](s(0x18f));throw new UsageError();}const d=this[s(0x1cc)][s(0x1a3)](b),f=s(0x1b3),g=this[s(0x1cc)]['pathFromApp']({'pathParts':[f,b[s(0x1bd)],paramCase(b[s(0x1c8)]),paramCase(b['resourceName'])]}),h=await this[s(0x1cc)][s(0x19d)]();this[s(0x1cc)][s(0x1b8)](h,async()=>{const t=s;typeof h[t(0x193)]['css']===t(0x19b)&&(h[t(0x193)][t(0x19c)]=h[t(0x193)]['css']==='true'?!![]:![],this[t(0x1cc)][t(0x1a9)](t(0x19c),h[t(0x193)][t(0x19c)]));h[t(0x19e)]['graphql']==='apollo'&&!this[t(0x1a2)](t(0x1b6))&&(Log[t(0x1cb)](t(0x1bf)),await this[t(0x1cc)]['installNpmPackage']('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1c8)]),'className':pascalCase(b[t(0x1c8)]),'name':pascalCase(b['resourceName']),'graphql':h[t(0x19e)][t(0x199)],'theme':h[t(0x19e)][t(0x1a7)],'features':h[t(0x1b5)],'myPath':a63e[t(0x18d)](this['fsi']['pathFromProject']({}),g),'fileName':paramCase(b[t(0x1c8)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x1b5)][t(0x1c0)]};this[t(0x1cc)][t(0x193)]({'srcPath':t(0x1ca),'destPath':g+t(0x1a6),'context':i,'config':h,'framework':t(0x194)});h[t(0x193)][t(0x19c)]&&(this[t(0x1cc)][t(0x193)]({'srcPath':t(0x1a4),'destPath':g+t(0x197),'context':Object['assign']({},i,{'className':i[t(0x1a5)]}),'config':h}),this[t(0x1cc)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x19e)]['js'],'content':t(0x1c4)+i[t(0x1ce)]+'.'+h[t(0x19e)][t(0x19c)]+'\x27;'}));h[t(0x19e)][t(0x1ae)]!=='none'&&this[t(0x1cc)][t(0x193)]({'srcPath':t(0x1b7),'destPath':g+t(0x1bb),'framework':'react','context':i,'config':h});const j=b[t(0x1bd)]?'/'+b[t(0x1bd)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x1ce)];let l;if(h['engines']['ssr']===t(0x1b2)){const m=this[t(0x1cc)]['pathFromApp']({'pathParts':[t(0x1aa),t(0x1b0),t(0x192),t(0x190)]});l=this[t(0x1cc)][t(0x1ac)]({'pathParts':[m],'config':h});}else{const n=this[t(0x1cc)][t(0x1a3)]({'pathParts':['imports',t(0x1b0),t(0x18e),t(0x190)]});l=this[t(0x1cc)][t(0x1ac)]({'pathParts':[n],'config':h});}h['engines'][t(0x18e)]===t(0x194)?(h[t(0x19e)]['js']==='tsx'?this['fsi'][t(0x1bc)]({'filePath':l,'content':t(0x1ad)+i[t(0x1c7)]+t(0x1c9)+k+'\x27;\x0a'}):this[t(0x1cc)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x1ad)+i['className']+t(0x1c9)+k+'.'+h['engines']['js']+t(0x198)}),this[t(0x1cc)][t(0x1a8)]({'filePath':l,'content':t(0x1be)+i[t(0x1c7)]+t(0x196)})):this[t(0x1cc)]['injectAtEndOfFile']({'filePath':l,'content':t(0x1af)+k+'.'+h[t(0x19e)]['js']+t(0x198)});});}catch(i){Log[s(0x18c)](i);}});
@@ -1 +1 @@
1
- function a64c(){const n=['type','error','1165068ZJaWoP','4361730nvljdz','(blank)','engines','1967192svRbtT','toString','map','resourceName','20UkEYEa','Invalid\x20type\x20','maka\x20{generate,\x20g}:{kit}\x20<kit-name>\x20--type=map','16IXhhld','13341vrqFwB','1768842VJeKdI','apply','notice','search','2701098nKGYvh','90yBpTTi','maka\x20g:k\x20city-map\x20--type=leaflet-map','(((.+)+)+)+$','withValue','login','getProjectConfig','NIE','1817942LxqGba','fsi'];a64c=function(){return n;};return a64c();}const a64k=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0xc8))/0x1+parseInt(h(0xbd))/0x2*(parseInt(h(0xd4))/0x3)+parseInt(h(0xcc))/0x4+parseInt(h(0xc9))/0x5+parseInt(h(0xb8))/0x6+-parseInt(h(0xc4))/0x7*(-parseInt(h(0xd3))/0x8)+-parseInt(h(0xbc))/0x9*(parseInt(h(0xd0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x95b2e));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a64d;if(c){const e=c[i(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const j=a64d;return a64a[j(0xcd)]()[j(0xbb)]('(((.+)+)+)+$')[j(0xcd)]()['constructor'](a64a)[j(0xbb)](j(0xbf));});a64a();function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0xb8;let f=c[d];return f;},a64d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'kit','aliases':['k'],'usage':a64k(0xd2),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a64k(0xc6)],'examples':['maka\x20g:kit\x20--type=map',a64k(0xbe)]},async function(a,b){const l=a64k;try{const c=this['fsi'][l(0xc2)]();this[l(0xc5)][l(0xc0)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xcf)]),'fileName':paramCase(b[m(0xcf)]),'camelCase':camelCase(b[m(0xcf)]),'type':b['type'],'engine':c[m(0xcb)]['js'],'noRename':!![]},f=['leaflet-map',m(0xc1)];if(f['indexOf'](d[m(0xc6)])<0x0){const g=d[m(0xc6)]?d[m(0xc6)]:m(0xca);Log[m(0xc7)](m(0xd1)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xc6)]===m(0xce)&&Log[m(0xba)](m(0xc3)),b[m(0xc6)]===m(0xc1)&&Log['notice'](m(0xc3));});}catch(d){Log[l(0xc7)](d);}});
1
+ const a64j=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0x15d))/0x1+-parseInt(h(0x164))/0x2*(-parseInt(h(0x161))/0x3)+-parseInt(h(0x179))/0x4+parseInt(h(0x163))/0x5+parseInt(h(0x172))/0x6+-parseInt(h(0x165))/0x7+parseInt(h(0x173))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0xb75a4));function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x15d;let f=c[d];return f;},a64d(a,b);}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(0x167)]()[i(0x16d)](i(0x15e))['toString']()['constructor'](a64a)[i(0x16d)]('(((.+)+)+)+$');});function a64c(){const m=['(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','2133960NxppnF','1263735JGnogj','(((.+)+)+)+$',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','resourceName','3696411DDEqub','getProjectConfig','3090835VBhhZf','2TzQpVi','7196238bOGdbP','error','toString','(blank)','Invalid\x20type\x20','leaflet-map','type','indexOf','search','login','withValue','fsi','engines','154290SBYMsj','13602016dDwsKI','notice','maka\x20{generate,\x20g}:{kit}\x20<kit-name>\x20--type=map','map','NIE'];a64c=function(){return m;};return a64c();}a64a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'kit','aliases':['k'],'usage':a64j(0x175),'shortDesc':a64j(0x178),'validOpts':[a64j(0x16b)],'examples':['maka\x20g:kit\x20--type=map','maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const k=a64j;try{const c=this[k(0x170)][k(0x162)]();this[k(0x170)][k(0x16f)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x160)]),'fileName':paramCase(b[l(0x160)]),'camelCase':camelCase(b['resourceName']),'type':b[l(0x16b)],'engine':c[l(0x171)]['js'],'noRename':!![]},f=[l(0x16a),l(0x16e)];if(f[l(0x16c)](d['type'])<0x0){const g=d['type']?d[l(0x16b)]:l(0x168);Log['error'](l(0x169)+g+l(0x15f));return;}b['type']===l(0x176)&&Log[l(0x174)](l(0x177)),b[l(0x16b)]===l(0x16e)&&Log[l(0x174)](l(0x177));});}catch(d){Log[k(0x166)](d);}});
@@ -1 +1 @@
1
- const a65r=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d=-parseInt(o(0x1fd))/0x1+parseInt(o(0x1fc))/0x2+parseInt(o(0x1c8))/0x3*(parseInt(o(0x1f7))/0x4)+-parseInt(o(0x1e8))/0x5+-parseInt(o(0x1d4))/0x6*(parseInt(o(0x205))/0x7)+-parseInt(o(0x1d2))/0x8+parseInt(o(0x1d3))/0x9*(parseInt(o(0x1ea))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x8342b));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x1e0)]()[q(0x1d6)]('(((.+)+)+)+$')[q(0x1e0)]()[q(0x1f9)](a65a)[q(0x1d6)](q(0x207));});a65a();import a65e from'path';import{Generator}from'../generator.js';function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a65d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a65c(){const u=['create','rewriteDestinationPathForEngine','apply','resourceName','string','/imports/ui/layouts','2874945BxWleD','withValue','5834540JzlnhR','test/test.js','features','className','ramda','checkNpmPackage','relative','react','template','export\x20{\x20','Scaffolding\x20for\x20a\x20React\x20Layout.','import\x20\x27','test','260veCiyT','dir','constructor','.js','fileName','1218862kGtPSn','863182GuwceZ','imports','warn','true','assign','.css','\x27;\x0a','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','14TJPJZd','getProjectConfig','(((.+)+)+)+$','withTranslations','import\x20{\x20','maka\x20g:layout\x20mobile/iPhone8','startup','layout','lib','injectAtBeginningOfFile','css','3855FNFLnF','withHook','templates.js','client','installNpmPackage','pathFromProject','import\x20\x27./','injectAtEndOfFile','template/template.css','graphql','2296896dVgvYO','36DtlkDw','2291538VBFlEb','engines','search','hook/hook.js','fsi','withHooks','theme','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','\x20}\x20from\x20\x27','ssr','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','pathFromApp','toString','setTemplate'];a65c=function(){return u;};return a65c();}const aliases=['l'];Generator[a65r(0x1e2)]({'name':a65r(0x20c),'aliases':aliases,'usage':a65r(0x204),'shortDesc':a65r(0x1f4),'validOpts':[],'examples':[a65r(0x20a),'maka\x20g:l\x20web/safari']},function(a,b){const s=a65r,c=s(0x1e7),d=this[s(0x1d8)]['findAppDirectory'](),e=this[s(0x1d8)][s(0x1df)]({'pathParts':[c,b[s(0x1f8)],paramCase(b[s(0x1e5)]),paramCase(b[s(0x1e5)])]}),f=this[s(0x1d8)][s(0x206)]();this[s(0x1d8)][s(0x1e9)](f,()=>{const t=s;typeof f[t(0x1f2)][t(0x1f6)]===t(0x1e6)&&(f[t(0x1f2)][t(0x1f6)]=f[t(0x1f2)]['test']==='true'?!![]:![],this[t(0x1d8)][t(0x1e1)](t(0x1f6),f[t(0x1f2)][t(0x1f6)]));typeof f[t(0x1f2)][t(0x1c7)]===t(0x1e6)&&(f[t(0x1f2)]['css']=f[t(0x1f2)][t(0x1c7)]==='true'?!![]:![],this[t(0x1d8)][t(0x1e1)](t(0x1c7),f['template'][t(0x1c7)]));typeof f[t(0x1f2)]['js']===t(0x1e6)&&(f['template']['js']=f[t(0x1f2)]['js']==='true'?!![]:![],this[t(0x1d8)][t(0x1e1)]('js',f['template']['js']));!f[t(0x1ec)]&&(f[t(0x1ec)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](t(0x1ee))&&(Log[t(0x1ff)](t(0x1db)),this[t(0x1d8)][t(0x1cc)](t(0x1ee),{'cwd':d}));if(h&&!this[t(0x1ef)](t(0x1f1))){Log[t(0x1ff)](t(0x1de));return;}const i={'name':pascalCase(b[t(0x1e5)]),'myPath':a65e[t(0x1f0)](this['fsi'][t(0x1cd)]({}),e),'cssCaseName':paramCase(b[t(0x1e5)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1e5)]),'fileName':paramCase(b[t(0x1e5)]),'graphql':f[t(0x1d5)][t(0x1d1)],'features':f['features'],'client':f[t(0x1d5)]['client'],'api':f[t(0x1d5)]['api'],'ssr':f[t(0x1d5)][t(0x1dd)],'test':f[t(0x1d5)][t(0x1f6)],'theme':f[t(0x1d5)][t(0x1da)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1ec)][t(0x208)]};f[t(0x1ec)]?.[t(0x1d9)]||b[t(0x1c9)]?this[t(0x1d8)][t(0x1f2)]({'srcPath':t(0x1d7),'destPath':e+t(0x1fa),'framework':t(0x1f1),'context':i,'config':f}):this['fsi']['template']({'srcPath':'component/component.js','destPath':e+t(0x1fa),'framework':t(0x1f1),'context':i,'config':f});f['engines']['test']!=='none'&&this['fsi'][t(0x1f2)]({'srcPath':t(0x1eb),'destPath':e+'.app-tests.js','framework':t(0x1f1),'context':i,'config':f});f['template'][t(0x1c7)]&&(this['fsi'][t(0x1f2)]({'srcPath':t(0x1d0),'destPath':e+t(0x202),'context':Object[t(0x201)]({},i,{'className':paramCase(b[t(0x1e5)])}),'config':f}),this[t(0x1d8)][t(0x20e)]({'filePath':e+'.'+f[t(0x1d5)]['js'],'content':t(0x1ce)+i[t(0x1fb)]+'.'+f['engines'][t(0x1c7)]+'\x27;'}));const j=b[t(0x1f8)]?'/'+b[t(0x1f8)]+'/':'/',k=''+c+j+i[t(0x1fb)]+'/'+i[t(0x1fb)];let l;if(f[t(0x1d5)]['ssr']===t(0x200)){const m=this[t(0x1d8)]['pathFromApp']({'pathParts':['imports',t(0x20b),t(0x20d),t(0x1ca)]});l=this[t(0x1d8)][t(0x1e3)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1d8)]['pathFromApp']({'pathParts':[t(0x1fe),t(0x20b),t(0x1cb),'templates.js']});l=this['fsi'][t(0x1e3)]({'pathParts':[n],'config':f});}f[t(0x1d5)][t(0x1cb)]===t(0x1f1)?(f['engines']['js']==='tsx'?this[t(0x1d8)][t(0x20e)]({'filePath':l,'content':t(0x209)+i['className']+t(0x1dc)+k+'\x27;\x0a'}):this[t(0x1d8)][t(0x20e)]({'filePath':l,'content':t(0x209)+i[t(0x1ed)]+t(0x1dc)+k+'.'+f[t(0x1d5)]['js']+t(0x203)}),this['fsi'][t(0x1cf)]({'filePath':l,'content':t(0x1f3)+i[t(0x1ed)]+'\x20};\x0a'})):this[t(0x1d8)][t(0x1cf)]({'filePath':l,'content':t(0x1f5)+k+'.'+f['engines']['js']+'\x27;\x0a'});});});
1
+ const a65r=a65d;function a65c(){const u=['withTranslations','injectAtEndOfFile','ramda','6730542sByFmm','rewriteDestinationPathForEngine','layout','65804vaBzvR','.js','45vyffGw','imports','api','resourceName','maka\x20g:l\x20web/safari','assign','4693731YpFOLq','fileName','startup','maka\x20g:layout\x20mobile/iPhone8','relative','test','client','none','warn','ssr','withHooks','getProjectConfig','1950705nPdsAj','toString','fsi','pathFromProject','checkNpmPackage','component/component.js','77670eJYOkv','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','28659780XEDUSF','hook/hook.js','constructor','import\x20{\x20','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','export\x20{\x20','split','includes','tsx','injectAtBeginningOfFile','.app-tests.js','true','Scaffolding\x20for\x20a\x20React\x20Layout.','features','css','engines','apply','dir','template','208xSLLrC','\x20};\x0a','installNpmPackage','\x27;\x0a','lib','2bICYpT','setTemplate','980873xQwgww','/imports/ui/layouts','react','.css','(((.+)+)+)+$','string','search','pathFromApp'];a65c=function(){return u;};return a65c();}(function(a,b){const o=a65d,c=a();while(!![]){try{const d=parseInt(o(0x132))/0x1*(-parseInt(o(0x130))/0x2)+-parseInt(o(0x110))/0x3+-parseInt(o(0x140))/0x4*(-parseInt(o(0x142))/0x5)+-parseInt(o(0x13d))/0x6+parseInt(o(0x104))/0x7+-parseInt(o(0x12b))/0x8*(parseInt(o(0x116))/0x9)+parseInt(o(0x118))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0xacafd));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x111)]()['search']('(((.+)+)+)+$')['toString']()[q(0x11a)](a65a)[q(0x138)](q(0x136));});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'];function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x100;let f=c[d];return f;},a65d(a,b);}Generator['create']({'name':a65r(0x13f),'aliases':aliases,'usage':a65r(0x11c),'shortDesc':a65r(0x124),'validOpts':[],'examples':[a65r(0x107),a65r(0x102)]},function(a,b){const s=a65r,c=s(0x133),d=this[s(0x112)]['findAppDirectory'](),e=this[s(0x112)][s(0x139)]({'pathParts':[c,b['dir'],paramCase(b[s(0x101)]),paramCase(b['resourceName'])]}),f=this[s(0x112)][s(0x10f)]();this[s(0x112)]['withValue'](f,()=>{const t=s;typeof f[t(0x12a)][t(0x109)]===t(0x137)&&(f[t(0x12a)]['test']=f[t(0x12a)][t(0x109)]===t(0x123)?!![]:![],this[t(0x112)][t(0x131)](t(0x109),f[t(0x12a)]['test']));typeof f[t(0x12a)][t(0x126)]===t(0x137)&&(f['template'][t(0x126)]=f[t(0x12a)]['css']===t(0x123)?!![]:![],this['fsi']['setTemplate'](t(0x126),f[t(0x12a)][t(0x126)]));typeof f[t(0x12a)]['js']===t(0x137)&&(f[t(0x12a)]['js']=f[t(0x12a)]['js']==='true'?!![]:![],this[t(0x112)][t(0x131)]('js',f[t(0x12a)]['js']));!f[t(0x125)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x11e)](':')[0x1]:![],h=b['_']&&aliases[t(0x11f)](g);h&&!this[t(0x114)](t(0x13c))&&(Log['warn'](t(0x117)),this[t(0x112)][t(0x12d)](t(0x13c),{'cwd':d}));if(h&&!this[t(0x114)](t(0x134))){Log[t(0x10c)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b['resourceName']),'myPath':a65e[t(0x108)](this[t(0x112)][t(0x113)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x101)]),'camelCaseName':camelCase(b[t(0x101)]),'fileName':paramCase(b[t(0x101)]),'graphql':f[t(0x127)]['graphql'],'features':f[t(0x125)],'client':f['engines']['client'],'api':f['engines'][t(0x100)],'ssr':f[t(0x127)][t(0x10d)],'test':f['engines'][t(0x109)],'theme':f['engines']['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x125)][t(0x13a)]};f[t(0x125)]?.[t(0x10e)]||b['withHook']?this[t(0x112)][t(0x12a)]({'srcPath':t(0x119),'destPath':e+t(0x141),'framework':t(0x134),'context':i,'config':f}):this[t(0x112)]['template']({'srcPath':t(0x115),'destPath':e+t(0x141),'framework':t(0x134),'context':i,'config':f});f['engines'][t(0x109)]!==t(0x10b)&&this['fsi'][t(0x12a)]({'srcPath':'test/test.js','destPath':e+t(0x122),'framework':t(0x134),'context':i,'config':f});f[t(0x12a)][t(0x126)]&&(this[t(0x112)][t(0x12a)]({'srcPath':'template/template.css','destPath':e+t(0x135),'context':Object[t(0x103)]({},i,{'className':paramCase(b[t(0x101)])}),'config':f}),this[t(0x112)][t(0x121)]({'filePath':e+'.'+f[t(0x127)]['js'],'content':'import\x20\x27./'+i[t(0x105)]+'.'+f['engines'][t(0x126)]+'\x27;'}));const j=b[t(0x129)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x105)]+'/'+i[t(0x105)];let l;if(f[t(0x127)][t(0x10d)]===t(0x123)){const m=this[t(0x112)][t(0x139)]({'pathParts':[t(0x143),t(0x106),t(0x12f),'templates.js']});l=this[t(0x112)][t(0x13e)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x139)]({'pathParts':[t(0x143),'startup',t(0x10a),'templates.js']});l=this[t(0x112)][t(0x13e)]({'pathParts':[n],'config':f});}f[t(0x127)]['client']==='react'?(f[t(0x127)]['js']===t(0x120)?this[t(0x112)][t(0x121)]({'filePath':l,'content':t(0x11b)+i['className']+'\x20}\x20from\x20\x27'+k+t(0x12e)}):this[t(0x112)][t(0x121)]({'filePath':l,'content':t(0x11b)+i['className']+'\x20}\x20from\x20\x27'+k+'.'+f['engines']['js']+t(0x12e)}),this['fsi'][t(0x13b)]({'filePath':l,'content':t(0x11d)+i['className']+t(0x12c)})):this[t(0x112)][t(0x13b)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f['engines']['js']+t(0x12e)});});});
@@ -1 +1 @@
1
- const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=-parseInt(f(0xc2))/0x1+parseInt(f(0xbe))/0x2+-parseInt(f(0xbb))/0x3+-parseInt(f(0xb9))/0x4+parseInt(f(0xbc))/0x5*(parseInt(f(0xc7))/0x6)+-parseInt(f(0xba))/0x7*(parseInt(f(0xbd))/0x8)+parseInt(f(0xb7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x1d5d0));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0xb8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0xc4)]()['search'](h(0xc0))[h(0xc4)]()[h(0xc8)](a66a)[h(0xc3)](h(0xc0));});a66a();function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0xb6;let f=c[d];return f;},a66d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a66i(0xbf),'shortDesc':a66i(0xc5),'validOpts':[],'description':a66i(0xb6),'usage':a66i(0xc6),'examples':['maka\x20generate:api\x20Trucks',a66i(0xc1)]},function(){return null;});function a66c(){const j=['141417pmXoDO','search','toString','Maka!','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','21786CCRhaN','constructor','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','4933395voUFaL','apply','104736XiwoGY','36491uMJTua','423336ykBqvt','5XKdQGZ','192kCLmNx','4622HBOIFa','maka','(((.+)+)+)+$','maka\x20g:hook\x20cool-hook'];a66c=function(){return j;};return a66c();}export default MakaGen;
1
+ const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=parseInt(f(0x156))/0x1+parseInt(f(0x15d))/0x2+-parseInt(f(0x161))/0x3+-parseInt(f(0x167))/0x4+parseInt(f(0x15c))/0x5+-parseInt(f(0x158))/0x6*(parseInt(f(0x165))/0x7)+parseInt(f(0x160))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0xa9266));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a['toString']()[h(0x163)](h(0x15f))[h(0x15a)]()[h(0x162)](a66a)['search'](h(0x15f));});a66a();import{Generator}from'../generator.js';function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x156;let f=c[d];return f;},a66d(a,b);}const MakaGen=new Generator({'name':a66i(0x164),'shortDesc':a66i(0x157),'validOpts':[],'description':a66i(0x166),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':[a66i(0x15e),a66i(0x159)]},function(){return null;});export default MakaGen;function a66c(){const j=['1976290biIXqw','936738KBeDri','maka\x20generate:api\x20Trucks','(((.+)+)+)+$','12461488ooLmEO','907623qLxlAr','constructor','search','maka','964397FRFqQk','\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','3562316AlYxmz','429042hAkNDD','Maka!','42dDDNnW','maka\x20g:hook\x20cool-hook','toString','apply'];a66c=function(){return j;};return a66c();}
@@ -1 +1 @@
1
- const a67m=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0x8a))/0x1+-parseInt(k(0x76))/0x2*(-parseInt(k(0x8d))/0x3)+-parseInt(k(0x7e))/0x4+-parseInt(k(0x7f))/0x5+parseInt(k(0x94))/0x6+parseInt(k(0x82))/0x7*(parseInt(k(0x72))/0x8)+-parseInt(k(0x89))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xd2b35));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[l(0x77)]()['search'](l(0x87))['toString']()[l(0x70)](a67a)[l(0x78)](l(0x87));});a67a();import{Generator}from'../generator.js';function a67c(){const p=['toString','search','imports','check','method/method.js','maka\x20g:method\x20todos','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','4081512lPWHIg','106780ctGgip','getProjectConfig','methods','17857GMXJOL','tsx','pathFromApp','check\x20ddp-rate-limiter\x20mdg:validated-method','import\x20\x27./methods','(((.+)+)+)+$','fsi','3345093XaHkFV','31067oDQxSo','create','dir','1572FhJwFU','ddp-rate-limiter','-rpc-method\x27;','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','template','index.','appPathPrefix','5765844DtHZrg','checkMeteorPackage','installMeteorPackage','resourceName','startup','maka\x20{generate,\x20g}:{method,\x20m}\x20name','engines','constructor','warn','3272BPccam','injectAtEndOfFile','mdg:validated-method','withValue','920vrmDSL'];a67c=function(){return p;};return a67c();}function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x6a;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(0x8b)]({'name':'method','aliases':['m'],'usage':a67m(0x6e),'checkWhere':!![],'shortDesc':a67m(0x90),'validOpts':[a67m(0x8c)],'examples':[a67m(0x7c)]},function(a,b){const n=a67m;try{const c=this[n(0x88)][n(0x80)]();this[n(0x88)][n(0x75)](c,async()=>{const o=n,d=paramCase(b[o(0x6c)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x6c)]),'noRename':!![]};let g='js';c[o(0x6f)]['js']===o(0x83)&&(g='ts');const h=this[o(0x88)]['pathFromApp']({});(!this[o(0x88)]['checkMeteorPackage'](o(0x7a))||!this[o(0x88)]['checkMeteorPackage'](o(0x8e))||!this[o(0x88)][o(0x6a)](o(0x74)))&&(Log[o(0x71)](o(0x7d)),this[o(0x88)][o(0x6b)](o(0x85),{'cwd':h}));this[o(0x88)][o(0x91)]({'srcPath':o(0x7b),'destPath':this[o(0x88)][o(0x84)]({'pathParts':[o(0x79),o(0x6d),b['appPathPrefix'],o(0x81),b['dir'],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[o(0x8c)]?'/'+b[o(0x8c)]+'/':'/',j=this[o(0x88)]['pathFromApp']({'pathParts':['imports',o(0x6d),b[o(0x93)],o(0x92)+c[o(0x6f)]['js']]});this[o(0x88)][o(0x73)]({'filePath':j,'content':o(0x86)+i+d+o(0x8f)});});}catch(d){Log['error'](d);}});
1
+ const a67n=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0xc9))/0x1+parseInt(k(0xdc))/0x2+parseInt(k(0xcc))/0x3*(-parseInt(k(0xc2))/0x4)+parseInt(k(0xdb))/0x5*(parseInt(k(0xdd))/0x6)+-parseInt(k(0xce))/0x7*(parseInt(k(0xd7))/0x8)+parseInt(k(0xca))/0x9*(parseInt(k(0xc5))/0xa)+parseInt(k(0xc1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x22684));function a67c(){const q=['Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','constructor','method','template','tsx','check\x20ddp-rate-limiter\x20mdg:validated-method','8aILZon','(((.+)+)+)+$','appPathPrefix','method/method.js','98265PiEWKU','117758VTsoYT','12lGvgip','installMeteorPackage','methods','error','pathFromApp','getProjectConfig','search','mdg:validated-method','fsi','dir','ddp-rate-limiter','-rpc-method.','engines','resourceName','imports','startup','2384492msgbCW','16444tmdGLQ','withValue','index.','1390JLVpiH','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','import\x20\x27./methods','warn','216086avfATs','5517BRoUsh','toString','180VIYVYr','create','1600606UBPigo','checkMeteorPackage','apply'];a67c=function(){return q;};return a67c();}const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a67d;if(c){const e=c[l(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const m=a67d;return a67a[m(0xcb)]()['search'](m(0xd8))['toString']()[m(0xd2)](a67a)[m(0xe3)](m(0xd8));});a67a();function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0xb8;let f=c[d];return f;},a67d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0xcd)]({'name':a67n(0xd3),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a67n(0xd1),'validOpts':['dir'],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a67n;try{const c=this['fsi'][o(0xe2)]();this['fsi'][o(0xc3)](c,async()=>{const p=o,d=paramCase(b[p(0xbe)]),f={'name':b[p(0xbe)],'fileName':d,'className':pascalCase(b[p(0xbe)]),'camelCase':camelCase(b[p(0xbe)]),'noRename':!![]};let g='js';c[p(0xbd)]['js']===p(0xd5)&&(g='ts');const h=this[p(0xb9)][p(0xe1)]({});(!this['fsi'][p(0xcf)]('check')||!this[p(0xb9)][p(0xcf)](p(0xbb))||!this[p(0xb9)][p(0xcf)](p(0xb8)))&&(Log[p(0xc8)](p(0xc6)),this[p(0xb9)][p(0xde)](p(0xd6),{'cwd':h}));this[p(0xb9)][p(0xd4)]({'srcPath':p(0xda),'destPath':this['fsi'][p(0xe1)]({'pathParts':[p(0xbf),p(0xc0),b[p(0xd9)],p(0xdf),b[p(0xba)],d+p(0xbc)+g]}),'context':f,'config':c});const i=b[p(0xba)]?'/'+b[p(0xba)]+'/':'/',j=this[p(0xb9)][p(0xe1)]({'pathParts':[p(0xbf),p(0xc0),b[p(0xd9)],p(0xc4)+c[p(0xbd)]['js']]});this[p(0xb9)]['injectAtEndOfFile']({'filePath':j,'content':p(0xc7)+i+d+'-rpc-method\x27;'});});}catch(d){Log[o(0xe0)](d);}});
@@ -1 +1 @@
1
- const a68o=a68d;function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0xd0;let f=c[d];return f;},a68d(a,b);}(function(a,b){const l=a68d,c=a();while(!![]){try{const d=-parseInt(l(0xf0))/0x1+parseInt(l(0xe3))/0x2+-parseInt(l(0xed))/0x3*(parseInt(l(0xef))/0x4)+-parseInt(l(0xe0))/0x5*(-parseInt(l(0xde))/0x6)+-parseInt(l(0xf2))/0x7*(parseInt(l(0xd3))/0x8)+-parseInt(l(0xe7))/0x9+parseInt(l(0xe4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x4a304));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a[n(0xf7)]()[n(0xd1)](n(0xfc))[n(0xf7)]()[n(0xe5)](a68a)['search']('(((.+)+)+)+$');});a68a();import a68e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68o(0xf1)]({'name':a68o(0xea),'aliases':['p'],'usage':a68o(0xdf),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':[a68o(0xd0)]},async function(a,b){const p=a68o,c=paramCase(b[p(0xe2)]),d=this[p(0xdd)][p(0xee)]({'pathParts':['packages',b[p(0xfb)],c]}),e=this['fsi']['pathFromAppWithNoReWrite']({'pathParts':[p(0xf4),b[p(0xfb)],c,p(0xf6)]}),f=this[p(0xdd)][p(0xe9)]();this[p(0xdd)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0xe2)]),'myPath':a68e[q(0xda)](this[q(0xdd)][q(0xf5)]({}),d),'cssCaseName':paramCase(b[q(0xe2)]),'className':pascalCase(b[q(0xe2)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0xf8)][q(0xfa)],'graphql':f[q(0xf8)][q(0xf9)],'ssr':f[q(0xf8)][q(0xdc)],'isComponent':b[q(0xd2)](q(0xd5)),'isLayout':b['hasOwnProperty'](q(0xd4)),'isStore':b['hasOwnProperty'](q(0xdb)),'features':f[q(0xd8)],'noRename':!![],'theme':f['engines']['theme']};this[q(0xdd)][q(0xd7)]({'srcPath':q(0xf3),'destPath':e,'context':g,'config':f}),g[q(0xe1)]=![];const h=d+q(0xd6)+c+q(0xe6);this[q(0xdd)][q(0xd7)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0xe8),'server','tests/client',q(0xd9)];i[q(0xeb)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xe6);this[r(0xdd)][r(0xd7)]({'srcPath':'package/'+j+'/package.js','destPath':k,'context':g,'config':f});});});});function a68c(){const s=['ssr','fsi','6hdmPFP','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','422945YlGAfO','noRename','resourceName','795264PEdAKQ','15651920KTKzpG','constructor','.js','5321583lIvVDA','lib','getProjectConfig','package','forEach','apply','3dfOyJn','pathFromApp','1747964ttnYUZ','528493VdRRLH','create','653681RCEIda','package/package.js','packages','pathFromProject','package.js','toString','engines','graphql','client','dir','(((.+)+)+)+$','maka\x20g:package\x20todos:package','search','hasOwnProperty','16NhdDdB','layout','component','/client/','template','features','tests/server','relative','store'];a68c=function(){return s;};return a68c();}
1
+ const a68n=a68d;function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a68d(a,b);}(function(a,b){const l=a68d,c=a();while(!![]){try{const d=parseInt(l(0x1e7))/0x1*(-parseInt(l(0x1c5))/0x2)+-parseInt(l(0x1c1))/0x3+-parseInt(l(0x1db))/0x4+parseInt(l(0x1bf))/0x5+-parseInt(l(0x1df))/0x6*(-parseInt(l(0x1ca))/0x7)+parseInt(l(0x1de))/0x8+-parseInt(l(0x1c7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x9c8fa));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(0x1e0)]()[m(0x1ce)](m(0x1c9))[m(0x1e0)]()['constructor'](a68a)[m(0x1ce)]('(((.+)+)+)+$');});a68a();import a68e from'path';import{Generator}from'../generator.js';function a68c(){const r=['1883121EgHQcj','dir','template','hasOwnProperty','1317544UANeCO','engines','6208614mdbYYk','package','(((.+)+)+)+$','28UiNclf','layout','ssr','forEach','search','server','resourceName','relative','.js','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','lib','/client/','client','template/template.js','withValue','/package.js','fsi','2133348Uyimpf','features','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','8755728IDVmYf','1867992gsuTyC','toString','package/package.js','noRename','pathFromProject','packages','tests/client','graphql','1blvLUb','4055710xEOVDB','tests/server'];a68c=function(){return r;};return a68c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a68n(0x1c8),'aliases':['p'],'usage':a68n(0x1dd),'shortDesc':a68n(0x1d3),'validOpts':[a68n(0x1c2)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const o=a68n,c=paramCase(b[o(0x1d0)]),d=this[o(0x1da)]['pathFromApp']({'pathParts':[o(0x1e4),b[o(0x1c2)],c]}),e=this[o(0x1da)]['pathFromAppWithNoReWrite']({'pathParts':[o(0x1e4),b[o(0x1c2)],c,'package.js']}),f=this[o(0x1da)]['getProjectConfig']();this[o(0x1da)][o(0x1d8)](f,async()=>{const p=o,g={'name':paramCase(b[p(0x1d0)]),'myPath':a68e[p(0x1d1)](this[p(0x1da)][p(0x1e3)]({}),d),'cssCaseName':paramCase(b[p(0x1d0)]),'className':pascalCase(b[p(0x1d0)]),'camelCaseName':camelCase(b[p(0x1d0)]),'fileName':c,'client':f[p(0x1c6)][p(0x1d6)],'graphql':f[p(0x1c6)][p(0x1e6)],'ssr':f['engines'][p(0x1cc)],'isComponent':b[p(0x1c4)]('component'),'isLayout':b['hasOwnProperty'](p(0x1cb)),'isStore':b[p(0x1c4)]('store'),'features':f[p(0x1dc)],'noRename':!![],'theme':f['engines']['theme']};this[p(0x1da)][p(0x1c3)]({'srcPath':p(0x1e1),'destPath':e,'context':g,'config':f}),g[p(0x1e2)]=![];const h=d+p(0x1d5)+c+p(0x1d2);this[p(0x1da)][p(0x1c3)]({'srcPath':p(0x1d7),'destPath':h,'context':g,'config':f});const i=[p(0x1d4),p(0x1cf),p(0x1e5),p(0x1c0)];i[p(0x1cd)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x1d2);this[q(0x1da)][q(0x1c3)]({'srcPath':'package/'+j+q(0x1d9),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a69p=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=-parseInt(m(0x18b))/0x1+-parseInt(m(0x18a))/0x2*(parseInt(m(0x178))/0x3)+-parseInt(m(0x168))/0x4*(parseInt(m(0x177))/0x5)+-parseInt(m(0x172))/0x6+parseInt(m(0x151))/0x7*(parseInt(m(0x17b))/0x8)+parseInt(m(0x154))/0x9+parseInt(m(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x39fd0));function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x14b;let f=c[d];return f;},a69d(a,b);}const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a69d;if(c){const e=c[n(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const o=a69d;return a69a['toString']()[o(0x152)]('(((.+)+)+)+$')[o(0x173)]()[o(0x198)](a69a)[o(0x152)](o(0x167));});a69a();import a69e from'path';import{Generator}from'../generator.js';function a69c(){const s=['graphql','1678074IOophd','toString','withHook','test/test.js','hook/hook.js','5onSNwA','48DZTgKb','page','installNpmPackage','24zlskCa','component/component.js','maka\x20g:page\x20todos/todos-item','create','template','injectAtBeginningOfFile','engines','rewriteDestinationPathForEngine','css','Updating\x20npm\x20packages\x20...','fileName','lib','templates.js','react','.js','27406pJgvOy','133582KnsAbl','component','\x27;\x0a','theme','vanilla','import\x20\x27./','getProjectConfig','Generate\x20a\x20page.','store','withValue','import\x20{\x20','startup','setTemplate','constructor','client','assign','import\x20\x27','\x20}\x20from\x20\x27','export\x20{\x20','withHooks','811118ERwTUt','search','test','1119375BCogNP','true','warn','\x20};\x0a','/imports/ui/pages','tsx','resourceName','.app-tests.js','layout','none','imports','fsi','ramda','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','pathFromApp','apply','features','hasOwnProperty','relative','(((.+)+)+)+$','1004140jcsoBo','injectAtEndOfFile','className','ssr','string','html','dir','template/template.css','6490670QBEfTD'];a69c=function(){return s;};return a69c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a69p(0x17e)]({'name':a69p(0x179),'aliases':aliases,'usage':a69p(0x161),'shortDesc':a69p(0x192),'validOpts':[a69p(0x16e),a69p(0x174)],'examples':[a69p(0x17d)]},function(a,b){const q=a69p,c=q(0x158),d=this['fsi']['pathFromApp'](b),e=this[q(0x15f)]['pathFromApp']({'pathParts':[c,b[q(0x16e)],paramCase(b[q(0x15a)]),paramCase(b[q(0x15a)])]}),f=this[q(0x15f)][q(0x191)]();this[q(0x15f)][q(0x194)](f,()=>{const r=q;typeof f[r(0x17f)]['html']===r(0x16c)&&(f['template'][r(0x16d)]=f[r(0x17f)][r(0x16d)]===r(0x155)?!![]:![],this[r(0x15f)][r(0x197)]('html',f[r(0x17f)][r(0x16d)]));typeof f[r(0x17f)][r(0x153)]==='string'&&(f[r(0x17f)][r(0x153)]=f['template'][r(0x153)]===r(0x155)?!![]:![],this[r(0x15f)][r(0x197)](r(0x153),f[r(0x17f)]['test']));typeof f[r(0x17f)][r(0x183)]==='string'&&(f[r(0x17f)][r(0x183)]=f['template']['css']===r(0x155)?!![]:![],this['fsi']['setTemplate'](r(0x183),f['template']['css']));typeof f[r(0x17f)]['js']===r(0x16c)&&(f['template']['js']=f[r(0x17f)]['js']===r(0x155)?!![]:![],this[r(0x15f)][r(0x197)]('js',f[r(0x17f)]['js']));!f[r(0x164)]&&(f['features']={});!b['root']&&!this[r(0x15f)]['checkNpmPackage'](r(0x160))&&(Log[r(0x156)](r(0x184)),this[r(0x15f)][r(0x17a)](r(0x160),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a69e[r(0x166)](this[r(0x15f)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[r(0x15a)]),'className':pascalCase(b[r(0x15a)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x15a)]),'graphql':f['engines'][r(0x171)],'features':f[r(0x164)],'client':f[r(0x181)]['client'],'api':f[r(0x181)]['api'],'ssr':f[r(0x181)][r(0x16b)],'isStore':b[r(0x165)](r(0x193)),'isComponent':b[r(0x165)](r(0x18c)),'isLayout':b['hasOwnProperty'](r(0x15c)),'withTranslations':f['features']['withTranslations'],'test':f[r(0x181)]['test'],'theme':f[r(0x181)][r(0x18e)]};f[r(0x17f)][r(0x16d)]&&this[r(0x15f)][r(0x17f)]({'srcPath':'template/template.html','destPath':e+'.html','context':g,'config':f});f[r(0x164)]?.[r(0x150)]||b[r(0x174)]?this[r(0x15f)][r(0x17f)]({'srcPath':r(0x176),'destPath':e+r(0x189),'framework':'react','context':g,'config':f}):this[r(0x15f)][r(0x17f)]({'srcPath':r(0x17c),'destPath':e+'.js','framework':r(0x188),'context':g,'config':f});f[r(0x181)]['test']!==r(0x15d)&&this[r(0x15f)][r(0x17f)]({'srcPath':r(0x175),'destPath':e+r(0x15b),'framework':'react','context':g,'config':f});f[r(0x17f)][r(0x183)]&&this[r(0x15f)][r(0x17f)]({'srcPath':r(0x16f),'destPath':e+'.css','context':Object[r(0x14c)]({},g,{'className':paramCase(b[r(0x15a)])}),'config':f});f['engines'][r(0x14b)]!=='react'&&f['engines'][r(0x14b)]!==r(0x18f)?(f[r(0x17f)][r(0x183)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x181)]['js'],'content':r(0x190)+g[r(0x185)]+'.'+f[r(0x181)][r(0x16d)]+r(0x18d)+r(0x190)+g[r(0x185)]+'.'+f[r(0x181)][r(0x183)]+'\x27;'}),!f[r(0x17f)]['css']&&this[r(0x15f)][r(0x180)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x190)+g[r(0x185)]+'.'+f['engines'][r(0x16d)]+'\x27;'})):f[r(0x17f)]['css']&&this[r(0x15f)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x181)]['js'],'content':r(0x190)+g[r(0x185)]+'.'+f['engines'][r(0x183)]+'\x27;'});const h=b['dir']?'/'+b['dir']+'/':'/',i=''+c+h+g[r(0x185)]+'/'+g['fileName'];let j;if(f[r(0x181)][r(0x16b)]===r(0x155)){const k=this[r(0x15f)][r(0x162)]({'pathParts':[r(0x15e),r(0x196),r(0x186),r(0x187)]});j=this[r(0x15f)][r(0x182)]({'pathParts':[k],'config':f});}else{const l=this[r(0x15f)][r(0x162)]({'pathParts':[r(0x15e),r(0x196),'client',r(0x187)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x181)]['client']===r(0x188)?(f[r(0x181)]['js']===r(0x159)?this[r(0x15f)][r(0x180)]({'filePath':j,'content':r(0x195)+g['className']+r(0x14e)+i+r(0x18d)}):this[r(0x15f)][r(0x180)]({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x14e)+i+'.'+f['engines']['js']+'\x27;\x0a'}),this[r(0x15f)][r(0x169)]({'filePath':j,'content':r(0x14f)+g[r(0x16a)]+r(0x157)})):this[r(0x15f)][r(0x169)]({'filePath':j,'content':r(0x14d)+i+'.'+f[r(0x181)]['js']+r(0x18d)});});});
1
+ const a69p=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=-parseInt(m(0xb7))/0x1*(parseInt(m(0x9c))/0x2)+parseInt(m(0xb1))/0x3+parseInt(m(0xd7))/0x4+-parseInt(m(0xbf))/0x5*(parseInt(m(0xba))/0x6)+parseInt(m(0xd1))/0x7+-parseInt(m(0xaa))/0x8+-parseInt(m(0xc5))/0x9*(-parseInt(m(0xaf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0xe3f92));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a69d;if(c){const e=c[n(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const o=a69d;return a69a[o(0xcc)]()['search'](o(0x97))[o(0xcc)]()[o(0xd3)](a69a)[o(0xcf)](o(0x97));});a69a();import a69e from'path';function a69c(){const s=['api','4893582QwtBWT','test/test.js','layout','store','injectAtBeginningOfFile','withValue','3DCAjWU','hasOwnProperty','test','4735212uTtwbl','\x20};\x0a','ramda','root','import\x20\x27./','5pKhfmi','dir','injectAtEndOfFile','ssr','\x20}\x20from\x20\x27','html','9BBArSD','client','true','template','rewriteDestinationPathForEngine','pathFromApp','withHook','toString','graphql','css','search','.css','68971hOEcWx','maka\x20g:page\x20todos/todos-item','constructor','assign','\x27;\x0a','checkNpmPackage','1666728MiIGLm','className','setTemplate','startup','tsx','.app-tests.js','react','.js','create','(((.+)+)+)+$','warn','imports','installNpmPackage','engines','93948Ekwmjt','/imports/ui/pages','templates.js','features','withTranslations','pathFromProject','fileName','theme','page','hook/hook.js','export\x20{\x20','withHooks','string','template/template.css','1752976OYBbto','fsi','component/component.js','apply','resourceName','252950qIYpcS'];a69c=function(){return s;};return a69c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x8f;let f=c[d];return f;},a69d(a,b);}Generator[a69p(0x96)]({'name':a69p(0xa4),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[a69p(0xc0),'withHook'],'examples':[a69p(0xd2)]},function(a,b){const q=a69p,c=q(0x9d),d=this[q(0xab)][q(0xca)](b),e=this[q(0xab)][q(0xca)]({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[q(0xae)])]}),f=this[q(0xab)]['getProjectConfig']();this[q(0xab)][q(0xb6)](f,()=>{const r=q;typeof f['template'][r(0xc4)]==='string'&&(f['template']['html']=f[r(0xc8)][r(0xc4)]===r(0xc7)?!![]:![],this['fsi']['setTemplate'](r(0xc4),f[r(0xc8)][r(0xc4)]));typeof f[r(0xc8)][r(0xb9)]==='string'&&(f['template'][r(0xb9)]=f[r(0xc8)][r(0xb9)]===r(0xc7)?!![]:![],this[r(0xab)][r(0x90)](r(0xb9),f[r(0xc8)][r(0xb9)]));typeof f['template'][r(0xce)]===r(0xa8)&&(f[r(0xc8)][r(0xce)]=f[r(0xc8)][r(0xce)]===r(0xc7)?!![]:![],this[r(0xab)][r(0x90)](r(0xce),f[r(0xc8)][r(0xce)]));typeof f[r(0xc8)]['js']===r(0xa8)&&(f[r(0xc8)]['js']=f[r(0xc8)]['js']===r(0xc7)?!![]:![],this[r(0xab)][r(0x90)]('js',f['template']['js']));!f['features']&&(f['features']={});!b[r(0xbd)]&&!this[r(0xab)][r(0xd6)](r(0xbc))&&(Log[r(0x98)]('Updating\x20npm\x20packages\x20...'),this[r(0xab)][r(0x9a)](r(0xbc),{'cwd':d}));const g={'name':pascalCase(b[r(0xae)]),'myPath':a69e['relative'](this[r(0xab)][r(0xa1)]({}),e),'cssCaseName':paramCase(b[r(0xae)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0xae)]),'fileName':paramCase(b['resourceName']),'graphql':f['engines'][r(0xcd)],'features':f[r(0x9f)],'client':f[r(0x9b)][r(0xc6)],'api':f['engines'][r(0xb0)],'ssr':f[r(0x9b)]['ssr'],'isStore':b['hasOwnProperty'](r(0xb4)),'isComponent':b[r(0xb8)]('component'),'isLayout':b[r(0xb8)](r(0xb3)),'withTranslations':f[r(0x9f)][r(0xa0)],'test':f['engines'][r(0xb9)],'theme':f['engines'][r(0xa3)]};f[r(0xc8)][r(0xc4)]&&this[r(0xab)][r(0xc8)]({'srcPath':'template/template.html','destPath':e+'.html','context':g,'config':f});f['features']?.[r(0xa7)]||b[r(0xcb)]?this['fsi'][r(0xc8)]({'srcPath':r(0xa5),'destPath':e+'.js','framework':r(0x94),'context':g,'config':f}):this[r(0xab)][r(0xc8)]({'srcPath':r(0xac),'destPath':e+r(0x95),'framework':r(0x94),'context':g,'config':f});f[r(0x9b)][r(0xb9)]!=='none'&&this[r(0xab)]['template']({'srcPath':r(0xb2),'destPath':e+r(0x93),'framework':'react','context':g,'config':f});f['template'][r(0xce)]&&this[r(0xab)]['template']({'srcPath':r(0xa9),'destPath':e+r(0xd0),'context':Object[r(0xd4)]({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0x9b)][r(0xc6)]!==r(0x94)&&f['engines'][r(0xc6)]!=='vanilla'?(f[r(0xc8)][r(0xce)]&&this[r(0xab)][r(0xb5)]({'filePath':e+'.'+f[r(0x9b)]['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[r(0x9b)][r(0xc4)]+'\x27;\x0a'+r(0xbe)+g['fileName']+'.'+f[r(0x9b)][r(0xce)]+'\x27;'}),!f[r(0xc8)]['css']&&this[r(0xab)][r(0xb5)]({'filePath':e+'.'+f[r(0x9b)]['js'],'content':r(0xbe)+g['fileName']+'.'+f[r(0x9b)][r(0xc4)]+'\x27;'})):f[r(0xc8)][r(0xce)]&&this[r(0xab)][r(0xb5)]({'filePath':e+'.'+f[r(0x9b)]['js'],'content':'import\x20\x27./'+g[r(0xa2)]+'.'+f['engines'][r(0xce)]+'\x27;'});const h=b[r(0xc0)]?'/'+b[r(0xc0)]+'/':'/',i=''+c+h+g['fileName']+'/'+g[r(0xa2)];let j;if(f['engines'][r(0xc2)]===r(0xc7)){const k=this[r(0xab)][r(0xca)]({'pathParts':[r(0x99),r(0x91),'lib',r(0x9e)]});j=this[r(0xab)][r(0xc9)]({'pathParts':[k],'config':f});}else{const l=this['fsi'][r(0xca)]({'pathParts':['imports',r(0x91),'client',r(0x9e)]});j=this[r(0xab)][r(0xc9)]({'pathParts':[l],'config':f});}f[r(0x9b)]['client']===r(0x94)?(f[r(0x9b)]['js']===r(0x92)?this['fsi'][r(0xb5)]({'filePath':j,'content':'import\x20{\x20'+g[r(0x8f)]+'\x20}\x20from\x20\x27'+i+'\x27;\x0a'}):this[r(0xab)][r(0xb5)]({'filePath':j,'content':'import\x20{\x20'+g[r(0x8f)]+r(0xc3)+i+'.'+f['engines']['js']+r(0xd5)}),this[r(0xab)][r(0xc1)]({'filePath':j,'content':r(0xa6)+g[r(0x8f)]+r(0xbb)})):this[r(0xab)][r(0xc1)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f[r(0x9b)]['js']+r(0xd5)});});});