@maka/maka-cli 4.5.8 → 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 (96) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/build/_index.js +1 -1
  17. package/bundle/obf/src/commands/build/build.js +1 -1
  18. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/create.js +1 -1
  20. package/bundle/obf/src/commands/debug.js +1 -1
  21. package/bundle/obf/src/commands/deploy.js +1 -1
  22. package/bundle/obf/src/commands/game/_index.js +1 -1
  23. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/game/play.command.js +1 -1
  25. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/generate.js +1 -1
  29. package/bundle/obf/src/commands/get/_index.js +1 -1
  30. package/bundle/obf/src/commands/get/get.command.js +1 -1
  31. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/help.js +1 -1
  35. package/bundle/obf/src/commands/install.js +1 -1
  36. package/bundle/obf/src/commands/jsdoc.js +1 -1
  37. package/bundle/obf/src/commands/lint.js +1 -1
  38. package/bundle/obf/src/commands/login.js +1 -1
  39. package/bundle/obf/src/commands/logout.js +1 -1
  40. package/bundle/obf/src/commands/logs.js +1 -1
  41. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  42. package/bundle/obf/src/commands/murder.js +1 -1
  43. package/bundle/obf/src/commands/proxy.js +1 -1
  44. package/bundle/obf/src/commands/reconfig.js +1 -1
  45. package/bundle/obf/src/commands/run/_index.js +1 -1
  46. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  47. package/bundle/obf/src/commands/run/run.command.js +1 -1
  48. package/bundle/obf/src/commands/set/_index.js +1 -1
  49. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  50. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  51. package/bundle/obf/src/commands/set/set.command.js +1 -1
  52. package/bundle/obf/src/commands/ssh.js +1 -1
  53. package/bundle/obf/src/commands/ssl.js +1 -1
  54. package/bundle/obf/src/commands/test.js +1 -1
  55. package/bundle/obf/src/commands/version.js +1 -1
  56. package/bundle/obf/src/error.js +1 -1
  57. package/bundle/obf/src/generator.js +1 -1
  58. package/bundle/obf/src/generators/_index.js +1 -1
  59. package/bundle/obf/src/generators/api.js +1 -1
  60. package/bundle/obf/src/generators/collection.js +1 -1
  61. package/bundle/obf/src/generators/component.js +1 -1
  62. package/bundle/obf/src/generators/config.js +1 -1
  63. package/bundle/obf/src/generators/dbc.js +1 -1
  64. package/bundle/obf/src/generators/dockerfile.js +1 -1
  65. package/bundle/obf/src/generators/hook.js +1 -1
  66. package/bundle/obf/src/generators/kit.js +1 -1
  67. package/bundle/obf/src/generators/layout.js +1 -1
  68. package/bundle/obf/src/generators/maka.gen.js +1 -1
  69. package/bundle/obf/src/generators/methods.js +1 -1
  70. package/bundle/obf/src/generators/package.js +1 -1
  71. package/bundle/obf/src/generators/page.js +1 -1
  72. package/bundle/obf/src/generators/publish.js +1 -1
  73. package/bundle/obf/src/generators/route.js +1 -1
  74. package/bundle/obf/src/generators/service.js +1 -1
  75. package/bundle/obf/src/generators/services/_index.js +1 -1
  76. package/bundle/obf/src/generators/services/openssl.js +1 -1
  77. package/bundle/obf/src/generators/services/translation.js +1 -1
  78. package/bundle/obf/src/maka.js +1 -1
  79. package/bundle/obf/src/tool.js +1 -1
  80. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  81. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  82. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  83. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  84. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  85. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  86. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  87. package/bundle/obf/src/tools/https/https.class.js +1 -1
  88. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  89. package/bundle/obf/src/tools/log/log.class.js +1 -1
  90. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  91. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  92. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  93. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  94. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  95. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  96. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(a,b){var f=a56d,c=a();while(!![]){try{var d=parseInt(f(0x1c7))/0x1*(parseInt(f(0x1bc))/0x2)+parseInt(f(0x1ca))/0x3*(-parseInt(f(0x1bd))/0x4)+-parseInt(f(0x1c4))/0x5+-parseInt(f(0x1bf))/0x6*(-parseInt(f(0x1c5))/0x7)+-parseInt(f(0x1bb))/0x8+parseInt(f(0x1be))/0x9*(-parseInt(f(0x1cb))/0xa)+parseInt(f(0x1c9))/0xb*(parseInt(f(0x1c8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x9f569));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0x1c1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a[h(0x1c6)]()[h(0x1c0)](h(0x1c3))[h(0x1c6)]()[h(0x1c2)](a56a)[h(0x1c0)]('(((.+)+)+)+$');});function a56c(){var i=['978730KaEkpt','5883392AIALRN','16ZpilrF','184jzrtPJ','27RIqEyH','102264KveAia','search','apply','constructor','(((.+)+)+)+$','6030035iwVHVx','14dwPDXK','toString','21453FmYHPz','34167732IVvFJm','11NzxwWs','10782ifHFGg'];a56c=function(){return i;};return a56c();}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';function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x1bb;var f=c[d];return f;},a56d(a,b);}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 a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=-parseInt(w(0x1c2))/0x1+parseInt(w(0x1f3))/0x2*(-parseInt(w(0x1da))/0x3)+parseInt(w(0x1e6))/0x4*(-parseInt(w(0x1d8))/0x5)+-parseInt(w(0x20d))/0x6+parseInt(w(0x1c1))/0x7*(parseInt(w(0x1e2))/0x8)+-parseInt(w(0x1e0))/0x9*(parseInt(w(0x1f2))/0xa)+parseInt(w(0x1d5))/0xb*(parseInt(w(0x1f8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xc826d));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x1ee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a[y(0x1be)]()[y(0x1c7)](y(0x1e5))[y(0x1be)]()['constructor'](a57a)['search'](y(0x1e5));});a57a();function a57c(){const C=['No\x20API\x20boundaries\x20selected','typeList.push(','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','collection','api/fixtures.js','/graphql/typeDefs','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','log','server','injectIntoFile','/graphql/resolvers','maka:check','if\x20\x5c(typeList','checkMeteorPackage','pathFromApp','4972848WgHOLS','api','includes','startup','getProjectConfig','api/api.js','fsi','index.','toString','apiAnswers','REST\x20API','27174tLVygZ','565098WNoYre','withPubs','rewriteDestinationPathForEngine','RPC\x20(Methods)','imports','search','graphql','dir','push','mdg:validated-method','fixtures.','api/resolvers.js','template','test','mongo','create','Publications','error','engines','42251oIzJai','withFixtures','withRest','5ZYtOmZ','api/tests.js','6SMYyyC','options','-api.','injectAtBeginningOfFile','withMethods','rest','2057148TauvUX','maka\x20{generate,\x20g}:{api}\x20<resource-name>','1432yozjPd','length','-api\x27;','(((.+)+)+)+$','4207472eMXFGC','/imports/api','typeDefs.','rpc-methods.','apollo','API\x20boundaries\x20to\x20create','import\x20{\x20typeDefs\x20as\x20','TypeDefs);\x0a','apply','TypeDefs\x20}\x20from\x20\x27','const','import\x20\x27./register-','70JbQZIl','1594620kuMIyf','Verifying\x20meteor\x20package\x20requirements\x20...','.app-tests.','installMeteorPackage','none','18012qqQNNp','GraphQL','injectAtEndOfFile','Resolvers\x20}\x20from\x20\x27','ddp-rate-limiter','withGql'];a57c=function(){return C;};return a57c();}function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a57d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a57z(0x1d1)]({'name':a57z(0x20e),'aliases':['a'],'usage':a57z(0x1e1),'shortDesc':a57z(0x204),'validOpts':[a57z(0x1c9)],'examples':['maka\x20g:api\x20todos']},async function(a,b){const A=a57z;try{const c=this[A(0x1bc)][A(0x1ba)](),d=[{'name':A(0x1c5),'value':A(0x1de)},{'name':'Fixtures','value':A(0x1d6)},{'name':A(0x1d2),'value':'withPubs'}];c['engines'][A(0x20e)]===A(0x1df)&&d[A(0x1ca)]({'name':A(0x1c0),'value':A(0x1d7)});c['engines'][A(0x1c8)]==='apollo'&&d[A(0x1ca)]({'name':A(0x1f9),'value':A(0x1fd)});const f={'type':'checkbox','name':A(0x1bf),'message':A(0x1eb),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x1db)](f);g[A(0x1e3)]===0x0&&(Log[A(0x1d3)](A(0x1fe)),process['exit'](0x1)),this[A(0x1bc)]['withValue'](c,async()=>{const B=A,h=this[B(0x1bc)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x1c9)]?'/'+b[B(0x1c9)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1d4)][B(0x20e)],'graphql':c[B(0x1d4)][B(0x1c8)],'test':c[B(0x1d4)][B(0x1cf)],'noRename':!![],'withPubs':g[B(0x20f)](B(0x1c3)),'withFixtures':g[B(0x20f)](B(0x1d6)),'withMethods':g[B(0x20f)]('withMethods'),'withRest':g['includes'](B(0x1d7))};let n='js';c[B(0x1d4)]['js']==='tsx'&&(n='ts');(!this[B(0x1bc)][B(0x20b)]('maka:rest')||!this[B(0x1bc)][B(0x20b)](B(0x209))||!this[B(0x1bc)]['checkMeteorPackage'](B(0x1fc))||!this['fsi']['checkMeteorPackage'](B(0x1cb))||!this[B(0x1bc)][B(0x20b)](B(0x1d0)))&&(Log['notice'](B(0x1f4)),await this['fsi'][B(0x1f6)](B(0x200),{'cwd':h}));const o=a57e['findGenerator'](B(0x201));o&&await o['invoke']([j],{'config':c,'where':B(0x206)});c[B(0x1d4)][B(0x20e)]==='rest'&&(m[B(0x1d7)]&&this[B(0x1bc)]['template']({'srcPath':B(0x1bb),'destPath':this[B(0x1bc)][B(0x20c)]({'pathParts':['imports',B(0x20e),b[B(0x1c9)],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this[B(0x1bc)][B(0x1ce)]({'srcPath':'api/methods.js','destPath':this[B(0x1bc)][B(0x20c)]({'pathParts':['imports',B(0x20e),b[B(0x1c9)],j,B(0x1e9)+n]}),'context':m,'config':c});m[B(0x1d6)]&&this[B(0x1bc)][B(0x1ce)]({'srcPath':B(0x202),'destPath':this['fsi'][B(0x20c)]({'pathParts':[B(0x1c6),B(0x20e),b[B(0x1c9)],j,B(0x1cc)+n]}),'context':m,'config':c});c[B(0x1d4)][B(0x1cf)]!==B(0x1f7)&&this['fsi']['template']({'srcPath':B(0x1d9),'destPath':this[B(0x1bc)][B(0x20c)]({'pathParts':[B(0x1c6),B(0x20e),b[B(0x1c9)],j,j+B(0x1f5)+n]}),'context':m,'config':c});m[B(0x1c3)]&&this['fsi'][B(0x1ce)]({'srcPath':'api/publications.js','destPath':this[B(0x1bc)][B(0x20c)]({'pathParts':[B(0x1c6),B(0x20e),b[B(0x1c9)],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][B(0x1c8)]===B(0x1ea)){if(g['includes'](B(0x1fd))){const q=this[B(0x1bc)][B(0x20c)]({'pathParts':['imports','startup',B(0x206),B(0x1bd)+c[B(0x1d4)]['js']]}),r=this['fsi'][B(0x1c4)]({'pathParts':[q],'config':c}),s=this[B(0x1bc)]['pathFromApp']({'pathParts':[B(0x1c6),'api',b[B(0x1c9)],j,'graphql',B(0x1e8)+n]}),t=B(0x1e7)+l+j+B(0x203);this[B(0x1bc)][B(0x1ce)]({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this['fsi'][B(0x1dd)]({'filePath':r,'content':B(0x1ec)+k+B(0x1ef)+t+'\x27;\x0a'}),this[B(0x1bc)][B(0x207)]({'filePath':r,'content':B(0x1ff)+k+B(0x1ed),'begin':B(0x1f0),'end':B(0x20a)});const u=this[B(0x1bc)][B(0x20c)]({'pathParts':[B(0x1c6),'api',b[B(0x1c9)],j,B(0x1c8),'resolvers.'+n]}),v='/imports/api'+l+j+B(0x208);this[B(0x1bc)][B(0x1ce)]({'srcPath':B(0x1cd),'destPath':u,'context':m,'config':c}),this[B(0x1bc)]['injectAtBeginningOfFile']({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+B(0x1fb)+v+'\x27;'}),this[B(0x1bc)][B(0x207)]({'filePath':r,'content':'resolverList.push('+k+'Resolvers);\x0a\x0a','begin':B(0x1f0),'end':B(0x20a)});}}this['fsi'][B(0x1ce)]({'srcPath':'api/register-api.js','destPath':this[B(0x1bc)][B(0x20c)]({'pathParts':[B(0x1c6),B(0x210),'server','register-'+j+B(0x1dc)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1bc)][B(0x20c)]({'pathParts':[B(0x1c6),B(0x210),B(0x206),B(0x1bd)+c[B(0x1d4)]['js']]});this[B(0x1bc)][B(0x1fa)]({'filePath':p,'content':B(0x1f1)+j+B(0x1e4)});});}catch(h){console[A(0x205)](h),process['exit'](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(0x20a))/0x1+parseInt(k(0x200))/0x2*(-parseInt(k(0x1fd))/0x3)+parseInt(k(0x1f5))/0x4+parseInt(k(0x1f0))/0x5+-parseInt(k(0x1f7))/0x6*(parseInt(k(0x1ff))/0x7)+-parseInt(k(0x204))/0x8+-parseInt(k(0x219))/0x9*(-parseInt(k(0x20b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0xcb326));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a58d;if(c){const e=c[l(0x205)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const m=a58d;return a58a[m(0x218)]()[m(0x207)](m(0x20f))[m(0x218)]()['constructor'](a58a)[m(0x207)](m(0x20f));});a58a();function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a58d(a,b);}import{paramCase,pascalCase}from'change-case';function a58c(){const q=['collection/tests.js','create','.app-tests.','collection','mongo','322659dUfwVN','dir','21gRWgnn','24FVPxsE','checkMeteorPackage','engines','installMeteorPackage','123040IOfNvr','apply','index.','search','import\x20\x27./collections','notice','519532BnxGsk','2577830NlubpJ','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','fsi','where','(((.+)+)+)+$','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','appPathPrefix','maka\x20g:collection\x20todos','startup','test','injectAtEndOfFile','imports','maka:check','toString','9cvcLTU','template','col','5359330sdLOiz','resourceName','getProjectConfig','collections','\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','5049016ewZrnF','pathFromApp','1946250QaziXr'];a58c=function(){return q;};return a58c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58n(0x1f9)]({'name':a58n(0x1fb),'aliases':[a58n(0x1ef)],'usage':a58n(0x20c),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':['dir',a58n(0x20e)],'description':a58n(0x1f4),'examples':[a58n(0x212)]},async function(a,b){const o=a58n;try{const c=this[o(0x20d)][o(0x1f6)]({}),d=this[o(0x20d)][o(0x1f2)]();this[o(0x20d)]['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0x1f1)]),g={'name':pascalCase(b[p(0x1f1)]),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x20e)],'test':d[p(0x202)][p(0x214)],'noRename':!![]};let h='js';d[p(0x202)]['js']==='tsx'&&(h='ts');!this[p(0x20d)][p(0x201)](p(0x1fc))&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[p(0x20d)]['installMeteorPackage']('mongo',{'cwd':c}));!this[p(0x20d)][p(0x201)]('maka:check')&&(Log[p(0x209)](p(0x210)),await this['fsi'][p(0x203)](p(0x217),{'cwd':c}));this[p(0x20d)][p(0x21a)]({'srcPath':'collection/collection.js','destPath':this['fsi']['pathFromApp']({'pathParts':['imports','startup',b['appPathPrefix'],p(0x1f3),b[p(0x1fe)],f+'.'+h]}),'context':g,'config':d});d[p(0x202)]['test']!=='none'&&this[p(0x20d)][p(0x21a)]({'srcPath':p(0x1f8),'destPath':this['fsi'][p(0x1f6)]({'pathParts':[p(0x216),p(0x213),b['appPathPrefix'],p(0x1f3),b[p(0x1fe)],f+p(0x1fa)+h]}),'context':g,'config':d});const i=b[p(0x1fe)]?'/'+b[p(0x1fe)]+'/':'/',j=this[p(0x20d)][p(0x1f6)]({'pathParts':['imports',p(0x213),b[p(0x211)],p(0x206)+d[p(0x202)]['js']]});this[p(0x20d)][p(0x215)]({'filePath':j,'content':p(0x208)+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 a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x1de;let f=c[d];return f;},a59d(a,b);}(function(a,b){const n=a59d,c=a();while(!![]){try{const d=-parseInt(n(0x215))/0x1*(parseInt(n(0x1e8))/0x2)+-parseInt(n(0x203))/0x3*(parseInt(n(0x1fe))/0x4)+parseInt(n(0x217))/0x5*(-parseInt(n(0x208))/0x6)+-parseInt(n(0x1e1))/0x7+-parseInt(n(0x1fc))/0x8*(-parseInt(n(0x1ec))/0x9)+-parseInt(n(0x212))/0xa+parseInt(n(0x1fa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xc7919));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(0x1ee)]()[o(0x20e)](o(0x1f9))[o(0x1ee)]()[o(0x1f3)](a59a)['search'](o(0x1f9));});a59a();function a59c(){const s=['none','search','resourceName','rewriteDestinationPathForEngine','import\x20\x27','5339440uDUOFj','test/test.js','findAppDirectory','1NizeCd','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','229150WBudil','\x20}\x20from\x20\x27','injectAtEndOfFile','assign','string','import\x20\x27./','component/component.js','\x27;\x0a','withValue','pathFromProject','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','cssCaseName','tsx','engines','2992927iTlIVe','comp','test','features','fileName','getProjectConfig','.js','1212982VpyPxC','css','checkNpmPackage','error','752580raIBVC','export\x20{\x20','toString','\x20};\x0a','import\x20{\x20','ramda','pathFromApp','constructor','root','template/template.css','theme','imports','dir','(((.+)+)+)+$','47383303wJMpak','true','16XTJgbl','.tests.js','2620548OdcXwE','warn','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','injectAtBeginningOfFile','react','6myNbym','fsi','ssr','template','client','102AwDoEH','className','setTemplate','templates.js','graphql'];a59c=function(){return s;};return a59c();}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(0x1e2)];Generator['create']({'name':'component','aliases':aliases,'usage':a59p(0x221),'shortDesc':a59p(0x216),'validOpts':[a59p(0x1f8)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const q=a59p;try{const c=this[q(0x204)][q(0x214)](),d='/imports/ui/components',f=this[q(0x204)][q(0x1f2)]({'pathParts':[d,b[q(0x1f8)],paramCase(b[q(0x20f)]),paramCase(b['resourceName'])]}),g=await this['fsi'][q(0x1e6)]();this[q(0x204)][q(0x21f)](g,async()=>{const r=q;typeof g[r(0x206)]['test']===r(0x21b)&&(g['template'][r(0x1e3)]=g[r(0x206)][r(0x1e3)]==='true'?!![]:![],this[r(0x204)][r(0x20a)](r(0x1e3),g[r(0x206)]['test']));typeof g[r(0x206)][r(0x1e9)]===r(0x21b)&&(g[r(0x206)][r(0x1e9)]=g[r(0x206)][r(0x1e9)]==='true'?!![]:![],this[r(0x204)][r(0x20a)](r(0x1e9),g[r(0x206)][r(0x1e9)]));typeof g[r(0x206)]['js']===r(0x21b)&&(g['template']['js']=g[r(0x206)]['js']===r(0x1fb)?!![]:![],this[r(0x204)][r(0x20a)]('js',g[r(0x206)]['js']));!g[r(0x1e4)]&&(g[r(0x1e4)]={});!b[r(0x1f4)]&&!this[r(0x204)]['checkNpmPackage'](r(0x1f1))&&(Log[r(0x1ff)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[r(0x204)]['installNpmPackage'](r(0x1f1),{'cwd':c}));if(!b[r(0x1f4)]&&!this['fsi'][r(0x1ea)]('react')){Log[r(0x1eb)](r(0x200));return;}const h={'name':pascalCase(b[r(0x20f)]),'myPath':a59e['relative'](this[r(0x204)][r(0x220)]({}),f),'cssCaseName':paramCase(b[r(0x20f)]),'className':pascalCase(b[r(0x20f)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x20f)]),'graphql':g[r(0x1e0)][r(0x20c)],'features':g[r(0x1e4)],'client':g[r(0x1e0)][r(0x207)],'api':g[r(0x1e0)]['api'],'ssr':g[r(0x1e0)][r(0x205)],'test':g[r(0x1e0)][r(0x1e3)],'theme':g[r(0x1e0)][r(0x1f6)],'isLayout':![],'isComponent':!![],'withTranslations':g['features']['withTranslations']};this[r(0x204)][r(0x206)]({'srcPath':r(0x21d),'destPath':f+r(0x1e7),'context':h,'framework':r(0x202),'config':g});g[r(0x1e0)][r(0x1e3)]!==r(0x20d)&&this[r(0x204)]['template']({'srcPath':r(0x213),'destPath':f+r(0x1fd),'context':h,'framework':'react','config':g});g['template']['css']&&(this[r(0x204)][r(0x206)]({'srcPath':r(0x1f5),'destPath':f+'.css','context':Object[r(0x21a)]({},h,{'className':paramCase(b[r(0x20f)])}),'config':g}),this['fsi'][r(0x201)]({'filePath':f+'.'+g[r(0x1e0)]['js'],'content':r(0x21c)+h[r(0x1de)]+'.'+g['engines']['css']+'\x27;'}));const i=b[r(0x1f8)]?'/'+b['dir']+'/':'/',j=''+d+i+h[r(0x1e5)]+'/'+h[r(0x1e5)];let k;if(g[r(0x1e0)]['ssr']===r(0x1fb)){const l=this[r(0x204)][r(0x1f2)]({'pathParts':[r(0x1f7),'startup','lib',r(0x20b)]});k=this[r(0x204)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[r(0x204)][r(0x1f2)]({'pathParts':[r(0x1f7),'startup','client','templates.js']});k=this[r(0x204)][r(0x210)]({'pathParts':[m],'config':g});}g[r(0x1e0)][r(0x207)]===r(0x202)||g[r(0x1e0)][r(0x207)]==='reflux'?(g[r(0x1e0)]['js']===r(0x1df)?this[r(0x204)][r(0x201)]({'filePath':k,'content':r(0x1f0)+h['className']+r(0x218)+j+r(0x21e)}):this['fsi']['injectAtBeginningOfFile']({'filePath':k,'content':r(0x1f0)+h[r(0x209)]+r(0x218)+j+'.'+g['engines']['js']+r(0x21e)}),this[r(0x204)][r(0x219)]({'filePath':k,'content':r(0x1ed)+h[r(0x209)]+r(0x1ef)})):this[r(0x204)][r(0x219)]({'filePath':k,'content':r(0x211)+j+'.'+g['engines']['js']+'\x27;\x0a'});});}catch(h){Log['error'](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
- function a60c(){const n=['323557iUDGEk','maka\x20{generate,\x20g}:{config}\x20<name>','2347090NPEORt','2SYDYFT','11WuAqwp','610955svAuDZ','config','492pndkcc','resourceName','467988qhLOkT','appName','fsi','getProjectConfig','135JgKhlk','template','withValue','823755CxhtQp','108391TFOyOF','12DPHYuY','Generate\x20configuration\x20settings.','config/settings.json','prod','config/process.env','constructor','development','apply','search','isDocker','7NkXTUg','settings.json','dev','pathFromProject','(((.+)+)+)+$','create','195688SDNzSK'];a60c=function(){return n;};return a60c();}const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=parseInt(h(0xd1))/0x1+parseInt(h(0xe6))/0x2*(-parseInt(h(0xd0))/0x3)+parseInt(h(0xd2))/0x4*(-parseInt(h(0xe8))/0x5)+parseInt(h(0xc9))/0x6*(-parseInt(h(0xdc))/0x7)+parseInt(h(0xe2))/0x8*(-parseInt(h(0xcd))/0x9)+parseInt(h(0xe5))/0xa*(parseInt(h(0xe7))/0xb)+parseInt(h(0xc7))/0xc*(parseInt(h(0xe3))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x43be6));function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0xc6;let f=c[d];return f;},a60d(a,b);}const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a['toString']()[j(0xda)](j(0xe0))['toString']()[j(0xd7)](a60a)[j(0xda)](j(0xe0));});a60a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a60k(0xe1)]({'name':'config','usage':a60k(0xe4),'shortDesc':a60k(0xd3),'validOpts':['isDocker'],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a60k,c=this[l(0xcb)][l(0xcc)]();this[l(0xcb)][l(0xcf)](c,async()=>{const m=l,d={'app':c[m(0xca)],'appFileCase':paramCase(c[m(0xca)]),'name':pascalCase(b[m(0xc8)]),'fileName':paramCase(b[m(0xc8)]),'camelCase':camelCase(b[m(0xc8)]),'userName':'ubuntu','isDocker':b[m(0xdb)]};let e=a[0x0];if(e===m(0xde))e=m(0xd8);else e===m(0xd5)&&(e='production');const f=this[m(0xcb)][m(0xdf)]({'pathParts':[m(0xc6),e,m(0xdd)]});this[m(0xcb)][m(0xce)]({'srcPath':m(0xd4),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0xcb)][m(0xdf)]({'pathParts':[m(0xc6),e,'process.env']});this[m(0xcb)]['template']({'srcPath':m(0xd6),'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 a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0xed;let f=c[d];return f;},a61d(a,b);}(function(a,b){const n=a61d,c=a();while(!![]){try{const d=parseInt(n(0xff))/0x1*(-parseInt(n(0x127))/0x2)+parseInt(n(0x123))/0x3*(-parseInt(n(0x11c))/0x4)+parseInt(n(0x108))/0x5+-parseInt(n(0x120))/0x6*(-parseInt(n(0x10d))/0x7)+-parseInt(n(0x10c))/0x8*(parseInt(n(0x104))/0x9)+-parseInt(n(0x125))/0xa+parseInt(n(0xf2))/0xb*(parseInt(n(0x115))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x97d94));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0xef)]()[p(0xf0)](p(0x117))[p(0xef)]()[p(0x105)](a61a)[p(0xf0)](p(0x117));});a61a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a61c(){const t=['fsi','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20todos\x20--type=sqlite','warn','191RotiYh','register-','(blank)','DB\x20Driver','pathFromApp','1359099sBAuFR','constructor','template','dbAnswer','4859500wuuUsT','type','-dbc.','import\x20\x27./register-','40XYMafq','259sKWXhR','dbc/config.js','better-sqlite3','conn.','apply','installNpmPackage','server','maka\x20g:dbc\x20azure\x20--type=mssql','12QFftUr','pgsql','(((.+)+)+)+$','resourceName','withValue','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','imports','1138168PSiXrx','create','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','151614lHCJuc','error','maka\x20g:dbc\x20geoserver\x20--type=pgsql','3UFHmwA','-dbc\x27;','2044120ViGUQW','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','778mBbjtz','getProjectConfig','injectAtEndOfFile','toString','search','dir','367697iBfwEE','mssql','sqlite','config.','tsx','checkNpmPackage','engines','index.','startup'];a61c=function(){return t;};return a61c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a61q(0x11d)]({'name':'dbc','usage':a61q(0x126),'shortDesc':a61q(0x11f),'validOpts':['type','dir'],'examples':[a61q(0x122),a61q(0x114),a61q(0xfd)]},async function(a,b){const r=a61q;try{const c=await this[r(0xfb)][r(0xed)](),d=this[r(0xfb)][r(0x103)]({}),f=paramCase(b[r(0x118)]);if(!b['type']){const h={'type':'list','name':r(0x107),'message':r(0x102),'choices':[{'name':'PostgreSQL','value':'pgsql'},{'name':'MS\x20SQL','value':r(0xf3)}]},{dbAnswer:i}=await Actions['options'](h);i&&(b['type']=i);}const g={'name':pascalCase(b[r(0x118)]),'fileName':paramCase(b[r(0x118)]),'camelCase':camelCase(b[r(0x118)]),'type':b[r(0x109)],'engine':c[r(0xf8)]['js'],'noRename':!![]};this[r(0xfb)][r(0x119)](c,async()=>{const s=r;let j='js';c[s(0xf8)]['js']===s(0xf6)&&(j='ts');const k=['mssql',s(0x116)];if(k['indexOf'](g[s(0x109)])<0x0){const m=g[s(0x109)]?g['type']:s(0x101);Log[s(0x121)]('Invalid\x20type\x20'+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x109)]===s(0x116)&&!this[s(0xfb)][s(0xf7)]('pg')&&(Log[s(0xfe)](s(0x11e)),await this[s(0xfb)][s(0x112)]('pg',{'cwd':d}));b[s(0x109)]==='mssql'&&!this[s(0xfb)][s(0xf7)]('mssql')&&(Log[s(0xfe)](s(0xfc)),await this[s(0xfb)][s(0x112)](s(0xf3),{'cwd':d}));b['type']===s(0xf4)&&!this['fsi'][s(0xf7)](s(0x10f))&&(Log[s(0xfe)](s(0x11a)),await this[s(0xfb)]['installNpmPackage']('better-sqlite3',{'cwd':d}));this[s(0xfb)][s(0x106)]({'srcPath':s(0x10e),'destPath':this[s(0xfb)][s(0x103)]({'pathParts':[s(0x11b),s(0xfa),s(0x113),'dbc',b[s(0xf1)],f,s(0xf5)+j]}),'context':g,'config':c}),this[s(0xfb)][s(0x106)]({'srcPath':'dbc/conn.js','destPath':this[s(0xfb)][s(0x103)]({'pathParts':['imports',s(0xfa),s(0x113),'dbc',b[s(0xf1)],f,s(0x110)+j]}),'context':g,'config':c}),this[s(0xfb)][s(0x106)]({'srcPath':'dbc/register-dbc.js','destPath':this[s(0xfb)][s(0x103)]({'pathParts':[s(0x11b),s(0xfa),'server',s(0x100)+f+s(0x10a)+j]}),'context':g,'config':c});const l=this[s(0xfb)][s(0x103)]({'pathParts':[s(0x11b),'startup','server',s(0xf9)+c[s(0xf8)]['js']]});this[s(0xfb)][s(0xee)]({'filePath':l,'content':s(0x10b)+f+s(0x124)});});}catch(j){Log[r(0x121)](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(a,b){const f=a62d,c=a();while(!![]){try{const d=parseInt(f(0x122))/0x1*(-parseInt(f(0x119))/0x2)+parseInt(f(0x114))/0x3+-parseInt(f(0x126))/0x4+-parseInt(f(0x11b))/0x5+parseInt(f(0x12b))/0x6*(-parseInt(f(0x127))/0x7)+parseInt(f(0x117))/0x8*(parseInt(f(0x12a))/0x9)+parseInt(f(0x113))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x34a8e));function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x111;let f=c[d];return f;},a62d(a,b);}const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x128)]()[h(0x115)](h(0x124))[h(0x128)]()['constructor'](a62a)[h(0x115)]('(((.+)+)+)+$');});a62a();import{Generator}from'../generator.js';function a62c(){const l=['Dockerfile','template','cert','9124140LFcToi','446466ybKqYn','search','build','685368oNPsSw','Generate\x20an\x20updated\x20dockerfile','629738txrqDF','isFile','1845750qVMTGN','maka\x20g:dockerfile','fsi','app.tar.gz','apply','service','withValue','1EzQVmS','docker/Dockerfile','(((.+)+)+)+$','appName','850492AJGRDX','30016YLdCUT','toString','join','36gcmnbv','408ADbAlU','getProjectConfig','create','maka\x20{generate,\x20g}:dockerfile'];a62c=function(){return l;};return a62c();}import{Log}from'../tools/log/log.class.js';import a62e from'path';Generator[a62i(0x12d)]({'name':'dockerfile','usage':a62i(0x12e),'shortDesc':a62i(0x118),'validOpts':[],'noResource':!![],'examples':[a62i(0x11c)]},async function(){const j=a62i;try{const a=await this[j(0x11d)][j(0x12c)](),b=await this[j(0x11d)]['getGlobalConfig'](),c=this[j(0x11d)]['findProjectDirectory']();this['fsi'][j(0x121)](a,async()=>{const k=j,d={'app':b[k(0x125)],'config':a,'appPath':a62e[k(0x129)](c,'app'),'bundlePath':a62e['join'](c,k(0x116),k(0x11e)),'useCert':this[k(0x11d)][k(0x11a)](b[k(0x112)])};this[k(0x11d)][k(0x111)]({'srcPath':k(0x123),'destPath':a62e[k(0x129)](c,k(0x12f)),'framework':k(0x120),'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
- const a63q=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=parseInt(o(0x20a))/0x1*(-parseInt(o(0x1d6))/0x2)+-parseInt(o(0x1dc))/0x3*(-parseInt(o(0x212))/0x4)+parseInt(o(0x209))/0x5+-parseInt(o(0x1ee))/0x6*(-parseInt(o(0x1e1))/0x7)+parseInt(o(0x1f0))/0x8*(-parseInt(o(0x1e9))/0x9)+parseInt(o(0x1ea))/0xa+-parseInt(o(0x214))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x33acf));function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a63d(a,b);}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['toString']()[p(0x203)](p(0x1e4))[p(0x1f1)]()[p(0x201)](a63a)[p(0x203)](p(0x1e4));});a63a();import a63e from'path';import{paramCase,pascalCase}from'change-case';function a63c(){const t=['This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','checkNpmPackage','fileName','create','4456MLaBvF','\x20};\x0a','1988316NNcpQs','imports','templates.js','template','import\x20\x27./','import\x20\x27','injectAtEndOfFile','react','\x27;\x0a','className','2vjYuPI','theme','installNpmPackage','error','maka\x20g:hook\x20cool-hook','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','1113JVUfGp','/imports/ui/hooks','lib','graphql','fsi','7flCRPe','getProjectConfig','@apollo/client','(((.+)+)+)+$','startup','test/test.js','features','pathFromProject','74178VrMCsc','3551900RQkBCe','@apollo/client\x20isomorphic-fetch','withValue','rewriteDestinationPathForEngine','80160xRrWYH','warn','352RKKiTj','toString','import\x20{\x20','assign','injectAtBeginningOfFile','none','css','hook','setTemplate','\x20}\x20from\x20\x27','pathFromApp','ssr','apollo','client','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','true','.app-tests.js','constructor','withTranslations','search','string','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','hook/hook.js','engines','dir','1052610NjeCUG','237299wsUESP','tsx','cssCaseName','resourceName'];a63c=function(){return t;};return a63c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a63q(0x211)]({'name':a63q(0x1f7),'aliases':['h'],'checkWhere':![],'usage':a63q(0x1db),'shortDesc':a63q(0x1fe),'validOpts':['dir'],'examples':[a63q(0x1da)]},async function(a,b){const r=a63q;try{const c=this[r(0x1e0)][r(0x20f)](r(0x21b));if(!c){Log[r(0x1d9)](r(0x20e));throw new UsageError();}const d=this[r(0x1e0)][r(0x1fa)](b),f=r(0x1dd),g=this[r(0x1e0)]['pathFromApp']({'pathParts':[f,b[r(0x208)],paramCase(b['resourceName']),paramCase(b[r(0x20d)])]}),h=await this[r(0x1e0)][r(0x1e2)]();this[r(0x1e0)][r(0x1ec)](h,async()=>{const s=r;typeof h[s(0x217)][s(0x1f6)]===s(0x204)&&(h[s(0x217)]['css']=h[s(0x217)][s(0x1f6)]===s(0x1ff)?!![]:![],this['fsi'][s(0x1f8)]('css',h[s(0x217)][s(0x1f6)]));h['engines']['graphql']===s(0x1fc)&&!this['checkNpmPackage'](s(0x1e3))&&(Log[s(0x1ef)](s(0x205)),await this[s(0x1e0)][s(0x1d8)](s(0x1eb),{'cwd':d}));const i={'cssCaseName':paramCase(b[s(0x20d)]),'className':pascalCase(b[s(0x20d)]),'name':pascalCase(b[s(0x20d)]),'graphql':h[s(0x207)][s(0x1df)],'theme':h[s(0x207)][s(0x1d7)],'features':h[s(0x1e7)],'myPath':a63e['relative'](this[s(0x1e0)][s(0x1e8)]({}),g),'fileName':paramCase(b[s(0x20d)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][s(0x202)]};this[s(0x1e0)]['template']({'srcPath':s(0x206),'destPath':g+'.js','context':i,'config':h,'framework':'react'});h['template'][s(0x1f6)]&&(this[s(0x1e0)]['template']({'srcPath':'template/template.css','destPath':g+'.css','context':Object[s(0x1f3)]({},i,{'className':i[s(0x20c)]}),'config':h}),this[s(0x1e0)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[s(0x207)]['js'],'content':s(0x218)+i['fileName']+'.'+h['engines']['css']+'\x27;'}));h['engines']['test']!==s(0x1f5)&&this['fsi'][s(0x217)]({'srcPath':s(0x1e6),'destPath':g+s(0x200),'framework':s(0x21b),'context':i,'config':h});const j=b[s(0x208)]?'/'+b['dir']+'/':'/',k=''+f+j+i[s(0x210)]+'/'+i[s(0x210)];let l;if(h[s(0x207)][s(0x1fb)]==='true'){const m=this[s(0x1e0)][s(0x1fa)]({'pathParts':[s(0x215),'startup',s(0x1de),s(0x216)]});l=this[s(0x1e0)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[s(0x1e0)]['pathFromApp']({'pathParts':['imports',s(0x1e5),s(0x1fd),s(0x216)]});l=this[s(0x1e0)][s(0x1ed)]({'pathParts':[n],'config':h});}h[s(0x207)][s(0x1fd)]===s(0x21b)?(h[s(0x207)]['js']===s(0x20b)?this[s(0x1e0)]['injectAtBeginningOfFile']({'filePath':l,'content':s(0x1f2)+i[s(0x1d5)]+'\x20}\x20from\x20\x27'+k+s(0x1d4)}):this['fsi'][s(0x1f4)]({'filePath':l,'content':s(0x1f2)+i[s(0x1d5)]+s(0x1f9)+k+'.'+h[s(0x207)]['js']+s(0x1d4)}),this[s(0x1e0)][s(0x21a)]({'filePath':l,'content':'export\x20{\x20'+i['className']+s(0x213)})):this[s(0x1e0)][s(0x21a)]({'filePath':l,'content':s(0x219)+k+'.'+h[s(0x207)]['js']+'\x27;\x0a'});});}catch(i){Log[r(0x1d9)](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
- const a64k=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=parseInt(h(0x1ff))/0x1+-parseInt(h(0x1fc))/0x2*(-parseInt(h(0x1ec))/0x3)+parseInt(h(0x1e7))/0x4+-parseInt(h(0x1e4))/0x5+-parseInt(h(0x1f9))/0x6+parseInt(h(0x1fb))/0x7*(parseInt(h(0x1fa))/0x8)+-parseInt(h(0x1fe))/0x9*(parseInt(h(0x1f4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x9a053));function a64c(){const n=['engines','toString','5244750mpAiWr','40QvDcII','383215XpZWfw','1164974OpOKOg','(((.+)+)+)+$','9iuZUYT','810129JivimZ','NIE','login','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','map','withValue','2545490XCMADx','constructor','Invalid\x20type\x20','2083580pFmfPW','getProjectConfig','kit','search','error','3LqKnnZ','resourceName','leaflet-map','fsi','notice','indexOf','apply','type','1731460VLbIaB','maka\x20g:kit\x20--type=map','maka\x20g:k\x20city-map\x20--type=leaflet-map'];a64c=function(){return n;};return a64c();}const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a64d;if(c){const e=c[i(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const j=a64d;return a64a[j(0x1f8)]()[j(0x1ea)](j(0x1fd))['toString']()[j(0x1e5)](a64a)[j(0x1ea)](j(0x1fd));});a64a();function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a64d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a64k(0x1e9),'aliases':['k'],'usage':a64k(0x202),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a64k(0x1f3)],'examples':[a64k(0x1f5),a64k(0x1f6)]},async function(a,b){const l=a64k;try{const c=this[l(0x1ef)][l(0x1e8)]();this['fsi'][l(0x1e3)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x1ed)]),'fileName':paramCase(b[m(0x1ed)]),'camelCase':camelCase(b[m(0x1ed)]),'type':b[m(0x1f3)],'engine':c[m(0x1f7)]['js'],'noRename':!![]},f=[m(0x1ee),'login'];if(f[m(0x1f1)](d['type'])<0x0){const g=d[m(0x1f3)]?d['type']:'(blank)';Log[m(0x1eb)](m(0x1e6)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0x1f3)]===m(0x1e2)&&Log[m(0x1f0)](m(0x200)),b[m(0x1f3)]===m(0x201)&&Log['notice'](m(0x200));});}catch(d){Log['error'](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 a65r=a65d;function a65c(){const u=['client','\x27;\x0a','\x20}\x20from\x20\x27','5000596YqRpkX','templates.js','css','13602dLdrdi','layout','react','withHook','test/test.js','fsi','tsx','\x20};\x0a','3205NkoDKk','apply','10784795NfmIAA','pathFromApp','injectAtBeginningOfFile','.js','resourceName','135581vZuCbf','hook/hook.js','(((.+)+)+)+$','fileName','export\x20{\x20','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','none','3kZHtRY','9PcUFvk','withHooks','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','ssr','checkNpmPackage','includes','ramda','import\x20\x27./','.app-tests.js','import\x20\x27','engines','api','2832632DNWlTw','rewriteDestinationPathForEngine','className','test','relative','withValue','findAppDirectory','features','component/component.js','startup','setTemplate','imports','injectAtEndOfFile','import\x20{\x20','search','string','2868430QOOGXT','installNpmPackage','warn','dir','maka\x20g:layout\x20mobile/iPhone8','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','template','split','template/template.css','theme','19289470LOifrd','toString','true','Scaffolding\x20for\x20a\x20React\x20Layout.'];a65c=function(){return u;};return a65c();}(function(a,b){const o=a65d,c=a();while(!![]){try{const d=-parseInt(o(0x96))/0x1+-parseInt(o(0x73))/0x2*(-parseInt(o(0x9d))/0x3)+parseInt(o(0x84))/0x4+parseInt(o(0x8f))/0x5*(parseInt(o(0x87))/0x6)+-parseInt(o(0x91))/0x7+-parseInt(o(0xaa))/0x8*(-parseInt(o(0x9e))/0x9)+-parseInt(o(0x7d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0xd8669));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x7e)]()[q(0x71)]('(((.+)+)+)+$')[q(0x7e)]()['constructor'](a65a)[q(0x71)](q(0x98));});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';function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x69;let f=c[d];return f;},a65d(a,b);}const aliases=['l'];Generator['create']({'name':a65r(0x88),'aliases':aliases,'usage':a65r(0x78),'shortDesc':a65r(0x80),'validOpts':[],'examples':[a65r(0x77),'maka\x20g:l\x20web/safari']},function(a,b){const s=a65r,c='/imports/ui/layouts',d=this[s(0x8c)][s(0x69)](),e=this[s(0x8c)][s(0x92)]({'pathParts':[c,b[s(0x76)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this[s(0x8c)]['getProjectConfig']();this[s(0x8c)][s(0xaf)](f,()=>{const t=s;typeof f[t(0x79)][t(0xad)]===t(0x72)&&(f[t(0x79)][t(0xad)]=f['template'][t(0xad)]===t(0x7f)?!![]:![],this[t(0x8c)][t(0x6d)](t(0xad),f[t(0x79)][t(0xad)]));typeof f[t(0x79)]['css']===t(0x72)&&(f[t(0x79)][t(0x86)]=f[t(0x79)][t(0x86)]===t(0x7f)?!![]:![],this[t(0x8c)]['setTemplate'](t(0x86),f[t(0x79)][t(0x86)]));typeof f[t(0x79)]['js']===t(0x72)&&(f['template']['js']=f['template']['js']==='true'?!![]:![],this[t(0x8c)][t(0x6d)]('js',f[t(0x79)]['js']));!f[t(0x6a)]&&(f[t(0x6a)]={});const g=b['_']?b['_'][0x0][t(0x7a)](':')[0x1]:![],h=b['_']&&aliases[t(0xa3)](g);h&&!this[t(0xa2)](t(0xa4))&&(Log['warn'](t(0x9b)),this[t(0x8c)][t(0x74)]('ramda',{'cwd':d}));if(h&&!this[t(0xa2)](t(0x89))){Log[t(0x75)](t(0xa0));return;}const i={'name':pascalCase(b[t(0x95)]),'myPath':a65e[t(0xae)](this[t(0x8c)]['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x95)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0x95)]),'graphql':f[t(0xa8)]['graphql'],'features':f[t(0x6a)],'client':f[t(0xa8)][t(0x81)],'api':f['engines'][t(0xa9)],'ssr':f[t(0xa8)][t(0xa1)],'test':f[t(0xa8)]['test'],'theme':f[t(0xa8)][t(0x7c)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x6a)]['withTranslations']};f['features']?.[t(0x9f)]||b[t(0x8a)]?this['fsi'][t(0x79)]({'srcPath':t(0x97),'destPath':e+t(0x94),'framework':t(0x89),'context':i,'config':f}):this[t(0x8c)][t(0x79)]({'srcPath':t(0x6b),'destPath':e+t(0x94),'framework':t(0x89),'context':i,'config':f});f['engines'][t(0xad)]!==t(0x9c)&&this[t(0x8c)][t(0x79)]({'srcPath':t(0x8b),'destPath':e+t(0xa6),'framework':'react','context':i,'config':f});f[t(0x79)]['css']&&(this[t(0x8c)][t(0x79)]({'srcPath':t(0x7b),'destPath':e+'.css','context':Object['assign']({},i,{'className':paramCase(b[t(0x95)])}),'config':f}),this['fsi'][t(0x93)]({'filePath':e+'.'+f['engines']['js'],'content':t(0xa5)+i[t(0x99)]+'.'+f[t(0xa8)][t(0x86)]+'\x27;'}));const j=b[t(0x76)]?'/'+b[t(0x76)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x99)];let l;if(f[t(0xa8)]['ssr']===t(0x7f)){const m=this[t(0x8c)][t(0x92)]({'pathParts':['imports',t(0x6c),'lib','templates.js']});l=this[t(0x8c)][t(0xab)]({'pathParts':[m],'config':f});}else{const n=this[t(0x8c)][t(0x92)]({'pathParts':[t(0x6e),t(0x6c),'client',t(0x85)]});l=this[t(0x8c)][t(0xab)]({'pathParts':[n],'config':f});}f[t(0xa8)][t(0x81)]===t(0x89)?(f['engines']['js']===t(0x8d)?this[t(0x8c)][t(0x93)]({'filePath':l,'content':t(0x70)+i['className']+t(0x83)+k+t(0x82)}):this['fsi'][t(0x93)]({'filePath':l,'content':t(0x70)+i[t(0xac)]+'\x20}\x20from\x20\x27'+k+'.'+f['engines']['js']+t(0x82)}),this[t(0x8c)][t(0x6f)]({'filePath':l,'content':t(0x9a)+i[t(0xac)]+t(0x8e)})):this[t(0x8c)][t(0x6f)]({'filePath':l,'content':t(0xa7)+k+'.'+f[t(0xa8)]['js']+t(0x82)});});});
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(0x188))/0x1+-parseInt(f(0x180))/0x2+parseInt(f(0x181))/0x3*(-parseInt(f(0x175))/0x4)+-parseInt(f(0x17f))/0x5*(parseInt(f(0x17d))/0x6)+parseInt(f(0x185))/0x7+parseInt(f(0x183))/0x8*(-parseInt(f(0x17b))/0x9)+parseInt(f(0x184))/0xa*(parseInt(f(0x178))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0xeb77d));function a66c(){const j=['Maka!','21825WprajK','(((.+)+)+)+$','1886214bVLeAg','\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','30Bqrciu','2991082dbPUsv','3363dNYgSG','search','3704isqVpn','70MCqnXb','134799rOxLnR','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','maka','962135RFaqAV','256luuuPn','maka\x20generate:api\x20Trucks','apply','7164707VLWwgd','constructor'];a66c=function(){return j;};return a66c();}const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a['toString']()['search']('(((.+)+)+)+$')['toString']()[h(0x179)](a66a)[h(0x182)](h(0x17c));});function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x175;let f=c[d];return f;},a66d(a,b);}a66a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a66i(0x187),'shortDesc':a66i(0x17a),'validOpts':[],'description':a66i(0x17e),'usage':a66i(0x186),'examples':[a66i(0x176),'maka\x20g:hook\x20cool-hook']},function(){return null;});export default MakaGen;
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
- function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x15b;let f=c[d];return f;},a67d(a,b);}function a67c(){const p=['2936154zIFOfg','check','method/method.js','dir','create','engines','check\x20ddp-rate-limiter\x20mdg:validated-method','7RsjUZD','installMeteorPackage','maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkMeteorPackage','8520uWILYv','31449NDLoTI','650660ByGNKt','(((.+)+)+)+$','error','-rpc-method.','method','import\x20\x27./methods','maka\x20g:method\x20todos','297104AzfMap','72jpUhqW','1380279XAOqcH','getProjectConfig','index.','-rpc-method\x27;','22693oxmqza','search','startup','imports','8lWjaeU','560MfVrdJ','pathFromApp','warn','fsi','toString','14960ulCBVw','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','appPathPrefix','resourceName','ddp-rate-limiter','tsx','mdg:validated-method'];a67c=function(){return p;};return a67c();}const a67m=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=-parseInt(k(0x16c))/0x1*(parseInt(k(0x17e))/0x2)+parseInt(k(0x176))/0x3+-parseInt(k(0x184))/0x4*(parseInt(k(0x17f))/0x5)+parseInt(k(0x160))/0x6*(-parseInt(k(0x167))/0x7)+-parseInt(k(0x174))/0x8+parseInt(k(0x175))/0x9*(-parseInt(k(0x16d))/0xa)+parseInt(k(0x17a))/0xb*(parseInt(k(0x16b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x51542));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const l=a67d;return a67a['toString']()[l(0x17b)](l(0x16e))[l(0x183)]()['constructor'](a67a)[l(0x17b)]('(((.+)+)+)+$');});a67a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67m(0x164)]({'name':a67m(0x171),'aliases':['m'],'usage':a67m(0x169),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a67m(0x163)],'examples':[a67m(0x173)]},function(a,b){const n=a67m;try{const c=this[n(0x182)][n(0x177)]();this[n(0x182)]['withValue'](c,async()=>{const o=n,d=paramCase(b[o(0x15c)]),f={'name':b[o(0x15c)],'fileName':d,'className':pascalCase(b[o(0x15c)]),'camelCase':camelCase(b[o(0x15c)]),'noRename':!![]};let g='js';c[o(0x165)]['js']===o(0x15e)&&(g='ts');const h=this['fsi'][o(0x180)]({});(!this[o(0x182)]['checkMeteorPackage'](o(0x161))||!this['fsi'][o(0x16a)](o(0x15d))||!this['fsi'][o(0x16a)](o(0x15f)))&&(Log[o(0x181)](o(0x185)),this['fsi'][o(0x168)](o(0x166),{'cwd':h}));this['fsi']['template']({'srcPath':o(0x162),'destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x17d),o(0x17c),b[o(0x15b)],'methods',b[o(0x163)],d+o(0x170)+g]}),'context':f,'config':c});const i=b[o(0x163)]?'/'+b[o(0x163)]+'/':'/',j=this['fsi'][o(0x180)]({'pathParts':[o(0x17d),o(0x17c),b[o(0x15b)],o(0x178)+c[o(0x165)]['js']]});this[o(0x182)]['injectAtEndOfFile']({'filePath':j,'content':o(0x172)+i+d+o(0x179)});});}catch(d){Log[n(0x16f)](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 a68n=a68d;(function(a,b){const l=a68d,c=a();while(!![]){try{const d=parseInt(l(0x167))/0x1*(parseInt(l(0x175))/0x2)+-parseInt(l(0x15a))/0x3*(parseInt(l(0x160))/0x4)+parseInt(l(0x172))/0x5*(-parseInt(l(0x14d))/0x6)+-parseInt(l(0x168))/0x7+parseInt(l(0x164))/0x8*(parseInt(l(0x153))/0x9)+-parseInt(l(0x15f))/0xa+parseInt(l(0x150))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x816f6));function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x14b;let f=c[d];return f;},a68d(a,b);}const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const m=a68d;return a68a['toString']()[m(0x165)](m(0x151))['toString']()[m(0x173)](a68a)[m(0x165)](m(0x151));});a68a();import a68e from'path';import{Generator}from'../generator.js';function a68c(){const r=['lib','layout','114aSHaku','/client/','noRename','.js','package/','1121320IzCWjd','3628uuIRWd','engines','relative','template','4585192lcaeOy','search','pathFromProject','368947SaLMPh','3276518MujLuZ','pathFromAppWithNoReWrite','resourceName','maka\x20g:package\x20todos:package','getProjectConfig','dir','pathFromApp','/package.js','fsi','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','2435LytCkJ','constructor','withValue','4hdsHgV','packages','create','7026CSKKxm','graphql','hasOwnProperty','4444792XRabUU','(((.+)+)+)+$','store','9pXzQDq','server','template/template.js','tests/server','package/package.js'];a68c=function(){return r;};return a68c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68n(0x14c)]({'name':'package','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a68n(0x171),'validOpts':[a68n(0x16d)],'examples':[a68n(0x16b)]},async function(a,b){const o=a68n,c=paramCase(b['resourceName']),d=this[o(0x170)][o(0x16e)]({'pathParts':[o(0x14b),b[o(0x16d)],c]}),e=this['fsi'][o(0x169)]({'pathParts':[o(0x14b),b[o(0x16d)],c,'package.js']}),f=this[o(0x170)][o(0x16c)]();this[o(0x170)][o(0x174)](f,async()=>{const p=o,g={'name':paramCase(b[p(0x16a)]),'myPath':a68e[p(0x162)](this['fsi'][p(0x166)]({}),d),'cssCaseName':paramCase(b[p(0x16a)]),'className':pascalCase(b[p(0x16a)]),'camelCaseName':camelCase(b[p(0x16a)]),'fileName':c,'client':f['engines']['client'],'graphql':f['engines'][p(0x14e)],'ssr':f['engines']['ssr'],'isComponent':b['hasOwnProperty']('component'),'isLayout':b[p(0x14f)](p(0x159)),'isStore':b['hasOwnProperty'](p(0x152)),'features':f['features'],'noRename':!![],'theme':f[p(0x161)]['theme']};this[p(0x170)][p(0x163)]({'srcPath':p(0x157),'destPath':e,'context':g,'config':f}),g[p(0x15c)]=![];const h=d+p(0x15b)+c+p(0x15d);this[p(0x170)][p(0x163)]({'srcPath':p(0x155),'destPath':h,'context':g,'config':f});const i=[p(0x158),p(0x154),'tests/client',p(0x156)];i['forEach'](j=>{const q=p,k=d+'/'+j+'/'+c+'.js';this[q(0x170)]['template']({'srcPath':q(0x15e)+j+q(0x16f),'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 a69p=a69d;function a69c(){const s=['templates.js','css','test','\x27;\x0a','root','fileName','withValue','imports','store','hook/hook.js','(((.+)+)+)+$','html','client','none','template','checkNpmPackage','pathFromProject','.html','dir','constructor','test/test.js','apply','163927AlzkGJ','79914rnXDEL','pathFromApp','rewriteDestinationPathForEngine','import\x20\x27./','6601090mYiOxr','ssr','lib','getProjectConfig','true','Updating\x20npm\x20packages\x20...','30220322EeAnsy','injectAtBeginningOfFile','56pnXEAv','/imports/ui/pages','resourceName','component/component.js','fsi','.js','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','hasOwnProperty','engines','7860267cGXjSi','export\x20{\x20','injectAtEndOfFile','setTemplate','string','.app-tests.js','features','\x20}\x20from\x20\x27','withHooks','template/template.html','graphql','10kUNlTq','3246LuDQUz','react','layout','toString','create','assign','search','page','relative','theme','2060UYVgbc','4488232OOzqpX','component','ramda','warn','vanilla','14VsYTYp','withHook','tsx','startup','import\x20{\x20'];a69c=function(){return s;};return a69c();}(function(a,b){const m=a69d,c=a();while(!![]){try{const d=parseInt(m(0x201))/0x1*(-parseInt(m(0x1e6))/0x2)+parseInt(m(0x1d6))/0x3*(-parseInt(m(0x1e0))/0x4)+parseInt(m(0x206))/0x5+-parseInt(m(0x202))/0x6*(parseInt(m(0x20e))/0x7)+-parseInt(m(0x1e1))/0x8+-parseInt(m(0x217))/0x9*(parseInt(m(0x1d5))/0xa)+parseInt(m(0x20c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0xc8a61));function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a69d(a,b);}const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a69d;if(c){const e=c[n(0x200)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const o=a69d;return a69a[o(0x1d9)]()[o(0x1dc)](o(0x1f5))[o(0x1d9)]()[o(0x1fe)](a69a)[o(0x1dc)]('(((.+)+)+)+$');});a69a();import a69e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a69p(0x1da)]({'name':a69p(0x1dd),'aliases':aliases,'usage':a69p(0x214),'shortDesc':'Generate\x20a\x20page.','validOpts':[a69p(0x1fd),a69p(0x1e7)],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a69p,c=q(0x20f),d=this['fsi'][q(0x203)](b),e=this[q(0x212)][q(0x203)]({'pathParts':[c,b[q(0x1fd)],paramCase(b[q(0x210)]),paramCase(b[q(0x210)])]}),f=this['fsi'][q(0x209)]();this['fsi'][q(0x1f1)](f,()=>{const r=q;typeof f[r(0x1f9)][r(0x1f6)]===r(0x21b)&&(f[r(0x1f9)][r(0x1f6)]=f[r(0x1f9)]['html']===r(0x20a)?!![]:![],this['fsi']['setTemplate'](r(0x1f6),f[r(0x1f9)][r(0x1f6)]));typeof f[r(0x1f9)][r(0x1ed)]===r(0x21b)&&(f[r(0x1f9)][r(0x1ed)]=f['template']['test']==='true'?!![]:![],this[r(0x212)][r(0x21a)](r(0x1ed),f[r(0x1f9)][r(0x1ed)]));typeof f[r(0x1f9)][r(0x1ec)]===r(0x21b)&&(f['template'][r(0x1ec)]=f[r(0x1f9)]['css']===r(0x20a)?!![]:![],this[r(0x212)]['setTemplate'](r(0x1ec),f[r(0x1f9)][r(0x1ec)]));typeof f[r(0x1f9)]['js']==='string'&&(f[r(0x1f9)]['js']=f['template']['js']===r(0x20a)?!![]:![],this['fsi'][r(0x21a)]('js',f['template']['js']));!f[r(0x1d0)]&&(f[r(0x1d0)]={});!b[r(0x1ef)]&&!this[r(0x212)][r(0x1fa)](r(0x1e3))&&(Log[r(0x1e4)](r(0x20b)),this[r(0x212)]['installNpmPackage'](r(0x1e3),{'cwd':d}));const g={'name':pascalCase(b[r(0x210)]),'myPath':a69e[r(0x1de)](this['fsi'][r(0x1fb)]({}),e),'cssCaseName':paramCase(b[r(0x210)]),'className':pascalCase(b[r(0x210)]),'camelCaseName':camelCase(b[r(0x210)]),'fileName':paramCase(b[r(0x210)]),'graphql':f['engines'][r(0x1d4)],'features':f[r(0x1d0)],'client':f['engines'][r(0x1f7)],'api':f[r(0x216)]['api'],'ssr':f['engines'][r(0x207)],'isStore':b[r(0x215)](r(0x1f3)),'isComponent':b['hasOwnProperty'](r(0x1e2)),'isLayout':b[r(0x215)](r(0x1d8)),'withTranslations':f[r(0x1d0)]['withTranslations'],'test':f[r(0x216)]['test'],'theme':f[r(0x216)][r(0x1df)]};f[r(0x1f9)][r(0x1f6)]&&this[r(0x212)]['template']({'srcPath':r(0x1d3),'destPath':e+r(0x1fc),'context':g,'config':f});f[r(0x1d0)]?.[r(0x1d2)]||b['withHook']?this[r(0x212)][r(0x1f9)]({'srcPath':r(0x1f4),'destPath':e+r(0x213),'framework':r(0x1d7),'context':g,'config':f}):this[r(0x212)][r(0x1f9)]({'srcPath':r(0x211),'destPath':e+r(0x213),'framework':r(0x1d7),'context':g,'config':f});f[r(0x216)][r(0x1ed)]!==r(0x1f8)&&this['fsi'][r(0x1f9)]({'srcPath':r(0x1ff),'destPath':e+r(0x21c),'framework':'react','context':g,'config':f});f[r(0x1f9)][r(0x1ec)]&&this[r(0x212)][r(0x1f9)]({'srcPath':'template/template.css','destPath':e+'.css','context':Object[r(0x1db)]({},g,{'className':paramCase(b[r(0x210)])}),'config':f});f['engines'][r(0x1f7)]!==r(0x1d7)&&f[r(0x216)]['client']!==r(0x1e5)?(f[r(0x1f9)]['css']&&this['fsi'][r(0x20d)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[r(0x1f0)]+'.'+f[r(0x216)][r(0x1f6)]+r(0x1ee)+r(0x205)+g[r(0x1f0)]+'.'+f['engines'][r(0x1ec)]+'\x27;'}),!f[r(0x1f9)][r(0x1ec)]&&this['fsi'][r(0x20d)]({'filePath':e+'.'+f[r(0x216)]['js'],'content':r(0x205)+g[r(0x1f0)]+'.'+f[r(0x216)][r(0x1f6)]+'\x27;'})):f[r(0x1f9)][r(0x1ec)]&&this[r(0x212)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x216)]['js'],'content':r(0x205)+g[r(0x1f0)]+'.'+f[r(0x216)][r(0x1ec)]+'\x27;'});const h=b['dir']?'/'+b[r(0x1fd)]+'/':'/',i=''+c+h+g[r(0x1f0)]+'/'+g[r(0x1f0)];let j;if(f['engines'][r(0x207)]===r(0x20a)){const k=this[r(0x212)][r(0x203)]({'pathParts':['imports',r(0x1e9),r(0x208),r(0x1eb)]});j=this['fsi'][r(0x204)]({'pathParts':[k],'config':f});}else{const l=this['fsi'][r(0x203)]({'pathParts':[r(0x1f2),r(0x1e9),r(0x1f7),'templates.js']});j=this[r(0x212)][r(0x204)]({'pathParts':[l],'config':f});}f[r(0x216)][r(0x1f7)]===r(0x1d7)?(f[r(0x216)]['js']===r(0x1e8)?this['fsi'][r(0x20d)]({'filePath':j,'content':r(0x1ea)+g['className']+r(0x1d1)+i+r(0x1ee)}):this['fsi'][r(0x20d)]({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x1d1)+i+'.'+f[r(0x216)]['js']+r(0x1ee)}),this['fsi'][r(0x219)]({'filePath':j,'content':r(0x218)+g['className']+'\x20};\x0a'})):this[r(0x212)][r(0x219)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f[r(0x216)]['js']+r(0x1ee)});});});
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 a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0xa3;let f=c[d];return f;},a70d(a,b);}const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=-parseInt(h(0xbc))/0x1*(parseInt(h(0xa8))/0x2)+parseInt(h(0xb8))/0x3*(parseInt(h(0xbe))/0x4)+-parseInt(h(0xab))/0x5+-parseInt(h(0xac))/0x6*(-parseInt(h(0xbb))/0x7)+parseInt(h(0xaa))/0x8+-parseInt(h(0xb0))/0x9+-parseInt(h(0xbd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x4fdef));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a[j(0xae)]()['search'](j(0xb4))['toString']()[j(0xba)](a70a)[j(0xaf)](j(0xb4));});a70a();import{paramCase}from'change-case';function a70c(){const n=['rewriteDestinationPathForEngine','apply','(((.+)+)+)+$','templateContent','publish/publish.','publish','170001ThpCOG','tsx','constructor','429905DxhSJU','646PhChNN','1501600SWYKnd','12zheCji','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','create','server/publish.','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','injectAtEndOfFile','engines','fsi','1174sRDSAV','maka\x20g:publish\x20todos','3436880XeEKQx','404900Epwhjm','60QxGpam','withValue','toString','search','2486412qRkIeR','resourceName'];a70c=function(){return n;};return a70c();}import{Generator}from'../generator.js';Generator[a70k(0xc0)]({'name':a70k(0xb7),'aliases':['p'],'usage':a70k(0xbf),'shortDesc':a70k(0xa4),'validOpts':[],'examples':[a70k(0xa9)]},async function(a,b){const l=a70k,c=this[l(0xa7)]['getProjectConfig']();this[l(0xa7)][l(0xad)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0xb1)]),'noRename':!![]};let e='js';c['engines']['js']===m(0xb9)&&(e='ts');const f=this[m(0xa7)][m(0xb2)]({'pathParts':[m(0xa3)+c[m(0xa6)]['js']]}),g=this['fsi'][m(0xb5)]({'srcPath':m(0xb6)+e,'context':d,'config':c});this['fsi'][m(0xa5)]({'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});});});
@@ -1 +1 @@
1
- const a71x=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=parseInt(v(0x206))/0x1+parseInt(v(0x1ed))/0x2*(parseInt(v(0x1fb))/0x3)+-parseInt(v(0x215))/0x4*(-parseInt(v(0x1eb))/0x5)+-parseInt(v(0x1ec))/0x6+-parseInt(v(0x1e3))/0x7*(parseInt(v(0x1f0))/0x8)+parseInt(v(0x20f))/0x9*(parseInt(v(0x1f7))/0xa)+-parseInt(v(0x1e5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x43452));const a71b=(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;};}()),a71a=a71b(this,function(){const w=a71d;return a71a[w(0x1e1)]()[w(0x1d8)](w(0x1e4))[w(0x1e1)]()[w(0x1de)](a71a)['search']('(((.+)+)+)+$');});function a71c(){const G=['includes','page','routes.js','invoke','437963hSOYHH','client','lib','maka\x20g:route\x20todosEdit\x20todos/:id/edit','Scaffolding\x20for\x20a\x20Route.','withHook','imports','const\x20privateRoutes\x20=\x20(<>','map','1371834AxayhT','rewriteDestinationPathForEngine','/imports/ui/pages','ssr','vanilla','readFileLines','4PTxdmm','injectAfterLineNumber','<Route','<Router','react','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','search','route','\x22*\x22','engines','private','MasterLayout','constructor','join','maka\x20g:route\x20lists/listIndex\x20lists','toString','startup','974645KiZnkR','(((.+)+)+)+$','7123875eQxKex','length','only','root','url','const\x20publicRoutes\x20=\x20(<>','1233545HIwnrq','2354292RzUqjo','2oXSxOC','create','route/route.js','8wHMcfv','filter','pathFromApp','findGenerator','layout','newForm','\x0a\x09\x09','30RgcIBs','fsi','cwd','PrivateLayout','938490cjiwVl','config','true','toLowerCase','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','indexOf','maka\x20g:route\x20todosIndex\x20todos'];a71c=function(){return G;};return a71c();}a71a();import a71e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a71f from'../generators/maka.gen.js';function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x1d3;let f=c[d];return f;},a71d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a71x(0x1ee)]({'name':a71x(0x1d9),'aliases':aliases,'validOpts':[a71x(0x1dc),'layout',a71x(0x1e7),a71x(0x1f9),a71x(0x1fc),a71x(0x1e8),a71x(0x20b),a71x(0x1e9)],'usage':a71x(0x1ff),'shortDesc':a71x(0x20a),'examples':[a71x(0x201),a71x(0x209),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a71x(0x1e0)]},function(a,b){const y=a71x;try{const c=this['fsi']['getProjectConfig']();this[y(0x1f8)]['withValue'](c,async()=>{const z=y,d=b[z(0x1dc)]??![];let f=paramCase(a[0x0]),g='/'+f;a[z(0x1e6)]>0x1&&(g='/'+a['filter'](function(l){return l!=='/';})[z(0x1df)]('/')[z(0x1fe)]());f=camelCase(f);b[z(0x1f4)]&&(b[z(0x1f4)]=camelCase(b[z(0x1f4)]));const h=a71e[z(0x1df)](z(0x211),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[z(0x1f4)]||z(0x1dd),'templatePath':h,'templateName':pascalCase(f),'client':c[z(0x1db)][z(0x207)],'newForm':![],'withTranslations':c['features']['withTranslations']};d&&(i[z(0x1f4)]=z(0x1fa));if(!b[z(0x1e8)]){const l=a71f[z(0x1f3)](z(0x203));l&&await l[z(0x205)](a,b);}let j,k;if(c['engines']['client']==='react'){if(c[z(0x1db)][z(0x212)]===z(0x1fd)){const p=this[z(0x1f8)][z(0x1f2)]({'pathParts':[z(0x20c),z(0x1e2),z(0x208),z(0x204)]});j=this[z(0x1f8)][z(0x210)]({'pathParts':[p],'config':c});}else{const q=this[z(0x1f8)]['pathFromApp']({'pathParts':[z(0x20c),z(0x1e2),'client',z(0x204)]});j=this[z(0x1f8)][z(0x210)]({'pathParts':[q],'config':c});}const m=this[z(0x1f8)][z(0x214)](j)['map']((r,s)=>{const A=z;return r[A(0x202)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?s+0x1:null;})['filter'](r=>r!==null);let n=this[z(0x1f8)][z(0x214)](j)[z(0x20e)]((r,s)=>{const B=z;return r[B(0x202)](B(0x1ea))?s+0x1:null;})[z(0x1f1)](r=>r!==null),o=this[z(0x1f8)]['readFileLines'](j)[z(0x20e)]((r,s)=>{const C=z;return r[C(0x202)](C(0x20d))?s+0x1:null;})['filter'](r=>r!==null);n[z(0x1e6)]>0x0&&o['length']>0x0&&(i[z(0x1f5)]=!![]);k=this['fsi']['templateContent']({'srcPath':z(0x1ef),'framework':z(0x1d6),'context':i,'config':c});if(n[z(0x1e6)]>0x0||o[z(0x1e6)]>0x0){this['fsi']['injectAfterLineNumber']({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o['length']>0x0)o=this['fsi'][z(0x214)](j)[z(0x20e)]((r,s)=>{const D=z;return r['includes'](D(0x20d))?s+0x1:null;})[z(0x1f1)](r=>r!==null),this[z(0x1f8)][z(0x1d3)]({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':o[0x0]});else n[z(0x1e6)]>0x0?(n=this[z(0x1f8)][z(0x214)](j)[z(0x20e)]((r,s)=>{const E=z;return r[E(0x202)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})[z(0x1f1)](r=>r!==null),this[z(0x1f8)]['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':n[0x0]})):Log['warn'](z(0x1d7)+j);}else{const r=this[z(0x1f8)]['readFileLines'](j)[z(0x20e)](u=>{const F=z;return u[F(0x202)](F(0x1da));}),s=r[z(0x200)](!![])>-0x1,t=s?z(0x1d4):'</Router>';this[z(0x1f8)]['injectIntoFile']({'filePath':j,'content':z(0x1f6)+k+z(0x1f6),'begin':z(0x1d5),'end':t});}}else{if(c[z(0x1db)][z(0x207)]===z(0x213)){const u=this[z(0x1f8)][z(0x1f2)]({'pathParts':['imports','startup','client',z(0x204)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[u],'config':c}),k=this[z(0x1f8)]['templateContent']({'srcPath':z(0x1ef),'context':i}),this['fsi']['injectAtEndOfFile']({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log['error'](d);}});
1
+ const a71y=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=parseInt(v(0x1a5))/0x1+-parseInt(v(0x1e4))/0x2*(-parseInt(v(0x1b1))/0x3)+-parseInt(v(0x1c6))/0x4*(-parseInt(v(0x1a7))/0x5)+-parseInt(v(0x1b7))/0x6*(parseInt(v(0x1d9))/0x7)+-parseInt(v(0x1e6))/0x8*(parseInt(v(0x1e5))/0x9)+parseInt(v(0x1e8))/0xa*(parseInt(v(0x1ba))/0xb)+parseInt(v(0x1c4))/0xc*(-parseInt(v(0x1d5))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x2a66f));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a71d;if(c){const e=c[w(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const x=a71d;return a71a[x(0x1df)]()[x(0x1a6)]('(((.+)+)+)+$')[x(0x1df)]()['constructor'](a71a)[x(0x1a6)](x(0x1e1));});function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a71d(a,b);}a71a();import a71e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a71f from'../generators/maka.gen.js';function a71c(){const H=['layout','page','316149jrDDVO','search','5yaxePA','lib','/imports/ui/pages','error','rewriteDestinationPathForEngine','startup','ssr','client','maka\x20g:route\x20lists/listIndex\x20lists','only','107259iPEyyg','const\x20publicRoutes\x20=\x20(<>','templateName','join','MasterLayout','includes','12gJADhY','config','withTranslations','132euVDvd','engines','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','private','templateContent','map','length','indexOf','invoke','injectAfterLineNumber','7882224NGbNtT','\x0a\x09\x09','938084zJtVMt','route','root','\x22*\x22','fsi','warn','const\x20privateRoutes\x20=\x20(<>','injectAtEndOfFile','pathFromApp','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','Scaffolding\x20for\x20a\x20Route.','readFileLines','<Route','create','PrivateLayout','13kmAUun','getProjectConfig','cwd','vanilla','546406lKQwGO','route/route.js','maka\x20g:route\x20todosEdit\x20todos/:id/edit','withValue','newForm','routes.js','toString','apply','(((.+)+)+)+$','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','filter','18oLOiEn','249867npesId','32ibHKec','toLowerCase','187710ZaWTnW','<Router','</Router>','imports','react','true'];a71c=function(){return H;};return a71c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a71y(0x1d3)]({'name':a71y(0x1c7),'aliases':aliases,'validOpts':[a71y(0x1bd),a71y(0x1a3),a71y(0x1b0),a71y(0x1d7),a71y(0x1b8),a71y(0x1c8),'withHook','url'],'usage':a71y(0x1cf),'shortDesc':a71y(0x1d0),'examples':['maka\x20g:route\x20todosIndex\x20todos',a71y(0x1db),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a71y(0x1af)]},function(a,b){const z=a71y;try{const c=this[z(0x1ca)][z(0x1d6)]();this[z(0x1ca)][z(0x1dc)](c,async()=>{const A=z,d=b['private']??![];let f=paramCase(a[0x0]),g='/'+f;a['length']>0x1&&(g='/'+a[A(0x1e3)](function(l){return l!=='/';})[A(0x1b4)]('/')[A(0x1e7)]());f=camelCase(f);b[A(0x1a3)]&&(b['layout']=camelCase(b[A(0x1a3)]));const h=a71e[A(0x1b4)](A(0x1a9),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[A(0x1a3)]||A(0x1b5),'templatePath':h,'templateName':pascalCase(f),'client':c[A(0x1bb)][A(0x1ae)],'newForm':![],'withTranslations':c['features'][A(0x1b9)]};d&&(i['layout']=A(0x1d4));if(!b[A(0x1c8)]){const l=a71f['findGenerator'](A(0x1a4));l&&await l[A(0x1c2)](a,b);}let j,k;if(c[A(0x1bb)]['client']===A(0x1a1)){if(c['engines'][A(0x1ad)]===A(0x1a2)){const p=this[A(0x1ca)]['pathFromApp']({'pathParts':[A(0x1eb),A(0x1ac),A(0x1a8),A(0x1de)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c});}else{const q=this[A(0x1ca)][A(0x1ce)]({'pathParts':[A(0x1eb),A(0x1ac),'client','routes.js']});j=this[A(0x1ca)][A(0x1ab)]({'pathParts':[q],'config':c});}const m=this['fsi']['readFileLines'](j)[A(0x1bf)]((r,s)=>{const B=A;return r[B(0x1b6)](B(0x1bc))?s+0x1:null;})['filter'](r=>r!==null);let n=this[A(0x1ca)][A(0x1d1)](j)[A(0x1bf)]((r,s)=>{const C=A;return r['includes'](C(0x1b2))?s+0x1:null;})[A(0x1e3)](r=>r!==null),o=this[A(0x1ca)]['readFileLines'](j)[A(0x1bf)]((r,s)=>{const D=A;return r[D(0x1b6)](D(0x1cc))?s+0x1:null;})[A(0x1e3)](r=>r!==null);n[A(0x1c0)]>0x0&&o[A(0x1c0)]>0x0&&(i[A(0x1dd)]=!![]);k=this[A(0x1ca)][A(0x1be)]({'srcPath':'route/route.js','framework':A(0x1a1),'context':i,'config':c});if(n['length']>0x0||o[A(0x1c0)]>0x0){this['fsi'][A(0x1c3)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o['length']>0x0)o=this[A(0x1ca)][A(0x1d1)](j)['map']((r,s)=>{const E=A;return r[E(0x1b6)](E(0x1cc))?s+0x1:null;})['filter'](r=>r!==null),this['fsi'][A(0x1c3)]({'filePath':j,'content':'\x09{'+i[A(0x1b3)]+'}','lineNumber':o[0x0]});else n[A(0x1c0)]>0x0?(n=this[A(0x1ca)][A(0x1d1)](j)[A(0x1bf)]((r,s)=>{const F=A;return r[F(0x1b6)](F(0x1b2))?s+0x1:null;})[A(0x1e3)](r=>r!==null),this['fsi']['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i[A(0x1b3)]+'}','lineNumber':n[0x0]})):Log[A(0x1cb)](A(0x1e2)+j);}else{const r=this[A(0x1ca)]['readFileLines'](j)['map'](u=>{const G=A;return u[G(0x1b6)](G(0x1c9));}),s=r[A(0x1c1)](!![])>-0x1,t=s?A(0x1d2):A(0x1ea);this[A(0x1ca)]['injectIntoFile']({'filePath':j,'content':A(0x1c5)+k+A(0x1c5),'begin':A(0x1e9),'end':t});}}else{if(c[A(0x1bb)]['client']===A(0x1d8)){const u=this[A(0x1ca)][A(0x1ce)]({'pathParts':['imports',A(0x1ac),A(0x1ae),A(0x1de)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[u],'config':c}),k=this[A(0x1ca)][A(0x1be)]({'srcPath':A(0x1da),'context':i}),this[A(0x1ca)][A(0x1cd)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x1aa)](d);}});