@maka/maka-cli 4.6.1 → 4.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/bundle/obf/package.json +2 -2
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/install.js +1 -1
  73. package/bundle/obf/src/commands/jsdoc.js +1 -1
  74. package/bundle/obf/src/commands/lint.js +1 -1
  75. package/bundle/obf/src/commands/login.js +1 -1
  76. package/bundle/obf/src/commands/logout.js +1 -1
  77. package/bundle/obf/src/commands/logs.js +1 -1
  78. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  79. package/bundle/obf/src/commands/murder.js +1 -1
  80. package/bundle/obf/src/commands/proxy.js +1 -1
  81. package/bundle/obf/src/commands/reconfig.js +1 -1
  82. package/bundle/obf/src/commands/run/_index.js +1 -1
  83. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  84. package/bundle/obf/src/commands/run/run.command.js +1 -1
  85. package/bundle/obf/src/commands/set/_index.js +1 -1
  86. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/set/set.command.js +1 -1
  89. package/bundle/obf/src/commands/ssh.js +1 -1
  90. package/bundle/obf/src/commands/ssl.js +1 -1
  91. package/bundle/obf/src/commands/test.js +1 -1
  92. package/bundle/obf/src/commands/version.js +1 -1
  93. package/bundle/obf/src/error.js +1 -1
  94. package/bundle/obf/src/exec.js +1 -1
  95. package/bundle/obf/src/generator.js +1 -1
  96. package/bundle/obf/src/generators/_index.js +1 -1
  97. package/bundle/obf/src/generators/api.js +1 -1
  98. package/bundle/obf/src/generators/collection.js +1 -1
  99. package/bundle/obf/src/generators/component.js +1 -1
  100. package/bundle/obf/src/generators/config.js +1 -1
  101. package/bundle/obf/src/generators/dbc.js +1 -1
  102. package/bundle/obf/src/generators/dockerfile.js +1 -1
  103. package/bundle/obf/src/generators/hook.js +1 -1
  104. package/bundle/obf/src/generators/kit.js +1 -1
  105. package/bundle/obf/src/generators/layout.js +1 -1
  106. package/bundle/obf/src/generators/maka.gen.js +1 -1
  107. package/bundle/obf/src/generators/methods.js +1 -1
  108. package/bundle/obf/src/generators/package.js +1 -1
  109. package/bundle/obf/src/generators/page.js +1 -1
  110. package/bundle/obf/src/generators/publish.js +1 -1
  111. package/bundle/obf/src/generators/route.js +1 -1
  112. package/bundle/obf/src/generators/service.js +1 -1
  113. package/bundle/obf/src/generators/services/_index.js +1 -1
  114. package/bundle/obf/src/generators/services/openssl.js +1 -1
  115. package/bundle/obf/src/generators/services/translation.js +1 -1
  116. package/bundle/obf/src/maka.js +1 -1
  117. package/bundle/obf/src/tool.js +1 -1
  118. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  120. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  122. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  124. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  125. package/bundle/obf/src/tools/https/https.class.js +1 -1
  126. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  127. package/bundle/obf/src/tools/https/progress.class.js +1 -1
  128. package/bundle/obf/src/tools/log/log.class.js +1 -1
  129. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/options/options.class.js +1 -1
  131. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  132. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  134. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  136. package/package.json +2 -2
