@maka/maka-cli 4.5.7 → 4.5.9

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 (108) hide show
  1. package/bundle/obf/package.json +5 -4
  2. package/bundle/obf/src/README.md +4 -0
  3. package/bundle/obf/src/command.js +1 -1
  4. package/bundle/obf/src/commands/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/build/_index.js +1 -1
  18. package/bundle/obf/src/commands/build/build.js +1 -1
  19. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/create.js +1 -1
  21. package/bundle/obf/src/commands/debug.js +1 -1
  22. package/bundle/obf/src/commands/deploy.js +1 -1
  23. package/bundle/obf/src/commands/game/_index.js +1 -1
  24. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/game/play.command.js +1 -1
  26. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/generate.js +1 -1
  30. package/bundle/obf/src/commands/get/_index.js +1 -1
  31. package/bundle/obf/src/commands/get/get.command.js +1 -1
  32. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/help.js +1 -1
  36. package/bundle/obf/src/commands/install.js +1 -1
  37. package/bundle/obf/src/commands/jsdoc.js +1 -1
  38. package/bundle/obf/src/commands/lint.js +1 -1
  39. package/bundle/obf/src/commands/login.js +1 -1
  40. package/bundle/obf/src/commands/logout.js +1 -1
  41. package/bundle/obf/src/commands/logs.js +1 -1
  42. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  43. package/bundle/obf/src/commands/murder.js +1 -1
  44. package/bundle/obf/src/commands/proxy.js +1 -1
  45. package/bundle/obf/src/commands/reconfig.js +1 -1
  46. package/bundle/obf/src/commands/run/_index.js +1 -1
  47. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  48. package/bundle/obf/src/commands/run/run.command.js +1 -1
  49. package/bundle/obf/src/commands/set/_index.js +1 -1
  50. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  51. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  52. package/bundle/obf/src/commands/set/set.command.js +1 -1
  53. package/bundle/obf/src/commands/ssh.js +1 -1
  54. package/bundle/obf/src/commands/ssl.js +1 -1
  55. package/bundle/obf/src/commands/test.js +1 -1
  56. package/bundle/obf/src/commands/version.js +1 -1
  57. package/bundle/obf/src/error.js +1 -1
  58. package/bundle/obf/src/generator.js +1 -1
  59. package/bundle/obf/src/generators/_index.js +1 -1
  60. package/bundle/obf/src/generators/api.js +1 -1
  61. package/bundle/obf/src/generators/collection.js +1 -1
  62. package/bundle/obf/src/generators/component.js +1 -1
  63. package/bundle/obf/src/generators/config.js +1 -1
  64. package/bundle/obf/src/generators/dbc.js +1 -1
  65. package/bundle/obf/src/generators/dockerfile.js +1 -1
  66. package/bundle/obf/src/generators/hook.js +1 -1
  67. package/bundle/obf/src/generators/kit.js +1 -1
  68. package/bundle/obf/src/generators/layout.js +1 -1
  69. package/bundle/obf/src/generators/maka.gen.js +1 -1
  70. package/bundle/obf/src/generators/methods.js +1 -1
  71. package/bundle/obf/src/generators/package.js +1 -1
  72. package/bundle/obf/src/generators/page.js +1 -1
  73. package/bundle/obf/src/generators/publish.js +1 -1
  74. package/bundle/obf/src/generators/route.js +1 -1
  75. package/bundle/obf/src/generators/service.js +1 -1
  76. package/bundle/obf/src/generators/services/_index.js +1 -1
  77. package/bundle/obf/src/generators/services/openssl.js +1 -1
  78. package/bundle/obf/src/generators/services/translation.js +1 -1
  79. package/bundle/obf/src/maka.js +1 -1
  80. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +1 -1
  81. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +1 -1
  82. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +1 -1
  83. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +1 -1
  84. package/bundle/obf/src/tool.js +1 -1
  85. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  86. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  87. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  88. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  89. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  90. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  91. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  92. package/bundle/obf/src/tools/https/https.class.js +1 -1
  93. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  94. package/bundle/obf/src/tools/log/log.class.js +1 -1
  95. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  96. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  97. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  98. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  99. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  100. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  101. package/package.json +1 -1
  102. package/bundle/obf/src/tools/actions/actions.test.js +0 -1
  103. package/bundle/obf/src/tools/aws/aws.test.js +0 -0
  104. package/bundle/obf/src/tools/docker/docker.test.js +0 -0
  105. package/bundle/obf/src/tools/log/log.test.js +0 -0
  106. package/bundle/obf/src/tools/spawn-async/spawn-async.test.js +0 -0
  107. package/bundle/obf/src/tools/ssh/ssh.test.js +0 -0
  108. package/bundle/obf/src/tools/ssl/ssl.test.js +0 -0
@@ -1 +1 @@
1
- (function(a,b){var f=a56d,c=a();while(!![]){try{var d=-parseInt(f(0x102))/0x1*(parseInt(f(0x10c))/0x2)+parseInt(f(0x107))/0x3+parseInt(f(0x101))/0x4+parseInt(f(0x10d))/0x5+-parseInt(f(0x10f))/0x6*(parseInt(f(0x100))/0x7)+parseInt(f(0x106))/0x8*(parseInt(f(0x108))/0x9)+parseInt(f(0x104))/0xa*(-parseInt(f(0x105))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x29073));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a[h(0x103)]()['search'](h(0x10e))['toString']()[h(0x10b)](a56a)[h(0x10a)]('(((.+)+)+)+$');});a56a();import'./services/_index.js';import'./api.js';import'./collection.js';function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x100;var f=c[d];return f;},a56d(a,b);}import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';function a56c(){var i=['search','constructor','63286hcQeIJ','1005630wfXwMV','(((.+)+)+)+$','56382jYWtJZ','238WdMidc','1334380WYCWNm','1kNwWeq','toString','780nztRXS','39149pplGez','83992tMnUCf','376758gUdXGb','117mNFQkD','apply'];a56c=function(){return i;};return a56c();}import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
1
+ function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x1cd;var f=c[d];return f;},a56d(a,b);}(function(a,b){var f=a56d,c=a();while(!![]){try{var d=-parseInt(f(0x1d1))/0x1+-parseInt(f(0x1d5))/0x2+-parseInt(f(0x1cf))/0x3*(parseInt(f(0x1ce))/0x4)+-parseInt(f(0x1d3))/0x5*(parseInt(f(0x1d4))/0x6)+parseInt(f(0x1d0))/0x7+parseInt(f(0x1db))/0x8*(-parseInt(f(0x1d8))/0x9)+-parseInt(f(0x1cd))/0xa*(-parseInt(f(0x1d6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x3140f));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0x1d9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a['toString']()[h(0x1d7)](h(0x1d2))['toString']()[h(0x1da)](a56a)[h(0x1d7)](h(0x1d2));});a56a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a56c(){var i=['452tYpwSW','1659BZWeOQ','314671OBDYoM','68692PvGLRW','(((.+)+)+)+$','455ISHcPl','11604EDuNIt','744554NqyTvk','33ZVqNBY','search','2373453uySptl','apply','constructor','8IFUBHi','3666530AJZAuN'];a56c=function(){return i;};return a56c();}import'./maka.gen.js';
@@ -1 +1 @@
1
- const a57y=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=-parseInt(w(0xf8))/0x1+parseInt(w(0xf6))/0x2*(-parseInt(w(0x121))/0x3)+parseInt(w(0x126))/0x4*(parseInt(w(0x111))/0x5)+parseInt(w(0x110))/0x6+-parseInt(w(0x10f))/0x7+parseInt(w(0xe8))/0x8+-parseInt(w(0x135))/0x9*(-parseInt(w(0x128))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x5dfa1));function a57c(){const B=['toString','846JfMcQU','findGenerator','api','startup','Resolvers\x20}\x20from\x20\x27','maka:rest','/imports/api','ddp-rate-limiter','exit','push','5440648MkNQhw','if\x20\x5c(typeList','withFixtures','const','collection','api/typeDefs.js','graphql','-api.','withGql','/graphql/resolvers','TypeDefs\x20}\x20from\x20\x27','Fixtures','injectIntoFile','withMethods','62iHdOgd','api/tests.js','602436OKtpGY','rest','Verifying\x20meteor\x20package\x20requirements\x20...','imports','template','tsx','withPubs','pathFromApp','rest-api.','api/methods.js','api/resolvers.js','options','(((.+)+)+)+$','\x0aimport\x20{\x20resolvers\x20as\x20','engines','typeDefs.','mdg:validated-method','Resolvers);\x0a\x0a','includes','log','test','fsi','index.','784938iYuMxy','1892148PgTScB','5zSDEVO','maka\x20g:api\x20todos','none','server','GraphQL','dir','-api\x27;','api/register-api.js','maka\x20{generate,\x20g}:{api}\x20<resource-name>','mongo','publications.','injectAtEndOfFile','import\x20\x27./register-','checkMeteorPackage','injectAtBeginningOfFile','rpc-methods.','47241jZntoH','rewriteDestinationPathForEngine','constructor','withRest','RPC\x20(Methods)','1977076GtQTHH','getProjectConfig','10420dIrUQx','notice','import\x20{\x20typeDefs\x20as\x20','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','/graphql/typeDefs','invoke','Publications','REST\x20API','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','.app-tests.','api/fixtures.js','apollo'];a57c=function(){return B;};return a57c();}const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const x=a57d;return a57a[x(0x134)]()['search'](x(0x104))[x(0x134)]()[x(0x123)](a57a)['search']('(((.+)+)+)+$');});a57a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0xe7;let f=c[d];return f;},a57d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'api','aliases':['a'],'usage':a57y(0x119),'shortDesc':a57y(0x12b),'validOpts':[a57y(0x116)],'examples':[a57y(0x112)]},async function(a,b){const z=a57y;try{const c=this['fsi'][z(0x127)](),d=[{'name':z(0x125),'value':z(0xf5)},{'name':z(0xf3),'value':z(0xea)},{'name':z(0x12e),'value':'withPubs'}];c[z(0x106)]['api']===z(0xf9)&&d[z(0xe7)]({'name':z(0x12f),'value':z(0x124)});c[z(0x106)][z(0xee)]===z(0x133)&&d['push']({'name':z(0x115),'value':z(0xf0)});const f={'type':'checkbox','name':'apiAnswers','message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x103)](f);g['length']===0x0&&(Log['error']('No\x20API\x20boundaries\x20selected'),process['exit'](0x1)),this[z(0x10d)]['withValue'](c,async()=>{const A=z,h=this[A(0x10d)][A(0xff)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[A(0x116)]?'/'+b[A(0x116)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x106)]['api'],'graphql':c[A(0x106)][A(0xee)],'test':c['engines'][A(0x10c)],'noRename':!![],'withPubs':g[A(0x10a)](A(0xfe)),'withFixtures':g[A(0x10a)](A(0xea)),'withMethods':g[A(0x10a)](A(0xf5)),'withRest':g[A(0x10a)]('withRest')};let n='js';c[A(0x106)]['js']===A(0xfd)&&(n='ts');(!this[A(0x10d)]['checkMeteorPackage'](A(0x13a))||!this[A(0x10d)][A(0x11e)]('maka:check')||!this[A(0x10d)][A(0x11e)](A(0x13c))||!this[A(0x10d)]['checkMeteorPackage'](A(0x108))||!this[A(0x10d)][A(0x11e)](A(0x11a)))&&(Log[A(0x129)](A(0xfa)),await this[A(0x10d)]['installMeteorPackage'](A(0x130),{'cwd':h}));const o=a57e[A(0x136)](A(0xec));o&&await o[A(0x12d)]([j],{'config':c,'where':A(0x114)});c[A(0x106)]['api']===A(0xf9)&&(m[A(0x124)]&&this['fsi'][A(0xfc)]({'srcPath':'api/api.js','destPath':this[A(0x10d)][A(0xff)]({'pathParts':['imports',A(0x137),b[A(0x116)],j,A(0x100)+n]}),'context':m,'config':c}));m[A(0xf5)]&&this[A(0x10d)][A(0xfc)]({'srcPath':A(0x101),'destPath':this['fsi'][A(0xff)]({'pathParts':[A(0xfb),'api',b[A(0x116)],j,A(0x120)+n]}),'context':m,'config':c});m[A(0xea)]&&this[A(0x10d)][A(0xfc)]({'srcPath':A(0x132),'destPath':this['fsi'][A(0xff)]({'pathParts':['imports',A(0x137),b[A(0x116)],j,'fixtures.'+n]}),'context':m,'config':c});c['engines'][A(0x10c)]!==A(0x113)&&this[A(0x10d)][A(0xfc)]({'srcPath':A(0xf7),'destPath':this[A(0x10d)][A(0xff)]({'pathParts':[A(0xfb),A(0x137),b[A(0x116)],j,j+A(0x131)+n]}),'context':m,'config':c});m['withPubs']&&this['fsi'][A(0xfc)]({'srcPath':'api/publications.js','destPath':this[A(0x10d)][A(0xff)]({'pathParts':['imports',A(0x137),b[A(0x116)],j,A(0x11b)+n]}),'context':m,'config':c});if(c[A(0x106)]['graphql']===A(0x133)){if(g[A(0x10a)](A(0xf0))){const q=this[A(0x10d)][A(0xff)]({'pathParts':[A(0xfb),'startup','server',A(0x10e)+c[A(0x106)]['js']]}),r=this[A(0x10d)][A(0x122)]({'pathParts':[q],'config':c}),s=this[A(0x10d)][A(0xff)]({'pathParts':[A(0xfb),A(0x137),b['dir'],j,A(0xee),A(0x107)+n]}),t=A(0x13b)+l+j+A(0x12c);this[A(0x10d)]['template']({'srcPath':A(0xed),'destPath':s,'context':m,'config':c}),this[A(0x10d)]['injectAtBeginningOfFile']({'filePath':r,'content':A(0x12a)+k+A(0xf2)+t+'\x27;\x0a'}),this['fsi'][A(0xf4)]({'filePath':r,'content':'typeList.push('+k+'TypeDefs);\x0a','begin':A(0xeb),'end':A(0xe9)});const u=this['fsi']['pathFromApp']({'pathParts':['imports',A(0x137),b['dir'],j,A(0xee),'resolvers.'+n]}),v=A(0x13b)+l+j+A(0xf1);this['fsi']['template']({'srcPath':A(0x102),'destPath':u,'context':m,'config':c}),this['fsi'][A(0x11f)]({'filePath':r,'content':A(0x105)+k+A(0x139)+v+'\x27;'}),this[A(0x10d)]['injectIntoFile']({'filePath':r,'content':'resolverList.push('+k+A(0x109),'begin':A(0xeb),'end':A(0xe9)});}}this[A(0x10d)]['template']({'srcPath':A(0x118),'destPath':this[A(0x10d)][A(0xff)]({'pathParts':[A(0xfb),A(0x138),A(0x114),'register-'+j+A(0xef)+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0x10d)][A(0xff)]({'pathParts':[A(0xfb),A(0x138),A(0x114),A(0x10e)+c[A(0x106)]['js']]});this['fsi'][A(0x11c)]({'filePath':p,'content':A(0x11d)+j+A(0x117)});});}catch(h){console[z(0x10b)](h),process[z(0x13d)](0x0);}});
1
+ const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=parseInt(w(0x1fb))/0x1+parseInt(w(0x1ef))/0x2*(-parseInt(w(0x1fc))/0x3)+parseInt(w(0x223))/0x4+parseInt(w(0x1e6))/0x5*(-parseInt(w(0x218))/0x6)+parseInt(w(0x203))/0x7*(parseInt(w(0x1f1))/0x8)+parseInt(w(0x219))/0x9*(parseInt(w(0x229))/0xa)+parseInt(w(0x1fe))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x81a63));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a['toString']()[y(0x1e2)]('(((.+)+)+)+$')[y(0x1de)]()[y(0x1ff)](a57a)[y(0x1e2)]('(((.+)+)+)+$');});a57a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a57d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a57z(0x21c)]({'name':a57z(0x215),'aliases':['a'],'usage':a57z(0x1f8),'shortDesc':a57z(0x1ec),'validOpts':['dir'],'examples':[a57z(0x22c)]},async function(a,b){const A=a57z;try{const c=this[A(0x21a)][A(0x1eb)](),d=[{'name':A(0x1e7),'value':A(0x1fa)},{'name':A(0x230),'value':A(0x20b)},{'name':A(0x20e),'value':A(0x21b)}];c[A(0x1ee)][A(0x215)]===A(0x1f0)&&d[A(0x216)]({'name':A(0x217),'value':A(0x222)});c[A(0x1ee)][A(0x1e1)]===A(0x1ed)&&d[A(0x216)]({'name':A(0x20f),'value':'withGql'});const f={'type':A(0x1e5),'name':A(0x22d),'message':A(0x1f5),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x202)](f);g[A(0x1f4)]===0x0&&(Log[A(0x1ea)]('No\x20API\x20boundaries\x20selected'),process[A(0x21e)](0x1)),this['fsi']['withValue'](c,async()=>{const B=A,h=this[B(0x21a)][B(0x225)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x1f9)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1ee)][B(0x215)],'graphql':c[B(0x1ee)]['graphql'],'test':c[B(0x1ee)][B(0x226)],'noRename':!![],'withPubs':g[B(0x207)]('withPubs'),'withFixtures':g[B(0x207)]('withFixtures'),'withMethods':g['includes'](B(0x1fa)),'withRest':g['includes']('withRest')};let n='js';c[B(0x1ee)]['js']===B(0x1dd)&&(n='ts');(!this[B(0x21a)][B(0x204)](B(0x20c))||!this['fsi'][B(0x204)]('maka:check')||!this[B(0x21a)][B(0x204)](B(0x22b))||!this[B(0x21a)][B(0x204)]('mdg:validated-method')||!this['fsi'][B(0x204)](B(0x1df)))&&(Log[B(0x210)]('Verifying\x20meteor\x20package\x20requirements\x20...'),await this['fsi']['installMeteorPackage']('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a57e['findGenerator'](B(0x211));o&&await o[B(0x1f7)]([j],{'config':c,'where':B(0x1e9)});c[B(0x1ee)][B(0x215)]==='rest'&&(m[B(0x222)]&&this[B(0x21a)][B(0x201)]({'srcPath':B(0x20a),'destPath':this[B(0x21a)][B(0x225)]({'pathParts':['imports',B(0x215),b['dir'],j,B(0x21f)+n]}),'context':m,'config':c}));m[B(0x1fa)]&&this[B(0x21a)][B(0x201)]({'srcPath':B(0x22e),'destPath':this[B(0x21a)]['pathFromApp']({'pathParts':[B(0x22f),B(0x215),b['dir'],j,'rpc-methods.'+n]}),'context':m,'config':c});m[B(0x20b)]&&this[B(0x21a)]['template']({'srcPath':'api/fixtures.js','destPath':this[B(0x21a)]['pathFromApp']({'pathParts':[B(0x22f),B(0x215),b[B(0x1f9)],j,B(0x209)+n]}),'context':m,'config':c});c[B(0x1ee)][B(0x226)]!=='none'&&this[B(0x21a)]['template']({'srcPath':B(0x200),'destPath':this[B(0x21a)][B(0x225)]({'pathParts':[B(0x22f),B(0x215),b[B(0x1f9)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m[B(0x21b)]&&this[B(0x21a)][B(0x201)]({'srcPath':B(0x214),'destPath':this[B(0x21a)]['pathFromApp']({'pathParts':[B(0x22f),B(0x215),b[B(0x1f9)],j,B(0x1d9)+n]}),'context':m,'config':c});if(c[B(0x1ee)][B(0x1e1)]===B(0x1ed)){if(g[B(0x207)](B(0x1d8))){const q=this[B(0x21a)][B(0x225)]({'pathParts':[B(0x22f),B(0x224),B(0x1e9),B(0x1dc)+c[B(0x1ee)]['js']]}),r=this[B(0x21a)][B(0x1db)]({'pathParts':[q],'config':c}),s=this[B(0x21a)]['pathFromApp']({'pathParts':[B(0x22f),B(0x215),b[B(0x1f9)],j,B(0x1e1),'typeDefs.'+n]}),t='/imports/api'+l+j+'/graphql/typeDefs';this[B(0x21a)][B(0x201)]({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this[B(0x21a)][B(0x21d)]({'filePath':r,'content':B(0x213)+k+B(0x205)+t+B(0x227)}),this[B(0x21a)][B(0x22a)]({'filePath':r,'content':B(0x206)+k+B(0x228),'begin':B(0x212),'end':'if\x20\x5c(typeList'});const u=this['fsi']['pathFromApp']({'pathParts':['imports',B(0x215),b[B(0x1f9)],j,B(0x1e1),'resolvers.'+n]}),v=B(0x1fd)+l+j+B(0x1e8);this['fsi']['template']({'srcPath':B(0x1da),'destPath':u,'context':m,'config':c}),this[B(0x21a)][B(0x21d)]({'filePath':r,'content':B(0x20d)+k+B(0x220)+v+'\x27;'}),this[B(0x21a)][B(0x22a)]({'filePath':r,'content':'resolverList.push('+k+B(0x1e0),'begin':B(0x212),'end':B(0x208)});}}this['fsi'][B(0x201)]({'srcPath':B(0x1f2),'destPath':this['fsi'][B(0x225)]({'pathParts':[B(0x22f),B(0x224),B(0x1e9),'register-'+j+B(0x1f3)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x21a)]['pathFromApp']({'pathParts':[B(0x22f),'startup',B(0x1e9),B(0x1dc)+c[B(0x1ee)]['js']]});this[B(0x21a)][B(0x1d7)]({'filePath':p,'content':B(0x1e4)+j+B(0x221)});});}catch(h){console[A(0x1e3)](h),process[A(0x21e)](0x0);}});function a57c(){const C=['index.','tsx','toString','mongo','Resolvers);\x0a\x0a','graphql','search','log','import\x20\x27./register-','checkbox','65pFdcPD','RPC\x20(Methods)','/graphql/resolvers','server','error','getProjectConfig','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','apollo','engines','34UHzluZ','rest','768hbBjjA','api/register-api.js','-api.','length','API\x20boundaries\x20to\x20create','apply','invoke','maka\x20{generate,\x20g}:{api}\x20<resource-name>','dir','withMethods','303524DhBCyK','174153GfhAxY','/imports/api','11621555wzIzOv','constructor','api/tests.js','template','options','2611hGvdeX','checkMeteorPackage','TypeDefs\x20}\x20from\x20\x27','typeList.push(','includes','if\x20\x5c(typeList','fixtures.','api/api.js','withFixtures','maka:rest','\x0aimport\x20{\x20resolvers\x20as\x20','Publications','GraphQL','notice','collection','const','import\x20{\x20typeDefs\x20as\x20','api/publications.js','api','push','REST\x20API','340494cZTocl','55971MKCznH','fsi','withPubs','create','injectAtBeginningOfFile','exit','rest-api.','Resolvers\x20}\x20from\x20\x27','-api\x27;','withRest','478996GZLmdT','startup','pathFromApp','test','\x27;\x0a','TypeDefs);\x0a','1190bhgKjB','injectIntoFile','ddp-rate-limiter','maka\x20g:api\x20todos','apiAnswers','api/methods.js','imports','Fixtures','injectAtEndOfFile','withGql','publications.','api/resolvers.js','rewriteDestinationPathForEngine'];a57c=function(){return C;};return a57c();}
@@ -1 +1 @@
1
- const a58n=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=parseInt(k(0x121))/0x1*(parseInt(k(0x13a))/0x2)+-parseInt(k(0x147))/0x3+parseInt(k(0x11e))/0x4*(parseInt(k(0x131))/0x5)+-parseInt(k(0x13e))/0x6+parseInt(k(0x139))/0x7+-parseInt(k(0x11d))/0x8*(parseInt(k(0x140))/0x9)+parseInt(k(0x12f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0xa1615));function a58c(){const q=['notice','create','4246608hjvkdv','collection/collection.js','90DyFNHG','constructor','tsx','getProjectConfig','checkMeteorPackage','import\x20\x27./collections','toString','1490961WTWECL','index.','resourceName','collections','injectAtEndOfFile','pathFromApp','675496VKXnfS','16wfSVpv','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','61734ADgIAb','installMeteorPackage','maka:check','collection/tests.js','apply','none','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','collection','startup','engines','fsi','test','appPathPrefix','.app-tests.','3052190PFbEtc','mongo','957795qqOMRB','where','(((.+)+)+)+$','template','\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','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','search','imports','3260159ddiOpG','38YdHoPO','dir'];a58c=function(){return q;};return a58c();}function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x11a;let f=c[d];return f;},a58d(a,b);}const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a58d;if(c){const e=c[l(0x125)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const m=a58d;return a58a[m(0x146)]()[m(0x137)](m(0x133))['toString']()[m(0x141)](a58a)[m(0x137)](m(0x133));});a58a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58n(0x13d)]({'name':a58n(0x128),'aliases':['col'],'usage':a58n(0x11f),'checkWhere':!![],'shortDesc':a58n(0x120),'validOpts':[a58n(0x13b),'where'],'description':a58n(0x135),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a58n;try{const c=this['fsi']['pathFromApp']({}),d=this[o(0x12b)][o(0x143)]();this['fsi']['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0x149)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x149)]),'fileName':f,'where':b[p(0x132)],'test':d[p(0x12a)][p(0x12c)],'noRename':!![]};let h='js';d[p(0x12a)]['js']===p(0x142)&&(h='ts');!this[p(0x12b)][p(0x144)](p(0x130))&&(Log['notice'](p(0x127)),await this[p(0x12b)]['installMeteorPackage'](p(0x130),{'cwd':c}));!this[p(0x12b)]['checkMeteorPackage'](p(0x123))&&(Log[p(0x13c)](p(0x136)),await this[p(0x12b)][p(0x122)](p(0x123),{'cwd':c}));this['fsi'][p(0x134)]({'srcPath':p(0x13f),'destPath':this[p(0x12b)][p(0x11c)]({'pathParts':['imports',p(0x129),b['appPathPrefix'],p(0x11a),b[p(0x13b)],f+'.'+h]}),'context':g,'config':d});d[p(0x12a)][p(0x12c)]!==p(0x126)&&this[p(0x12b)][p(0x134)]({'srcPath':p(0x124),'destPath':this[p(0x12b)][p(0x11c)]({'pathParts':[p(0x138),p(0x129),b[p(0x12d)],p(0x11a),b['dir'],f+p(0x12e)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x13b)]+'/':'/',j=this['fsi'][p(0x11c)]({'pathParts':[p(0x138),p(0x129),b[p(0x12d)],p(0x148)+d[p(0x12a)]['js']]});this[p(0x12b)][p(0x11b)]({'filePath':j,'content':p(0x145)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
1
+ const a58n=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=parseInt(k(0x165))/0x1*(parseInt(k(0x176))/0x2)+parseInt(k(0x161))/0x3*(-parseInt(k(0x181))/0x4)+parseInt(k(0x189))/0x5+parseInt(k(0x183))/0x6+parseInt(k(0x16b))/0x7+-parseInt(k(0x15f))/0x8*(parseInt(k(0x173))/0x9)+-parseInt(k(0x16f))/0xa*(parseInt(k(0x167))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0xe29b6));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a58d;if(c){const e=c[l(0x186)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const m=a58d;return a58a[m(0x163)]()['search'](m(0x17c))[m(0x163)]()[m(0x171)](a58a)[m(0x162)](m(0x17c));});a58a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x15e;let f=c[d];return f;},a58d(a,b);}function a58c(){const q=['39hyWcmH','search','toString','collection','1567aaKMTd','mongo','11VxgOYE','engines','template','where','8324225DBeoNP','checkMeteorPackage','notice','collection/tests.js','4589820pvJQln','collection/collection.js','constructor','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','450LHqkTJ','appPathPrefix','collections','650VtPECN','pathFromApp','index.','fsi','injectAtEndOfFile','none','(((.+)+)+)+$','\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','installMeteorPackage','col','maka\x20g:collection\x20todos','532856AzRGfG','error','5966958mYBtHk','import\x20\x27./collections','resourceName','apply','.app-tests.','test','3869765KxLYgN','startup','dir','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','55672ynvzVQ','imports'];a58c=function(){return q;};return a58c();}Generator['create']({'name':a58n(0x164),'aliases':[a58n(0x17f)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a58n(0x15e),'validOpts':[a58n(0x18b),a58n(0x16a)],'description':a58n(0x17d),'examples':[a58n(0x180)]},async function(a,b){const o=a58n;try{const c=this[o(0x179)][o(0x177)]({}),d=this[o(0x179)]['getProjectConfig']();this[o(0x179)]['withValue'](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b[p(0x185)]),'collectionName':pascalCase(b[p(0x185)]),'fileName':f,'where':b[p(0x16a)],'test':d['engines'][p(0x188)],'noRename':!![]};let h='js';d['engines']['js']==='tsx'&&(h='ts');!this[p(0x179)]['checkMeteorPackage'](p(0x166))&&(Log['notice'](p(0x172)),await this[p(0x179)][p(0x17e)](p(0x166),{'cwd':c}));!this[p(0x179)][p(0x16c)]('maka:check')&&(Log[p(0x16d)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[p(0x179)][p(0x17e)]('maka:check',{'cwd':c}));this[p(0x179)][p(0x169)]({'srcPath':p(0x170),'destPath':this['fsi'][p(0x177)]({'pathParts':['imports',p(0x18a),b[p(0x174)],p(0x175),b[p(0x18b)],f+'.'+h]}),'context':g,'config':d});d[p(0x168)][p(0x188)]!==p(0x17b)&&this[p(0x179)][p(0x169)]({'srcPath':p(0x16e),'destPath':this[p(0x179)][p(0x177)]({'pathParts':[p(0x160),p(0x18a),b[p(0x174)],p(0x175),b[p(0x18b)],f+p(0x187)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x18b)]+'/':'/',j=this[p(0x179)][p(0x177)]({'pathParts':[p(0x160),p(0x18a),b[p(0x174)],p(0x178)+d[p(0x168)]['js']]});this[p(0x179)][p(0x17a)]({'filePath':j,'content':p(0x184)+i+f+'\x27;'});});}catch(f){Log[o(0x182)](f);}});
@@ -1 +1 @@
1
- const a59p=a59d;function a59c(){const s=['client','1574825HKUMLK','29208670IqJxrG','18TYSLfv','checkNpmPackage','search','getProjectConfig','error','cssCaseName','844671qPYYIz','injectAtBeginningOfFile','.tests.js','imports','test','engines','1055022rzcXgg','5429508lGAVyl','ssr','10fLcobV','className','(((.+)+)+)+$','relative','9897264xHNZpG','startup','template','setTemplate','ramda','\x20};\x0a','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','installNpmPackage','/imports/ui/components','fsi','string','component/component.js','fileName','8150436pKFiwk','comp','tsx','root','resourceName','assign','css','\x20}\x20from\x20\x27','react','withValue','pathFromApp','pathFromProject','export\x20{\x20','features','9yDkMfc','rewriteDestinationPathForEngine','theme','true','import\x20{\x20','template/template.css','reflux','templates.js','injectAtEndOfFile','component','test/test.js','import\x20\x27','.css','.js','dir','constructor','withTranslations','\x27;\x0a','toString'];a59c=function(){return s;};return a59c();}function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0xbc;let f=c[d];return f;},a59d(a,b);}(function(a,b){const n=a59d,c=a();while(!![]){try{const d=-parseInt(n(0xdc))/0x1+-parseInt(n(0xdf))/0x2*(parseInt(n(0xd6))/0x3)+parseInt(n(0xdd))/0x4+-parseInt(n(0xce))/0x5*(parseInt(n(0xd0))/0x6)+parseInt(n(0xf0))/0x7+-parseInt(n(0xe3))/0x8+-parseInt(n(0xfe))/0x9*(-parseInt(n(0xcf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xc2c24));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(0xcc)]()[o(0xd2)](o(0xe1))[o(0xcc)]()[o(0xc9)](a59a)[o(0xd2)](o(0xe1));});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(0xf1)];Generator['create']({'name':a59p(0xc3),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[a59p(0xc8)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const q=a59p;try{const c=this[q(0xec)]['findAppDirectory'](),d=q(0xeb),f=this['fsi'][q(0xfa)]({'pathParts':[d,b[q(0xc8)],paramCase(b[q(0xf4)]),paramCase(b[q(0xf4)])]}),g=await this[q(0xec)][q(0xd3)]();this[q(0xec)][q(0xf9)](g,async()=>{const r=q;typeof g[r(0xe5)][r(0xda)]===r(0xed)&&(g[r(0xe5)][r(0xda)]=g[r(0xe5)][r(0xda)]===r(0xbd)?!![]:![],this['fsi'][r(0xe6)]('test',g[r(0xe5)]['test']));typeof g[r(0xe5)][r(0xf6)]===r(0xed)&&(g[r(0xe5)][r(0xf6)]=g[r(0xe5)][r(0xf6)]===r(0xbd)?!![]:![],this[r(0xec)][r(0xe6)](r(0xf6),g[r(0xe5)]['css']));typeof g[r(0xe5)]['js']===r(0xed)&&(g[r(0xe5)]['js']=g[r(0xe5)]['js']==='true'?!![]:![],this[r(0xec)][r(0xe6)]('js',g['template']['js']));!g[r(0xfd)]&&(g[r(0xfd)]={});!b[r(0xf3)]&&!this[r(0xec)][r(0xd1)]('ramda')&&(Log['warn'](r(0xe9)),await this['fsi'][r(0xea)](r(0xe7),{'cwd':c}));if(!b['root']&&!this[r(0xec)]['checkNpmPackage'](r(0xf8))){Log[r(0xd4)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[r(0xf4)]),'myPath':a59e[r(0xe2)](this[r(0xec)][r(0xfb)]({}),f),'cssCaseName':paramCase(b[r(0xf4)]),'className':pascalCase(b[r(0xf4)]),'camelCaseName':camelCase(b[r(0xf4)]),'fileName':paramCase(b[r(0xf4)]),'graphql':g[r(0xdb)]['graphql'],'features':g[r(0xfd)],'client':g[r(0xdb)][r(0xcd)],'api':g['engines']['api'],'ssr':g[r(0xdb)][r(0xde)],'test':g[r(0xdb)][r(0xda)],'theme':g[r(0xdb)][r(0xbc)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][r(0xca)]};this[r(0xec)][r(0xe5)]({'srcPath':r(0xee),'destPath':f+r(0xc7),'context':h,'framework':r(0xf8),'config':g});g['engines'][r(0xda)]!=='none'&&this[r(0xec)]['template']({'srcPath':r(0xc4),'destPath':f+r(0xd8),'context':h,'framework':r(0xf8),'config':g});g['template'][r(0xf6)]&&(this[r(0xec)][r(0xe5)]({'srcPath':r(0xbf),'destPath':f+r(0xc6),'context':Object[r(0xf5)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[r(0xec)][r(0xd7)]({'filePath':f+'.'+g['engines']['js'],'content':'import\x20\x27./'+h[r(0xd5)]+'.'+g[r(0xdb)][r(0xf6)]+'\x27;'}));const i=b[r(0xc8)]?'/'+b['dir']+'/':'/',j=''+d+i+h['fileName']+'/'+h[r(0xef)];let k;if(g[r(0xdb)]['ssr']===r(0xbd)){const l=this['fsi'][r(0xfa)]({'pathParts':[r(0xd9),r(0xe4),'lib',r(0xc1)]});k=this[r(0xec)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this['fsi'][r(0xfa)]({'pathParts':[r(0xd9),r(0xe4),'client',r(0xc1)]});k=this[r(0xec)][r(0xff)]({'pathParts':[m],'config':g});}g[r(0xdb)]['client']==='react'||g[r(0xdb)][r(0xcd)]===r(0xc0)?(g['engines']['js']===r(0xf2)?this[r(0xec)][r(0xd7)]({'filePath':k,'content':r(0xbe)+h[r(0xe0)]+'\x20}\x20from\x20\x27'+j+r(0xcb)}):this['fsi'][r(0xd7)]({'filePath':k,'content':r(0xbe)+h[r(0xe0)]+r(0xf7)+j+'.'+g['engines']['js']+r(0xcb)}),this[r(0xec)]['injectAtEndOfFile']({'filePath':k,'content':r(0xfc)+h[r(0xe0)]+r(0xe8)})):this[r(0xec)][r(0xc2)]({'filePath':k,'content':r(0xc5)+j+'.'+g[r(0xdb)]['js']+r(0xcb)});});}catch(h){Log[q(0xd4)](h);}});
1
+ const a59q=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=-parseInt(n(0x1a7))/0x1+parseInt(n(0x1a9))/0x2+-parseInt(n(0x1a5))/0x3*(-parseInt(n(0x1cc))/0x4)+parseInt(n(0x1b8))/0x5*(-parseInt(n(0x1d5))/0x6)+-parseInt(n(0x1d1))/0x7+parseInt(n(0x1cf))/0x8*(parseInt(n(0x1ba))/0x9)+parseInt(n(0x19c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xcad23));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a59d;if(c){const e=c[o(0x1a0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const p=a59d;return a59a[p(0x1af)]()[p(0x1be)](p(0x1ac))[p(0x1af)]()[p(0x1b4)](a59a)[p(0x1be)](p(0x1ac));});a59a();import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x199;let f=c[d];return f;},a59d(a,b);}function a59c(){const t=['pathFromApp','templates.js','test','apply','dir','css','warn','lib','3bHFUJQ','root','838893QUBjWG','comp','39442IYuEqp','.css','template','(((.+)+)+)+$','cssCaseName','ramda','toString','\x27;\x0a','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fileName','none','constructor','reflux','.tests.js','export\x20{\x20','1265FmYVFk','imports','18uwksTn','getProjectConfig','.js','react','search','injectAtBeginningOfFile','engines','withValue','import\x20\x27','\x20}\x20from\x20\x27','string','injectAtEndOfFile','test/test.js','findAppDirectory','fsi','create','component/component.js','ssr','2695732iuFJTu','component','error','2150712YBOyFP','maka\x20g:comp\x20todos/todos-item','11526676HQKiml','resourceName','/imports/ui/components','rewriteDestinationPathForEngine','3102mGDIkL','className','startup','true','client','\x20};\x0a','setTemplate','checkNpmPackage','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','features','22157850fbwwZW'];a59c=function(){return t;};return a59c();}import{Log}from'../tools/log/log.class.js';const aliases=[a59q(0x1a8)];Generator[a59q(0x1c9)]({'name':a59q(0x1cd),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[a59q(0x1a1)],'examples':[a59q(0x1d0)]},async function(a,b){const r=a59q;try{const c=this[r(0x1c8)][r(0x1c7)](),d=r(0x1d3),f=this[r(0x1c8)]['pathFromApp']({'pathParts':[d,b[r(0x1a1)],paramCase(b['resourceName']),paramCase(b[r(0x1d2)])]}),g=await this[r(0x1c8)][r(0x1bb)]();this[r(0x1c8)][r(0x1c1)](g,async()=>{const s=r;typeof g[s(0x1ab)][s(0x19f)]===s(0x1c4)&&(g[s(0x1ab)]['test']=g['template'][s(0x19f)]===s(0x1d8)?!![]:![],this[s(0x1c8)][s(0x1db)](s(0x19f),g['template'][s(0x19f)]));typeof g['template'][s(0x1a2)]===s(0x1c4)&&(g[s(0x1ab)]['css']=g[s(0x1ab)][s(0x1a2)]===s(0x1d8)?!![]:![],this[s(0x1c8)][s(0x1db)]('css',g[s(0x1ab)]['css']));typeof g['template']['js']===s(0x1c4)&&(g[s(0x1ab)]['js']=g[s(0x1ab)]['js']===s(0x1d8)?!![]:![],this['fsi'][s(0x1db)]('js',g[s(0x1ab)]['js']));!g[s(0x19b)]&&(g[s(0x19b)]={});!b[s(0x1a6)]&&!this[s(0x1c8)]['checkNpmPackage'](s(0x1ae))&&(Log[s(0x1a3)](s(0x1b1)),await this[s(0x1c8)]['installNpmPackage'](s(0x1ae),{'cwd':c}));if(!b[s(0x1a6)]&&!this[s(0x1c8)][s(0x199)](s(0x1bd))){Log[s(0x1ce)](s(0x19a));return;}const h={'name':pascalCase(b[s(0x1d2)]),'myPath':a59e['relative'](this[s(0x1c8)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x1d2)]),'className':pascalCase(b[s(0x1d2)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x1c0)]['graphql'],'features':g['features'],'client':g['engines'][s(0x1d9)],'api':g[s(0x1c0)]['api'],'ssr':g[s(0x1c0)][s(0x1cb)],'test':g['engines']['test'],'theme':g['engines']['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x19b)]['withTranslations']};this[s(0x1c8)][s(0x1ab)]({'srcPath':s(0x1ca),'destPath':f+s(0x1bc),'context':h,'framework':s(0x1bd),'config':g});g[s(0x1c0)]['test']!==s(0x1b3)&&this[s(0x1c8)][s(0x1ab)]({'srcPath':s(0x1c6),'destPath':f+s(0x1b6),'context':h,'framework':s(0x1bd),'config':g});g['template'][s(0x1a2)]&&(this[s(0x1c8)][s(0x1ab)]({'srcPath':'template/template.css','destPath':f+s(0x1aa),'context':Object['assign']({},h,{'className':paramCase(b[s(0x1d2)])}),'config':g}),this[s(0x1c8)]['injectAtBeginningOfFile']({'filePath':f+'.'+g['engines']['js'],'content':'import\x20\x27./'+h[s(0x1ad)]+'.'+g[s(0x1c0)]['css']+'\x27;'}));const i=b[s(0x1a1)]?'/'+b[s(0x1a1)]+'/':'/',j=''+d+i+h[s(0x1b2)]+'/'+h[s(0x1b2)];let k;if(g['engines']['ssr']===s(0x1d8)){const l=this['fsi']['pathFromApp']({'pathParts':[s(0x1b9),s(0x1d7),s(0x1a4),s(0x19e)]});k=this[s(0x1c8)][s(0x1d4)]({'pathParts':[l],'config':g});}else{const m=this['fsi'][s(0x19d)]({'pathParts':[s(0x1b9),'startup','client',s(0x19e)]});k=this[s(0x1c8)][s(0x1d4)]({'pathParts':[m],'config':g});}g[s(0x1c0)]['client']===s(0x1bd)||g['engines'][s(0x1d9)]===s(0x1b5)?(g[s(0x1c0)]['js']==='tsx'?this[s(0x1c8)][s(0x1bf)]({'filePath':k,'content':'import\x20{\x20'+h['className']+s(0x1c3)+j+s(0x1b0)}):this[s(0x1c8)][s(0x1bf)]({'filePath':k,'content':'import\x20{\x20'+h[s(0x1d6)]+'\x20}\x20from\x20\x27'+j+'.'+g[s(0x1c0)]['js']+s(0x1b0)}),this[s(0x1c8)][s(0x1c5)]({'filePath':k,'content':s(0x1b7)+h[s(0x1d6)]+s(0x1da)})):this[s(0x1c8)][s(0x1c5)]({'filePath':k,'content':s(0x1c2)+j+'.'+g[s(0x1c0)]['js']+s(0x1b0)});});}catch(h){Log[r(0x1ce)](h);}});
@@ -1 +1 @@
1
- const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=parseInt(h(0x11e))/0x1+parseInt(h(0x117))/0x2+-parseInt(h(0x11f))/0x3*(parseInt(h(0x11d))/0x4)+-parseInt(h(0x11b))/0x5*(parseInt(h(0x11a))/0x6)+-parseInt(h(0x129))/0x7+-parseInt(h(0x123))/0x8*(-parseInt(h(0x114))/0x9)+parseInt(h(0x122))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x44856));const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x115)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a['toString']()[j(0x11c)](j(0x126))[j(0x10f)]()['constructor'](a60a)[j(0x11c)](j(0x126));});a60a();function a60c(){const n=['prod','440210cLhZna','79736yevSND','development','fsi','(((.+)+)+)+$','withValue','production','2691297fTYufp','resourceName','isDocker','maka\x20g:config\x20production','dev','maka\x20{generate,\x20g}:{config}\x20<name>','toString','ubuntu','appName','create','template','477tMrQiN','apply','process.env','710340zWZhYR','config','getProjectConfig','560046qCtvva','25YWdLhR','search','283036Lljkck','345914eIYqVR','6GALCtb','settings.json'];a60c=function(){return n;};return a60c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x10c;let f=c[d];return f;},a60d(a,b);}Generator[a60k(0x112)]({'name':a60k(0x118),'usage':a60k(0x10e),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a60k(0x12b)],'examples':[a60k(0x10c)]},function(a,b){const l=a60k,c=this[l(0x125)][l(0x119)]();this['fsi'][l(0x127)](c,async()=>{const m=l,d={'app':c[m(0x111)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x12a)]),'fileName':paramCase(b[m(0x12a)]),'camelCase':camelCase(b[m(0x12a)]),'userName':m(0x110),'isDocker':b[m(0x12b)]};let e=a[0x0];if(e===m(0x10d))e=m(0x124);else e===m(0x121)&&(e=m(0x128));const f=this['fsi']['pathFromProject']({'pathParts':[m(0x118),e,m(0x120)]});this['fsi'][m(0x113)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this['fsi']['pathFromProject']({'pathParts':['config',e,m(0x116)]});this[m(0x125)][m(0x113)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
1
+ const a60j=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=-parseInt(h(0x1da))/0x1*(-parseInt(h(0x1e3))/0x2)+parseInt(h(0x1e1))/0x3*(parseInt(h(0x1d6))/0x4)+-parseInt(h(0x1d8))/0x5*(parseInt(h(0x1e2))/0x6)+parseInt(h(0x1ec))/0x7+parseInt(h(0x1e9))/0x8*(-parseInt(h(0x1f0))/0x9)+parseInt(h(0x1e6))/0xa*(parseInt(h(0x1e0))/0xb)+-parseInt(h(0x1d7))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x461ed));function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x1d3;let f=c[d];return f;},a60d(a,b);}const a60b=(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;};}()),a60a=a60b(this,function(){const i=a60d;return a60a['toString']()[i(0x1e4)](i(0x1db))[i(0x1d5)]()[i(0x1f1)](a60a)[i(0x1e4)](i(0x1db));});function a60c(){const m=['template','3927287YpfnWT','prod','config/settings.json','production','4504257WCFUEE','constructor','maka\x20g:config\x20production','dev','withValue','config','toString','1991516IjvvnV','4505724bRgudF','5jHSeZm','fsi','13051xDBvzG','(((.+)+)+)+$','ubuntu','Generate\x20configuration\x20settings.','config/process.env','create','3015892mYcqpY','3ekPfpi','2585694wWGFdj','40jAYunI','search','resourceName','10zWLINV','process.env','isDocker','8qCeVLT','getProjectConfig'];a60c=function(){return m;};return a60c();}a60a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a60j(0x1df)]({'name':'config','usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a60j(0x1dd),'validOpts':[a60j(0x1e8)],'examples':[a60j(0x1f2)]},function(a,b){const k=a60j,c=this['fsi'][k(0x1ea)]();this[k(0x1d9)][k(0x1d3)](c,async()=>{const l=k,d={'app':c['appName'],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[l(0x1e5)]),'fileName':paramCase(b[l(0x1e5)]),'camelCase':camelCase(b[l(0x1e5)]),'userName':l(0x1dc),'isDocker':b[l(0x1e8)]};let e=a[0x0];if(e===l(0x1f3))e='development';else e===l(0x1ed)&&(e=l(0x1ef));const f=this['fsi']['pathFromProject']({'pathParts':[l(0x1d4),e,'settings.json']});this['fsi'][l(0x1eb)]({'srcPath':l(0x1ee),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[l(0x1d9)]['pathFromProject']({'pathParts':[l(0x1d4),e,l(0x1e7)]});this[l(0x1d9)]['template']({'srcPath':l(0x1de),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=parseInt(n(0x161))/0x1+parseInt(n(0x16e))/0x2*(-parseInt(n(0x182))/0x3)+-parseInt(n(0x18c))/0x4*(-parseInt(n(0x17b))/0x5)+parseInt(n(0x16b))/0x6+-parseInt(n(0x172))/0x7*(-parseInt(n(0x19d))/0x8)+-parseInt(n(0x18e))/0x9*(parseInt(n(0x174))/0xa)+parseInt(n(0x183))/0xb*(parseInt(n(0x16f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x1a5c9));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0x187)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0x198)]()['search'](p(0x188))[p(0x198)]()[p(0x175)](a61a)[p(0x18d)]('(((.+)+)+)+$');});a61a();import{camelCase,paramCase,pascalCase}from'change-case';function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x161;let f=c[d];return f;},a61d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a61c(){const t=['dbc/config.js','config.','imports','template','mssql','injectAtEndOfFile','454917smfwLT','22QgVASE','options','PostgreSQL','error','apply','(((.+)+)+)+$','Invalid\x20type\x20','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','DB\x20Driver','156orbPvA','search','127287jFXxfP','dbc/register-dbc.js','better-sqlite3',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','installNpmPackage','withValue','pgsql','tsx','dir','type','toString','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20geoserver\x20--type=pgsql','indexOf','16bYCcSm','warn','71269Dpexny','list','conn.','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','server','pathFromApp','dbAnswer','-dbc.','dbc','sqlite','1072596ggIJoz','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','fsi','2NFUgsA','148404UuRsgj','-dbc\x27;','resourceName','58618bUBwar','register-','140OMOlkz','constructor','import\x20\x27./register-','startup','engines','maka\x20g:dbc\x20azure\x20--type=mssql','(blank)','21295kJodBo'];a61c=function(){return t;};return a61c();}Generator['create']({'name':a61q(0x169),'usage':a61q(0x199),'shortDesc':a61q(0x18a),'validOpts':[a61q(0x197),a61q(0x196)],'examples':[a61q(0x19b),a61q(0x179),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a61q;try{const c=await this[r(0x16d)]['getProjectConfig'](),d=this[r(0x16d)]['pathFromApp']({}),f=paramCase(b[r(0x171)]);if(!b[r(0x197)]){const h={'type':r(0x162),'name':r(0x167),'message':r(0x18b),'choices':[{'name':r(0x185),'value':r(0x194)},{'name':'MS\x20SQL','value':r(0x180)}]},{dbAnswer:i}=await Actions[r(0x184)](h);i&&(b['type']=i);}const g={'name':pascalCase(b[r(0x171)]),'fileName':paramCase(b[r(0x171)]),'camelCase':camelCase(b[r(0x171)]),'type':b[r(0x197)],'engine':c[r(0x178)]['js'],'noRename':!![]};this[r(0x16d)][r(0x193)](c,async()=>{const s=r;let j='js';c[s(0x178)]['js']===s(0x195)&&(j='ts');const k=['mssql',s(0x194)];if(k[s(0x19c)](g[s(0x197)])<0x0){const m=g['type']?g[s(0x197)]:s(0x17a);Log[s(0x186)](s(0x189)+m+s(0x191));return;}b[s(0x197)]==='pgsql'&&!this[s(0x16d)]['checkNpmPackage']('pg')&&(Log[s(0x19e)](s(0x19a)),await this['fsi'][s(0x192)]('pg',{'cwd':d}));b[s(0x197)]===s(0x180)&&!this[s(0x16d)]['checkNpmPackage'](s(0x180))&&(Log[s(0x19e)](s(0x16c)),await this[s(0x16d)][s(0x192)](s(0x180),{'cwd':d}));b[s(0x197)]===s(0x16a)&&!this[s(0x16d)]['checkNpmPackage'](s(0x190))&&(Log[s(0x19e)](s(0x164)),await this[s(0x16d)][s(0x192)]('better-sqlite3',{'cwd':d}));this['fsi'][s(0x17f)]({'srcPath':s(0x17c),'destPath':this[s(0x16d)][s(0x166)]({'pathParts':[s(0x17e),s(0x177),'server',s(0x169),b[s(0x196)],f,s(0x17d)+j]}),'context':g,'config':c}),this[s(0x16d)][s(0x17f)]({'srcPath':'dbc/conn.js','destPath':this[s(0x16d)][s(0x166)]({'pathParts':[s(0x17e),s(0x177),'server',s(0x169),b[s(0x196)],f,s(0x163)+j]}),'context':g,'config':c}),this[s(0x16d)]['template']({'srcPath':s(0x18f),'destPath':this['fsi'][s(0x166)]({'pathParts':[s(0x17e),'startup',s(0x165),s(0x173)+f+s(0x168)+j]}),'context':g,'config':c});const l=this[s(0x16d)][s(0x166)]({'pathParts':[s(0x17e),'startup',s(0x165),'index.'+c[s(0x178)]['js']]});this[s(0x16d)][s(0x181)]({'filePath':l,'content':s(0x176)+f+s(0x170)});});}catch(j){Log[r(0x186)](j);}});
1
+ function a61c(){const t=['dbAnswer','pathFromApp','119996NVFHtT','installNpmPackage','7ivuDKv','error','indexOf','imports','20FGOwzB','Invalid\x20type\x20','options','1188066TZOfFe','dbc','DB\x20Driver','5357256MXXziQ','withValue','template','maka\x20g:dbc\x20geoserver\x20--type=pgsql','list','dbc/config.js','mssql','checkNpmPackage','dir','230068mvHWOx','create','engines','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','type','9YlkvIk','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','pgsql','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','import\x20\x27./register-','(((.+)+)+)+$','apply','fsi','3173224swoIHK','warn','maka\x20g:dbc\x20todos\x20--type=sqlite','startup','sqlite','70ccadrW','toString','dbc/conn.js','241912YquIyv','dbc/register-dbc.js',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','6gOMzeu','register-','-dbc.','search','resourceName','PostgreSQL','server','index.','2795898AXuRvN'];a61c=function(){return t;};return a61c();}const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=parseInt(n(0x158))/0x1+-parseInt(n(0x17b))/0x2*(-parseInt(n(0x15b))/0x3)+parseInt(n(0x166))/0x4*(parseInt(n(0x18d))/0x5)+-parseInt(n(0x163))/0x6*(parseInt(n(0x168))/0x7)+parseInt(n(0x188))/0x8*(-parseInt(n(0x180))/0x9)+-parseInt(n(0x16c))/0xa*(parseInt(n(0x16f))/0xb)+parseInt(n(0x172))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x3f6ac));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0x186)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a['toString']()[p(0x15e)]('(((.+)+)+)+$')[p(0x18e)]()['constructor'](a61a)[p(0x15e)](p(0x185));});a61a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x158;let f=c[d];return f;},a61d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a61q(0x17c)]({'name':'dbc','usage':a61q(0x17e),'shortDesc':a61q(0x183),'validOpts':['type',a61q(0x17a)],'examples':[a61q(0x175),'maka\x20g:dbc\x20azure\x20--type=mssql',a61q(0x18a)]},async function(a,b){const r=a61q;try{const c=await this[r(0x187)]['getProjectConfig'](),d=this['fsi'][r(0x165)]({}),f=paramCase(b[r(0x15f)]);if(!b[r(0x17f)]){const h={'type':r(0x176),'name':r(0x164),'message':r(0x171),'choices':[{'name':r(0x160),'value':r(0x182)},{'name':'MS\x20SQL','value':r(0x178)}]},{dbAnswer:i}=await Actions[r(0x16e)](h);i&&(b['type']=i);}const g={'name':pascalCase(b[r(0x15f)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[r(0x15f)]),'type':b[r(0x17f)],'engine':c['engines']['js'],'noRename':!![]};this[r(0x187)][r(0x173)](c,async()=>{const s=r;let j='js';c[s(0x17d)]['js']==='tsx'&&(j='ts');const k=[s(0x178),s(0x182)];if(k[s(0x16a)](g['type'])<0x0){const m=g[s(0x17f)]?g[s(0x17f)]:'(blank)';Log[s(0x169)](s(0x16d)+m+s(0x15a));return;}b[s(0x17f)]===s(0x182)&&!this[s(0x187)]['checkNpmPackage']('pg')&&(Log[s(0x189)](s(0x181)),await this[s(0x187)][s(0x167)]('pg',{'cwd':d}));b[s(0x17f)]===s(0x178)&&!this[s(0x187)][s(0x179)](s(0x178))&&(Log[s(0x189)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[s(0x187)][s(0x167)](s(0x178),{'cwd':d}));b[s(0x17f)]===s(0x18c)&&!this[s(0x187)][s(0x179)]('better-sqlite3')&&(Log['warn']('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x187)][s(0x167)]('better-sqlite3',{'cwd':d}));this[s(0x187)][s(0x174)]({'srcPath':s(0x177),'destPath':this[s(0x187)]['pathFromApp']({'pathParts':['imports','startup','server',s(0x170),b[s(0x17a)],f,'config.'+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0x18f),'destPath':this[s(0x187)][s(0x165)]({'pathParts':[s(0x16b),s(0x18b),s(0x161),s(0x170),b[s(0x17a)],f,'conn.'+j]}),'context':g,'config':c}),this[s(0x187)][s(0x174)]({'srcPath':s(0x159),'destPath':this[s(0x187)][s(0x165)]({'pathParts':['imports',s(0x18b),s(0x161),s(0x15c)+f+s(0x15d)+j]}),'context':g,'config':c});const l=this['fsi']['pathFromApp']({'pathParts':[s(0x16b),s(0x18b),s(0x161),s(0x162)+c[s(0x17d)]['js']]});this['fsi']['injectAtEndOfFile']({'filePath':l,'content':s(0x184)+f+'-dbc\x27;'});});}catch(j){Log[r(0x169)](j);}});
@@ -1 +1 @@
1
- const a62i=a62d;function a62c(){const l=['getGlobalConfig','template','1442625MgQWNl','2416EWWOUM','build','108991jvEXuu','6NsbZFi','maka\x20g:dockerfile','1589343rRYely','search','constructor','withValue','901068zqyFJu','Dockerfile','app.tar.gz','604050ojrFNg','303818ZHxiqp','docker/Dockerfile','join','create','app','maka\x20{generate,\x20g}:dockerfile','fsi','dockerfile','apply','(((.+)+)+)+$','findProjectDirectory','getProjectConfig','13635rrwSiS'];a62c=function(){return l;};return a62c();}function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x146;let f=c[d];return f;},a62d(a,b);}(function(a,b){const f=a62d,c=a();while(!![]){try{const d=parseInt(f(0x148))/0x1+parseInt(f(0x153))/0x2+parseInt(f(0x152))/0x3+-parseInt(f(0x14f))/0x4+-parseInt(f(0x162))/0x5*(parseInt(f(0x149))/0x6)+-parseInt(f(0x14b))/0x7+parseInt(f(0x146))/0x8*(parseInt(f(0x15f))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x2bafb));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a['toString']()[h(0x14c)](h(0x15c))['toString']()[h(0x14d)](a62a)['search'](h(0x15c));});a62a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a62e from'path';Generator[a62i(0x156)]({'name':a62i(0x15a),'usage':a62i(0x158),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a62i(0x14a)]},async function(){const j=a62i;try{const a=await this[j(0x159)][j(0x15e)](),b=await this[j(0x159)][j(0x160)](),c=this[j(0x159)][j(0x15d)]();this[j(0x159)][j(0x14e)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a62e[k(0x155)](c,k(0x157)),'bundlePath':a62e[k(0x155)](c,k(0x147),k(0x151)),'useCert':this[k(0x159)]['isFile'](b['cert'])};this[k(0x159)][k(0x161)]({'srcPath':k(0x154),'destPath':a62e[k(0x155)](c,k(0x150)),'framework':'service','context':d,'config':a});});}catch(d){Log['error'](d);}});
1
+ const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=-parseInt(f(0x1af))/0x1+parseInt(f(0x1ac))/0x2*(parseInt(f(0x1ba))/0x3)+-parseInt(f(0x1ae))/0x4*(parseInt(f(0x1a8))/0x5)+parseInt(f(0x1aa))/0x6+-parseInt(f(0x1a9))/0x7*(-parseInt(f(0x1ad))/0x8)+-parseInt(f(0x1be))/0x9+-parseInt(f(0x1b7))/0xa*(-parseInt(f(0x1b1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x65cda));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x1b9)]()[h(0x1b2)](h(0x1b8))[h(0x1b9)]()[h(0x1bf)](a62a)[h(0x1b2)](h(0x1b8));});a62a();function a62c(){const l=['51VlhGud','error','create','join','6870843BmVeWs','constructor','app.tar.gz','docker/Dockerfile','fsi','getGlobalConfig','dockerfile','maka\x20{generate,\x20g}:dockerfile','build','isFile','173490EwoEoH','11543HMRcne','815706SUCfHW','Generate\x20an\x20updated\x20dockerfile','5204LgOPuj','2744UxHejo','68GpHwkp','293690HToSdV','apply','11RzbcZH','search','template','findProjectDirectory','withValue','maka\x20g:dockerfile','13181770lxKyMa','(((.+)+)+)+$','toString'];a62c=function(){return l;};return a62c();}import{Generator}from'../generator.js';function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a62d(a,b);}import{Log}from'../tools/log/log.class.js';import a62e from'path';Generator[a62i(0x1bc)]({'name':a62i(0x1a4),'usage':a62i(0x1a5),'shortDesc':a62i(0x1ab),'validOpts':[],'noResource':!![],'examples':[a62i(0x1b6)]},async function(){const j=a62i;try{const a=await this['fsi']['getProjectConfig'](),b=await this[j(0x1c2)][j(0x1c3)](),c=this[j(0x1c2)][j(0x1b4)]();this[j(0x1c2)][j(0x1b5)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a62e['join'](c,'app'),'bundlePath':a62e[k(0x1bd)](c,k(0x1a6),k(0x1c0)),'useCert':this[k(0x1c2)][k(0x1a7)](b['cert'])};this[k(0x1c2)][k(0x1b3)]({'srcPath':k(0x1c1),'destPath':a62e[k(0x1bd)](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x1bb)](d);}});
@@ -1 +1 @@
1
- function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x152;let f=c[d];return f;},a63d(a,b);}const a63r=a63d;function a63c(){const u=['maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','getProjectConfig','templates.js','ssr','export\x20{\x20','78YXOCyr','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','withValue','resourceName','lib','graphql','template','703314elguZZ','rewriteDestinationPathForEngine','error','import\x20\x27','withTranslations','test/test.js','pathFromApp','injectAtBeginningOfFile','features','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fsi','(((.+)+)+)+$','react','2587136NCtNqE','none','dir','startup','\x20}\x20from\x20\x27','1zQyUDB','create','fileName','hook','engines','import\x20{\x20','15320870DyDRms','.app-tests.js','installNpmPackage','constructor','theme','tsx','hook/hook.js','maka\x20g:hook\x20cool-hook','\x27;\x0a','6667285XbhjPt','search','toString','53528CNlAhH','.js','css','apollo','/imports/ui/hooks','warn','true','120281omrDDc','className','apply','@apollo/client','imports','checkNpmPackage','assign','999uAqCNL','injectAtEndOfFile','string','client','import\x20\x27./','200859GVLgqG'];a63c=function(){return u;};return a63c();}(function(a,b){const o=a63d,c=a();while(!![]){try{const d=-parseInt(o(0x161))/0x1*(parseInt(o(0x193))/0x2)+parseInt(o(0x186))/0x3+parseInt(o(0x15c))/0x4+parseInt(o(0x170))/0x5+parseInt(o(0x18c))/0x6*(-parseInt(o(0x17a))/0x7)+-parseInt(o(0x173))/0x8*(-parseInt(o(0x181))/0x9)+-parseInt(o(0x167))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0xa6b14));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a[q(0x172)]()[q(0x171)](q(0x15a))[q(0x172)]()[q(0x16a)](a63a)[q(0x171)](q(0x15a));});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(0x162)]({'name':a63r(0x164),'aliases':['h'],'checkWhere':![],'usage':a63r(0x187),'shortDesc':a63r(0x18d),'validOpts':[a63r(0x15e)],'examples':[a63r(0x16e)]},async function(a,b){const s=a63r;try{const c=this[s(0x159)][s(0x17f)](s(0x15b));if(!c){Log[s(0x195)](s(0x157));throw new UsageError();}const d=this[s(0x159)][s(0x154)](b),f=s(0x177),g=this['fsi'][s(0x154)]({'pathParts':[f,b[s(0x15e)],paramCase(b[s(0x18f)]),paramCase(b[s(0x18f)])]}),h=await this['fsi'][s(0x188)]();this[s(0x159)][s(0x18e)](h,async()=>{const t=s;typeof h[t(0x192)]['css']===t(0x183)&&(h[t(0x192)][t(0x175)]=h['template']['css']==='true'?!![]:![],this[t(0x159)]['setTemplate'](t(0x175),h[t(0x192)][t(0x175)]));h['engines'][t(0x191)]===t(0x176)&&!this[t(0x17f)](t(0x17d))&&(Log[t(0x178)](t(0x158)),await this[t(0x159)][t(0x169)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x18f)]),'className':pascalCase(b[t(0x18f)]),'name':pascalCase(b[t(0x18f)]),'graphql':h[t(0x165)]['graphql'],'theme':h[t(0x165)][t(0x16b)],'features':h[t(0x156)],'myPath':a63e['relative'](this['fsi']['pathFromProject']({}),g),'fileName':paramCase(b[t(0x18f)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x156)][t(0x152)]};this[t(0x159)]['template']({'srcPath':t(0x16d),'destPath':g+t(0x174),'context':i,'config':h,'framework':t(0x15b)});h[t(0x192)][t(0x175)]&&(this[t(0x159)]['template']({'srcPath':'template/template.css','destPath':g+'.css','context':Object[t(0x180)]({},i,{'className':i['cssCaseName']}),'config':h}),this['fsi'][t(0x155)]({'filePath':g+'.'+h[t(0x165)]['js'],'content':t(0x185)+i['fileName']+'.'+h[t(0x165)][t(0x175)]+'\x27;'}));h[t(0x165)]['test']!==t(0x15d)&&this[t(0x159)][t(0x192)]({'srcPath':t(0x153),'destPath':g+t(0x168),'framework':t(0x15b),'context':i,'config':h});const j=b['dir']?'/'+b[t(0x15e)]+'/':'/',k=''+f+j+i[t(0x163)]+'/'+i[t(0x163)];let l;if(h[t(0x165)][t(0x18a)]===t(0x179)){const m=this[t(0x159)][t(0x154)]({'pathParts':[t(0x17e),t(0x15f),t(0x190),'templates.js']});l=this[t(0x159)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x159)][t(0x154)]({'pathParts':[t(0x17e),'startup',t(0x184),t(0x189)]});l=this['fsi'][t(0x194)]({'pathParts':[n],'config':h});}h['engines']['client']===t(0x15b)?(h[t(0x165)]['js']===t(0x16c)?this[t(0x159)][t(0x155)]({'filePath':l,'content':t(0x166)+i[t(0x17b)]+t(0x160)+k+t(0x16f)}):this[t(0x159)][t(0x155)]({'filePath':l,'content':t(0x166)+i['className']+t(0x160)+k+'.'+h['engines']['js']+t(0x16f)}),this[t(0x159)][t(0x182)]({'filePath':l,'content':t(0x18b)+i[t(0x17b)]+'\x20};\x0a'})):this[t(0x159)]['injectAtEndOfFile']({'filePath':l,'content':t(0x196)+k+'.'+h[t(0x165)]['js']+t(0x16f)});});}catch(i){Log[s(0x195)](i);}});
1
+ const a63q=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=-parseInt(o(0x20c))/0x1+-parseInt(o(0x20f))/0x2*(-parseInt(o(0x1f1))/0x3)+parseInt(o(0x21d))/0x4*(parseInt(o(0x1ea))/0x5)+-parseInt(o(0x1ff))/0x6+-parseInt(o(0x1f6))/0x7*(parseInt(o(0x214))/0x8)+parseInt(o(0x200))/0x9*(-parseInt(o(0x1f2))/0xa)+parseInt(o(0x1df))/0xb*(parseInt(o(0x20b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x50179));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const p=a63d;return a63a[p(0x215)]()['search'](p(0x1e7))[p(0x215)]()[p(0x1fa)](a63a)[p(0x220)](p(0x1e7));});a63a();import a63e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a63d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a63c(){const t=['warn','\x20};\x0a','876084GIYvKL','378494pJiqAw','hook/hook.js','startup','2yHQhCV','react','dir','installNpmPackage','true','72SdiIMi','toString','\x27;\x0a','resourceName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','template','graphql','injectAtBeginningOfFile','@apollo/client','368oMUUOP','css','fileName','search','lib','\x20}\x20from\x20\x27','injectAtEndOfFile','132oVchNE','cssCaseName','fsi','client','pathFromApp','maka\x20g:hook\x20cool-hook','none','withValue','(((.+)+)+)+$','template/template.css','hook','18535JyhUFs','className','string','.app-tests.js','withTranslations','test/test.js','ssr','1555761CXHoIf','10nbPBbI','getProjectConfig','templates.js','engines','447699qCmqYY','error','tsx','import\x20\x27./','constructor','export\x20{\x20','imports','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','assign','1775646oFgYgc','1418490tuhrQU','apollo','rewriteDestinationPathForEngine','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','@apollo/client\x20isomorphic-fetch','checkNpmPackage','features','.js'];a63c=function(){return t;};return a63c();}Generator['create']({'name':a63q(0x1e9),'aliases':['h'],'checkWhere':![],'usage':a63q(0x203),'shortDesc':a63q(0x204),'validOpts':['dir'],'examples':[a63q(0x1e4)]},async function(a,b){const r=a63q;try{const c=this[r(0x1e1)][r(0x206)](r(0x210));if(!c){Log[r(0x1f7)](r(0x218));throw new UsageError();}const d=this[r(0x1e1)]['pathFromApp'](b),f='/imports/ui/hooks',g=this['fsi']['pathFromApp']({'pathParts':[f,b[r(0x211)],paramCase(b['resourceName']),paramCase(b[r(0x217)])]}),h=await this[r(0x1e1)][r(0x1f3)]();this[r(0x1e1)][r(0x1e6)](h,async()=>{const s=r;typeof h[s(0x219)][s(0x21e)]===s(0x1ec)&&(h[s(0x219)]['css']=h['template'][s(0x21e)]==='true'?!![]:![],this['fsi']['setTemplate']('css',h[s(0x219)][s(0x21e)]));h[s(0x1f5)][s(0x21a)]===s(0x201)&&!this[s(0x206)](s(0x21c))&&(Log[s(0x209)](s(0x1fd)),await this['fsi'][s(0x212)](s(0x205),{'cwd':d}));const i={'cssCaseName':paramCase(b[s(0x217)]),'className':pascalCase(b[s(0x217)]),'name':pascalCase(b['resourceName']),'graphql':h[s(0x1f5)][s(0x21a)],'theme':h['engines']['theme'],'features':h[s(0x207)],'myPath':a63e['relative'](this[s(0x1e1)]['pathFromProject']({}),g),'fileName':paramCase(b[s(0x217)]),'isComponent':![],'isLayout':![],'withTranslations':h[s(0x207)][s(0x1ee)]};this[s(0x1e1)][s(0x219)]({'srcPath':s(0x20d),'destPath':g+s(0x208),'context':i,'config':h,'framework':'react'});h[s(0x219)][s(0x21e)]&&(this['fsi']['template']({'srcPath':s(0x1e8),'destPath':g+'.css','context':Object[s(0x1fe)]({},i,{'className':i[s(0x1e0)]}),'config':h}),this['fsi'][s(0x21b)]({'filePath':g+'.'+h['engines']['js'],'content':s(0x1f9)+i[s(0x21f)]+'.'+h['engines'][s(0x21e)]+'\x27;'}));h[s(0x1f5)]['test']!==s(0x1e5)&&this['fsi'][s(0x219)]({'srcPath':s(0x1ef),'destPath':g+s(0x1ed),'framework':'react','context':i,'config':h});const j=b[s(0x211)]?'/'+b[s(0x211)]+'/':'/',k=''+f+j+i['fileName']+'/'+i['fileName'];let l;if(h[s(0x1f5)][s(0x1f0)]===s(0x213)){const m=this['fsi'][s(0x1e3)]({'pathParts':[s(0x1fc),'startup',s(0x221),s(0x1f4)]});l=this[s(0x1e1)][s(0x202)]({'pathParts':[m],'config':h});}else{const n=this[s(0x1e1)][s(0x1e3)]({'pathParts':[s(0x1fc),s(0x20e),s(0x1e2),'templates.js']});l=this[s(0x1e1)][s(0x202)]({'pathParts':[n],'config':h});}h['engines'][s(0x1e2)]===s(0x210)?(h[s(0x1f5)]['js']===s(0x1f8)?this['fsi'][s(0x21b)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x1eb)]+s(0x1dd)+k+s(0x216)}):this[s(0x1e1)][s(0x21b)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x1eb)]+'\x20}\x20from\x20\x27'+k+'.'+h[s(0x1f5)]['js']+s(0x216)}),this[s(0x1e1)][s(0x1de)]({'filePath':l,'content':s(0x1fb)+i[s(0x1eb)]+s(0x20a)})):this['fsi']['injectAtEndOfFile']({'filePath':l,'content':'import\x20\x27'+k+'.'+h[s(0x1f5)]['js']+'\x27;\x0a'});});}catch(i){Log[r(0x1f7)](i);}});
@@ -1 +1 @@
1
- function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x11d;let f=c[d];return f;},a64d(a,b);}const a64k=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0x11d))/0x1*(parseInt(h(0x11e))/0x2)+parseInt(h(0x13a))/0x3*(-parseInt(h(0x130))/0x4)+-parseInt(h(0x13b))/0x5+-parseInt(h(0x12f))/0x6*(-parseInt(h(0x12d))/0x7)+-parseInt(h(0x124))/0x8+parseInt(h(0x122))/0x9*(-parseInt(h(0x135))/0xa)+parseInt(h(0x128))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x4b931));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a64d;if(c){const e=c[i(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const j=a64d;return a64a[j(0x137)]()[j(0x12b)](j(0x138))[j(0x137)]()[j(0x120)](a64a)[j(0x12b)](j(0x138));});a64a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a64c(){const n=['resourceName','1865520fDbcHN','(blank)','create','login','12158608qFQySr','type','fsi','search','engines','13181PNHuuq','error','1362DlklTp','8yaZmiw','maka\x20g:k\x20city-map\x20--type=leaflet-map','notice','map','indexOf','188390FQfhPW','apply','toString','(((.+)+)+)+$','NIE','252564cxkClg','2329585fWzcRf','112298EOFYiv','6tLElfX','leaflet-map','constructor',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','9TBEoSp'];a64c=function(){return n;};return a64c();}Generator[a64k(0x126)]({'name':'kit','aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':['type'],'examples':['maka\x20g:kit\x20--type=map',a64k(0x131)]},async function(a,b){const l=a64k;try{const c=this['fsi']['getProjectConfig']();this[l(0x12a)]['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x123)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x123)]),'type':b[m(0x129)],'engine':c[m(0x12c)]['js'],'noRename':!![]},f=[m(0x11f),m(0x127)];if(f[m(0x134)](d[m(0x129)])<0x0){const g=d['type']?d[m(0x129)]:m(0x125);Log[m(0x12e)]('Invalid\x20type\x20'+g+m(0x121));return;}b[m(0x129)]===m(0x133)&&Log[m(0x132)](m(0x139)),b['type']==='login'&&Log['notice'](m(0x139));});}catch(d){Log[l(0x12e)](d);}});
1
+ const a64k=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0x1ad))/0x1+-parseInt(h(0x1a9))/0x2*(parseInt(h(0x1a7))/0x3)+-parseInt(h(0x1a8))/0x4+parseInt(h(0x19f))/0x5+parseInt(h(0x1ab))/0x6+-parseInt(h(0x1b9))/0x7+parseInt(h(0x1b3))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0xc44de));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a64d;if(c){const e=c[i(0x1b2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const j=a64d;return a64a[j(0x19c)]()[j(0x1af)](j(0x1a1))[j(0x19c)]()['constructor'](a64a)[j(0x1af)]('(((.+)+)+)+$');});function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x19b;let f=c[d];return f;},a64d(a,b);}a64a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a64c(){const n=['6hfJdaM','2719252QQozkn','1017544eewyOy','NIE','6925818elFLiI','type','745169ZvUvle','maka\x20g:kit\x20--type=map','search','create','engines','apply','18269464mvKTct','map','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','indexOf','kit','error','5005854DltFqa','fsi','toString','maka\x20g:k\x20city-map\x20--type=leaflet-map','resourceName','2618620meaGZu','notice','(((.+)+)+)+$','leaflet-map','Invalid\x20type\x20','getProjectConfig','withValue','login'];a64c=function(){return n;};return a64c();}Generator[a64k(0x1b0)]({'name':a64k(0x1b7),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':a64k(0x1b5),'validOpts':[a64k(0x1ac)],'examples':[a64k(0x1ae),a64k(0x19d)]},async function(a,b){const l=a64k;try{const c=this[l(0x19b)][l(0x1a4)]();this[l(0x19b)][l(0x1a5)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x19e)]),'camelCase':camelCase(b[m(0x19e)]),'type':b[m(0x1ac)],'engine':c[m(0x1b1)]['js'],'noRename':!![]},f=[m(0x1a2),m(0x1a6)];if(f[m(0x1b6)](d[m(0x1ac)])<0x0){const g=d[m(0x1ac)]?d[m(0x1ac)]:'(blank)';Log['error'](m(0x1a3)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b['type']===m(0x1b4)&&Log[m(0x1a0)](m(0x1aa)),b[m(0x1ac)]===m(0x1a6)&&Log[m(0x1a0)](m(0x1aa));});}catch(d){Log[l(0x1b8)](d);}});
@@ -1 +1 @@
1
- const a65q=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d=parseInt(o(0x164))/0x1+-parseInt(o(0x127))/0x2*(-parseInt(o(0x13e))/0x3)+-parseInt(o(0x16b))/0x4+-parseInt(o(0x14d))/0x5+parseInt(o(0x143))/0x6*(-parseInt(o(0x141))/0x7)+parseInt(o(0x12a))/0x8+parseInt(o(0x154))/0x9*(parseInt(o(0x126))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x5335a));const a65b=(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;};}()),a65a=a65b(this,function(){const p=a65d;return a65a['toString']()[p(0x13f)]('(((.+)+)+)+$')[p(0x128)]()[p(0x12d)](a65a)[p(0x13f)](p(0x131));});a65a();import a65e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x126;let f=c[d];return f;},a65d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a65c(){const t=['relative','1070395aIvuMD','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','fsi','template/template.css','ramda','rewriteDestinationPathForEngine','theme','27kkFSPM','true','startup','withTranslations','export\x20{\x20','className','withHook','template','injectAtEndOfFile','import\x20{\x20','string','test/test.js','setTemplate','withValue','test','lib','499976IDNOZp','split','client','assign','imports','dir','withHooks','1659852BLjIXT','694140RYlxJZ','4QMgTcn','toString','includes','2346080AnJyLZ','none','getProjectConfig','constructor','api','warn','resourceName','(((.+)+)+)+$','pathFromApp','create','css','tsx','maka\x20g:l\x20web/safari','templates.js','fileName','features','component/component.js','.app-tests.js','engines','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','775686CDAljI','search','\x27;\x0a','7pwRnOr','pathFromProject','3292404QPdfVm','injectAtBeginningOfFile','\x20}\x20from\x20\x27','checkNpmPackage','react','installNpmPackage','.js','graphql','.css'];a65c=function(){return t;};return a65c();}const aliases=['l'];Generator[a65q(0x133)]({'name':'layout','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':['maka\x20g:layout\x20mobile/iPhone8',a65q(0x136)]},function(a,b){const r=a65q,c='/imports/ui/layouts',d=this[r(0x14f)]['findAppDirectory'](),e=this[r(0x14f)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[r(0x130)]),paramCase(b[r(0x130)])]}),f=this[r(0x14f)][r(0x12c)]();this['fsi'][r(0x161)](f,()=>{const s=r;typeof f[s(0x15b)][s(0x162)]===s(0x15e)&&(f[s(0x15b)][s(0x162)]=f[s(0x15b)][s(0x162)]===s(0x155)?!![]:![],this[s(0x14f)][s(0x160)](s(0x162),f[s(0x15b)][s(0x162)]));typeof f[s(0x15b)][s(0x134)]==='string'&&(f[s(0x15b)][s(0x134)]=f['template'][s(0x134)]===s(0x155)?!![]:![],this[s(0x14f)][s(0x160)](s(0x134),f['template']['css']));typeof f[s(0x15b)]['js']===s(0x15e)&&(f[s(0x15b)]['js']=f[s(0x15b)]['js']===s(0x155)?!![]:![],this[s(0x14f)]['setTemplate']('js',f[s(0x15b)]['js']));!f[s(0x139)]&&(f['features']={});const g=b['_']?b['_'][0x0][s(0x165)](':')[0x1]:![],h=b['_']&&aliases[s(0x129)](g);h&&!this[s(0x146)](s(0x151))&&(Log[s(0x12f)](s(0x13d)),this[s(0x14f)][s(0x148)]('ramda',{'cwd':d}));if(h&&!this[s(0x146)](s(0x147))){Log['warn'](s(0x14e));return;}const i={'name':pascalCase(b[s(0x130)]),'myPath':a65e[s(0x14c)](this[s(0x14f)][s(0x142)]({}),e),'cssCaseName':paramCase(b[s(0x130)]),'className':pascalCase(b[s(0x130)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':f['engines'][s(0x14a)],'features':f[s(0x139)],'client':f[s(0x13c)]['client'],'api':f[s(0x13c)][s(0x12e)],'ssr':f[s(0x13c)]['ssr'],'test':f[s(0x13c)]['test'],'theme':f['engines'][s(0x153)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x139)][s(0x157)]};f[s(0x139)]?.[s(0x16a)]||b[s(0x15a)]?this[s(0x14f)][s(0x15b)]({'srcPath':'hook/hook.js','destPath':e+'.js','framework':s(0x147),'context':i,'config':f}):this['fsi'][s(0x15b)]({'srcPath':s(0x13a),'destPath':e+s(0x149),'framework':s(0x147),'context':i,'config':f});f['engines'][s(0x162)]!==s(0x12b)&&this[s(0x14f)][s(0x15b)]({'srcPath':s(0x15f),'destPath':e+s(0x13b),'framework':s(0x147),'context':i,'config':f});f[s(0x15b)][s(0x134)]&&(this[s(0x14f)]['template']({'srcPath':s(0x150),'destPath':e+s(0x14b),'context':Object[s(0x167)]({},i,{'className':paramCase(b[s(0x130)])}),'config':f}),this['fsi'][s(0x144)]({'filePath':e+'.'+f[s(0x13c)]['js'],'content':'import\x20\x27./'+i[s(0x138)]+'.'+f[s(0x13c)][s(0x134)]+'\x27;'}));const j=b[s(0x169)]?'/'+b['dir']+'/':'/',k=''+c+j+i['fileName']+'/'+i[s(0x138)];let l;if(f[s(0x13c)]['ssr']===s(0x155)){const m=this[s(0x14f)][s(0x132)]({'pathParts':[s(0x168),s(0x156),s(0x163),s(0x137)]});l=this[s(0x14f)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this['fsi'][s(0x132)]({'pathParts':[s(0x168),'startup',s(0x166),'templates.js']});l=this['fsi'][s(0x152)]({'pathParts':[n],'config':f});}f[s(0x13c)][s(0x166)]===s(0x147)?(f[s(0x13c)]['js']===s(0x135)?this[s(0x14f)][s(0x144)]({'filePath':l,'content':s(0x15d)+i[s(0x159)]+s(0x145)+k+s(0x140)}):this['fsi'][s(0x144)]({'filePath':l,'content':'import\x20{\x20'+i['className']+'\x20}\x20from\x20\x27'+k+'.'+f[s(0x13c)]['js']+s(0x140)}),this[s(0x14f)][s(0x15c)]({'filePath':l,'content':s(0x158)+i[s(0x159)]+'\x20};\x0a'})):this[s(0x14f)][s(0x15c)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f['engines']['js']+s(0x140)});});});
1
+ const a65r=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d=-parseInt(o(0xc4))/0x1*(-parseInt(o(0xaa))/0x2)+parseInt(o(0xd0))/0x3*(-parseInt(o(0xc0))/0x4)+-parseInt(o(0xb1))/0x5*(parseInt(o(0xac))/0x6)+parseInt(o(0xa3))/0x7+parseInt(o(0x93))/0x8+-parseInt(o(0x90))/0x9+parseInt(o(0xa4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x6056b));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0xa0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x94)]()['search'](q(0xab))[q(0x94)]()[q(0xb4)](a65a)[q(0x98)](q(0xab));});function a65c(){const u=['injectAtEndOfFile','import\x20{\x20','727728sWMQHX','toString','\x20}\x20from\x20\x27','import\x20\x27','lib','search','maka\x20g:layout\x20mobile/iPhone8','\x27;\x0a','theme','test/test.js','features','dir','css','apply','engines','string','865564EkLKmD','5810390ECbWSA','react','.js','/imports/ui/layouts','warn','fsi','5442NwUugw','(((.+)+)+)+$','18zHYrOA','create','hook/hook.js','.css','setTemplate','264905HxYaJV','api','\x20};\x0a','constructor','ramda','ssr','maka\x20g:l\x20web/safari','export\x20{\x20','templates.js','split','className','imports','withTranslations','checkNpmPackage','rewriteDestinationPathForEngine','652oXleIT','injectAtBeginningOfFile','startup','true','217JrQQFO','withHooks','includes','template','relative','layout','withValue','test','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','none','fileName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','11469PQccjI','component/component.js','resourceName','client','1884771GjCmSy'];a65c=function(){return u;};return a65c();}a65a();import a65e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x90;let f=c[d];return f;},a65d(a,b);}Generator[a65r(0xad)]({'name':a65r(0xc9),'aliases':aliases,'usage':a65r(0xcc),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a65r(0x99),a65r(0xb7)]},function(a,b){const s=a65r,c=s(0xa7),d=this[s(0xa9)]['findAppDirectory'](),e=this[s(0xa9)]['pathFromApp']({'pathParts':[c,b[s(0x9e)],paramCase(b[s(0xd2)]),paramCase(b[s(0xd2)])]}),f=this[s(0xa9)]['getProjectConfig']();this['fsi'][s(0xca)](f,()=>{const t=s;typeof f[t(0xc7)][t(0xcb)]===t(0xa2)&&(f[t(0xc7)][t(0xcb)]=f[t(0xc7)]['test']===t(0xc3)?!![]:![],this[t(0xa9)][t(0xb0)]('test',f[t(0xc7)]['test']));typeof f[t(0xc7)][t(0x9f)]==='string'&&(f[t(0xc7)][t(0x9f)]=f['template'][t(0x9f)]==='true'?!![]:![],this[t(0xa9)][t(0xb0)](t(0x9f),f[t(0xc7)][t(0x9f)]));typeof f[t(0xc7)]['js']===t(0xa2)&&(f[t(0xc7)]['js']=f[t(0xc7)]['js']===t(0xc3)?!![]:![],this[t(0xa9)][t(0xb0)]('js',f[t(0xc7)]['js']));!f['features']&&(f['features']={});const g=b['_']?b['_'][0x0][t(0xba)](':')[0x1]:![],h=b['_']&&aliases[t(0xc6)](g);h&&!this[t(0xbe)](t(0xb5))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0xa9)]['installNpmPackage'](t(0xb5),{'cwd':d}));if(h&&!this[t(0xbe)](t(0xa5))){Log[t(0xa8)](t(0xcf));return;}const i={'name':pascalCase(b[t(0xd2)]),'myPath':a65e[t(0xc8)](this[t(0xa9)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[t(0xd2)]),'className':pascalCase(b[t(0xd2)]),'camelCaseName':camelCase(b[t(0xd2)]),'fileName':paramCase(b[t(0xd2)]),'graphql':f[t(0xa1)]['graphql'],'features':f[t(0x9d)],'client':f['engines'][t(0xd3)],'api':f[t(0xa1)][t(0xb2)],'ssr':f[t(0xa1)]['ssr'],'test':f['engines'][t(0xcb)],'theme':f[t(0xa1)][t(0x9b)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x9d)][t(0xbd)]};f[t(0x9d)]?.[t(0xc5)]||b['withHook']?this['fsi'][t(0xc7)]({'srcPath':t(0xae),'destPath':e+'.js','framework':t(0xa5),'context':i,'config':f}):this['fsi']['template']({'srcPath':t(0xd1),'destPath':e+t(0xa6),'framework':t(0xa5),'context':i,'config':f});f[t(0xa1)][t(0xcb)]!==t(0xcd)&&this[t(0xa9)]['template']({'srcPath':t(0x9c),'destPath':e+'.app-tests.js','framework':t(0xa5),'context':i,'config':f});f['template']['css']&&(this[t(0xa9)][t(0xc7)]({'srcPath':'template/template.css','destPath':e+t(0xaf),'context':Object['assign']({},i,{'className':paramCase(b[t(0xd2)])}),'config':f}),this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0xa1)]['js'],'content':'import\x20\x27./'+i[t(0xce)]+'.'+f[t(0xa1)][t(0x9f)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x9e)]+'/':'/',k=''+c+j+i[t(0xce)]+'/'+i[t(0xce)];let l;if(f[t(0xa1)][t(0xb6)]===t(0xc3)){const m=this['fsi']['pathFromApp']({'pathParts':[t(0xbc),t(0xc2),t(0x97),t(0xb9)]});l=this[t(0xa9)][t(0xbf)]({'pathParts':[m],'config':f});}else{const n=this[t(0xa9)]['pathFromApp']({'pathParts':[t(0xbc),t(0xc2),t(0xd3),t(0xb9)]});l=this[t(0xa9)][t(0xbf)]({'pathParts':[n],'config':f});}f[t(0xa1)][t(0xd3)]===t(0xa5)?(f[t(0xa1)]['js']==='tsx'?this['fsi'][t(0xc1)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xbb)]+t(0x95)+k+'\x27;\x0a'}):this[t(0xa9)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x92)+i[t(0xbb)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0xa1)]['js']+'\x27;\x0a'}),this[t(0xa9)][t(0x91)]({'filePath':l,'content':t(0xb8)+i['className']+t(0xb3)})):this[t(0xa9)][t(0x91)]({'filePath':l,'content':t(0x96)+k+'.'+f[t(0xa1)]['js']+t(0x9a)});});});
@@ -1 +1 @@
1
- const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=parseInt(f(0x1ef))/0x1+-parseInt(f(0x1e6))/0x2*(parseInt(f(0x1ed))/0x3)+-parseInt(f(0x1f3))/0x4+parseInt(f(0x1ea))/0x5*(-parseInt(f(0x1f1))/0x6)+parseInt(f(0x1e9))/0x7+-parseInt(f(0x1f4))/0x8+parseInt(f(0x1f5))/0x9*(parseInt(f(0x1f0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x3b980));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0x1eb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0x1e5)]()[h(0x1f6)]('(((.+)+)+)+$')[h(0x1e5)]()[h(0x1ee)](a66a)[h(0x1f6)](h(0x1e7));});a66a();import{Generator}from'../generator.js';function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x1e5;let f=c[d];return f;},a66d(a,b);}const MakaGen=new Generator({'name':'maka','shortDesc':a66i(0x1f2),'validOpts':[],'description':'\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','usage':a66i(0x1ec),'examples':[a66i(0x1e8),a66i(0x1f7)]},function(){return null;});export default MakaGen;function a66c(){const j=['constructor','40294RDVLiR','868100eiJIbk','14754ZshVhr','Maka!','1727180JXzMio','71160KpbrWO','45JhRwSi','search','maka\x20g:hook\x20cool-hook','toString','214xTqbUM','(((.+)+)+)+$','maka\x20generate:api\x20Trucks','2822694eRWQMW','35vconkT','apply','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','4923Xwxmww'];a66c=function(){return j;};return a66c();}
1
+ const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=parseInt(f(0x1be))/0x1*(parseInt(f(0x1b0))/0x2)+parseInt(f(0x1b7))/0x3*(parseInt(f(0x1ba))/0x4)+parseInt(f(0x1b2))/0x5*(-parseInt(f(0x1bb))/0x6)+-parseInt(f(0x1b3))/0x7+parseInt(f(0x1bd))/0x8*(-parseInt(f(0x1ae))/0x9)+parseInt(f(0x1b9))/0xa+-parseInt(f(0x1bc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x88241));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0x1b6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0x1b1)]()[h(0x1b5)]('(((.+)+)+)+$')[h(0x1b1)]()['constructor'](a66a)['search'](h(0x1af));});function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a66d(a,b);}function a66c(){const j=['toString','5BXgIrZ','148834ERcAjC','maka\x20g:hook\x20cool-hook','search','apply','13326ngGsWe','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','4294980pqgOuk','860gyWGJJ','4891038SHWNLz','6017ZgFOuw','7581640QESFVF','264mPnMPR','Maka!','maka\x20generate:api\x20Trucks','maka','9zxUqKP','(((.+)+)+)+$','7256OOsDdS'];a66c=function(){return j;};return a66c();}a66a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a66i(0x1ad),'shortDesc':a66i(0x1bf),'validOpts':[],'description':'\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','usage':a66i(0x1b8),'examples':[a66i(0x1c0),a66i(0x1b4)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a67n=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=-parseInt(k(0xc4))/0x1*(-parseInt(k(0xbb))/0x2)+-parseInt(k(0xd6))/0x3*(-parseInt(k(0xba))/0x4)+-parseInt(k(0xc9))/0x5*(parseInt(k(0xd3))/0x6)+parseInt(k(0xc3))/0x7+-parseInt(k(0xca))/0x8+-parseInt(k(0xbc))/0x9+parseInt(k(0xb5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x39028));function a67c(){const q=['startup','-rpc-method\x27;','import\x20\x27./methods','method','fsi','847068ZmpyFT','toString','(((.+)+)+)+$','657zWgbCj','apply','engines','methods','4391990zALTJv','checkMeteorPackage','-rpc-method.','pathFromApp','ddp-rate-limiter','2344HdjuUv','52772UHcLFG','2054295RmekSq','withValue','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','imports','installMeteorPackage','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','index.','1550612WHOuxc','7ATPDYF','resourceName','mdg:validated-method','dir','appPathPrefix','5KqNkih','2966448eJmrou','warn','constructor','maka\x20{generate,\x20g}:{method,\x20m}\x20name'];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(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const m=a67d;return a67a[m(0xd4)]()['search']('(((.+)+)+)+$')['toString']()[m(0xcc)](a67a)['search'](m(0xd5));});a67a();function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0xb2;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['create']({'name':a67n(0xd1),'aliases':['m'],'usage':a67n(0xcd),'checkWhere':!![],'shortDesc':a67n(0xc1),'validOpts':[a67n(0xc7)],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a67n;try{const c=this[o(0xd2)]['getProjectConfig']();this[o(0xd2)][o(0xbd)](c,async()=>{const p=o,d=paramCase(b[p(0xc5)]),f={'name':b[p(0xc5)],'fileName':d,'className':pascalCase(b[p(0xc5)]),'camelCase':camelCase(b[p(0xc5)]),'noRename':!![]};let g='js';c['engines']['js']==='tsx'&&(g='ts');const h=this[p(0xd2)][p(0xb8)]({});(!this['fsi'][p(0xb6)]('check')||!this[p(0xd2)][p(0xb6)](p(0xb9))||!this['fsi']['checkMeteorPackage'](p(0xc6)))&&(Log[p(0xcb)](p(0xbe)),this[p(0xd2)][p(0xc0)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[p(0xd2)]['template']({'srcPath':'method/method.js','destPath':this[p(0xd2)][p(0xb8)]({'pathParts':[p(0xbf),p(0xce),b[p(0xc8)],p(0xb4),b[p(0xc7)],d+p(0xb7)+g]}),'context':f,'config':c});const i=b[p(0xc7)]?'/'+b['dir']+'/':'/',j=this[p(0xd2)]['pathFromApp']({'pathParts':[p(0xbf),p(0xce),b['appPathPrefix'],p(0xc2)+c[p(0xb3)]['js']]});this[p(0xd2)]['injectAtEndOfFile']({'filePath':j,'content':p(0xd0)+i+d+p(0xcf)});});}catch(d){Log['error'](d);}});
1
+ const a67m=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=-parseInt(k(0x1e4))/0x1+parseInt(k(0x1f1))/0x2+-parseInt(k(0x1e2))/0x3+-parseInt(k(0x1d2))/0x4*(-parseInt(k(0x1e8))/0x5)+parseInt(k(0x1d3))/0x6+-parseInt(k(0x1e9))/0x7*(parseInt(k(0x1dd))/0x8)+parseInt(k(0x1f3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x292d4));function a67c(){const p=['check\x20ddp-rate-limiter\x20mdg:validated-method','resourceName','check','mdg:validated-method','getProjectConfig','search','dir','-rpc-method.','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','2415416TOVqxh','startup','maka\x20g:method\x20todos','fsi','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','406536TNHSIy','warn','288390MJVCLa','toString','index.','injectAtEndOfFile','35QBrDBX','7XwVfIM','pathFromApp','(((.+)+)+)+$','checkMeteorPackage','method','method/method.js','maka\x20{generate,\x20g}:{method,\x20m}\x20name','appPathPrefix','654002ysMAKn','import\x20\x27./methods','3787398Utaahm','-rpc-method\x27;','methods','engines','installMeteorPackage','error','withValue','tsx','ddp-rate-limiter','77804ZbpnTM','63054coolvp'];a67c=function(){return p;};return a67c();}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(0x1e5)]()[l(0x1d9)]('(((.+)+)+)+$')[l(0x1e5)]()['constructor'](a67a)[l(0x1d9)](l(0x1eb));});a67a();function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x1ca;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['create']({'name':a67m(0x1ed),'aliases':['m'],'usage':a67m(0x1ef),'checkWhere':!![],'shortDesc':a67m(0x1e1),'validOpts':['dir'],'examples':[a67m(0x1df)]},function(a,b){const n=a67m;try{const c=this[n(0x1e0)][n(0x1d8)]();this['fsi'][n(0x1cf)](c,async()=>{const o=n,d=paramCase(b[o(0x1d5)]),f={'name':b[o(0x1d5)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[o(0x1cc)]['js']===o(0x1d0)&&(g='ts');const h=this[o(0x1e0)]['pathFromApp']({});(!this[o(0x1e0)]['checkMeteorPackage'](o(0x1d6))||!this[o(0x1e0)]['checkMeteorPackage'](o(0x1d1))||!this['fsi'][o(0x1ec)](o(0x1d7)))&&(Log[o(0x1e3)](o(0x1dc)),this[o(0x1e0)][o(0x1cd)](o(0x1d4),{'cwd':h}));this['fsi']['template']({'srcPath':o(0x1ee),'destPath':this['fsi'][o(0x1ea)]({'pathParts':['imports',o(0x1de),b[o(0x1f0)],o(0x1cb),b[o(0x1da)],d+o(0x1db)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b[o(0x1da)]+'/':'/',j=this['fsi'][o(0x1ea)]({'pathParts':['imports',o(0x1de),b[o(0x1f0)],o(0x1e6)+c['engines']['js']]});this[o(0x1e0)][o(0x1e7)]({'filePath':j,'content':o(0x1f2)+i+d+o(0x1ca)});});}catch(d){Log[n(0x1ce)](d);}});
@@ -1 +1 @@
1
- const a68o=a68d;(function(a,b){const l=a68d,c=a();while(!![]){try{const d=parseInt(l(0x1f3))/0x1+parseInt(l(0x1cc))/0x2*(-parseInt(l(0x1ed))/0x3)+parseInt(l(0x1cf))/0x4+parseInt(l(0x1df))/0x5+parseInt(l(0x1e8))/0x6*(parseInt(l(0x1d4))/0x7)+parseInt(l(0x1cd))/0x8+-parseInt(l(0x1ce))/0x9*(parseInt(l(0x1c7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x42d6a));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a[n(0x1d0)]()[n(0x1d9)]('(((.+)+)+)+$')[n(0x1d0)]()['constructor'](a68a)[n(0x1d9)](n(0x1ca));});function a68c(){const s=['pathFromApp','pathFromAppWithNoReWrite','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','search','layout','component','getProjectConfig','hasOwnProperty','tests/server','2077260UhrTHw','template','server','graphql','.js','ssr','packages','tests/client','create','1341030UIaGPu','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','/client/','/package.js','package','24HVyQDJ','forEach','apply','pathFromProject','dir','engines','347048aKhyIT','theme','10ipnIsj','lib','features','(((.+)+)+)+$','package/','125962cPHEXk','1024528aqVRHm','5212611vKmgbd','76884BPryYG','toString','resourceName','fsi','relative','14QevSnT','noRename'];a68c=function(){return s;};return a68c();}a68a();import a68e from'path';function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a68d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68o(0x1e7)]({'name':a68o(0x1ec),'aliases':['p'],'usage':a68o(0x1d8),'shortDesc':a68o(0x1e9),'validOpts':[a68o(0x1f1)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a68o,c=paramCase(b['resourceName']),d=this['fsi'][p(0x1d6)]({'pathParts':[p(0x1e5),b[p(0x1f1)],c]}),e=this[p(0x1d2)][p(0x1d7)]({'pathParts':[p(0x1e5),b['dir'],c,'package.js']}),f=this['fsi'][p(0x1dc)]();this[p(0x1d2)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x1d1)]),'myPath':a68e[q(0x1d3)](this['fsi'][q(0x1f0)]({}),d),'cssCaseName':paramCase(b[q(0x1d1)]),'className':pascalCase(b[q(0x1d1)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f['engines']['client'],'graphql':f['engines'][q(0x1e2)],'ssr':f[q(0x1f2)][q(0x1e4)],'isComponent':b[q(0x1dd)](q(0x1db)),'isLayout':b['hasOwnProperty'](q(0x1da)),'isStore':b['hasOwnProperty']('store'),'features':f[q(0x1c9)],'noRename':!![],'theme':f[q(0x1f2)][q(0x1f4)]};this[q(0x1d2)]['template']({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x1d5)]=![];const h=d+q(0x1ea)+c+q(0x1e3);this[q(0x1d2)]['template']({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0x1c8),q(0x1e1),q(0x1e6),q(0x1de)];i[q(0x1ee)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x1e3);this[r(0x1d2)][r(0x1e0)]({'srcPath':r(0x1cb)+j+r(0x1eb),'destPath':k,'context':g,'config':f});});});});
1
+ const a68o=a68d;(function(a,b){const l=a68d,c=a();while(!![]){try{const d=-parseInt(l(0x17b))/0x1*(-parseInt(l(0x170))/0x2)+parseInt(l(0x16a))/0x3*(-parseInt(l(0x16c))/0x4)+-parseInt(l(0x163))/0x5+parseInt(l(0x188))/0x6+-parseInt(l(0x162))/0x7*(-parseInt(l(0x181))/0x8)+-parseInt(l(0x178))/0x9*(-parseInt(l(0x172))/0xa)+-parseInt(l(0x165))/0xb*(-parseInt(l(0x168))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0xcf16c));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a['toString']()['search']('(((.+)+)+)+$')[n(0x187)]()[n(0x161)](a68a)[n(0x189)](n(0x15f));});a68a();import a68e from'path';function a68c(){const s=['graphql','1629254WpVCMu','apply','relative','72PWajmw','client','1304022wrxEcU','lib','8lMclcA','package/package.js','package','features','10QGigEc','hasOwnProperty','770fESZqC','ssr','/client/','layout','forEach','withValue','27216ALmmme','packages','package/','190119jgEcjr','theme','maka\x20g:package\x20todos:package','.js','template','package.js','68504DjKIEP','pathFromAppWithNoReWrite','resourceName','tests/client','noRename','template/template.js','toString','1127580CFQwRg','search','fsi','engines','(((.+)+)+)+$','tests/server','constructor','175iUXkqe','3782740cNJbxf'];a68c=function(){return s;};return a68c();}import{Generator}from'../generator.js';function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x15f;let f=c[d];return f;},a68d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a68o(0x16e),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':[a68o(0x17d)]},async function(a,b){const p=a68o,c=paramCase(b['resourceName']),d=this[p(0x18a)]['pathFromApp']({'pathParts':[p(0x179),b['dir'],c]}),e=this[p(0x18a)][p(0x182)]({'pathParts':[p(0x179),b['dir'],c,p(0x180)]}),f=this['fsi']['getProjectConfig']();this[p(0x18a)][p(0x177)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x183)]),'myPath':a68e[q(0x167)](this[q(0x18a)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x183)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x183)]),'fileName':c,'client':f[q(0x18b)][q(0x169)],'graphql':f['engines'][q(0x164)],'ssr':f[q(0x18b)][q(0x173)],'isComponent':b[q(0x171)]('component'),'isLayout':b[q(0x171)](q(0x175)),'isStore':b[q(0x171)]('store'),'features':f[q(0x16f)],'noRename':!![],'theme':f['engines'][q(0x17c)]};this[q(0x18a)][q(0x17f)]({'srcPath':q(0x16d),'destPath':e,'context':g,'config':f}),g[q(0x185)]=![];const h=d+q(0x174)+c+q(0x17e);this[q(0x18a)][q(0x17f)]({'srcPath':q(0x186),'destPath':h,'context':g,'config':f});const i=[q(0x16b),'server',q(0x184),q(0x160)];i[q(0x176)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x17e);this[r(0x18a)]['template']({'srcPath':r(0x17a)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a69o=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=-parseInt(m(0x12e))/0x1*(-parseInt(m(0x125))/0x2)+parseInt(m(0x131))/0x3+-parseInt(m(0x129))/0x4*(parseInt(m(0x149))/0x5)+-parseInt(m(0x133))/0x6+-parseInt(m(0x11c))/0x7+-parseInt(m(0x143))/0x8+parseInt(m(0x130))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x47d3e));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const n=a69d;return a69a['toString']()[n(0x148)](n(0x13f))[n(0x163)]()['constructor'](a69a)['search'](n(0x13f));});a69a();import a69e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a69c(){const r=['client','toString','withValue','2028579DsbFKm','imports','pathFromProject','create','assign','page','theme','.html','startup','26WZngHd','warn','features','vanilla','1425304XTgZGA','templates.js','template','maka\x20g:page\x20todos/todos-item','css','42146JemVxB','root','4847994VFWetL','1190289yfKQuW','.css','3257976cdwWZS','\x27;\x0a','layout','Updating\x20npm\x20packages\x20...','className','import\x20{\x20','getProjectConfig','react','true','string','installNpmPackage','template/template.css','(((.+)+)+)+$','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','component','ramda','16cNXWoA','ssr','none','html','hasOwnProperty','search','5elKPJg','fsi','setTemplate','fileName','relative','lib','test','checkNpmPackage','\x20}\x20from\x20\x27','import\x20\x27./','.js','component/component.js','engines','dir','Generate\x20a\x20page.','injectAtBeginningOfFile','/imports/ui/pages','hook/hook.js','resourceName','withHook','pathFromApp','export\x20{\x20','rewriteDestinationPathForEngine','injectAtEndOfFile','withTranslations'];a69c=function(){return r;};return a69c();}import{camelCase,paramCase,pascalCase}from'change-case';function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x11c;let f=c[d];return f;},a69d(a,b);}const aliases=['p'];Generator[a69o(0x11f)]({'name':a69o(0x121),'aliases':aliases,'usage':a69o(0x140),'shortDesc':a69o(0x157),'validOpts':[a69o(0x156),a69o(0x15c)],'examples':[a69o(0x12c)]},function(a,b){const p=a69o,c=p(0x159),d=this[p(0x14a)][p(0x15d)](b),e=this['fsi']['pathFromApp']({'pathParts':[c,b[p(0x156)],paramCase(b[p(0x15b)]),paramCase(b[p(0x15b)])]}),f=this['fsi'][p(0x139)]();this[p(0x14a)][p(0x164)](f,()=>{const q=p;typeof f[q(0x12b)][q(0x146)]===q(0x13c)&&(f['template'][q(0x146)]=f[q(0x12b)][q(0x146)]===q(0x13b)?!![]:![],this[q(0x14a)][q(0x14b)](q(0x146),f[q(0x12b)][q(0x146)]));typeof f[q(0x12b)][q(0x14f)]===q(0x13c)&&(f['template'][q(0x14f)]=f[q(0x12b)]['test']==='true'?!![]:![],this['fsi'][q(0x14b)](q(0x14f),f[q(0x12b)][q(0x14f)]));typeof f[q(0x12b)][q(0x12d)]===q(0x13c)&&(f[q(0x12b)][q(0x12d)]=f[q(0x12b)][q(0x12d)]===q(0x13b)?!![]:![],this[q(0x14a)][q(0x14b)]('css',f[q(0x12b)]['css']));typeof f[q(0x12b)]['js']===q(0x13c)&&(f['template']['js']=f[q(0x12b)]['js']==='true'?!![]:![],this[q(0x14a)][q(0x14b)]('js',f[q(0x12b)]['js']));!f[q(0x127)]&&(f[q(0x127)]={});!b[q(0x12f)]&&!this[q(0x14a)][q(0x150)](q(0x142))&&(Log[q(0x126)](q(0x136)),this[q(0x14a)][q(0x13d)](q(0x142),{'cwd':d}));const g={'name':pascalCase(b[q(0x15b)]),'myPath':a69e[q(0x14d)](this['fsi'][q(0x11e)]({}),e),'cssCaseName':paramCase(b[q(0x15b)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x15b)]),'fileName':paramCase(b['resourceName']),'graphql':f[q(0x155)]['graphql'],'features':f[q(0x127)],'client':f['engines'][q(0x162)],'api':f[q(0x155)]['api'],'ssr':f['engines'][q(0x144)],'isStore':b[q(0x147)]('store'),'isComponent':b[q(0x147)](q(0x141)),'isLayout':b['hasOwnProperty'](q(0x135)),'withTranslations':f[q(0x127)][q(0x161)],'test':f[q(0x155)][q(0x14f)],'theme':f[q(0x155)][q(0x122)]};f[q(0x12b)][q(0x146)]&&this[q(0x14a)][q(0x12b)]({'srcPath':'template/template.html','destPath':e+q(0x123),'context':g,'config':f});f[q(0x127)]?.['withHooks']||b[q(0x15c)]?this[q(0x14a)]['template']({'srcPath':q(0x15a),'destPath':e+q(0x153),'framework':q(0x13a),'context':g,'config':f}):this[q(0x14a)][q(0x12b)]({'srcPath':q(0x154),'destPath':e+'.js','framework':q(0x13a),'context':g,'config':f});f[q(0x155)]['test']!==q(0x145)&&this[q(0x14a)][q(0x12b)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':q(0x13a),'context':g,'config':f});f[q(0x12b)][q(0x12d)]&&this[q(0x14a)][q(0x12b)]({'srcPath':q(0x13e),'destPath':e+q(0x132),'context':Object[q(0x120)]({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[q(0x155)]['client']!==q(0x13a)&&f[q(0x155)]['client']!==q(0x128)?(f[q(0x12b)][q(0x12d)]&&this[q(0x14a)][q(0x158)]({'filePath':e+'.'+f[q(0x155)]['js'],'content':q(0x152)+g['fileName']+'.'+f['engines']['html']+'\x27;\x0a'+q(0x152)+g[q(0x14c)]+'.'+f[q(0x155)][q(0x12d)]+'\x27;'}),!f[q(0x12b)][q(0x12d)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':q(0x152)+g['fileName']+'.'+f['engines'][q(0x146)]+'\x27;'})):f[q(0x12b)][q(0x12d)]&&this[q(0x14a)][q(0x158)]({'filePath':e+'.'+f[q(0x155)]['js'],'content':q(0x152)+g[q(0x14c)]+'.'+f[q(0x155)][q(0x12d)]+'\x27;'});const h=b[q(0x156)]?'/'+b[q(0x156)]+'/':'/',i=''+c+h+g[q(0x14c)]+'/'+g['fileName'];let j;if(f['engines']['ssr']==='true'){const k=this['fsi'][q(0x15d)]({'pathParts':[q(0x11d),q(0x124),q(0x14e),q(0x12a)]});j=this[q(0x14a)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this['fsi'][q(0x15d)]({'pathParts':[q(0x11d),q(0x124),q(0x162),'templates.js']});j=this[q(0x14a)][q(0x15f)]({'pathParts':[l],'config':f});}f[q(0x155)][q(0x162)]===q(0x13a)?(f[q(0x155)]['js']==='tsx'?this['fsi']['injectAtBeginningOfFile']({'filePath':j,'content':q(0x138)+g['className']+q(0x151)+i+q(0x134)}):this['fsi'][q(0x158)]({'filePath':j,'content':q(0x138)+g[q(0x137)]+q(0x151)+i+'.'+f[q(0x155)]['js']+'\x27;\x0a'}),this['fsi']['injectAtEndOfFile']({'filePath':j,'content':q(0x15e)+g[q(0x137)]+'\x20};\x0a'})):this[q(0x14a)][q(0x160)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f[q(0x155)]['js']+'\x27;\x0a'});});});
1
+ const a69p=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=parseInt(m(0x15b))/0x1*(-parseInt(m(0x163))/0x2)+parseInt(m(0x14a))/0x3+parseInt(m(0x16c))/0x4*(-parseInt(m(0x13e))/0x5)+parseInt(m(0x158))/0x6*(-parseInt(m(0x186))/0x7)+-parseInt(m(0x189))/0x8*(parseInt(m(0x15f))/0x9)+parseInt(m(0x177))/0xa+parseInt(m(0x13c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0xa7cf8));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a69d;if(c){const e=c[n(0x162)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const o=a69d;return a69a['toString']()[o(0x151)](o(0x141))[o(0x188)]()[o(0x16a)](a69a)[o(0x151)]('(((.+)+)+)+$');});a69a();import a69e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x13c;let f=c[d];return f;},a69d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a69p(0x161)]({'name':a69p(0x176),'aliases':aliases,'usage':a69p(0x154),'shortDesc':'Generate\x20a\x20page.','validOpts':[a69p(0x17c),a69p(0x14c)],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a69p,c=q(0x13f),d=this[q(0x15a)][q(0x142)](b),e=this['fsi'][q(0x142)]({'pathParts':[c,b[q(0x17c)],paramCase(b[q(0x149)]),paramCase(b[q(0x149)])]}),f=this[q(0x15a)][q(0x15e)]();this['fsi'][q(0x178)](f,()=>{const r=q;typeof f[r(0x16b)][r(0x146)]===r(0x169)&&(f[r(0x16b)][r(0x146)]=f[r(0x16b)]['html']===r(0x147)?!![]:![],this[r(0x15a)][r(0x14e)](r(0x146),f['template'][r(0x146)]));typeof f[r(0x16b)][r(0x143)]===r(0x169)&&(f[r(0x16b)][r(0x143)]=f[r(0x16b)][r(0x143)]===r(0x147)?!![]:![],this[r(0x15a)][r(0x14e)](r(0x143),f['template']['test']));typeof f[r(0x16b)][r(0x150)]===r(0x169)&&(f[r(0x16b)]['css']=f[r(0x16b)][r(0x150)]===r(0x147)?!![]:![],this[r(0x15a)]['setTemplate']('css',f[r(0x16b)][r(0x150)]));typeof f[r(0x16b)]['js']===r(0x169)&&(f[r(0x16b)]['js']=f[r(0x16b)]['js']==='true'?!![]:![],this['fsi'][r(0x14e)]('js',f[r(0x16b)]['js']));!f[r(0x180)]&&(f[r(0x180)]={});!b[r(0x14b)]&&!this[r(0x15a)][r(0x175)](r(0x152))&&(Log[r(0x145)](r(0x164)),this[r(0x15a)][r(0x160)](r(0x152),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a69e[r(0x155)](this[r(0x15a)][r(0x159)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[r(0x149)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x149)]),'graphql':f['engines'][r(0x173)],'features':f[r(0x180)],'client':f['engines'][r(0x174)],'api':f[r(0x153)][r(0x17e)],'ssr':f[r(0x153)][r(0x140)],'isStore':b[r(0x16e)](r(0x183)),'isComponent':b['hasOwnProperty'](r(0x167)),'isLayout':b[r(0x16e)]('layout'),'withTranslations':f[r(0x180)][r(0x16f)],'test':f[r(0x153)][r(0x143)],'theme':f[r(0x153)][r(0x144)]};f[r(0x16b)]['html']&&this[r(0x15a)][r(0x16b)]({'srcPath':r(0x182),'destPath':e+r(0x17b),'context':g,'config':f});f[r(0x180)]?.[r(0x181)]||b[r(0x14c)]?this[r(0x15a)][r(0x16b)]({'srcPath':r(0x148),'destPath':e+'.js','framework':r(0x18a),'context':g,'config':f}):this[r(0x15a)][r(0x16b)]({'srcPath':r(0x172),'destPath':e+'.js','framework':r(0x18a),'context':g,'config':f});f[r(0x153)][r(0x143)]!==r(0x15c)&&this['fsi']['template']({'srcPath':r(0x156),'destPath':e+r(0x15d),'framework':r(0x18a),'context':g,'config':f});f[r(0x16b)]['css']&&this[r(0x15a)][r(0x16b)]({'srcPath':r(0x166),'destPath':e+r(0x17a),'context':Object[r(0x17d)]({},g,{'className':paramCase(b[r(0x149)])}),'config':f});f[r(0x153)][r(0x174)]!==r(0x18a)&&f[r(0x153)][r(0x174)]!==r(0x179)?(f[r(0x16b)][r(0x150)]&&this['fsi'][r(0x170)]({'filePath':e+'.'+f[r(0x153)]['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f['engines'][r(0x146)]+r(0x16d)+r(0x185)+g['fileName']+'.'+f['engines'][r(0x150)]+'\x27;'}),!f['template'][r(0x150)]&&this[r(0x15a)][r(0x170)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[r(0x13d)]+'.'+f[r(0x153)][r(0x146)]+'\x27;'})):f[r(0x16b)][r(0x150)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x153)]['js'],'content':r(0x185)+g[r(0x13d)]+'.'+f['engines'][r(0x150)]+'\x27;'});const h=b[r(0x17c)]?'/'+b[r(0x17c)]+'/':'/',i=''+c+h+g[r(0x13d)]+'/'+g[r(0x13d)];let j;if(f['engines']['ssr']===r(0x147)){const k=this[r(0x15a)][r(0x142)]({'pathParts':[r(0x14d),'startup',r(0x187),r(0x14f)]});j=this[r(0x15a)][r(0x17f)]({'pathParts':[k],'config':f});}else{const l=this[r(0x15a)][r(0x142)]({'pathParts':[r(0x14d),r(0x171),'client',r(0x14f)]});j=this[r(0x15a)][r(0x17f)]({'pathParts':[l],'config':f});}f[r(0x153)]['client']===r(0x18a)?(f[r(0x153)]['js']===r(0x184)?this['fsi'][r(0x170)]({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x168)+i+r(0x16d)}):this['fsi'][r(0x170)]({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x168)+i+'.'+f[r(0x153)]['js']+r(0x16d)}),this[r(0x15a)][r(0x165)]({'filePath':j,'content':r(0x157)+g['className']+'\x20};\x0a'})):this[r(0x15a)][r(0x165)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f[r(0x153)]['js']+r(0x16d)});});});function a69c(){const s=['template','3668vgjzrh','\x27;\x0a','hasOwnProperty','withTranslations','injectAtBeginningOfFile','startup','component/component.js','graphql','client','checkNpmPackage','page','3767070vsZANh','withValue','vanilla','.css','.html','dir','assign','api','rewriteDestinationPathForEngine','features','withHooks','template/template.html','store','tsx','import\x20\x27./','7JWqgAQ','lib','toString','88wQUMDF','react','27143017XqeCVA','fileName','1290KThhyQ','/imports/ui/pages','ssr','(((.+)+)+)+$','pathFromApp','test','theme','warn','html','true','hook/hook.js','resourceName','2541828hOEKfF','root','withHook','imports','setTemplate','templates.js','css','search','ramda','engines','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','relative','test/test.js','export\x20{\x20','7187406VxyeOg','pathFromProject','fsi','1342046LRompk','none','.app-tests.js','getProjectConfig','186255BfBXPh','installNpmPackage','create','apply','2LzHkII','Updating\x20npm\x20packages\x20...','injectAtEndOfFile','template/template.css','component','\x20}\x20from\x20\x27','string','constructor'];a69c=function(){return s;};return a69c();}
@@ -1 +1 @@
1
- function a70c(){const n=['resourceName','(((.+)+)+)+$','getProjectConfig','fsi','apply','create','search','3906765AIUbCp','publish/publish.','3989976jWIIhf','550EuXBqn','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','855456wEIZZG','server/publish.','publish','rewriteDestinationPathForEngine','3942976Qmerlo','592938UZgvog','2179qEKkRe','constructor','templateContent','toString','3649062Wfagha','engines','injectAtEndOfFile','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html'];a70c=function(){return n;};return a70c();}const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=-parseInt(h(0x19d))/0x1*(-parseInt(h(0x195))/0x2)+parseInt(h(0x19c))/0x3+parseInt(h(0x19b))/0x4+-parseInt(h(0x192))/0x5+-parseInt(h(0x1a1))/0x6+-parseInt(h(0x197))/0x7+parseInt(h(0x194))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xbbe58));function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x188;let f=c[d];return f;},a70d(a,b);}const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a[j(0x1a0)]()[j(0x191)](j(0x18c))[j(0x1a0)]()[j(0x19e)](a70a)[j(0x191)](j(0x18c));});a70a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a70k(0x190)]({'name':a70k(0x199),'aliases':['p'],'usage':a70k(0x196),'shortDesc':a70k(0x18a),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a70k,c=this[l(0x18e)][l(0x18d)]();this['fsi']['withValue'](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x18b)]),'noRename':!![]};let e='js';c[m(0x188)]['js']==='tsx'&&(e='ts');const f=this[m(0x18e)][m(0x19a)]({'pathParts':[m(0x198)+c[m(0x188)]['js']]}),g=this[m(0x18e)][m(0x19f)]({'srcPath':m(0x193)+e,'context':d,'config':c});this[m(0x18e)][m(0x189)]({'filePath':f,'content':'\x0a'+g});});});
1
+ const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=parseInt(h(0x1ad))/0x1+-parseInt(h(0x19e))/0x2*(-parseInt(h(0x195))/0x3)+-parseInt(h(0x1a3))/0x4+-parseInt(h(0x1a6))/0x5*(-parseInt(h(0x196))/0x6)+parseInt(h(0x199))/0x7+parseInt(h(0x1ae))/0x8+-parseInt(h(0x1a2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x51d82));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x1a7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a[j(0x1ac)]()[j(0x1a9)]('(((.+)+)+)+$')[j(0x1ac)]()['constructor'](a70a)[j(0x1a9)](j(0x1a8));});a70a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a70c(){const n=['tsx','219oxUQVN','12bjGQDZ','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','fsi','482174tOGfHC','resourceName','rewriteDestinationPathForEngine','server/publish.','publish','1134OnXPRU','templateContent','engines','withValue','1053189rAUiWD','737480kfNduV','maka\x20g:publish\x20todos','create','20810ssnbuO','apply','(((.+)+)+)+$','search','getProjectConfig','injectAtEndOfFile','toString','186789sORWrq','2649912oGSRMC'];a70c=function(){return n;};return a70c();}function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x195;let f=c[d];return f;},a70d(a,b);}Generator[a70k(0x1a5)]({'name':a70k(0x19d),'aliases':['p'],'usage':a70k(0x197),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a70k(0x1a4)]},async function(a,b){const l=a70k,c=this[l(0x198)][l(0x1aa)]();this['fsi'][l(0x1a1)](c,async()=>{const m=l,d={'name':b[m(0x19a)],'collection':paramCase(b[m(0x19a)]),'noRename':!![]};let e='js';c['engines']['js']===m(0x1af)&&(e='ts');const f=this['fsi'][m(0x19b)]({'pathParts':[m(0x19c)+c[m(0x1a0)]['js']]}),g=this[m(0x198)][m(0x19f)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x198)][m(0x1ab)]({'filePath':f,'content':'\x0a'+g});});});