@@ -1 +1 @@
1
- const a96z=a96d;(function(a,b){const w=a96d,c=a();while(!![]){try{const d=-parseInt(w(0xec))/0x1*(-parseInt(w(0xfa))/0x2)+-parseInt(w(0xed))/0x3+parseInt(w(0xf5))/0x4+-parseInt(w(0xd1))/0x5+-parseInt(w(0xd8))/0x6+-parseInt(w(0xc2))/0x7+-parseInt(w(0xd2))/0x8*(-parseInt(w(0xc6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x8135e));function a96c(){const C=['notice','toString','1819865eeOiiB','8OlmPDc','search','fsi','api/publications.js','const','imports','2700894OvaGmz','apiAnswers','apollo','resolvers.','includes','Publications','publications.','rest','withPubs','pathFromApp','findGenerator','REST\x20API','checkMeteorPackage','injectIntoFile','none','mongo','\x0aimport\x20{\x20resolvers\x20as\x20','checkbox','import\x20\x27./register-','mdg:validated-method','579679MJEmby','33462stWzOM','push','api','api/api.js','withGql','rewriteDestinationPathForEngine','API\x20boundaries\x20to\x20create','TypeDefs\x20}\x20from\x20\x27','924144bQkEnS','tsx','GraphQL','invoke','/imports/api','2svdOSW','constructor','maka\x20g:api\x20Todos','maka:check','Resolvers);\x0a\x0a','error','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','rest-api.','Resolvers\x20}\x20from\x20\x27','api/typeDefs.js','.app-tests.','Verifying\x20meteor\x20package\x20requirements\x20...','engines','fixtures.','resolverList.push(','dir','import\x20{\x20typeDefs\x20as\x20','No\x20API\x20boundaries\x20selected','startup','exit','Fixtures','withMethods','resourceName','TypeDefs);\x0a','withFixtures','withRest','server','apply','template','(((.+)+)+)+$','typeDefs.','register-','\x27;\x0a','api/resolvers.js','6658862VFMBNN','RPC\x20(Methods)','test','index.','13455657hTJouR','getProjectConfig','if\x20\x5c(typeList','/graphql/typeDefs','/graphql/resolvers','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','options','withValue','-api\x27;'];a96c=function(){return C;};return a96c();}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a96d;if(c){const e=c[x(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const y=a96d;return a96a[y(0xd0)]()['search'](y(0xbd))[y(0xd0)]()[y(0xfb)](a96a)[y(0xd3)](y(0xbd));});a96a();function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xab;let f=c[d];return f;},a96d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a96e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a96z(0xef),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a96z(0x100),'validOpts':['dir'],'examples':[a96z(0xfc)],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const A=a96z;try{const c=this['fsi'][A(0xc7)](),d=[{'name':A(0xc3),'value':'withMethods'},{'name':A(0xb4),'value':A(0xb8)},{'name':A(0xdd),'value':'withPubs'}];c[A(0xac)][A(0xef)]===A(0xdf)&&d[A(0xee)]({'name':A(0xe3),'value':A(0xb9)});c[A(0xac)]['graphql']===A(0xda)&&d['push']({'name':A(0xf7),'value':A(0xf1)});const f={'type':A(0xe9),'name':A(0xd9),'message':A(0xf3),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0xcc)](f);g['length']===0x0&&(Log[A(0xff)](A(0xb1)),process[A(0xb3)](0x1)),this[A(0xd4)][A(0xcd)](c,async()=>{const B=A,h=this[B(0xd4)][B(0xe1)]({}),i=b[B(0xb6)],j=paramCase(i),k=camelCase(i),l=b[B(0xaf)]?'/'+b[B(0xaf)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0xac)]['api'],'graphql':c[B(0xac)]['graphql'],'test':c[B(0xac)][B(0xc4)],'noRename':!![],'withPubs':g[B(0xdc)](B(0xe0)),'withFixtures':g[B(0xdc)](B(0xb8)),'withMethods':g[B(0xdc)](B(0xb5)),'withRest':g[B(0xdc)]('withRest')};let n='js';c[B(0xac)]['js']===B(0xf6)&&(n='ts');(!this[B(0xd4)]['checkMeteorPackage']('maka:rest')||!this[B(0xd4)][B(0xe4)](B(0xfd))||!this[B(0xd4)][B(0xe4)]('ddp-rate-limiter')||!this[B(0xd4)][B(0xe4)](B(0xeb))||!this[B(0xd4)][B(0xe4)](B(0xe7)))&&(Log[B(0xcf)](B(0xab)),await this[B(0xd4)]['installMeteorPackage'](B(0xcb),{'cwd':h}));const o=a96e[B(0xe2)]('collection');o&&await o[B(0xf8)]([j],{'config':c,'where':B(0xba)});c['engines'][B(0xef)]===B(0xdf)&&(m[B(0xb9)]&&this[B(0xd4)][B(0xbc)]({'srcPath':B(0xf0),'destPath':this[B(0xd4)][B(0xe1)]({'pathParts':['imports',B(0xef),b['dir'],j,B(0x101)+n]}),'context':m,'config':c}));m[B(0xb5)]&&this['fsi']['template']({'srcPath':'api/methods.js','destPath':this[B(0xd4)]['pathFromApp']({'pathParts':[B(0xd7),B(0xef),b['dir'],j,'rpc-methods.'+n]}),'context':m,'config':c});m[B(0xb8)]&&this['fsi']['template']({'srcPath':'api/fixtures.js','destPath':this[B(0xd4)]['pathFromApp']({'pathParts':['imports','api',b[B(0xaf)],j,B(0xad)+n]}),'context':m,'config':c});c[B(0xac)][B(0xc4)]!==B(0xe6)&&this[B(0xd4)][B(0xbc)]({'srcPath':'api/tests.js','destPath':this['fsi'][B(0xe1)]({'pathParts':[B(0xd7),B(0xef),b[B(0xaf)],j,j+B(0x104)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0xd4)][B(0xbc)]({'srcPath':B(0xd5),'destPath':this['fsi'][B(0xe1)]({'pathParts':['imports',B(0xef),b[B(0xaf)],j,B(0xde)+n]}),'context':m,'config':c});if(c[B(0xac)]['graphql']===B(0xda)){if(g['includes'](B(0xf1))){const q=this[B(0xd4)]['pathFromApp']({'pathParts':[B(0xd7),'startup',B(0xba),B(0xc5)+c[B(0xac)]['js']]}),r=this['fsi'][B(0xf2)]({'pathParts':[q],'config':c}),s=this['fsi'][B(0xe1)]({'pathParts':[B(0xd7),B(0xef),b[B(0xaf)],j,'graphql',B(0xbe)+n]}),t='/imports/api'+l+j+B(0xc9);this['fsi'][B(0xbc)]({'srcPath':B(0x103),'destPath':s,'context':m,'config':c}),this[B(0xd4)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0xb0)+k+B(0xf4)+t+B(0xc0)}),this[B(0xd4)][B(0xe5)]({'filePath':r,'content':'typeList.push('+k+B(0xb7),'begin':B(0xd6),'end':'if\x20\x5c(typeList'});const u=this[B(0xd4)][B(0xe1)]({'pathParts':[B(0xd7),B(0xef),b[B(0xaf)],j,'graphql',B(0xdb)+n]}),v=B(0xf9)+l+j+B(0xca);this[B(0xd4)][B(0xbc)]({'srcPath':B(0xc1),'destPath':u,'context':m,'config':c}),this['fsi']['injectAtBeginningOfFile']({'filePath':r,'content':B(0xe8)+k+B(0x102)+v+'\x27;'}),this[B(0xd4)][B(0xe5)]({'filePath':r,'content':B(0xae)+k+B(0xfe),'begin':'const','end':B(0xc8)});}}this[B(0xd4)][B(0xbc)]({'srcPath':'api/register-api.js','destPath':this[B(0xd4)]['pathFromApp']({'pathParts':['imports',B(0xb2),B(0xba),B(0xbf)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0xd4)][B(0xe1)]({'pathParts':[B(0xd7),B(0xb2),B(0xba),B(0xc5)+c[B(0xac)]['js']]});this[B(0xd4)]['injectAtEndOfFile']({'filePath':p,'content':B(0xea)+j+B(0xce)});});}catch(h){console[A(0xff)](h),process[A(0xb3)](0x0);}});
1
+ const a96y=a96d;function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x113;let f=c[d];return f;},a96d(a,b);}(function(a,b){const w=a96d,c=a();while(!![]){try{const d=parseInt(w(0x14d))/0x1+parseInt(w(0x12f))/0x2*(-parseInt(w(0x166))/0x3)+-parseInt(w(0x120))/0x4*(parseInt(w(0x124))/0x5)+-parseInt(w(0x137))/0x6*(parseInt(w(0x117))/0x7)+parseInt(w(0x148))/0x8*(-parseInt(w(0x15b))/0x9)+-parseInt(w(0x15f))/0xa*(-parseInt(w(0x139))/0xb)+-parseInt(w(0x14b))/0xc*(-parseInt(w(0x128))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xf089c));const a96b=(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;};}()),a96a=a96b(this,function(){const x=a96d;return a96a[x(0x143)]()[x(0x123)](x(0x13b))['toString']()[x(0x155)](a96a)[x(0x123)](x(0x13b));});a96a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a96c(){const B=['\x0aimport\x20{\x20resolvers\x20as\x20','search','40SfGJoK','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','rest','index.','62259587VSXWrN','installMeteorPackage','checkbox','rest-api.','if\x20\x5c(typeList','GraphQL','register-','4zsrQMI','.app-tests.','resourceName','notice','api/publications.js','-api.','injectIntoFile','withPubs','4072008vpFBqW','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','21285xCccYn','mongo','(((.+)+)+)+$','import\x20\x27./register-','startup','api/tests.js','length','/graphql/typeDefs','-api\x27;','typeList.push(','toString','rewriteDestinationPathForEngine','imports','const','resolverList.push(','169752rrRzNy','error','api/typeDefs.js','12cgbjwP','withMethods','166739wdZOzY','fsi','none','injectAtBeginningOfFile','getProjectConfig','rpc-methods.','typeDefs.','injectAtEndOfFile','constructor','withRest','Publications','create','engines','apiAnswers','225nMKPri','exit','import\x20{\x20typeDefs\x20as\x20','api/resolvers.js','5450KpqobH','invoke','checkMeteorPackage','pathFromApp','withFixtures','server','template','2785245tckBcB','collection','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','apollo','RPC\x20(Methods)','api','withValue','tsx','maka:rest','maka\x20g:api\x20Todos','resolvers.','includes','maka:check','dir','7mEYKId','/imports/api','test','graphql','TypeDefs\x20}\x20from\x20\x27','Resolvers);\x0a\x0a','withGql','REST\x20API','api/fixtures.js','979648sioNPR','push'];a96c=function(){return B;};return a96c();}import{Actions}from'../tools/actions/actions.class.js';import a96e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a96y(0x158)]({'name':'api','aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a96y(0x168),'validOpts':[a96y(0x116)],'examples':[a96y(0x16f)],'description':a96y(0x138)},async function(a,b){const z=a96y;try{const c=this[z(0x14e)][z(0x151)](),d=[{'name':z(0x16a),'value':z(0x14c)},{'name':'Fixtures','value':z(0x163)},{'name':z(0x157),'value':z(0x136)}];c['engines'][z(0x16b)]===z(0x126)&&d[z(0x121)]({'name':z(0x11e),'value':z(0x156)});c[z(0x159)]['graphql']===z(0x169)&&d[z(0x121)]({'name':z(0x12d),'value':z(0x11d)});const f={'type':z(0x12a),'name':z(0x15a),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[z(0x13f)]===0x0&&(Log[z(0x149)]('No\x20API\x20boundaries\x20selected'),process['exit'](0x1)),this[z(0x14e)][z(0x16c)](c,async()=>{const A=z,h=this[A(0x14e)][A(0x162)]({}),i=b[A(0x131)],j=paramCase(i),k=camelCase(i),l=b[A(0x116)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x159)][A(0x16b)],'graphql':c['engines'][A(0x11a)],'test':c[A(0x159)][A(0x119)],'noRename':!![],'withPubs':g['includes']('withPubs'),'withFixtures':g[A(0x114)]('withFixtures'),'withMethods':g[A(0x114)]('withMethods'),'withRest':g[A(0x114)](A(0x156))};let n='js';c[A(0x159)]['js']===A(0x16d)&&(n='ts');(!this['fsi'][A(0x161)](A(0x16e))||!this[A(0x14e)]['checkMeteorPackage'](A(0x115))||!this[A(0x14e)]['checkMeteorPackage']('ddp-rate-limiter')||!this[A(0x14e)][A(0x161)]('mdg:validated-method')||!this['fsi']['checkMeteorPackage'](A(0x13a)))&&(Log[A(0x132)]('Verifying\x20meteor\x20package\x20requirements\x20...'),await this[A(0x14e)][A(0x129)](A(0x125),{'cwd':h}));const o=a96e['findGenerator'](A(0x167));o&&await o[A(0x160)]([j],{'config':c,'where':A(0x164)});c['engines']['api']===A(0x126)&&(m[A(0x156)]&&this[A(0x14e)][A(0x165)]({'srcPath':'api/api.js','destPath':this[A(0x14e)]['pathFromApp']({'pathParts':[A(0x145),A(0x16b),b[A(0x116)],j,A(0x12b)+n]}),'context':m,'config':c}));m['withMethods']&&this[A(0x14e)][A(0x165)]({'srcPath':'api/methods.js','destPath':this['fsi'][A(0x162)]({'pathParts':[A(0x145),A(0x16b),b[A(0x116)],j,A(0x152)+n]}),'context':m,'config':c});m[A(0x163)]&&this[A(0x14e)][A(0x165)]({'srcPath':A(0x11f),'destPath':this[A(0x14e)][A(0x162)]({'pathParts':['imports',A(0x16b),b[A(0x116)],j,'fixtures.'+n]}),'context':m,'config':c});c[A(0x159)][A(0x119)]!==A(0x14f)&&this['fsi'][A(0x165)]({'srcPath':A(0x13e),'destPath':this[A(0x14e)][A(0x162)]({'pathParts':[A(0x145),A(0x16b),b[A(0x116)],j,j+A(0x130)+n]}),'context':m,'config':c});m[A(0x136)]&&this[A(0x14e)][A(0x165)]({'srcPath':A(0x133),'destPath':this[A(0x14e)][A(0x162)]({'pathParts':[A(0x145),A(0x16b),b[A(0x116)],j,'publications.'+n]}),'context':m,'config':c});if(c[A(0x159)][A(0x11a)]===A(0x169)){if(g[A(0x114)](A(0x11d))){const q=this[A(0x14e)]['pathFromApp']({'pathParts':[A(0x145),A(0x13d),A(0x164),A(0x127)+c[A(0x159)]['js']]}),r=this[A(0x14e)][A(0x144)]({'pathParts':[q],'config':c}),s=this[A(0x14e)][A(0x162)]({'pathParts':[A(0x145),'api',b[A(0x116)],j,'graphql',A(0x153)+n]}),t=A(0x118)+l+j+A(0x140);this[A(0x14e)][A(0x165)]({'srcPath':A(0x14a),'destPath':s,'context':m,'config':c}),this[A(0x14e)][A(0x150)]({'filePath':r,'content':A(0x15d)+k+A(0x11b)+t+'\x27;\x0a'}),this[A(0x14e)]['injectIntoFile']({'filePath':r,'content':A(0x142)+k+'TypeDefs);\x0a','begin':A(0x146),'end':A(0x12c)});const u=this[A(0x14e)]['pathFromApp']({'pathParts':[A(0x145),A(0x16b),b[A(0x116)],j,A(0x11a),A(0x113)+n]}),v=A(0x118)+l+j+'/graphql/resolvers';this[A(0x14e)][A(0x165)]({'srcPath':A(0x15e),'destPath':u,'context':m,'config':c}),this[A(0x14e)]['injectAtBeginningOfFile']({'filePath':r,'content':A(0x122)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[A(0x14e)][A(0x135)]({'filePath':r,'content':A(0x147)+k+A(0x11c),'begin':A(0x146),'end':'if\x20\x5c(typeList'});}}this[A(0x14e)][A(0x165)]({'srcPath':'api/register-api.js','destPath':this['fsi'][A(0x162)]({'pathParts':[A(0x145),'startup',A(0x164),A(0x12e)+j+A(0x134)+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0x14e)][A(0x162)]({'pathParts':[A(0x145),A(0x13d),A(0x164),A(0x127)+c[A(0x159)]['js']]});this['fsi'][A(0x154)]({'filePath':p,'content':A(0x13c)+j+A(0x141)});});}catch(h){console['error'](h),process[z(0x15c)](0x0);}});
@@ -1 +1 @@
1
- const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x8d))/0x1+-parseInt(k(0x99))/0x2+parseInt(k(0x94))/0x3*(-parseInt(k(0x8f))/0x4)+-parseInt(k(0x89))/0x5+parseInt(k(0x93))/0x6+-parseInt(k(0x97))/0x7+parseInt(k(0x9b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xb16be));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x92)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0xa2)]()['search'](m(0xa9))[m(0xa2)]()[m(0x9d)](a97a)[m(0xa6)](m(0xa9));});a97a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a97c(){const q=['tsx','mongo','template','collection','notice','dir','resourceName','injectAtEndOfFile','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','1408805oGMfYJ','maka:check','maka\x20g:collection\x20todos','startup','1408260spaGki','where','4SjSzvX','collections','imports','apply','322092YjBgKb','2364651HIvETR','checkMeteorPackage','none','896497qNFKND','collection/collection.js','1790072gWGQJz','fsi','10862888iytHbk','withValue','constructor','appPathPrefix','create','col','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','toString','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','import\x20\x27./collections','index.','search','engines','pathFromApp','(((.+)+)+)+$','installMeteorPackage','\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'];a97c=function(){return q;};return a97c();}function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x87;let f=c[d];return f;},a97d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a97n(0x9f)]({'name':a97n(0xaf),'aliases':[a97n(0xa0)],'usage':a97n(0x88),'checkWhere':!![],'shortDesc':a97n(0xa3),'validOpts':[a97n(0xb1),a97n(0x8e)],'description':a97n(0xab),'examples':[a97n(0x8b)]},async function(a,b){const o=a97n;try{const c=this[o(0x9a)]['pathFromApp']({}),d=this[o(0x9a)]['getProjectConfig']();this[o(0x9a)][o(0x9c)](d,async()=>{const p=o,f=paramCase(b[p(0xb2)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0xb2)]),'fileName':f,'where':b[p(0x8e)],'test':d[p(0xa7)]['test'],'noRename':!![]};let h='js';d[p(0xa7)]['js']===p(0xac)&&(h='ts');!this[p(0x9a)][p(0x95)](p(0xad))&&(Log[p(0xb0)](p(0xa1)),await this[p(0x9a)][p(0xaa)]('mongo',{'cwd':c}));!this['fsi'][p(0x95)](p(0x8a))&&(Log[p(0xb0)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[p(0x9a)][p(0xaa)](p(0x8a),{'cwd':c}));this[p(0x9a)][p(0xae)]({'srcPath':p(0x98),'destPath':this[p(0x9a)]['pathFromApp']({'pathParts':['imports',p(0x8c),b[p(0x9e)],p(0x90),b[p(0xb1)],f+'.'+h]}),'context':g,'config':d});d['engines']['test']!==p(0x96)&&this[p(0x9a)]['template']({'srcPath':'collection/tests.js','destPath':this[p(0x9a)][p(0xa8)]({'pathParts':[p(0x91),p(0x8c),b[p(0x9e)],p(0x90),b[p(0xb1)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0xb1)]+'/':'/',j=this[p(0x9a)][p(0xa8)]({'pathParts':['imports','startup',b['appPathPrefix'],p(0xa5)+d[p(0xa7)]['js']]});this[p(0x9a)][p(0x87)]({'filePath':j,'content':p(0xa4)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
1
+ function a97c(){const q=['template','test','injectAtEndOfFile','1901879wMsuLW','tsx','where','\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','.app-tests.','5RkJbaF','1141132HEHyQG','appPathPrefix','9748380UYriiQ','3WGVQDY','installMeteorPackage','import\x20\x27./collections','collection','apply','maka:check','search','getProjectConfig','collections','collection/collection.js','maka\x20g:collection\x20todos','pathFromApp','fsi','error','checkMeteorPackage','engines','dir','(((.+)+)+)+$','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','resourceName','imports','12905376ZQItKG','2455476nvccAA','col','startup','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','16342947WagLyW','notice','1243882kUVhgz','collection/tests.js','constructor'];a97c=function(){return q;};return a97c();}const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x203))/0x1+parseInt(k(0x1e4))/0x2+-parseInt(k(0x1e7))/0x3*(-parseInt(k(0x1fd))/0x4)+-parseInt(k(0x1e3))/0x5*(parseInt(k(0x1e6))/0x6)+parseInt(k(0x1de))/0x7+parseInt(k(0x1fc))/0x8+-parseInt(k(0x201))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xd507d));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x1eb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a['toString']()[m(0x1ed)]('(((.+)+)+)+$')['toString']()[m(0x1da)](a97a)['search'](m(0x1f8));});a97a();function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1d9;let f=c[d];return f;},a97d(a,b);}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a97n(0x1ea),'aliases':[a97n(0x1fe)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a97n(0x200),'validOpts':['dir',a97n(0x1e0)],'description':a97n(0x1e1),'examples':[a97n(0x1f1)]},async function(a,b){const o=a97n;try{const c=this['fsi']['pathFromApp']({}),d=this[o(0x1f3)][o(0x1ee)]();this[o(0x1f3)]['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0x1fa)]),g={'name':pascalCase(b[p(0x1fa)]),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x1e0)],'test':d[p(0x1f6)][p(0x1dc)],'noRename':!![]};let h='js';d[p(0x1f6)]['js']===p(0x1df)&&(h='ts');!this[p(0x1f3)][p(0x1f5)]('mongo')&&(Log[p(0x202)](p(0x1f9)),await this['fsi'][p(0x1e8)]('mongo',{'cwd':c}));!this[p(0x1f3)][p(0x1f5)](p(0x1ec))&&(Log[p(0x202)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this['fsi']['installMeteorPackage'](p(0x1ec),{'cwd':c}));this[p(0x1f3)][p(0x1db)]({'srcPath':p(0x1f0),'destPath':this[p(0x1f3)][p(0x1f2)]({'pathParts':[p(0x1fb),p(0x1ff),b[p(0x1e5)],p(0x1ef),b[p(0x1f7)],f+'.'+h]}),'context':g,'config':d});d[p(0x1f6)][p(0x1dc)]!=='none'&&this[p(0x1f3)][p(0x1db)]({'srcPath':p(0x1d9),'destPath':this[p(0x1f3)][p(0x1f2)]({'pathParts':[p(0x1fb),p(0x1ff),b['appPathPrefix'],p(0x1ef),b[p(0x1f7)],f+p(0x1e2)+h]}),'context':g,'config':d});const i=b[p(0x1f7)]?'/'+b[p(0x1f7)]+'/':'/',j=this[p(0x1f3)][p(0x1f2)]({'pathParts':['imports',p(0x1ff),b['appPathPrefix'],'index.'+d['engines']['js']]});this[p(0x1f3)][p(0x1dd)]({'filePath':j,'content':p(0x1e9)+i+f+'\x27;'});});}catch(f){Log[o(0x1f4)](f);}});
@@ -1 +1 @@
1
- const a98p=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x1c2))/0x1*(-parseInt(n(0x1d3))/0x2)+-parseInt(n(0x1c3))/0x3*(parseInt(n(0x207))/0x4)+parseInt(n(0x1e6))/0x5*(-parseInt(n(0x1db))/0x6)+-parseInt(n(0x206))/0x7*(parseInt(n(0x1d0))/0x8)+parseInt(n(0x1d6))/0x9+-parseInt(n(0x200))/0xa+parseInt(n(0x1eb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xabfd2));function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1bd;let f=c[d];return f;},a98d(a,b);}const a98b=(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;};}()),a98a=a98b(this,function(){const o=a98d;return a98a[o(0x204)]()[o(0x1cc)](o(0x1ce))[o(0x204)]()[o(0x1bf)](a98a)['search']('(((.+)+)+)+$');});a98a();import a98e from'path';function a98c(){const s=['templates.js','fsi','search','resourceName','(((.+)+)+)+$','features','849672aVdQtN','component','string','10AjqYBP','root','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','6265287bsuMGA','injectAtBeginningOfFile','pathFromProject','ramda','test','740502dXGMAo','graphql','assign','.js','ssr','className','pages','\x20}\x20from\x20\x27','lib','rewriteDestinationPathForEngine','css','10ICDPcB','reflux','component/component.js','theme','relative','14962607KxCRak','api','client','findAppDirectory','injectAtEndOfFile','/imports/ui/components','none','/imports/ui/','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','.css','\x20};\x0a','\x27;\x0a','fileName','test/test.js','engines','import\x20{\x20','setTemplate','hooks','dir','baseDir','57410STrEzJ','layouts','template','create','toString','withValue','49FowtzN','18796jHoqTN','import\x20\x27','.tests.js','imports','components','checkNpmPackage','constructor','pathFromApp','import\x20\x27./','144039zMtsty','687dzmawo','error','react','warn','startup','true','comp'];a98c=function(){return s;};return a98c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a98p(0x1c9)];Generator[a98p(0x203)]({'name':a98p(0x1d1),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a98p(0x1d5),'validOpts':[{'name':a98p(0x1ff),'values':[a98p(0x1fd),a98p(0x1bd),a98p(0x1e1),a98p(0x201)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const q=a98p;try{const c=this[q(0x1cb)][q(0x1ee)](),d=b[q(0x1ff)]?q(0x1f2)+b[q(0x1ff)]:q(0x1f0),f=this[q(0x1cb)][q(0x1c0)]({'pathParts':[d,b[q(0x1fe)],paramCase(b[q(0x1cd)]),paramCase(b[q(0x1cd)])]}),g=await this['fsi']['getProjectConfig']();this[q(0x1cb)][q(0x205)](g,async()=>{const r=q;typeof g[r(0x202)][r(0x1da)]===r(0x1d2)&&(g['template']['test']=g[r(0x202)][r(0x1da)]===r(0x1c8)?!![]:![],this[r(0x1cb)]['setTemplate'](r(0x1da),g['template'][r(0x1da)]));typeof g['template'][r(0x1e5)]===r(0x1d2)&&(g[r(0x202)]['css']=g[r(0x202)][r(0x1e5)]===r(0x1c8)?!![]:![],this[r(0x1cb)]['setTemplate'](r(0x1e5),g['template'][r(0x1e5)]));typeof g['template']['js']===r(0x1d2)&&(g[r(0x202)]['js']=g[r(0x202)]['js']===r(0x1c8)?!![]:![],this[r(0x1cb)][r(0x1fc)]('js',g['template']['js']));!g[r(0x1cf)]&&(g[r(0x1cf)]={});!b[r(0x1d4)]&&!this['fsi'][r(0x1be)](r(0x1d9))&&(Log[r(0x1c6)](r(0x1f4)),await this[r(0x1cb)]['installNpmPackage'](r(0x1d9),{'cwd':c}));if(!b['root']&&!this['fsi']['checkNpmPackage'](r(0x1c5))){Log[r(0x1c4)](r(0x1f3));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a98e[r(0x1ea)](this[r(0x1cb)][r(0x1d8)]({}),f),'cssCaseName':paramCase(b[r(0x1cd)]),'className':pascalCase(b[r(0x1cd)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x1cd)]),'graphql':g[r(0x1fa)][r(0x1dc)],'features':g[r(0x1cf)],'client':g[r(0x1fa)][r(0x1ed)],'api':g['engines'][r(0x1ec)],'ssr':g['engines'][r(0x1df)],'test':g[r(0x1fa)][r(0x1da)],'theme':g['engines'][r(0x1e9)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0x1cf)]['withTranslations']};this[r(0x1cb)]['template']({'srcPath':r(0x1e8),'destPath':f+r(0x1de),'context':h,'framework':'react','config':g});g[r(0x1fa)][r(0x1da)]!==r(0x1f1)&&this[r(0x1cb)][r(0x202)]({'srcPath':r(0x1f9),'destPath':f+r(0x209),'context':h,'framework':'react','config':g});g[r(0x202)]['css']&&(this[r(0x1cb)][r(0x202)]({'srcPath':'template/template.css','destPath':f+r(0x1f5),'context':Object[r(0x1dd)]({},h,{'className':paramCase(b[r(0x1cd)])}),'config':g}),this[r(0x1cb)][r(0x1d7)]({'filePath':f+'.'+g[r(0x1fa)]['js'],'content':r(0x1c1)+h['cssCaseName']+'.'+g['engines']['css']+'\x27;'}));const i=b[r(0x1fe)]?'/'+b[r(0x1fe)]+'/':'/',j=''+d+i+h[r(0x1f8)]+'/'+h[r(0x1f8)];let k;if(g['engines'][r(0x1df)]===r(0x1c8)){const l=this['fsi']['pathFromApp']({'pathParts':[r(0x20a),r(0x1c7),r(0x1e3),r(0x1ca)]});k=this[r(0x1cb)][r(0x1e4)]({'pathParts':[l],'config':g});}else{const m=this[r(0x1cb)][r(0x1c0)]({'pathParts':[r(0x20a),r(0x1c7),r(0x1ed),r(0x1ca)]});k=this[r(0x1cb)][r(0x1e4)]({'pathParts':[m],'config':g});}g[r(0x1fa)][r(0x1ed)]===r(0x1c5)||g[r(0x1fa)]['client']===r(0x1e7)?(g[r(0x1fa)]['js']==='tsx'?this[r(0x1cb)][r(0x1d7)]({'filePath':k,'content':'import\x20{\x20'+h[r(0x1e0)]+r(0x1e2)+j+r(0x1f7)}):this[r(0x1cb)]['injectAtBeginningOfFile']({'filePath':k,'content':r(0x1fb)+h[r(0x1e0)]+r(0x1e2)+j+'.'+g[r(0x1fa)]['js']+'\x27;\x0a'}),this['fsi']['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h['className']+r(0x1f6)})):this[r(0x1cb)][r(0x1ef)]({'filePath':k,'content':r(0x208)+j+'.'+g['engines']['js']+r(0x1f7)});});}catch(h){Log['error'](h);}});
1
+ const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0xb6))/0x1+parseInt(n(0xe1))/0x2*(-parseInt(n(0xc5))/0x3)+-parseInt(n(0xee))/0x4+parseInt(n(0xc2))/0x5+-parseInt(n(0xbc))/0x6*(-parseInt(n(0xe5))/0x7)+parseInt(n(0xf0))/0x8+parseInt(n(0xbb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x2699a));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0xc6)]()['search']('(((.+)+)+)+$')[p(0xc6)]()['constructor'](a98a)[p(0xb4)](p(0xda));});a98a();import a98e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xb1;let f=c[d];return f;},a98d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator[a98q(0xba)]({'name':'component','aliases':aliases,'usage':a98q(0xeb),'shortDesc':a98q(0xf8),'validOpts':[{'name':a98q(0xdb),'values':['hooks',a98q(0xf3),'pages',a98q(0xf5)]}],'examples':[a98q(0xd2)]},async function(a,b){const r=a98q;try{const c=this[r(0xf1)][r(0xed)](),d=b[r(0xdb)]?r(0xb5)+b['baseDir']:r(0xe2),f=this[r(0xf1)][r(0xc8)]({'pathParts':[d,b[r(0xcf)],paramCase(b[r(0xf9)]),paramCase(b[r(0xf9)])]}),g=await this[r(0xf1)][r(0xb9)]();this['fsi'][r(0xe0)](g,async()=>{const s=r;typeof g[s(0xc9)]['test']===s(0xea)&&(g[s(0xc9)][s(0xbe)]=g[s(0xc9)][s(0xbe)]===s(0xd4)?!![]:![],this[s(0xf1)]['setTemplate'](s(0xbe),g[s(0xc9)]['test']));typeof g[s(0xc9)][s(0xe4)]===s(0xea)&&(g[s(0xc9)][s(0xe4)]=g['template']['css']===s(0xd4)?!![]:![],this['fsi'][s(0xdf)](s(0xe4),g[s(0xc9)]['css']));typeof g[s(0xc9)]['js']===s(0xea)&&(g[s(0xc9)]['js']=g['template']['js']===s(0xd4)?!![]:![],this[s(0xf1)][s(0xdf)]('js',g[s(0xc9)]['js']));!g[s(0xd1)]&&(g[s(0xd1)]={});!b[s(0xdc)]&&!this[s(0xf1)]['checkNpmPackage'](s(0xf6))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0xf1)]['installNpmPackage'](s(0xf6),{'cwd':c}));if(!b[s(0xdc)]&&!this[s(0xf1)][s(0xd6)](s(0xb2))){Log['error'](s(0xef));return;}const h={'name':pascalCase(b[s(0xf9)]),'myPath':a98e[s(0xf4)](this[s(0xf1)][s(0xbd)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[s(0xf9)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[s(0xf9)]),'graphql':g[s(0xc1)][s(0xe3)],'features':g[s(0xd1)],'client':g[s(0xc1)][s(0xbf)],'api':g['engines'][s(0xce)],'ssr':g[s(0xc1)][s(0xb8)],'test':g[s(0xc1)]['test'],'theme':g[s(0xc1)][s(0xec)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0xd1)][s(0xe8)]};this[s(0xf1)][s(0xc9)]({'srcPath':s(0xe9),'destPath':f+'.js','context':h,'framework':s(0xb2),'config':g});g[s(0xc1)][s(0xbe)]!==s(0xf2)&&this[s(0xf1)]['template']({'srcPath':s(0xb7),'destPath':f+s(0xe6),'context':h,'framework':s(0xb2),'config':g});g[s(0xc9)][s(0xe4)]&&(this[s(0xf1)][s(0xc9)]({'srcPath':s(0xc4),'destPath':f+'.css','context':Object[s(0xb1)]({},h,{'className':paramCase(b[s(0xf9)])}),'config':g}),this[s(0xf1)][s(0xfa)]({'filePath':f+'.'+g[s(0xc1)]['js'],'content':s(0xdd)+h['cssCaseName']+'.'+g[s(0xc1)][s(0xe4)]+'\x27;'}));const i=b[s(0xcf)]?'/'+b[s(0xcf)]+'/':'/',j=''+d+i+h[s(0xd7)]+'/'+h['fileName'];let k;if(g[s(0xc1)][s(0xb8)]===s(0xd4)){const l=this[s(0xf1)]['pathFromApp']({'pathParts':['imports',s(0xcb),'lib',s(0xcd)]});k=this[s(0xf1)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this['fsi']['pathFromApp']({'pathParts':[s(0xd5),s(0xcb),s(0xbf),s(0xcd)]});k=this[s(0xf1)][s(0xb3)]({'pathParts':[m],'config':g});}g[s(0xc1)][s(0xbf)]===s(0xb2)||g[s(0xc1)]['client']===s(0xcc)?(g[s(0xc1)]['js']===s(0xca)?this[s(0xf1)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[s(0xc3)]+s(0xd3)+j+s(0xc7)}):this[s(0xf1)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0xd0)+h['className']+s(0xd3)+j+'.'+g[s(0xc1)]['js']+'\x27;\x0a'}),this['fsi'][s(0xe7)]({'filePath':k,'content':s(0xc0)+h[s(0xc3)]+s(0xf7)})):this[s(0xf1)][s(0xe7)]({'filePath':k,'content':s(0xde)+j+'.'+g[s(0xc1)]['js']+s(0xc7)});});}catch(h){Log[r(0xd9)](h);}});function a98c(){const t=['engines','737590jgTlZc','className','template/template.css','116337ALmMOx','toString','\x27;\x0a','pathFromApp','template','tsx','startup','reflux','templates.js','api','dir','import\x20{\x20','features','maka\x20g:comp\x20todos/todos-item','\x20}\x20from\x20\x27','true','imports','checkNpmPackage','fileName','apply','error','(((.+)+)+)+$','baseDir','root','import\x20\x27./','import\x20\x27','setTemplate','withValue','14DKYDqZ','/imports/ui/components','graphql','css','8414PbLwbF','.tests.js','injectAtEndOfFile','withTranslations','component/component.js','string','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','theme','findAppDirectory','1157072aSjTMS','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','2426856SKpcei','fsi','none','components','relative','layouts','ramda','\x20};\x0a','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','resourceName','injectAtBeginningOfFile','assign','react','rewriteDestinationPathForEngine','search','/imports/ui/','156764gfhLne','test/test.js','ssr','getProjectConfig','create','1236942MOOQHl','1434hgGqMN','pathFromProject','test','client','export\x20{\x20'];a98c=function(){return t;};return a98c();}
@@ -1 +1 @@
1
- function a99c(){const n=['getProjectConfig','toString','11280267wwjjDd','appName','2568555UrGSYD','isDocker','56UwyZAM','592sfnrFW','3366704Eygekw','422wmslJx','72355PnAKEH','development','ubuntu','config','config/process.env','maka\x20g:config\x20production','(((.+)+)+)+$','resourceName','fsi','prod','apply','52914irzJKO','search','constructor','938DreYuu','production','withValue','template','8454770LMiWVi','config/settings.json','pathFromProject'];a99c=function(){return n;};return a99c();}const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x1dd))/0x1*(parseInt(h(0x1db))/0x2)+parseInt(h(0x1d8))/0x3+-parseInt(h(0x1da))/0x4*(-parseInt(h(0x1de))/0x5)+parseInt(h(0x1ca))/0x6*(parseInt(h(0x1cd))/0x7)+parseInt(h(0x1dc))/0x8+-parseInt(h(0x1d6))/0x9+-parseInt(h(0x1d1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xa7d4b));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a['toString']()['search'](j(0x1e4))[j(0x1d5)]()[j(0x1cc)](a99a)[j(0x1cb)](j(0x1e4));});a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a99d(a,b);}Generator['create']({'name':a99k(0x1e1),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a99k(0x1d9)],'examples':[a99k(0x1e3)]},function(a,b){const l=a99k,c=this['fsi'][l(0x1d4)]();this[l(0x1e6)][l(0x1cf)](c,async()=>{const m=l,d={'app':c[m(0x1d7)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x1e5)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x1e5)]),'userName':m(0x1e0),'isDocker':b[m(0x1d9)]};let e=b[m(0x1e5)];if(e==='dev')e=m(0x1df);else e===m(0x1e7)&&(e=m(0x1ce));const f=this[m(0x1e6)][m(0x1d3)]({'pathParts':['config',e,'settings.json']});this[m(0x1e6)]['template']({'srcPath':m(0x1d2),'destPath':f,'context':d,'config':c});if(!b[m(0x1d9)]){const g=this[m(0x1e6)][m(0x1d3)]({'pathParts':[m(0x1e1),e,'process.env']});this[m(0x1e6)][m(0x1d0)]({'srcPath':m(0x1e2),'destPath':g,'context':d,'config':c});}});});
1
+ function a99c(){const n=['dev','20839caJgMy','resourceName','toString','search','production','22grldDB','getProjectConfig','maka\x20g:config\x20production','562485fVGGXE','appName','3671390HsJgLy','development','fsi','constructor','config/settings.json','isDocker','apply','20289kleIVf','config/process.env','9073377IFWIVm','pathFromProject','config','(((.+)+)+)+$','164tiYxFg','11674224kwfONv','template','create','settings.json','withValue','3806630bRceAr','930apStHt','4NYtwWT'];a99c=function(){return n;};return a99c();}const a99k=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x116;let f=c[d];return f;},a99d(a,b);}(function(a,b){const h=a99d,c=a();while(!![]){try{const d=-parseInt(h(0x127))/0x1+parseInt(h(0x136))/0x2*(parseInt(h(0x130))/0x3)+parseInt(h(0x11d))/0x4*(parseInt(h(0x11b))/0x5)+-parseInt(h(0x11c))/0x6*(-parseInt(h(0x11f))/0x7)+parseInt(h(0x116))/0x8+-parseInt(h(0x132))/0x9+-parseInt(h(0x129))/0xa*(parseInt(h(0x124))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xe3769));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a[j(0x121)]()[j(0x122)](j(0x135))['toString']()[j(0x12c)](a99a)[j(0x122)](j(0x135));});a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99k(0x118)]({'name':a99k(0x134),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a99k(0x12e)],'examples':[a99k(0x126)]},function(a,b){const l=a99k,c=this['fsi'][l(0x125)]();this[l(0x12b)][l(0x11a)](c,async()=>{const m=l,d={'app':c[m(0x128)],'appFileCase':paramCase(c[m(0x128)]),'name':pascalCase(b[m(0x120)]),'fileName':paramCase(b[m(0x120)]),'camelCase':camelCase(b[m(0x120)]),'userName':'ubuntu','isDocker':b[m(0x12e)]};let e=b[m(0x120)];if(e===m(0x11e))e=m(0x12a);else e==='prod'&&(e=m(0x123));const f=this[m(0x12b)][m(0x133)]({'pathParts':[m(0x134),e,m(0x119)]});this[m(0x12b)][m(0x117)]({'srcPath':m(0x12d),'destPath':f,'context':d,'config':c});if(!b[m(0x12e)]){const g=this[m(0x12b)][m(0x133)]({'pathParts':[m(0x134),e,'process.env']});this[m(0x12b)][m(0x117)]({'srcPath':m(0x131),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x70;let f=c[d];return f;},a100d(a,b);}const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0x8e))/0x1*(-parseInt(j(0x89))/0x2)+parseInt(j(0x97))/0x3+parseInt(j(0x9c))/0x4+parseInt(j(0x72))/0x5+-parseInt(j(0x82))/0x6*(-parseInt(j(0x7c))/0x7)+parseInt(j(0x9b))/0x8+-parseInt(j(0x7f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xea526));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a['toString']()['search'](l(0x70))['toString']()['constructor'](a100a)[l(0x7e)](l(0x70));});a100a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a100c(){const p=['-dbc\x27;','warn','dbc/register-dbc.js','42zfSBKL','mssql','injectAtEndOfFile','type','better-sqlite3','dir','conn.','imports','tsx','2479485IZEPWi','startup','dbc/conn.js','fsi','3946056ZHLfIM','7090556OJSuhS','(((.+)+)+)+$','pathFromApp','8467505unwNFq','server','installNpmPackage','resourceName','maka\x20g:dbc\x20geoserver\x20--type=pgsql','error','-dbc.','pgsql','maka\x20g:dbc\x20todos\x20--type=sqlite','checkNpmPackage','7EvtxFg','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','search','38468961eHDqwd','dbc','apply','11199102FJXKHm','import\x20\x27./register-','getProjectConfig','template','sqlite','withValue','create','67538JJTLJA','config.'];a100c=function(){return p;};return a100c();}import{Log}from'../tools/log/log.class.js';Generator[a100m(0x88)]({'name':a100m(0x80),'usage':a100m(0x7d),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a100m(0x93)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100m(0x91),'values':[a100m(0x79),a100m(0x8f),a100m(0x86)]}],'examples':[a100m(0x76),'maka\x20g:dbc\x20azure\x20--type=mssql',a100m(0x7a)]},async function(a,b){const n=a100m;try{const c=await this[n(0x9a)][n(0x84)](),d=this['fsi'][n(0x71)]({}),f=paramCase(b[n(0x75)]),g={'name':pascalCase(b[n(0x75)]),'fileName':paramCase(b[n(0x75)]),'camelCase':camelCase(b[n(0x75)]),'type':b[n(0x91)],'engine':c['engines']['js'],'noRename':!![]};this[n(0x9a)][n(0x87)](c,async()=>{const o=n;let h='js';c['engines']['js']===o(0x96)&&(h='ts');b[o(0x91)]===o(0x79)&&!this[o(0x9a)][o(0x7b)]('pg')&&(Log['warn']('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][o(0x74)]('pg',{'cwd':d}));b[o(0x91)]===o(0x8f)&&!this[o(0x9a)][o(0x7b)](o(0x8f))&&(Log[o(0x8c)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this['fsi'][o(0x74)]('mssql',{'cwd':d}));b[o(0x91)]==='sqlite'&&!this[o(0x9a)][o(0x7b)](o(0x92))&&(Log['warn']('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[o(0x9a)][o(0x74)]('better-sqlite3',{'cwd':d}));this[o(0x9a)][o(0x85)]({'srcPath':'dbc/config.js','destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x95),o(0x98),o(0x73),o(0x80),b['dir'],f,o(0x8a)+h]}),'context':g,'config':c}),this[o(0x9a)][o(0x85)]({'srcPath':o(0x99),'destPath':this[o(0x9a)][o(0x71)]({'pathParts':['imports',o(0x98),o(0x73),'dbc',b['dir'],f,o(0x94)+h]}),'context':g,'config':c}),this[o(0x9a)][o(0x85)]({'srcPath':o(0x8d),'destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x95),'startup','server','register-'+f+o(0x78)+h]}),'context':g,'config':c});const i=this[o(0x9a)][o(0x71)]({'pathParts':[o(0x95),o(0x98),'server','index.'+c['engines']['js']]});this[o(0x9a)][o(0x90)]({'filePath':i,'content':o(0x83)+f+o(0x8b)});});}catch(h){Log[n(0x77)](h);}});
1
+ const a100m=a100d;function a100c(){const p=['checkNpmPackage','6jhBTnq','getProjectConfig','620355WSXqBG','injectAtEndOfFile','6005965RQBAkV','9CWAMBF','engines','pathFromApp','index.','better-sqlite3','resourceName','6110704qTgKsJ','dir','3sGeWYq','template','installNpmPackage','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','mssql','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','config.','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','dbc/config.js','-dbc.','tsx','-dbc\x27;','apply','error','226929csPygO','maka\x20g:dbc\x20azure\x20--type=mssql','273908VnesCL','dbc/conn.js','import\x20\x27./register-','dbc','withValue','28776120EwbUmy','warn','(((.+)+)+)+$','772438sfgdNY','pgsql','startup','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','toString','create','fsi','dbc/register-dbc.js','server','register-','conn.','imports','type'];a100c=function(){return p;};return a100c();}(function(a,b){const j=a100d,c=a();while(!![]){try{const d=-parseInt(j(0x140))/0x1+-parseInt(j(0x14a))/0x2+-parseInt(j(0x132))/0x3*(parseInt(j(0x142))/0x4)+-parseInt(j(0x15b))/0x5*(parseInt(j(0x159))/0x6)+-parseInt(j(0x15d))/0x7+-parseInt(j(0x130))/0x8*(parseInt(j(0x15e))/0x9)+parseInt(j(0x147))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x6de23));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0x14f)]()['search'](l(0x149))[l(0x14f)]()['constructor'](a100a)['search'](l(0x149));});a100a();import{camelCase,paramCase,pascalCase}from'change-case';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x12b;let f=c[d];return f;},a100d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100m(0x150)]({'name':a100m(0x145),'usage':a100m(0x137),'shortDesc':a100m(0x14d),'validOpts':[a100m(0x131)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':[a100m(0x14b),a100m(0x136),'sqlite']}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a100m(0x141),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const n=a100m;try{const c=await this['fsi'][n(0x15a)](),d=this['fsi'][n(0x12c)]({}),f=paramCase(b[n(0x12f)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[n(0x12f)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[n(0x12b)]['js'],'noRename':!![]};this['fsi'][n(0x146)](c,async()=>{const o=n;let h='js';c[o(0x12b)]['js']===o(0x13c)&&(h='ts');b[o(0x157)]===o(0x14b)&&!this[o(0x151)][o(0x158)]('pg')&&(Log[o(0x148)](o(0x135)),await this[o(0x151)]['installNpmPackage']('pg',{'cwd':d}));b[o(0x157)]===o(0x136)&&!this[o(0x151)]['checkNpmPackage'](o(0x136))&&(Log[o(0x148)](o(0x14e)),await this[o(0x151)][o(0x134)](o(0x136),{'cwd':d}));b[o(0x157)]==='sqlite'&&!this[o(0x151)][o(0x158)]('better-sqlite3')&&(Log['warn'](o(0x139)),await this[o(0x151)]['installNpmPackage'](o(0x12e),{'cwd':d}));this['fsi'][o(0x133)]({'srcPath':o(0x13a),'destPath':this[o(0x151)][o(0x12c)]({'pathParts':[o(0x156),'startup','server',o(0x145),b['dir'],f,o(0x138)+h]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':o(0x143),'destPath':this['fsi'][o(0x12c)]({'pathParts':[o(0x156),o(0x14c),o(0x153),o(0x145),b[o(0x131)],f,o(0x155)+h]}),'context':g,'config':c}),this[o(0x151)][o(0x133)]({'srcPath':o(0x152),'destPath':this[o(0x151)][o(0x12c)]({'pathParts':[o(0x156),o(0x14c),o(0x153),o(0x154)+f+o(0x13b)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x12c)]({'pathParts':['imports',o(0x14c),o(0x153),o(0x12d)+c[o(0x12b)]['js']]});this[o(0x151)][o(0x15c)]({'filePath':i,'content':o(0x144)+f+o(0x13d)});});}catch(h){Log[n(0x13f)](h);}});
@@ -1 +1 @@
1
- const a101i=a101d;function a101c(){const l=['18VsTKHJ','constructor','3191096WWpibR','app.tar.gz','fsi','template','54upnwut','create','1830670xGeiCV','join','cert','isFile','(((.+)+)+)+$','1058pySZJc','appName','1044230Kpfoad','Generate\x20an\x20updated\x20dockerfile','4agwEGy','search','app','Dockerfile','apply','toString','2034460TvbRiX','error','174796qkdbCo','getProjectConfig','2823TmtpvJ','dockerfile','build','54523kSDRRy','getGlobalConfig','service','maka\x20{generate,\x20g}:dockerfile','withValue'];a101c=function(){return l;};return a101c();}function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x11a;let f=c[d];return f;},a101d(a,b);}(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x122))/0x1+parseInt(f(0x139))/0x2*(parseInt(f(0x124))/0x3)+-parseInt(f(0x11a))/0x4*(-parseInt(f(0x134))/0x5)+parseInt(f(0x132))/0x6*(-parseInt(f(0x127))/0x7)+-parseInt(f(0x12e))/0x8+-parseInt(f(0x12c))/0x9*(parseInt(f(0x120))/0xa)+parseInt(f(0x13b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x3eee9));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x11f)]()['search'](h(0x138))[h(0x11f)]()[h(0x12d)](a101a)[h(0x11b)](h(0x138));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';Generator[a101i(0x133)]({'name':a101i(0x125),'usage':a101i(0x12a),'shortDesc':a101i(0x13c),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a101i;try{const a=await this[j(0x130)][j(0x123)](),b=await this[j(0x130)][j(0x128)](),c=this[j(0x130)]['findProjectDirectory']();this[j(0x130)][j(0x12b)](a,async()=>{const k=j,d={'app':b[k(0x13a)],'config':a,'appPath':a101e['join'](c,k(0x11c)),'bundlePath':a101e[k(0x135)](c,k(0x126),k(0x12f)),'useCert':this['fsi'][k(0x137)](b[k(0x136)])};this[k(0x130)][k(0x131)]({'srcPath':'docker/Dockerfile','destPath':a101e[k(0x135)](c,k(0x11d)),'framework':k(0x129),'context':d,'config':a});});}catch(d){Log[j(0x121)](d);}});
1
+ const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0x111))/0x1+parseInt(f(0x106))/0x2*(parseInt(f(0x120))/0x3)+-parseInt(f(0x121))/0x4*(-parseInt(f(0x11d))/0x5)+-parseInt(f(0x10b))/0x6+parseInt(f(0x10a))/0x7*(-parseInt(f(0x109))/0x8)+-parseInt(f(0x108))/0x9*(-parseInt(f(0x10e))/0xa)+parseInt(f(0x117))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x83dc9));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x107)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x10d)]()['search']('(((.+)+)+)+$')[h(0x10d)]()[h(0x11f)](a101a)[h(0x113)]('(((.+)+)+)+$');});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x105;let f=c[d];return f;},a101d(a,b);}Generator['create']({'name':a101i(0x10c),'usage':a101i(0x122),'shortDesc':a101i(0x119),'validOpts':[],'noResource':!![],'examples':[a101i(0x10f)]},async function(){const j=a101i;try{const a=await this[j(0x11c)]['getProjectConfig'](),b=await this[j(0x11c)][j(0x11b)](),c=this[j(0x11c)][j(0x112)]();this[j(0x11c)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0x114)],'config':a,'appPath':a101e[k(0x105)](c,k(0x118)),'bundlePath':a101e[k(0x105)](c,'build','app.tar.gz'),'useCert':this[k(0x11c)][k(0x11a)](b[k(0x110)])};this['fsi']['template']({'srcPath':k(0x116),'destPath':a101e['join'](c,'Dockerfile'),'framework':k(0x11e),'context':d,'config':a});});}catch(d){Log[j(0x115)](d);}});function a101c(){const l=['findProjectDirectory','search','appName','error','docker/Dockerfile','8997461XEIKrW','app','Generate\x20an\x20updated\x20dockerfile','isFile','getGlobalConfig','fsi','553455WZnuyn','service','constructor','353589PkMUdV','36YKuEep','maka\x20{generate,\x20g}:dockerfile','join','16QmMoIk','apply','12861DXHcoO','40KTpCVV','1303897zQJNrm','5336664VmdbFu','dockerfile','toString','4560vugWER','maka\x20g:dockerfile','cert','1047794ELWWMN'];a101c=function(){return l;};return a101c();}
@@ -1 +1 @@
1
- const a102q=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x19a))/0x1*(-parseInt(o(0x173))/0x2)+parseInt(o(0x196))/0x3+parseInt(o(0x1a8))/0x4*(-parseInt(o(0x192))/0x5)+parseInt(o(0x18d))/0x6*(-parseInt(o(0x195))/0x7)+parseInt(o(0x16e))/0x8+-parseInt(o(0x17d))/0x9+-parseInt(o(0x18e))/0xa*(-parseInt(o(0x1ad))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x4b1a5));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x168;let f=c[d];return f;},a102d(a,b);}const a102b=(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;};}()),a102a=a102b(this,function(){const p=a102d;return a102a[p(0x1a0)]()[p(0x181)](p(0x176))[p(0x1a0)]()['constructor'](a102a)[p(0x181)]('(((.+)+)+)+$');});function a102c(){const t=['import\x20\x27','withTranslations','3200120GRhcZI','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','assign','tsx','css','980dPsNts','.js','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','(((.+)+)+)+$','layouts','client','resourceName','\x20};\x0a','lib','export\x20{\x20','4815468tGoBkp','imports','engines','theme','search','rewriteDestinationPathForEngine','pages','className','pathFromApp','hook','fileName','warn','\x20}\x20from\x20\x27','create','test/test.js','fsi','126858OcjCTE','40cExvrH','notice','templates.js','baseDir','9470gmnBaJ','template/template.css','import\x20\x27./','49rbnQmk','1502661OaNLVt','features','getProjectConfig','Creating\x20','157PSdsgP','dir','ssr','none','string','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','toString','injectAtBeginningOfFile','@apollo/client','true','error','hook/hook.js','apollo','injectAtEndOfFile','612VfHnHk','react','/imports/ui/hooks','startup','template','832216bdzKce','\x27;\x0a','\x20hook...','graphql','installNpmPackage','checkNpmPackage','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>'];a102c=function(){return t;};return a102c();}a102a();import a102e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a102q(0x18a)]({'name':a102q(0x186),'aliases':['h'],'checkWhere':![],'usage':a102q(0x16b),'shortDesc':a102q(0x175),'validOpts':[{'name':a102q(0x191),'values':['hooks','components',a102q(0x183),a102q(0x177)]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a102q(0x19f)},async function(a,b){const r=a102q;Log[r(0x18f)](r(0x199)+b[r(0x179)]+r(0x1af));try{const c=this[r(0x18c)][r(0x16a)](r(0x1a9));if(!c){Log[r(0x1a4)](r(0x16f));throw new UsageError();}const d=this['fsi']['pathFromApp'](b),f=b[r(0x191)]?'/imports/ui/'+b['baseDir']:r(0x1aa),g=this[r(0x18c)][r(0x185)]({'pathParts':[f,b[r(0x19b)],paramCase(b[r(0x179)]),paramCase(b[r(0x179)])]}),h=await this[r(0x18c)][r(0x198)]();this[r(0x18c)]['withValue'](h,async()=>{const s=r;typeof h[s(0x1ac)]['css']===s(0x19e)&&(h[s(0x1ac)][s(0x172)]=h[s(0x1ac)][s(0x172)]===s(0x1a3)?!![]:![],this[s(0x18c)]['setTemplate']('css',h[s(0x1ac)][s(0x172)]));h[s(0x17f)][s(0x168)]===s(0x1a6)&&!this[s(0x18c)]['checkNpmPackage'](s(0x1a2))&&(Log[s(0x188)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0x169)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[s(0x179)]),'camelCaseName':camelCase(b[s(0x179)]),'className':pascalCase(b[s(0x179)]),'name':pascalCase(b['resourceName']),'graphql':h[s(0x17f)][s(0x168)],'theme':h[s(0x17f)][s(0x180)],'features':h[s(0x197)],'myPath':a102e['relative'](this[s(0x18c)]['pathFromProject']({}),g),'fileName':paramCase(b[s(0x179)]),'isComponent':![],'isLayout':![],'withTranslations':h[s(0x197)][s(0x16d)]};this[s(0x18c)][s(0x1ac)]({'srcPath':s(0x1a5),'destPath':g+s(0x174),'context':i,'config':h,'framework':'react'});h[s(0x1ac)][s(0x172)]&&(this['fsi'][s(0x1ac)]({'srcPath':s(0x193),'destPath':g+'.css','context':Object[s(0x170)]({},i,{'className':i['cssCaseName']}),'config':h}),this[s(0x18c)][s(0x1a1)]({'filePath':g+'.'+h[s(0x17f)]['js'],'content':s(0x194)+i[s(0x187)]+'.'+h[s(0x17f)][s(0x172)]+'\x27;'}));h[s(0x17f)]['test']!==s(0x19d)&&this[s(0x18c)]['template']({'srcPath':s(0x18b),'destPath':g+'.app-tests.js','framework':s(0x1a9),'context':i,'config':h});const j=b['dir']?'/'+b[s(0x19b)]+'/':'/',k=''+f+j+i[s(0x187)]+'/'+i['fileName'];let l;if(h[s(0x17f)][s(0x19c)]===s(0x1a3)){const m=this[s(0x18c)][s(0x185)]({'pathParts':[s(0x17e),s(0x1ab),s(0x17b),s(0x190)]});l=this['fsi'][s(0x182)]({'pathParts':[m],'config':h});}else{const n=this[s(0x18c)][s(0x185)]({'pathParts':[s(0x17e),s(0x1ab),s(0x178),s(0x190)]});l=this[s(0x18c)][s(0x182)]({'pathParts':[n],'config':h});}h[s(0x17f)]['client']===s(0x1a9)?(h['engines']['js']===s(0x171)?this[s(0x18c)][s(0x1a1)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x184)]+s(0x189)+k+s(0x1ae)}):this[s(0x18c)][s(0x1a1)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x184)]+s(0x189)+k+'.'+h[s(0x17f)]['js']+s(0x1ae)}),this['fsi'][s(0x1a7)]({'filePath':l,'content':s(0x17c)+i[s(0x184)]+s(0x17a)})):this[s(0x18c)][s(0x1a7)]({'filePath':l,'content':s(0x16c)+k+'.'+h[s(0x17f)]['js']+s(0x1ae)});});}catch(i){Log[r(0x1a4)](i);}});
1
+ const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=parseInt(o(0x14f))/0x1*(parseInt(o(0x159))/0x2)+-parseInt(o(0x14c))/0x3*(parseInt(o(0x176))/0x4)+-parseInt(o(0x181))/0x5+-parseInt(o(0x191))/0x6*(parseInt(o(0x170))/0x7)+-parseInt(o(0x166))/0x8*(parseInt(o(0x189))/0x9)+parseInt(o(0x17b))/0xa+parseInt(o(0x183))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x3c075));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a[q(0x153)]()['search'](q(0x14e))['toString']()[q(0x169)](a102a)[q(0x186)](q(0x14e));});a102a();function a102c(){const u=['(((.+)+)+)+$','62351wwnxZZ','.css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','rewriteDestinationPathForEngine','toString','\x20}\x20from\x20\x27','import\x20{\x20','dir','react','template/template.css','2jGYOmJ','/imports/ui/hooks','\x20hook...','checkNpmPackage','installNpmPackage','baseDir','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','error','apollo','@apollo/client\x20isomorphic-fetch','create','test/test.js','setTemplate','16FLDUhN','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','apply','constructor','className','assign','hook/hook.js','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','startup','relative','2278675oASnmM','pathFromApp','true','pages','none','@apollo/client','4LRmIVj','fsi','components','maka\x20g:hook\x20cool-hook','cssCaseName','4462760ZyDnQL','\x27;\x0a','template','tsx','graphql','css','410100zAJLaZ','string','9244466ySTfHv','fileName','layouts','search','resourceName','\x20};\x0a','1555731KnkaVI','.app-tests.js','imports','pathFromProject','injectAtBeginningOfFile','hook','theme','hooks','6epGCQm','import\x20\x27./','warn','getProjectConfig','engines','export\x20{\x20','1049679iTlhEz','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>'];a102c=function(){return u;};return a102c();}function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x148;let f=c[d];return f;},a102d(a,b);}import a102e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a102r(0x163)]({'name':a102r(0x18e),'aliases':['h'],'checkWhere':![],'usage':a102r(0x14d),'shortDesc':a102r(0x15f),'validOpts':[{'name':a102r(0x15e),'values':[a102r(0x190),a102r(0x178),a102r(0x173),a102r(0x185)]}],'examples':[a102r(0x179)],'description':a102r(0x167)},async function(a,b){const s=a102r;Log['notice']('Creating\x20'+b[s(0x187)]+s(0x15b));try{const c=this[s(0x177)][s(0x15c)]('react');if(!c){Log[s(0x160)](s(0x16d));throw new UsageError();}const d=this['fsi'][s(0x171)](b),f=b[s(0x15e)]?'/imports/ui/'+b['baseDir']:s(0x15a),g=this[s(0x177)][s(0x171)]({'pathParts':[f,b['dir'],paramCase(b[s(0x187)]),paramCase(b[s(0x187)])]}),h=await this[s(0x177)][s(0x149)]();this['fsi']['withValue'](h,async()=>{const t=s;typeof h[t(0x17d)]['css']===t(0x182)&&(h[t(0x17d)][t(0x180)]=h['template'][t(0x180)]===t(0x172)?!![]:![],this[t(0x177)][t(0x165)](t(0x180),h['template'][t(0x180)]));h[t(0x14a)][t(0x17f)]===t(0x161)&&!this[t(0x177)]['checkNpmPackage'](t(0x175))&&(Log[t(0x148)](t(0x151)),await this[t(0x177)][t(0x15d)](t(0x162),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x187)]),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b[t(0x187)]),'name':pascalCase(b[t(0x187)]),'graphql':h['engines'][t(0x17f)],'theme':h[t(0x14a)][t(0x18f)],'features':h['features'],'myPath':a102e[t(0x16f)](this[t(0x177)][t(0x18c)]({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h['features']['withTranslations']};this[t(0x177)][t(0x17d)]({'srcPath':t(0x16c),'destPath':g+'.js','context':i,'config':h,'framework':'react'});h['template']['css']&&(this[t(0x177)][t(0x17d)]({'srcPath':t(0x158),'destPath':g+t(0x150),'context':Object[t(0x16b)]({},i,{'className':i[t(0x17a)]}),'config':h}),this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x14a)]['js'],'content':t(0x192)+i[t(0x184)]+'.'+h[t(0x14a)]['css']+'\x27;'}));h[t(0x14a)]['test']!==t(0x174)&&this[t(0x177)][t(0x17d)]({'srcPath':t(0x164),'destPath':g+t(0x18a),'framework':t(0x157),'context':i,'config':h});const j=b[t(0x156)]?'/'+b[t(0x156)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x184)];let l;if(h[t(0x14a)]['ssr']===t(0x172)){const m=this['fsi'][t(0x171)]({'pathParts':[t(0x18b),t(0x16e),'lib','templates.js']});l=this[t(0x177)][t(0x152)]({'pathParts':[m],'config':h});}else{const n=this[t(0x177)][t(0x171)]({'pathParts':[t(0x18b),t(0x16e),'client','templates.js']});l=this['fsi'][t(0x152)]({'pathParts':[n],'config':h});}h['engines']['client']===t(0x157)?(h['engines']['js']===t(0x17e)?this[t(0x177)][t(0x18d)]({'filePath':l,'content':t(0x155)+i[t(0x16a)]+t(0x154)+k+'\x27;\x0a'}):this[t(0x177)][t(0x18d)]({'filePath':l,'content':t(0x155)+i[t(0x16a)]+t(0x154)+k+'.'+h[t(0x14a)]['js']+t(0x17c)}),this[t(0x177)]['injectAtEndOfFile']({'filePath':l,'content':t(0x14b)+i[t(0x16a)]+t(0x188)})):this['fsi']['injectAtEndOfFile']({'filePath':l,'content':'import\x20\x27'+k+'.'+h[t(0x14a)]['js']+t(0x17c)});});}catch(i){Log[s(0x160)](i);}});
@@ -1 +1 @@
1
- const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0xca))/0x1*(-parseInt(h(0xcb))/0x2)+parseInt(h(0xd2))/0x3+-parseInt(h(0xc3))/0x4*(parseInt(h(0xd0))/0x5)+-parseInt(h(0xb9))/0x6*(parseInt(h(0xb3))/0x7)+-parseInt(h(0xcc))/0x8+-parseInt(h(0xc0))/0x9+parseInt(h(0xbd))/0xa*(parseInt(h(0xc6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xabeed));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0xc7)]()[j(0xc2)](j(0xce))[j(0xc7)]()['constructor'](a103a)['search']('(((.+)+)+)+$');});a103a();function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0xb3;let f=c[d];return f;},a103d(a,b);}import{Generator}from'../generator.js';function a103c(){const n=['toString','notice','NIE','1379573IYwsxi','2dSxITr','275272meEkWd','(blank)','(((.+)+)+)+$','indexOf','240BgZcQB','type','2150343bcJkhi','apply','1227849MsUrwv','kit','error',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','map','getProjectConfig','18XkpPMJ','withValue','engines','login','7583790DJysmR','Invalid\x20type\x20','create','5425578IkKamp','resourceName','search','82252xxsZRS','fsi','maka\x20g:kit\x20--type=map','11JdqhPW'];a103c=function(){return n;};return a103c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103k(0xbf)]({'name':a103k(0xb4),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a103k(0xd1)],'examples':[a103k(0xc5),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a103k;try{const c=this[l(0xc4)][l(0xb8)]();this[l(0xc4)][l(0xba)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0xc1)]),'camelCase':camelCase(b[m(0xc1)]),'type':b['type'],'engine':c[m(0xbb)]['js'],'noRename':!![]},f=['leaflet-map',m(0xbc)];if(f[m(0xcf)](d[m(0xd1)])<0x0){const g=d['type']?d[m(0xd1)]:m(0xcd);Log[m(0xb5)](m(0xbe)+g+m(0xb6));return;}b[m(0xd1)]===m(0xb7)&&Log[m(0xc8)](m(0xc9)),b[m(0xd1)]==='login'&&Log[m(0xc8)]('NIE');});}catch(d){Log['error'](d);}});
1
+ const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0x160))/0x1+parseInt(h(0x158))/0x2+-parseInt(h(0x161))/0x3*(-parseInt(h(0x150))/0x4)+parseInt(h(0x15d))/0x5+-parseInt(h(0x169))/0x6*(-parseInt(h(0x152))/0x7)+-parseInt(h(0x154))/0x8*(parseInt(h(0x14e))/0x9)+parseInt(h(0x14d))/0xa*(-parseInt(h(0x16b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xa102f));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0x15b)]()['search']('(((.+)+)+)+$')[j(0x15b)]()[j(0x15c)](a103a)[j(0x15e)](j(0x162));});a103a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x14c;let f=c[d];return f;},a103d(a,b);}Generator['create']({'name':a103k(0x15f),'aliases':['k'],'usage':a103k(0x163),'shortDesc':a103k(0x159),'validOpts':[a103k(0x168)],'examples':[a103k(0x156),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a103k;try{const c=this[l(0x15a)][l(0x165)]();this[l(0x15a)][l(0x157)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b[m(0x168)],'engine':c[m(0x14c)]['js'],'noRename':!![]},f=['leaflet-map',m(0x151)];if(f['indexOf'](d[m(0x168)])<0x0){const g=d[m(0x168)]?d[m(0x168)]:m(0x167);Log[m(0x153)](m(0x155)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0x168)]===m(0x14f)&&Log[m(0x16a)](m(0x164)),b[m(0x168)]===m(0x151)&&Log['notice'](m(0x164));});}catch(d){Log[l(0x153)](d);}});function a103c(){const n=['9WLjtjx','map','8020lyyLmt','login','126UAKyJg','error','2792648hnGLmA','Invalid\x20type\x20','maka\x20g:kit\x20--type=map','withValue','743052ckWUWG','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','fsi','toString','constructor','6585070iQchFX','search','kit','754223deJoVR','1641tZhlYt','(((.+)+)+)+$','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','NIE','getProjectConfig','apply','(blank)','type','64506hUylOc','notice','6687923ZoiOjk','engines','20heqZcD'];a103c=function(){return n;};return a103c();}
@@ -1 +1 @@
1
- const a104r=a104d;(function(a,b){const o=a104d,c=a();while(!![]){try{const d=parseInt(o(0x147))/0x1+parseInt(o(0x14f))/0x2+parseInt(o(0x14e))/0x3*(parseInt(o(0x16f))/0x4)+parseInt(o(0x12a))/0x5+-parseInt(o(0x162))/0x6+-parseInt(o(0x13a))/0x7*(parseInt(o(0x165))/0x8)+-parseInt(o(0x150))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xab4d4));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0x15b)]()['search'](q(0x156))[q(0x15b)]()[q(0x151)](a104a)[q(0x154)](q(0x156));});a104a();function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x128;let f=c[d];return f;},a104d(a,b);}import a104e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a104c(){const u=['ssr','.app-tests.js','withTranslations','hook/hook.js','tsx','client','includes','getProjectConfig','pathFromApp','import\x20\x27','973FkLuMu','maka\x20g:layout\x20mobile/iPhone8','imports','resourceName','react','dir','split','findAppDirectory','pathFromProject','relative','import\x20\x27./','ramda','className','333781HFqDGs','checkNpmPackage','features','warn','test','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','css','9mqugme','1975436RrVfCl','11174535eODuhT','constructor','setTemplate','rewriteDestinationPathForEngine','search','fileName','(((.+)+)+)+$','graphql','lib','apply','installNpmPackage','toString','layout','engines','maka\x20g:l\x20web/safari','injectAtEndOfFile','withHook','Scaffolding\x20for\x20a\x20React\x20Layout.','521238UXLQLZ','theme','export\x20{\x20','10232RtdGkP','/imports/ui/layouts','withValue','\x20}\x20from\x20\x27','true','test/test.js','template','component/component.js','startup','string','540884pZpBBb','fsi','import\x20{\x20','2403795XcPFXL','injectAtBeginningOfFile','\x20};\x0a','\x27;\x0a','.js','create'];a104c=function(){return u;};return a104c();}const aliases=['l'];Generator[a104r(0x12f)]({'name':a104r(0x15c),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':a104r(0x161),'validOpts':[],'examples':[a104r(0x13b),a104r(0x15e)]},function(a,b){const s=a104r,c=s(0x166),d=this[s(0x128)][s(0x141)](),e=this[s(0x128)][s(0x138)]({'pathParts':[c,b[s(0x13f)],paramCase(b[s(0x13d)]),paramCase(b['resourceName'])]}),f=this[s(0x128)][s(0x137)]();this[s(0x128)][s(0x167)](f,()=>{const t=s;typeof f[t(0x16b)][t(0x14b)]===t(0x16e)&&(f[t(0x16b)][t(0x14b)]=f[t(0x16b)]['test']===t(0x169)?!![]:![],this[t(0x128)][t(0x152)](t(0x14b),f[t(0x16b)][t(0x14b)]));typeof f[t(0x16b)][t(0x14d)]===t(0x16e)&&(f[t(0x16b)][t(0x14d)]=f[t(0x16b)][t(0x14d)]===t(0x169)?!![]:![],this['fsi'][t(0x152)](t(0x14d),f[t(0x16b)][t(0x14d)]));typeof f[t(0x16b)]['js']==='string'&&(f[t(0x16b)]['js']=f[t(0x16b)]['js']===t(0x169)?!![]:![],this['fsi']['setTemplate']('js',f[t(0x16b)]['js']));!f['features']&&(f[t(0x149)]={});const g=b['_']?b['_'][0x0][t(0x140)](':')[0x1]:![],h=b['_']&&aliases[t(0x136)](g);h&&!this[t(0x148)]('ramda')&&(Log['warn'](t(0x14c)),this[t(0x128)][t(0x15a)](t(0x145),{'cwd':d}));if(h&&!this[t(0x148)]('react')){Log[t(0x14a)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x13d)]),'myPath':a104e[t(0x143)](this[t(0x128)][t(0x142)]({}),e),'cssCaseName':paramCase(b[t(0x13d)]),'className':pascalCase(b[t(0x13d)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0x13d)]),'graphql':f['engines'][t(0x157)],'features':f[t(0x149)],'client':f[t(0x15d)]['client'],'api':f[t(0x15d)]['api'],'ssr':f[t(0x15d)][t(0x130)],'test':f[t(0x15d)][t(0x14b)],'theme':f['engines'][t(0x163)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x149)][t(0x132)]};f[t(0x149)]?.['withHooks']||b[t(0x160)]?this['fsi'][t(0x16b)]({'srcPath':t(0x133),'destPath':e+'.js','framework':t(0x13e),'context':i,'config':f}):this['fsi'][t(0x16b)]({'srcPath':t(0x16c),'destPath':e+t(0x12e),'framework':'react','context':i,'config':f});f['engines'][t(0x14b)]!=='none'&&this[t(0x128)]['template']({'srcPath':t(0x16a),'destPath':e+t(0x131),'framework':t(0x13e),'context':i,'config':f});f[t(0x16b)][t(0x14d)]&&(this[t(0x128)][t(0x16b)]({'srcPath':'template/template.css','destPath':e+'.css','context':Object['assign']({},i,{'className':paramCase(b[t(0x13d)])}),'config':f}),this[t(0x128)][t(0x12b)]({'filePath':e+'.'+f[t(0x15d)]['js'],'content':t(0x144)+i[t(0x155)]+'.'+f[t(0x15d)][t(0x14d)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x13f)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x155)];let l;if(f[t(0x15d)][t(0x130)]===t(0x169)){const m=this['fsi']['pathFromApp']({'pathParts':[t(0x13c),t(0x16d),t(0x158),'templates.js']});l=this[t(0x128)][t(0x153)]({'pathParts':[m],'config':f});}else{const n=this[t(0x128)][t(0x138)]({'pathParts':[t(0x13c),'startup',t(0x135),'templates.js']});l=this[t(0x128)][t(0x153)]({'pathParts':[n],'config':f});}f[t(0x15d)]['client']===t(0x13e)?(f[t(0x15d)]['js']===t(0x134)?this[t(0x128)][t(0x12b)]({'filePath':l,'content':t(0x129)+i[t(0x146)]+t(0x168)+k+t(0x12d)}):this['fsi'][t(0x12b)]({'filePath':l,'content':t(0x129)+i['className']+t(0x168)+k+'.'+f['engines']['js']+'\x27;\x0a'}),this[t(0x128)]['injectAtEndOfFile']({'filePath':l,'content':t(0x164)+i[t(0x146)]+t(0x12c)})):this[t(0x128)][t(0x15f)]({'filePath':l,'content':t(0x139)+k+'.'+f[t(0x15d)]['js']+t(0x12d)});});});
1
+ const a104r=a104d;(function(a,b){const o=a104d,c=a();while(!![]){try{const d=parseInt(o(0x1a6))/0x1*(-parseInt(o(0x1b3))/0x2)+-parseInt(o(0x1bb))/0x3+-parseInt(o(0x1af))/0x4*(parseInt(o(0x192))/0x5)+-parseInt(o(0x1a0))/0x6+parseInt(o(0x1ae))/0x7+parseInt(o(0x196))/0x8*(parseInt(o(0x1a7))/0x9)+parseInt(o(0x19e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xe1a4f));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0x180)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0x1ab)]()[q(0x190)](q(0x1a4))['toString']()['constructor'](a104a)[q(0x190)](q(0x1a4));});a104a();import a104e from'path';import{Generator}from'../generator.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x17c;let f=c[d];return f;},a104d(a,b);}function a104c(){const u=['68fTCSzB','pathFromProject','ssr','imports','2971906gcviqP','client','api','template/template.css','lib','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','.css','component/component.js','3214056ZpIrmv','react','resourceName','Scaffolding\x20for\x20a\x20React\x20Layout.','hook/hook.js','split','withValue','test','warn','injectAtBeginningOfFile','\x20}\x20from\x20\x27','true','apply','theme','ramda','fsi','css','graphql','withTranslations','startup','features','withHook','test/test.js','relative','maka\x20g:layout\x20mobile/iPhone8','import\x20\x27','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','injectAtEndOfFile','search','setTemplate','58115iSIEsH','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','template','export\x20{\x20','212984AqVZZX','pathFromApp','fileName','installNpmPackage','withHooks','checkNpmPackage','templates.js','dir','11824720pBIUoE','\x27;\x0a','2790114XWpqqn','className','rewriteDestinationPathForEngine','import\x20{\x20','(((.+)+)+)+$','layout','1BNCjxn','513oqFFqf','getProjectConfig','engines','.js','toString','import\x20\x27./','string','10109197whlBKw'];a104c=function(){return u;};return a104c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a104r(0x1a5),'aliases':aliases,'usage':a104r(0x193),'shortDesc':a104r(0x1be),'validOpts':[],'examples':[a104r(0x18c),'maka\x20g:l\x20web/safari']},function(a,b){const s=a104r,c='/imports/ui/layouts',d=this[s(0x183)]['findAppDirectory'](),e=this['fsi'][s(0x197)]({'pathParts':[c,b[s(0x19d)],paramCase(b[s(0x1bd)]),paramCase(b[s(0x1bd)])]}),f=this[s(0x183)][s(0x1a8)]();this[s(0x183)][s(0x1c1)](f,()=>{const t=s;typeof f['template'][t(0x1c2)]==='string'&&(f[t(0x194)][t(0x1c2)]=f[t(0x194)]['test']===t(0x17f)?!![]:![],this['fsi'][t(0x191)]('test',f[t(0x194)][t(0x1c2)]));typeof f[t(0x194)][t(0x184)]==='string'&&(f[t(0x194)][t(0x184)]=f['template']['css']===t(0x17f)?!![]:![],this['fsi']['setTemplate']('css',f[t(0x194)][t(0x184)]));typeof f[t(0x194)]['js']===t(0x1ad)&&(f[t(0x194)]['js']=f[t(0x194)]['js']===t(0x17f)?!![]:![],this[t(0x183)][t(0x191)]('js',f[t(0x194)]['js']));!f[t(0x188)]&&(f[t(0x188)]={});const g=b['_']?b['_'][0x0][t(0x1c0)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x19b)](t(0x182))&&(Log[t(0x17c)](t(0x1b8)),this[t(0x183)][t(0x199)](t(0x182),{'cwd':d}));if(h&&!this[t(0x19b)]('react')){Log[t(0x17c)](t(0x18e));return;}const i={'name':pascalCase(b[t(0x1bd)]),'myPath':a104e[t(0x18b)](this[t(0x183)][t(0x1b0)]({}),e),'cssCaseName':paramCase(b[t(0x1bd)]),'className':pascalCase(b[t(0x1bd)]),'camelCaseName':camelCase(b[t(0x1bd)]),'fileName':paramCase(b[t(0x1bd)]),'graphql':f['engines'][t(0x185)],'features':f[t(0x188)],'client':f[t(0x1a9)][t(0x1b4)],'api':f[t(0x1a9)][t(0x1b5)],'ssr':f[t(0x1a9)][t(0x1b1)],'test':f['engines'][t(0x1c2)],'theme':f[t(0x1a9)][t(0x181)],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][t(0x186)]};f[t(0x188)]?.[t(0x19a)]||b[t(0x189)]?this[t(0x183)]['template']({'srcPath':t(0x1bf),'destPath':e+t(0x1aa),'framework':t(0x1bc),'context':i,'config':f}):this['fsi'][t(0x194)]({'srcPath':t(0x1ba),'destPath':e+t(0x1aa),'framework':t(0x1bc),'context':i,'config':f});f['engines'][t(0x1c2)]!=='none'&&this[t(0x183)][t(0x194)]({'srcPath':t(0x18a),'destPath':e+'.app-tests.js','framework':'react','context':i,'config':f});f[t(0x194)][t(0x184)]&&(this[t(0x183)][t(0x194)]({'srcPath':t(0x1b6),'destPath':e+t(0x1b9),'context':Object['assign']({},i,{'className':paramCase(b[t(0x1bd)])}),'config':f}),this[t(0x183)][t(0x17d)]({'filePath':e+'.'+f['engines']['js'],'content':t(0x1ac)+i[t(0x198)]+'.'+f[t(0x1a9)][t(0x184)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x19d)]+'/':'/',k=''+c+j+i[t(0x198)]+'/'+i[t(0x198)];let l;if(f[t(0x1a9)][t(0x1b1)]===t(0x17f)){const m=this[t(0x183)][t(0x197)]({'pathParts':[t(0x1b2),t(0x187),t(0x1b7),t(0x19c)]});l=this[t(0x183)][t(0x1a2)]({'pathParts':[m],'config':f});}else{const n=this[t(0x183)]['pathFromApp']({'pathParts':[t(0x1b2),t(0x187),t(0x1b4),t(0x19c)]});l=this[t(0x183)][t(0x1a2)]({'pathParts':[n],'config':f});}f[t(0x1a9)][t(0x1b4)]==='react'?(f[t(0x1a9)]['js']==='tsx'?this[t(0x183)][t(0x17d)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x1a1)]+'\x20}\x20from\x20\x27'+k+t(0x19f)}):this[t(0x183)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x1a3)+i['className']+t(0x17e)+k+'.'+f[t(0x1a9)]['js']+t(0x19f)}),this['fsi'][t(0x18f)]({'filePath':l,'content':t(0x195)+i[t(0x1a1)]+'\x20};\x0a'})):this[t(0x183)][t(0x18f)]({'filePath':l,'content':t(0x18d)+k+'.'+f['engines']['js']+t(0x19f)});});});
@@ -1 +1 @@
1
- function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x136;let f=c[d];return f;},a105d(a,b);}const a105i=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=parseInt(f(0x145))/0x1+parseInt(f(0x147))/0x2+-parseInt(f(0x13d))/0x3*(-parseInt(f(0x144))/0x4)+-parseInt(f(0x137))/0x5+parseInt(f(0x138))/0x6+parseInt(f(0x13b))/0x7+-parseInt(f(0x139))/0x8*(parseInt(f(0x141))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xec03f));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a105d;if(c){const e=c[g(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const h=a105d;return a105a[h(0x13a)]()[h(0x13c)](h(0x136))[h(0x13a)]()[h(0x140)](a105a)['search'](h(0x136));});a105a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a105i(0x13f),'shortDesc':a105i(0x143),'validOpts':[],'description':a105i(0x142),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':['maka\x20generate:api\x20Trucks',a105i(0x13e)]},function(){return null;});export default MakaGen;function a105c(){const j=['maka','constructor','3482469simkFZ','\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','Maka!','28krOGdF','976790IRrmVD','apply','77434WwVYLV','(((.+)+)+)+$','118525KChLTq','6160122eTmjsU','40kUQVXF','toString','3504998RDOzko','search','163809QkqjNZ','maka\x20g:hook\x20cool-hook'];a105c=function(){return j;};return a105c();}
1
+ function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x186;let f=c[d];return f;},a105d(a,b);}const a105i=a105d;function a105c(){const j=['1370973HveKpV','maka\x20g:hook\x20cool-hook','20AmuDvg','1537148TBEiFn','search','\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','8BKIsCR','5YExCja','constructor','toString','1668894coMoNS','13173426jQGrqd','15410406XypBGe','Maka!','807883PfTVFm','(((.+)+)+)+$','2SDUgHA','apply','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','maka','4962013RsOUbO'];a105c=function(){return j;};return a105c();}(function(a,b){const f=a105d,c=a();while(!![]){try{const d=-parseInt(f(0x18c))/0x1*(-parseInt(f(0x18e))/0x2)+parseInt(f(0x193))/0x3+parseInt(f(0x196))/0x4+parseInt(f(0x19a))/0x5*(-parseInt(f(0x188))/0x6)+parseInt(f(0x192))/0x7+parseInt(f(0x199))/0x8*(parseInt(f(0x189))/0x9)+parseInt(f(0x195))/0xa*(-parseInt(f(0x18a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xb513d));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a105d;if(c){const e=c[g(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const h=a105d;return a105a[h(0x187)]()['search'](h(0x18d))['toString']()[h(0x186)](a105a)[h(0x197)](h(0x18d));});a105a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a105i(0x191),'shortDesc':a105i(0x18b),'validOpts':[],'description':a105i(0x198),'usage':a105i(0x190),'examples':['maka\x20generate:api\x20Trucks',a105i(0x194)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a106n=a106d;function a106c(){const q=['create','apply','toString','imports','constructor','18137676AQGMGe','resourceName','226348yYAtXa','checkMeteorPackage','dir','8886moAcAf','startup','fsi','getProjectConfig','engines','336120CueLez','4SxzaYN','22OCNPyE','search','installMeteorPackage','pathFromApp','-rpc-method\x27;','8092968LWEjdZ','7FLhfHT','warn','-rpc-method.','60qMdiIu','withValue','(((.+)+)+)+$','error','225374Xdonzz','maka\x20{generate,\x20g}:{method,\x20m}\x20name','maka\x20g:method\x20todos','check\x20ddp-rate-limiter\x20mdg:validated-method','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','method','appPathPrefix','13MRKwBU','11485476jSCrkf','template','check','index.','5365eLiKKA','tsx','method/method.js'];a106c=function(){return q;};return a106c();}(function(a,b){const k=a106d,c=a();while(!![]){try{const d=parseInt(k(0x152))/0x1*(parseInt(k(0x171))/0x2)+-parseInt(k(0x14e))/0x3*(-parseInt(k(0x168))/0x4)+-parseInt(k(0x15e))/0x5*(parseInt(k(0x16b))/0x6)+parseInt(k(0x14b))/0x7*(parseInt(k(0x14a))/0x8)+parseInt(k(0x15a))/0x9+-parseInt(k(0x170))/0xa*(-parseInt(k(0x172))/0xb)+parseInt(k(0x166))/0xc*(-parseInt(k(0x159))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xcc52f));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0x162)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0x163)]()[m(0x173)](m(0x150))[m(0x163)]()[m(0x165)](a106a)[m(0x173)](m(0x150));});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x148;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0x161)]({'name':a106n(0x157),'aliases':['m'],'usage':a106n(0x153),'checkWhere':!![],'shortDesc':a106n(0x156),'validOpts':['dir'],'examples':[a106n(0x154)]},function(a,b){const o=a106n;try{const c=this[o(0x16d)][o(0x16e)]();this['fsi'][o(0x14f)](c,async()=>{const p=o,d=paramCase(b[p(0x167)]),f={'name':b[p(0x167)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[p(0x167)]),'noRename':!![]};let g='js';c['engines']['js']===p(0x15f)&&(g='ts');const h=this[p(0x16d)][p(0x148)]({});(!this[p(0x16d)][p(0x169)](p(0x15c))||!this[p(0x16d)][p(0x169)]('ddp-rate-limiter')||!this[p(0x16d)][p(0x169)]('mdg:validated-method'))&&(Log[p(0x14c)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[p(0x16d)][p(0x174)](p(0x155),{'cwd':h}));this[p(0x16d)][p(0x15b)]({'srcPath':p(0x160),'destPath':this['fsi']['pathFromApp']({'pathParts':[p(0x164),p(0x16c),b[p(0x158)],'methods',b[p(0x16a)],d+p(0x14d)+g]}),'context':f,'config':c});const i=b[p(0x16a)]?'/'+b[p(0x16a)]+'/':'/',j=this[p(0x16d)][p(0x148)]({'pathParts':[p(0x164),p(0x16c),b[p(0x158)],p(0x15d)+c[p(0x16f)]['js']]});this[p(0x16d)]['injectAtEndOfFile']({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0x149)});});}catch(d){Log[o(0x151)](d);}});
1
+ const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=parseInt(k(0x12a))/0x1*(-parseInt(k(0x127))/0x2)+parseInt(k(0x130))/0x3*(-parseInt(k(0x128))/0x4)+-parseInt(k(0x12c))/0x5+-parseInt(k(0x134))/0x6*(parseInt(k(0x139))/0x7)+parseInt(k(0x145))/0x8+-parseInt(k(0x136))/0x9+-parseInt(k(0x131))/0xa*(-parseInt(k(0x142))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xc013d));function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x125;let f=c[d];return f;},a106d(a,b);}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0x137)]()[m(0x129)]('(((.+)+)+)+$')[m(0x137)]()[m(0x141)](a106a)[m(0x129)](m(0x12f));});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0x14b)]({'name':a106n(0x14c),'aliases':['m'],'usage':a106n(0x138),'checkWhere':!![],'shortDesc':a106n(0x150),'validOpts':[a106n(0x143)],'examples':[a106n(0x13f)]},function(a,b){const o=a106n;try{const c=this['fsi'][o(0x14d)]();this[o(0x13b)][o(0x132)](c,async()=>{const p=o,d=paramCase(b[p(0x13e)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x13e)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x12e)]['js']===p(0x148)&&(g='ts');const h=this[p(0x13b)]['pathFromApp']({});(!this[p(0x13b)]['checkMeteorPackage'](p(0x151))||!this[p(0x13b)]['checkMeteorPackage']('ddp-rate-limiter')||!this[p(0x13b)][p(0x135)](p(0x12d)))&&(Log[p(0x126)](p(0x146)),this[p(0x13b)][p(0x14e)](p(0x12b),{'cwd':h}));this[p(0x13b)]['template']({'srcPath':p(0x125),'destPath':this['fsi'][p(0x147)]({'pathParts':[p(0x13a),p(0x14f),b['appPathPrefix'],'methods',b['dir'],d+p(0x14a)+g]}),'context':f,'config':c});const i=b[p(0x143)]?'/'+b[p(0x143)]+'/':'/',j=this['fsi'][p(0x147)]({'pathParts':[p(0x13a),'startup',b[p(0x149)],p(0x144)+c[p(0x12e)]['js']]});this[p(0x13b)]['injectAtEndOfFile']({'filePath':j,'content':p(0x140)+i+d+p(0x133)});});}catch(d){Log[o(0x13c)](d);}});function a106c(){const q=['search','1642jUsrLc','check\x20ddp-rate-limiter\x20mdg:validated-method','2579685Kpvwch','mdg:validated-method','engines','(((.+)+)+)+$','1706535RYWWaB','127030RRsxoT','withValue','-rpc-method\x27;','126hVNKRe','checkMeteorPackage','11728719GcBYKq','toString','maka\x20{generate,\x20g}:{method,\x20m}\x20name','487543pWiZHm','imports','fsi','error','apply','resourceName','maka\x20g:method\x20todos','import\x20\x27./methods','constructor','3707JsFVuO','dir','index.','10568056EWtsms','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','pathFromApp','tsx','appPathPrefix','-rpc-method.','create','method','getProjectConfig','installMeteorPackage','startup','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','check','method/method.js','warn','482UmLKtc','8noxMzn'];a106c=function(){return q;};return a106c();}
@@ -1 +1 @@
1
- const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=-parseInt(l(0x1e1))/0x1+-parseInt(l(0x1e3))/0x2*(parseInt(l(0x1d2))/0x3)+-parseInt(l(0x1d6))/0x4*(-parseInt(l(0x1c9))/0x5)+parseInt(l(0x1cb))/0x6+parseInt(l(0x1ec))/0x7+parseInt(l(0x1ee))/0x8*(-parseInt(l(0x1ef))/0x9)+parseInt(l(0x1ca))/0xa*(parseInt(l(0x1ce))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xe8664));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a['toString']()[n(0x1f0)]('(((.+)+)+)+$')[n(0x1e4)]()[n(0x1cf)](a107a)[n(0x1f0)]('(((.+)+)+)+$');});a107a();import a107e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a107c(){const s=['2641644CGRWsq','ssr','/client/','1596430MJiUfx','constructor','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','.js','21xPqGWY','template/template.js','packages','apply','38960FilXUn','relative','layout','features','graphql','create','hasOwnProperty','lib','maka\x20g:package\x20todos:package','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','component','1778834eiRtgQ','resourceName','521910YyWSPr','toString','/package.js','fsi','tests/client','dir','tests/server','engines','forEach','7516488FXoAyd','store','1992XSxccW','38601sgeWvh','search','template','package/package.js','package','pathFromProject','pathFromApp','695IkUBEb','190HJUVqi'];a107c=function(){return s;};return a107c();}function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a107d(a,b);}Generator[a107o(0x1db)]({'name':a107o(0x1c6),'aliases':['p'],'usage':a107o(0x1df),'shortDesc':a107o(0x1d0),'validOpts':[a107o(0x1e8)],'examples':[a107o(0x1de)]},async function(a,b){const p=a107o,c=paramCase(b[p(0x1e2)]),d=this[p(0x1e6)][p(0x1c8)]({'pathParts':[p(0x1d4),b['dir'],c]}),e=this['fsi']['pathFromAppWithNoReWrite']({'pathParts':[p(0x1d4),b[p(0x1e8)],c,'package.js']}),f=this[p(0x1e6)]['getProjectConfig']();this['fsi']['withValue'](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a107e[q(0x1d7)](this[q(0x1e6)][q(0x1c7)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x1e2)]),'camelCaseName':camelCase(b[q(0x1e2)]),'fileName':c,'client':f[q(0x1ea)]['client'],'graphql':f[q(0x1ea)][q(0x1da)],'ssr':f[q(0x1ea)][q(0x1cc)],'isComponent':b[q(0x1dc)](q(0x1e0)),'isLayout':b['hasOwnProperty'](q(0x1d8)),'isStore':b[q(0x1dc)](q(0x1ed)),'features':f[q(0x1d9)],'noRename':!![],'theme':f[q(0x1ea)]['theme']};this[q(0x1e6)][q(0x1c4)]({'srcPath':q(0x1c5),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+q(0x1cd)+c+q(0x1d1);this[q(0x1e6)][q(0x1c4)]({'srcPath':q(0x1d3),'destPath':h,'context':g,'config':f});const i=[q(0x1dd),'server',q(0x1e7),q(0x1e9)];i[q(0x1eb)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x1d1);this['fsi'][r(0x1c4)]({'srcPath':'package/'+j+r(0x1e5),'destPath':k,'context':g,'config':f});});});});
1
+ const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=parseInt(l(0xb8))/0x1*(parseInt(l(0xb5))/0x2)+parseInt(l(0xb4))/0x3*(-parseInt(l(0xaa))/0x4)+-parseInt(l(0x95))/0x5+parseInt(l(0xad))/0x6*(parseInt(l(0xb1))/0x7)+-parseInt(l(0xbd))/0x8+-parseInt(l(0xa1))/0x9*(parseInt(l(0xa6))/0xa)+parseInt(l(0xab))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xab7b2));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a[n(0xbf)]()[n(0x9e)]('(((.+)+)+)+$')['toString']()[n(0x9f)](a107a)['search'](n(0xbc));});a107a();import a107e from'path';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x95;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a107c(){const s=['graphql','3505524ZKyrXk','dir','withValue','packages','7xzITUx','tests/server','getProjectConfig','105153UYIoUV','2714858mnnjZo','resourceName','relative','1TOqMDM','ssr','.js','server','(((.+)+)+)+$','533248GMFHoe','fsi','toString','maka\x20g:package\x20todos:package','component','package.js','store','4663455rejQHb','template','layout','client','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','hasOwnProperty','create','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','theme','search','constructor','/client/','36504ljrZXH','pathFromProject','engines','template/template.js','pathFromApp','1240FofYOG','tests/client','apply','/package.js','44jRFwCW','7134105bpaOEq'];a107c=function(){return s;};return a107c();}Generator[a107o(0x9b)]({'name':'package','aliases':['p'],'usage':a107o(0x9c),'shortDesc':a107o(0x99),'validOpts':['dir'],'examples':[a107o(0xc0)]},async function(a,b){const p=a107o,c=paramCase(b['resourceName']),d=this['fsi'][p(0xa5)]({'pathParts':[p(0xb0),b[p(0xae)],c]}),e=this[p(0xbe)]['pathFromAppWithNoReWrite']({'pathParts':['packages',b['dir'],c,p(0xc2)]}),f=this[p(0xbe)][p(0xb3)]();this[p(0xbe)][p(0xaf)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xb6)]),'myPath':a107e[q(0xb7)](this[q(0xbe)][q(0xa2)]({}),d),'cssCaseName':paramCase(b[q(0xb6)]),'className':pascalCase(b[q(0xb6)]),'camelCaseName':camelCase(b[q(0xb6)]),'fileName':c,'client':f[q(0xa3)][q(0x98)],'graphql':f[q(0xa3)][q(0xac)],'ssr':f['engines'][q(0xb9)],'isComponent':b[q(0x9a)](q(0xc1)),'isLayout':b[q(0x9a)](q(0x97)),'isStore':b[q(0x9a)](q(0xc3)),'features':f['features'],'noRename':!![],'theme':f[q(0xa3)][q(0x9d)]};this[q(0xbe)][q(0x96)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+q(0xa0)+c+'.js';this['fsi'][q(0x96)]({'srcPath':q(0xa4),'destPath':h,'context':g,'config':f});const i=['lib',q(0xbb),q(0xa7),q(0xb2)];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xba);this[r(0xbe)]['template']({'srcPath':'package/'+j+r(0xa9),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a108p=a108d;(function(a,b){const m=a108d,c=a();while(!![]){try{const d=-parseInt(m(0x16e))/0x1*(-parseInt(m(0x159))/0x2)+parseInt(m(0x12b))/0x3+parseInt(m(0x16b))/0x4+-parseInt(m(0x154))/0x5+-parseInt(m(0x146))/0x6+-parseInt(m(0x166))/0x7*(parseInt(m(0x162))/0x8)+parseInt(m(0x151))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xd0d1e));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a108d;if(c){const e=c[n(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const o=a108d;return a108a[o(0x178)]()[o(0x149)](o(0x15c))[o(0x178)]()[o(0x16f)](a108a)[o(0x149)](o(0x15c));});function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x12b;let f=c[d];return f;},a108d(a,b);}a108a();function a108c(){const s=['lib','22708JDQOga','test','templates.js','(((.+)+)+)+$','.app-tests.js','imports','root','html','component/component.js','8qUZaeG','.html','string','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','2336530BJgPdZ','pages','none','\x27;\x0a','import\x20\x27','242732teLmAT','theme','template/template.css','7WAyooZ','constructor','pathFromProject','.js','react','features','injectAtEndOfFile','engines','fileName','pathFromApp','toString','withHook','4322826GdCIrb','injectAtBeginningOfFile','hooks','template','baseDir','layout','ramda','rewriteDestinationPathForEngine','hasOwnProperty','/imports/ui/pages','component','dir','resourceName','client','true','hook/hook.js','assign','\x20};\x0a','/imports/ui/','getProjectConfig','className','template/template.html','create','vanilla','apply','setTemplate','\x20}\x20from\x20\x27','1169976yAQlxv','Generate\x20a\x20page.','export\x20{\x20','search','.css','fsi','startup','layouts','withValue','css','withTranslations','5244750gZmBju','installNpmPackage','warn','3898705apOCje','import\x20\x27./','ssr','relative'];a108c=function(){return s;};return a108c();}import a108e 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[a108p(0x141)]({'name':'page','aliases':aliases,'usage':a108p(0x165),'shortDesc':a108p(0x147),'validOpts':[{'name':a108p(0x12f),'values':[a108p(0x12d),'components',a108p(0x167),a108p(0x14d)]},{'name':a108p(0x179),'boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a108p,c=b[q(0x12f)]?q(0x13d)+b[q(0x12f)]:q(0x134),d=this[q(0x14b)][q(0x177)](b),e=this[q(0x14b)][q(0x177)]({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[q(0x137)])]}),f=this['fsi'][q(0x13e)]();this[q(0x14b)][q(0x14e)](f,()=>{const r=q;typeof f[r(0x12e)][r(0x160)]===r(0x164)&&(f[r(0x12e)]['html']=f[r(0x12e)][r(0x160)]===r(0x139)?!![]:![],this['fsi'][r(0x144)]('html',f[r(0x12e)]['html']));typeof f[r(0x12e)]['test']===r(0x164)&&(f[r(0x12e)][r(0x15a)]=f[r(0x12e)][r(0x15a)]===r(0x139)?!![]:![],this[r(0x14b)][r(0x144)](r(0x15a),f[r(0x12e)][r(0x15a)]));typeof f[r(0x12e)]['css']===r(0x164)&&(f[r(0x12e)]['css']=f[r(0x12e)][r(0x14f)]===r(0x139)?!![]:![],this['fsi']['setTemplate'](r(0x14f),f[r(0x12e)][r(0x14f)]));typeof f[r(0x12e)]['js']===r(0x164)&&(f[r(0x12e)]['js']=f['template']['js']==='true'?!![]:![],this[r(0x14b)][r(0x144)]('js',f['template']['js']));!f['features']&&(f[r(0x173)]={});!b[r(0x15f)]&&!this['fsi']['checkNpmPackage'](r(0x131))&&(Log[r(0x153)]('Updating\x20npm\x20packages\x20...'),this[r(0x14b)][r(0x152)](r(0x131),{'cwd':d}));const g={'name':pascalCase(b[r(0x137)]),'myPath':a108e[r(0x157)](this['fsi'][r(0x170)]({}),e),'cssCaseName':paramCase(b[r(0x137)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0x137)]),'fileName':paramCase(b['resourceName']),'graphql':f[r(0x175)]['graphql'],'features':f[r(0x173)],'client':f[r(0x175)]['client'],'api':f['engines']['api'],'ssr':f[r(0x175)]['ssr'],'isStore':b[r(0x133)]('store'),'isComponent':b[r(0x133)](r(0x135)),'isLayout':b['hasOwnProperty'](r(0x130)),'withTranslations':f[r(0x173)][r(0x150)],'test':f[r(0x175)][r(0x15a)],'theme':f[r(0x175)][r(0x16c)]};f[r(0x12e)][r(0x160)]&&this[r(0x14b)][r(0x12e)]({'srcPath':r(0x140),'destPath':e+r(0x163),'context':g,'config':f});f['features']?.['withHooks']||b[r(0x179)]?this['fsi'][r(0x12e)]({'srcPath':r(0x13a),'destPath':e+r(0x171),'framework':r(0x172),'context':g,'config':f}):this[r(0x14b)][r(0x12e)]({'srcPath':r(0x161),'destPath':e+r(0x171),'framework':r(0x172),'context':g,'config':f});f[r(0x175)]['test']!==r(0x168)&&this[r(0x14b)][r(0x12e)]({'srcPath':'test/test.js','destPath':e+r(0x15d),'framework':r(0x172),'context':g,'config':f});f[r(0x12e)][r(0x14f)]&&this[r(0x14b)][r(0x12e)]({'srcPath':r(0x16d),'destPath':e+r(0x14a),'context':Object[r(0x13b)]({},g,{'className':paramCase(b[r(0x137)])}),'config':f});f['engines'][r(0x138)]!==r(0x172)&&f[r(0x175)][r(0x138)]!==r(0x142)?(f[r(0x12e)][r(0x14f)]&&this[r(0x14b)][r(0x12c)]({'filePath':e+'.'+f[r(0x175)]['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[r(0x175)][r(0x160)]+r(0x169)+r(0x155)+g[r(0x176)]+'.'+f[r(0x175)]['css']+'\x27;'}),!f['template']['css']&&this[r(0x14b)][r(0x12c)]({'filePath':e+'.'+f[r(0x175)]['js'],'content':r(0x155)+g[r(0x176)]+'.'+f[r(0x175)][r(0x160)]+'\x27;'})):f[r(0x12e)][r(0x14f)]&&this[r(0x14b)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x175)]['js'],'content':r(0x155)+g[r(0x176)]+'.'+f[r(0x175)][r(0x14f)]+'\x27;'});const h=b['dir']?'/'+b[r(0x136)]+'/':'/',i=''+c+h+g['fileName']+'/'+g['fileName'];let j;if(f[r(0x175)][r(0x156)]===r(0x139)){const k=this[r(0x14b)]['pathFromApp']({'pathParts':[r(0x15e),'startup',r(0x158),r(0x15b)]});j=this[r(0x14b)][r(0x132)]({'pathParts':[k],'config':f});}else{const l=this[r(0x14b)]['pathFromApp']({'pathParts':[r(0x15e),r(0x14c),r(0x138),r(0x15b)]});j=this[r(0x14b)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x175)][r(0x138)]==='react'?(f[r(0x175)]['js']==='tsx'?this['fsi'][r(0x12c)]({'filePath':j,'content':'import\x20{\x20'+g[r(0x13f)]+r(0x145)+i+r(0x169)}):this['fsi'][r(0x12c)]({'filePath':j,'content':'import\x20{\x20'+g[r(0x13f)]+r(0x145)+i+'.'+f[r(0x175)]['js']+r(0x169)}),this[r(0x14b)][r(0x174)]({'filePath':j,'content':r(0x148)+g['className']+r(0x13c)})):this[r(0x14b)][r(0x174)]({'filePath':j,'content':r(0x16a)+i+'.'+f[r(0x175)]['js']+r(0x169)});});});
1
+ const a108p=a108d;(function(a,b){const m=a108d,c=a();while(!![]){try{const d=parseInt(m(0xec))/0x1*(parseInt(m(0xcc))/0x2)+parseInt(m(0xd5))/0x3+-parseInt(m(0xbb))/0x4+-parseInt(m(0xc5))/0x5*(parseInt(m(0xca))/0x6)+parseInt(m(0xaa))/0x7+parseInt(m(0xc7))/0x8+-parseInt(m(0xa9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x1bb66));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a108d;if(c){const e=c[n(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const o=a108d;return a108a[o(0xe9)]()[o(0xae)](o(0xa3))[o(0xe9)]()['constructor'](a108a)[o(0xae)](o(0xa3));});a108a();import a108e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x9e;let f=c[d];return f;},a108d(a,b);}function a108c(){const s=['426324nOUEIu','\x20};\x0a','string','import\x20\x27./','css','withHooks','template','ramda','startup','lib','getProjectConfig','page','warn','import\x20{\x20','imports','layouts','checkNpmPackage','installNpmPackage','className','hooks','toString','pathFromProject','/imports/ui/pages','2894ceMbPJ','injectAtBeginningOfFile','apply','test','templates.js','fileName','hasOwnProperty','(((.+)+)+)+$','react','.js','\x27;\x0a','none','root','1320678ChxTgS','907774IdKXpo','html','tsx','withTranslations','search','injectAtEndOfFile','ssr','setTemplate','relative','.app-tests.js','rewriteDestinationPathForEngine','layout','resourceName','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','true','vanilla','hook/hook.js','276832jjBokH','export\x20{\x20','fsi','features','component','dir','graphql','template/template.css','Updating\x20npm\x20packages\x20...','client','41285TWisJQ','/imports/ui/','543768CUudEj','baseDir','store','18HFFryL','create','10ySmfOk','engines','\x20}\x20from\x20\x27','assign','withValue','pathFromApp','theme','import\x20\x27','.css'];a108c=function(){return s;};return a108c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a108p(0xcb)]({'name':a108p(0xe0),'aliases':aliases,'usage':a108p(0xb7),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a108p(0xc8),'values':[a108p(0xe8),'components','pages',a108p(0xe4)]},{'name':'withHook','boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a108p,c=b[q(0xc8)]?q(0xc6)+b[q(0xc8)]:q(0xeb),d=this[q(0xbd)][q(0xd1)](b),e=this['fsi'][q(0xd1)]({'pathParts':[c,b[q(0xc0)],paramCase(b[q(0xb6)]),paramCase(b[q(0xb6)])]}),f=this[q(0xbd)][q(0xdf)]();this[q(0xbd)][q(0xd0)](f,()=>{const r=q;typeof f[r(0xdb)][r(0xab)]===r(0xd7)&&(f[r(0xdb)][r(0xab)]=f[r(0xdb)][r(0xab)]===r(0xb8)?!![]:![],this[r(0xbd)]['setTemplate'](r(0xab),f[r(0xdb)][r(0xab)]));typeof f[r(0xdb)][r(0x9f)]===r(0xd7)&&(f[r(0xdb)][r(0x9f)]=f[r(0xdb)][r(0x9f)]==='true'?!![]:![],this[r(0xbd)][r(0xb1)]('test',f[r(0xdb)][r(0x9f)]));typeof f['template'][r(0xd9)]===r(0xd7)&&(f[r(0xdb)][r(0xd9)]=f[r(0xdb)]['css']===r(0xb8)?!![]:![],this[r(0xbd)][r(0xb1)](r(0xd9),f[r(0xdb)][r(0xd9)]));typeof f[r(0xdb)]['js']===r(0xd7)&&(f[r(0xdb)]['js']=f[r(0xdb)]['js']==='true'?!![]:![],this[r(0xbd)][r(0xb1)]('js',f[r(0xdb)]['js']));!f[r(0xbe)]&&(f[r(0xbe)]={});!b[r(0xa8)]&&!this[r(0xbd)][r(0xe5)](r(0xdc))&&(Log[r(0xe1)](r(0xc3)),this['fsi'][r(0xe6)](r(0xdc),{'cwd':d}));const g={'name':pascalCase(b[r(0xb6)]),'myPath':a108e[r(0xb2)](this[r(0xbd)][r(0xea)]({}),e),'cssCaseName':paramCase(b[r(0xb6)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0xb6)]),'fileName':paramCase(b[r(0xb6)]),'graphql':f[r(0xcd)][r(0xc1)],'features':f[r(0xbe)],'client':f[r(0xcd)][r(0xc4)],'api':f['engines']['api'],'ssr':f['engines'][r(0xb0)],'isStore':b['hasOwnProperty'](r(0xc9)),'isComponent':b[r(0xa2)](r(0xbf)),'isLayout':b['hasOwnProperty'](r(0xb5)),'withTranslations':f[r(0xbe)][r(0xad)],'test':f[r(0xcd)][r(0x9f)],'theme':f[r(0xcd)][r(0xd2)]};f[r(0xdb)][r(0xab)]&&this[r(0xbd)]['template']({'srcPath':'template/template.html','destPath':e+'.html','context':g,'config':f});f[r(0xbe)]?.[r(0xda)]||b['withHook']?this[r(0xbd)][r(0xdb)]({'srcPath':r(0xba),'destPath':e+r(0xa5),'framework':r(0xa4),'context':g,'config':f}):this[r(0xbd)]['template']({'srcPath':'component/component.js','destPath':e+r(0xa5),'framework':r(0xa4),'context':g,'config':f});f[r(0xcd)]['test']!==r(0xa7)&&this[r(0xbd)][r(0xdb)]({'srcPath':'test/test.js','destPath':e+r(0xb3),'framework':r(0xa4),'context':g,'config':f});f[r(0xdb)][r(0xd9)]&&this[r(0xbd)][r(0xdb)]({'srcPath':r(0xc2),'destPath':e+r(0xd4),'context':Object[r(0xcf)]({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0xcd)][r(0xc4)]!==r(0xa4)&&f[r(0xcd)][r(0xc4)]!==r(0xb9)?(f['template'][r(0xd9)]&&this[r(0xbd)][r(0xed)]({'filePath':e+'.'+f['engines']['js'],'content':r(0xd8)+g[r(0xa1)]+'.'+f[r(0xcd)]['html']+r(0xa6)+r(0xd8)+g['fileName']+'.'+f[r(0xcd)]['css']+'\x27;'}),!f[r(0xdb)][r(0xd9)]&&this[r(0xbd)][r(0xed)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[r(0xa1)]+'.'+f[r(0xcd)][r(0xab)]+'\x27;'})):f[r(0xdb)][r(0xd9)]&&this[r(0xbd)][r(0xed)]({'filePath':e+'.'+f[r(0xcd)]['js'],'content':r(0xd8)+g[r(0xa1)]+'.'+f['engines'][r(0xd9)]+'\x27;'});const h=b[r(0xc0)]?'/'+b['dir']+'/':'/',i=''+c+h+g[r(0xa1)]+'/'+g[r(0xa1)];let j;if(f[r(0xcd)]['ssr']===r(0xb8)){const k=this[r(0xbd)][r(0xd1)]({'pathParts':[r(0xe3),r(0xdd),r(0xde),r(0xa0)]});j=this['fsi'][r(0xb4)]({'pathParts':[k],'config':f});}else{const l=this[r(0xbd)]['pathFromApp']({'pathParts':[r(0xe3),r(0xdd),r(0xc4),r(0xa0)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0xcd)][r(0xc4)]===r(0xa4)?(f['engines']['js']===r(0xac)?this[r(0xbd)][r(0xed)]({'filePath':j,'content':r(0xe2)+g[r(0xe7)]+r(0xce)+i+r(0xa6)}):this['fsi'][r(0xed)]({'filePath':j,'content':'import\x20{\x20'+g[r(0xe7)]+r(0xce)+i+'.'+f[r(0xcd)]['js']+r(0xa6)}),this[r(0xbd)][r(0xaf)]({'filePath':j,'content':r(0xbc)+g[r(0xe7)]+r(0xd6)})):this[r(0xbd)][r(0xaf)]({'filePath':j,'content':r(0xd3)+i+'.'+f[r(0xcd)]['js']+r(0xa6)});});});
@@ -1 +1 @@
1
- function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x9c;let f=c[d];return f;},a109d(a,b);}const a109k=a109d;function a109c(){const n=['6987LdNJqh','templateContent','constructor','747jcWHVJ','publish/publish.','116xLXBBD','1650tVmrKJ','getProjectConfig','1nacSfb','server/publish.','tsx','369182lIZiiO','create','140BARAvY','286536cihjJL','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','toString','withValue','resourceName','apply','publish','1521xydWAR','29771kcIxBe','2217120mFFunq','(((.+)+)+)+$','28208uNpuft','engines','1949490UmdOaa','fsi','search'];a109c=function(){return n;};return a109c();}(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0x9c))/0x1*(-parseInt(h(0xaf))/0x2)+-parseInt(h(0xb2))/0x3*(parseInt(h(0xb7))/0x4)+-parseInt(h(0xab))/0x5+-parseInt(h(0xb8))/0x6*(parseInt(h(0xaa))/0x7)+-parseInt(h(0xad))/0x8*(-parseInt(h(0xb5))/0x9)+-parseInt(h(0xa1))/0xa*(-parseInt(h(0x9f))/0xb)+parseInt(h(0xa2))/0xc*(parseInt(h(0xa9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xdbf67));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0xa7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0xa4)]()[j(0xb1)](j(0xac))[j(0xa4)]()[j(0xb4)](a109a)['search'](j(0xac));});a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a109k(0xa0)]({'name':a109k(0xa8),'aliases':['p'],'usage':a109k(0xa3),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a109k,c=this[l(0xb0)][l(0xb9)]();this['fsi'][l(0xa5)](c,async()=>{const m=l,d={'name':b[m(0xa6)],'collection':paramCase(b[m(0xa6)]),'noRename':!![]};let e='js';c[m(0xae)]['js']===m(0x9e)&&(e='ts');const f=this[m(0xb0)]['rewriteDestinationPathForEngine']({'pathParts':[m(0x9d)+c[m(0xae)]['js']]}),g=this[m(0xb0)][m(0xb3)]({'srcPath':m(0xb6)+e,'context':d,'config':c});this['fsi']['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
1
+ function a109c(){const m=['engines','(((.+)+)+)+$','create','getProjectConfig','188236plAvOr','2wWeZyw','templateContent','publish/publish.','toString','publish','maka\x20g:publish\x20todos','server/publish.','996031yNQvex','28UkyIue','540AYSXpL','3400030gDULkP','22xWVFSb','rewriteDestinationPathForEngine','21tXOfPA','453704SZGoSW','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','fsi','injectAtEndOfFile','7985Swjfrq','resourceName','27960936OzIwOH','search','2825514rirIrl'];a109c=function(){return m;};return a109c();}const a109j=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0x208))/0x1*(-parseInt(h(0x201))/0x2)+parseInt(h(0x1f2))/0x3*(parseInt(h(0x200))/0x4)+-parseInt(h(0x1f7))/0x5*(-parseInt(h(0x20a))/0x6)+-parseInt(h(0x209))/0x7*(parseInt(h(0x1f3))/0x8)+-parseInt(h(0x1fb))/0x9+-parseInt(h(0x1ef))/0xa*(parseInt(h(0x1f0))/0xb)+parseInt(h(0x1f9))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x8f292));const a109b=(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;};}()),a109a=a109b(this,function(){const i=a109d;return a109a[i(0x204)]()[i(0x1fa)](i(0x1fd))[i(0x204)]()['constructor'](a109a)[i(0x1fa)]('(((.+)+)+)+$');});function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a109d(a,b);}a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a109j(0x1fe)]({'name':a109j(0x205),'aliases':['p'],'usage':a109j(0x1f4),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a109j(0x206)]},async function(a,b){const k=a109j,c=this[k(0x1f5)][k(0x1ff)]();this[k(0x1f5)]['withValue'](c,async()=>{const l=k,d={'name':b['resourceName'],'collection':paramCase(b[l(0x1f8)]),'noRename':!![]};let e='js';c[l(0x1fc)]['js']==='tsx'&&(e='ts');const f=this[l(0x1f5)][l(0x1f1)]({'pathParts':[l(0x207)+c[l(0x1fc)]['js']]}),g=this[l(0x1f5)][l(0x202)]({'srcPath':l(0x203)+e,'context':d,'config':c});this['fsi'][l(0x1f6)]({'filePath':f,'content':'\x0a'+g});});});