@maka/maka-cli 4.6.2 → 4.6.4

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 (138) hide show
  1. package/README.md +0 -10
  2. package/bundle/obf/package.json +2 -2
  3. package/bundle/obf/src/README.md +0 -10
  4. package/bundle/obf/src/command.js +1 -1
  5. package/bundle/obf/src/commands/_index.js +1 -1
  6. package/bundle/obf/src/commands/ai.js +1 -1
  7. package/bundle/obf/src/commands/aws/_index.js +1 -1
  8. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  9. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/build/_index.js +1 -1
  22. package/bundle/obf/src/commands/build/build.js +1 -1
  23. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/create.js +1 -1
  25. package/bundle/obf/src/commands/debug.js +1 -1
  26. package/bundle/obf/src/commands/deploy.js +1 -1
  27. package/bundle/obf/src/commands/game/_index.js +1 -1
  28. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/play.command.js +1 -1
  30. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/generate.js +1 -1
  68. package/bundle/obf/src/commands/get/_index.js +1 -1
  69. package/bundle/obf/src/commands/get/get.command.js +1 -1
  70. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/help.js +1 -1
  74. package/bundle/obf/src/commands/install.js +1 -1
  75. package/bundle/obf/src/commands/jsdoc.js +1 -1
  76. package/bundle/obf/src/commands/lint.js +1 -1
  77. package/bundle/obf/src/commands/login.js +1 -1
  78. package/bundle/obf/src/commands/logout.js +1 -1
  79. package/bundle/obf/src/commands/logs.js +1 -1
  80. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  81. package/bundle/obf/src/commands/murder.js +1 -1
  82. package/bundle/obf/src/commands/proxy.js +1 -1
  83. package/bundle/obf/src/commands/reconfig.js +1 -1
  84. package/bundle/obf/src/commands/run/_index.js +1 -1
  85. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/run/run.command.js +1 -1
  87. package/bundle/obf/src/commands/set/_index.js +1 -1
  88. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  89. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  90. package/bundle/obf/src/commands/set/set.command.js +1 -1
  91. package/bundle/obf/src/commands/ssh.js +1 -1
  92. package/bundle/obf/src/commands/ssl.js +1 -1
  93. package/bundle/obf/src/commands/test.js +1 -1
  94. package/bundle/obf/src/commands/version.js +1 -1
  95. package/bundle/obf/src/error.js +1 -1
  96. package/bundle/obf/src/exec.js +1 -1
  97. package/bundle/obf/src/generator.js +1 -1
  98. package/bundle/obf/src/generators/_index.js +1 -1
  99. package/bundle/obf/src/generators/api.js +1 -1
  100. package/bundle/obf/src/generators/collection.js +1 -1
  101. package/bundle/obf/src/generators/component.js +1 -1
  102. package/bundle/obf/src/generators/config.js +1 -1
  103. package/bundle/obf/src/generators/dbc.js +1 -1
  104. package/bundle/obf/src/generators/dockerfile.js +1 -1
  105. package/bundle/obf/src/generators/hook.js +1 -1
  106. package/bundle/obf/src/generators/kit.js +1 -1
  107. package/bundle/obf/src/generators/layout.js +1 -1
  108. package/bundle/obf/src/generators/maka.gen.js +1 -1
  109. package/bundle/obf/src/generators/methods.js +1 -1
  110. package/bundle/obf/src/generators/package.js +1 -1
  111. package/bundle/obf/src/generators/page.js +1 -1
  112. package/bundle/obf/src/generators/publish.js +1 -1
  113. package/bundle/obf/src/generators/route.js +1 -1
  114. package/bundle/obf/src/generators/service.js +1 -1
  115. package/bundle/obf/src/generators/services/_index.js +1 -1
  116. package/bundle/obf/src/generators/services/openssl.js +1 -1
  117. package/bundle/obf/src/generators/services/translation.js +1 -1
  118. package/bundle/obf/src/maka.js +1 -1
  119. package/bundle/obf/src/tool.js +1 -1
  120. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  121. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  122. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  124. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  125. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  126. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  127. package/bundle/obf/src/tools/https/https.class.js +1 -1
  128. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  129. package/bundle/obf/src/tools/https/progress.class.js +1 -1
  130. package/bundle/obf/src/tools/log/log.class.js +1 -1
  131. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/options/options.class.js +1 -1
  133. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  134. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  136. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  137. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  138. package/package.json +2 -2
@@ -1 +1 @@
1
- (function(a,b){var f=a95d,c=a();while(!![]){try{var d=parseInt(f(0x145))/0x1*(parseInt(f(0x14a))/0x2)+-parseInt(f(0x14c))/0x3+-parseInt(f(0x142))/0x4+-parseInt(f(0x149))/0x5*(-parseInt(f(0x141))/0x6)+parseInt(f(0x14b))/0x7+-parseInt(f(0x148))/0x8*(parseInt(f(0x146))/0x9)+parseInt(f(0x13e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x78082));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0x13f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a[h(0x144)]()[h(0x140)](h(0x143))[h(0x144)]()[h(0x147)](a95a)[h(0x140)](h(0x143));});a95a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x13e;var f=c[d];return f;},a95d(a,b);}import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a95c(){var i=['constructor','48pCLaTV','115OJgLec','18248VrSZZo','5287835MxAAFM','2006850dpBogb','4893740rNxRLb','apply','search','58866LTEvjT','1802336UbfIRz','(((.+)+)+)+$','toString','46ASCeiK','418428vlVytm'];a95c=function(){return i;};return a95c();}import'./maka.gen.js';
1
+ (function(a,b){var f=a95d,c=a();while(!![]){try{var d=-parseInt(f(0xa4))/0x1+-parseInt(f(0xa7))/0x2*(parseInt(f(0xa0))/0x3)+parseInt(f(0xa5))/0x4+parseInt(f(0x9f))/0x5*(parseInt(f(0xa3))/0x6)+parseInt(f(0xa2))/0x7+parseInt(f(0xa8))/0x8+parseInt(f(0x9c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x7d47e));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0xa6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a['toString']()[h(0x9d)](h(0xa1))[h(0xa9)]()[h(0x9e)](a95a)[h(0x9d)](h(0xa1));});a95a();function a95c(){var i=['779438ihwtTS','710124keZrlL','apply','4DAdPlp','5723792nrxjoP','toString','2201778xHZsEC','search','constructor','15CVSXtK','507933IPjRwy','(((.+)+)+)+$','2095254DIMFvQ','388482veywLg'];a95c=function(){return i;};return a95c();}import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x9c;var f=c[d];return f;},a95d(a,b);}import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
@@ -1 +1 @@
1
- const a96z=a96d;function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x19f;let f=c[d];return f;},a96d(a,b);}function a96c(){const C=['REST\x20API','const','injectAtBeginningOfFile','/graphql/typeDefs','withGql','index.','includes','if\x20\x5c(typeList','6IMRDuu','withPubs','engines','api','api/typeDefs.js','search','push','collection','pathFromApp','1386287VgtuoX','template','TypeDefs);\x0a','register-','Fixtures','api/api.js','Resolvers);\x0a\x0a','startup','ddp-rate-limiter','withRest','create','\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','apiAnswers','10073530RXFcAj','(((.+)+)+)+$','1670430yMIXnO','maka:check','rest-api.','fsi','typeList.push(','resolvers.','imports','typeDefs.','graphql','rewriteDestinationPathForEngine','3mDIypi','GraphQL','dir','API\x20boundaries\x20to\x20create','229770QcopCU','11WsGmuQ','checkbox','api/register-api.js','apply','mongo','TypeDefs\x20}\x20from\x20\x27','api/methods.js','432207Cqnshh','constructor','withMethods','apollo','maka\x20{generate,\x20g}:{api}\x20<resource-name>','api/fixtures.js','resolverList.push(','.app-tests.','resourceName','api/tests.js','40rJKcBA','withValue','api/resolvers.js','length','Verifying\x20meteor\x20package\x20requirements\x20...','\x27;\x0a','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','injectIntoFile','withFixtures','\x0aimport\x20{\x20resolvers\x20as\x20','rest','/graphql/resolvers','checkMeteorPackage','1067276opUMrD','353172mKxIxO','toString','rpc-methods.','import\x20\x27./register-','injectAtEndOfFile','error','tsx','server','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','exit','installMeteorPackage','-api.','/imports/api'];a96c=function(){return C;};return a96c();}(function(a,b){const w=a96d,c=a();while(!![]){try{const d=-parseInt(w(0x1e7))/0x1+-parseInt(w(0x1b9))/0x2+-parseInt(w(0x1c3))/0x3*(-parseInt(w(0x1e6))/0x4)+-parseInt(w(0x1c7))/0x5+-parseInt(w(0x1a1))/0x6*(-parseInt(w(0x1aa))/0x7)+parseInt(w(0x1d9))/0x8*(parseInt(w(0x1cf))/0x9)+parseInt(w(0x1b7))/0xa*(parseInt(w(0x1c8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x74b23));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a96d;if(c){const e=c[x(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const y=a96d;return a96a[y(0x1e8)]()['search'](y(0x1b8))[y(0x1e8)]()[y(0x1d0)](a96a)[y(0x1a6)]('(((.+)+)+)+$');});a96a();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[a96z(0x1b4)]({'name':a96z(0x1a4),'aliases':['a'],'usage':a96z(0x1d3),'shortDesc':a96z(0x1ef),'validOpts':['dir'],'examples':['maka\x20g:api\x20Todos'],'description':a96z(0x1b5)},async function(a,b){const A=a96z;try{const c=this['fsi']['getProjectConfig'](),d=[{'name':'RPC\x20(Methods)','value':'withMethods'},{'name':A(0x1ae),'value':A(0x1e1)},{'name':'Publications','value':A(0x1a2)}];c[A(0x1a3)][A(0x1a4)]==='rest'&&d[A(0x1a7)]({'name':A(0x1f4),'value':'withRest'});c[A(0x1a3)][A(0x1c1)]===A(0x1d2)&&d[A(0x1a7)]({'name':A(0x1c4),'value':A(0x1f8)});const f={'type':A(0x1c9),'name':A(0x1b6),'message':A(0x1c6),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[A(0x1dc)]===0x0&&(Log[A(0x1ec)]('No\x20API\x20boundaries\x20selected'),process[A(0x1f0)](0x1)),this['fsi'][A(0x1da)](c,async()=>{const B=A,h=this['fsi'][B(0x1a9)]({}),i=b[B(0x1d7)],j=paramCase(i),k=camelCase(i),l=b[B(0x1c5)]?'/'+b[B(0x1c5)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1a3)][B(0x1a4)],'graphql':c[B(0x1a3)][B(0x1c1)],'test':c[B(0x1a3)]['test'],'noRename':!![],'withPubs':g[B(0x19f)](B(0x1a2)),'withFixtures':g[B(0x19f)](B(0x1e1)),'withMethods':g[B(0x19f)](B(0x1d1)),'withRest':g[B(0x19f)](B(0x1b3))};let n='js';c[B(0x1a3)]['js']===B(0x1ed)&&(n='ts');(!this['fsi']['checkMeteorPackage']('maka:rest')||!this['fsi']['checkMeteorPackage'](B(0x1ba))||!this[B(0x1bc)][B(0x1e5)](B(0x1b2))||!this[B(0x1bc)][B(0x1e5)]('mdg:validated-method')||!this[B(0x1bc)][B(0x1e5)](B(0x1cc)))&&(Log['notice'](B(0x1dd)),await this[B(0x1bc)][B(0x1f1)](B(0x1df),{'cwd':h}));const o=a96e['findGenerator'](B(0x1a8));o&&await o['invoke']([j],{'config':c,'where':B(0x1ee)});c[B(0x1a3)][B(0x1a4)]===B(0x1e3)&&(m[B(0x1b3)]&&this[B(0x1bc)][B(0x1ab)]({'srcPath':B(0x1af),'destPath':this[B(0x1bc)][B(0x1a9)]({'pathParts':['imports',B(0x1a4),b['dir'],j,B(0x1bb)+n]}),'context':m,'config':c}));m[B(0x1d1)]&&this[B(0x1bc)][B(0x1ab)]({'srcPath':B(0x1ce),'destPath':this[B(0x1bc)][B(0x1a9)]({'pathParts':['imports',B(0x1a4),b[B(0x1c5)],j,B(0x1e9)+n]}),'context':m,'config':c});m[B(0x1e1)]&&this[B(0x1bc)][B(0x1ab)]({'srcPath':B(0x1d4),'destPath':this[B(0x1bc)][B(0x1a9)]({'pathParts':[B(0x1bf),B(0x1a4),b[B(0x1c5)],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x1a3)]['test']!=='none'&&this[B(0x1bc)]['template']({'srcPath':B(0x1d8),'destPath':this[B(0x1bc)][B(0x1a9)]({'pathParts':['imports',B(0x1a4),b[B(0x1c5)],j,j+B(0x1d6)+n]}),'context':m,'config':c});m[B(0x1a2)]&&this[B(0x1bc)][B(0x1ab)]({'srcPath':'api/publications.js','destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x1bf),'api',b[B(0x1c5)],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][B(0x1c1)]===B(0x1d2)){if(g[B(0x19f)](B(0x1f8))){const q=this['fsi'][B(0x1a9)]({'pathParts':[B(0x1bf),'startup','server',B(0x1f9)+c['engines']['js']]}),r=this[B(0x1bc)][B(0x1c2)]({'pathParts':[q],'config':c}),s=this['fsi'][B(0x1a9)]({'pathParts':[B(0x1bf),B(0x1a4),b['dir'],j,B(0x1c1),B(0x1c0)+n]}),t=B(0x1f3)+l+j+B(0x1f7);this['fsi']['template']({'srcPath':B(0x1a5),'destPath':s,'context':m,'config':c}),this[B(0x1bc)]['injectAtBeginningOfFile']({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+B(0x1cd)+t+B(0x1de)}),this[B(0x1bc)][B(0x1e0)]({'filePath':r,'content':B(0x1bd)+k+B(0x1ac),'begin':B(0x1f5),'end':B(0x1a0)});const u=this[B(0x1bc)][B(0x1a9)]({'pathParts':[B(0x1bf),B(0x1a4),b['dir'],j,B(0x1c1),B(0x1be)+n]}),v='/imports/api'+l+j+B(0x1e4);this['fsi']['template']({'srcPath':B(0x1db),'destPath':u,'context':m,'config':c}),this[B(0x1bc)][B(0x1f6)]({'filePath':r,'content':B(0x1e2)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this['fsi'][B(0x1e0)]({'filePath':r,'content':B(0x1d5)+k+B(0x1b0),'begin':B(0x1f5),'end':B(0x1a0)});}}this[B(0x1bc)][B(0x1ab)]({'srcPath':B(0x1ca),'destPath':this[B(0x1bc)][B(0x1a9)]({'pathParts':[B(0x1bf),B(0x1b1),B(0x1ee),B(0x1ad)+j+B(0x1f2)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1bc)]['pathFromApp']({'pathParts':['imports',B(0x1b1),'server','index.'+c[B(0x1a3)]['js']]});this[B(0x1bc)][B(0x1eb)]({'filePath':p,'content':B(0x1ea)+j+'-api\x27;'});});}catch(h){console[A(0x1ec)](h),process[A(0x1f0)](0x0);}});
1
+ const a96z=a96d;(function(a,b){const w=a96d,c=a();while(!![]){try{const d=-parseInt(w(0x115))/0x1*(parseInt(w(0xf8))/0x2)+-parseInt(w(0x109))/0x3*(parseInt(w(0x104))/0x4)+-parseInt(w(0x120))/0x5+-parseInt(w(0xe0))/0x6*(parseInt(w(0xd8))/0x7)+-parseInt(w(0x128))/0x8+-parseInt(w(0x10b))/0x9+parseInt(w(0xe1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x33e6c));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a96d;if(c){const e=c[x(0x12a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const y=a96d;return a96a[y(0xe5)]()[y(0x113)]('(((.+)+)+)+$')[y(0xe5)]()['constructor'](a96a)[y(0x113)](y(0x101));});a96a();import{Generator}from'../generator.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xd8;let f=c[d];return f;},a96d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a96c(){const C=['imports','406053wyvhhO','push','withPubs','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','resolverList.push(','server','includes','/imports/api','search','withMethods','209372EGEMWO','findGenerator','api/methods.js','api/tests.js','withValue','\x0aimport\x20{\x20resolvers\x20as\x20','engines','\x27;\x0a','graphql','apiAnswers','apollo','1625310VtXkym','maka\x20g:api\x20Todos','/graphql/typeDefs','length','resolvers.','startup','notice','maka:check','2102888IWufNs','Resolvers);\x0a\x0a','apply','TypeDefs\x20}\x20from\x20\x27','rest-api.','checkMeteorPackage','REST\x20API','invoke','dir','TypeDefs);\x0a','fixtures.','index.','7IlJxwD','pathFromApp','rest','withFixtures','api/register-api.js','template','create','resourceName','1712202VWYRta','13679790jKuVyB','const','publications.','\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','toString','withGql','import\x20{\x20typeDefs\x20as\x20','checkbox','rpc-methods.','exit','/graphql/resolvers','fsi','Publications','api/api.js','options','tsx','rewriteDestinationPathForEngine','maka:rest','import\x20\x27./register-','api','installMeteorPackage','collection','Verifying\x20meteor\x20package\x20requirements\x20...','2yEEllh','-api.','getProjectConfig','mongo','-api\x27;','injectIntoFile','api/resolvers.js','withRest','Fixtures','(((.+)+)+)+$','test','if\x20\x5c(typeList','55224dCTiWQ','injectAtBeginningOfFile','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','injectAtEndOfFile','error','6VRYFKP'];a96c=function(){return C;};return a96c();}import a96e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a96z(0xde)]({'name':'api','aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a96z(0x10e),'validOpts':[a96z(0x130)],'examples':[a96z(0x121)],'description':a96z(0xe4)},async function(a,b){const A=a96z;try{const c=this[A(0xec)][A(0xfa)](),d=[{'name':'RPC\x20(Methods)','value':A(0x114)},{'name':A(0x100),'value':'withFixtures'},{'name':A(0xed),'value':A(0x10d)}];c['engines'][A(0xf4)]===A(0xda)&&d[A(0x10c)]({'name':A(0x12e),'value':'withRest'});c['engines'][A(0x11d)]===A(0x11f)&&d[A(0x10c)]({'name':'GraphQL','value':A(0xe6)});const f={'type':A(0xe8),'name':A(0x11e),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0xef)](f);g[A(0x123)]===0x0&&(Log['error']('No\x20API\x20boundaries\x20selected'),process[A(0xea)](0x1)),this[A(0xec)][A(0x119)](c,async()=>{const B=A,h=this[B(0xec)][B(0xd9)]({}),i=b[B(0xdf)],j=paramCase(i),k=camelCase(i),l=b[B(0x130)]?'/'+b[B(0x130)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x11b)][B(0xf4)],'graphql':c['engines'][B(0x11d)],'test':c[B(0x11b)][B(0x102)],'noRename':!![],'withPubs':g[B(0x111)](B(0x10d)),'withFixtures':g[B(0x111)](B(0xdb)),'withMethods':g['includes'](B(0x114)),'withRest':g['includes'](B(0xff))};let n='js';c[B(0x11b)]['js']===B(0xf0)&&(n='ts');(!this['fsi']['checkMeteorPackage'](B(0xf2))||!this[B(0xec)][B(0x12d)](B(0x127))||!this[B(0xec)][B(0x12d)]('ddp-rate-limiter')||!this[B(0xec)][B(0x12d)]('mdg:validated-method')||!this[B(0xec)][B(0x12d)](B(0xfb)))&&(Log[B(0x126)](B(0xf7)),await this[B(0xec)][B(0xf5)](B(0x106),{'cwd':h}));const o=a96e[B(0x116)](B(0xf6));o&&await o[B(0x12f)]([j],{'config':c,'where':B(0x110)});c[B(0x11b)][B(0xf4)]===B(0xda)&&(m[B(0xff)]&&this[B(0xec)][B(0xdd)]({'srcPath':B(0xee),'destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x10a),B(0xf4),b[B(0x130)],j,B(0x12c)+n]}),'context':m,'config':c}));m['withMethods']&&this[B(0xec)][B(0xdd)]({'srcPath':B(0x117),'destPath':this[B(0xec)][B(0xd9)]({'pathParts':[B(0x10a),B(0xf4),b[B(0x130)],j,B(0xe9)+n]}),'context':m,'config':c});m[B(0xdb)]&&this[B(0xec)][B(0xdd)]({'srcPath':'api/fixtures.js','destPath':this[B(0xec)][B(0xd9)]({'pathParts':[B(0x10a),B(0xf4),b[B(0x130)],j,B(0x132)+n]}),'context':m,'config':c});c[B(0x11b)][B(0x102)]!=='none'&&this[B(0xec)]['template']({'srcPath':B(0x118),'destPath':this[B(0xec)]['pathFromApp']({'pathParts':[B(0x10a),B(0xf4),b['dir'],j,j+'.app-tests.'+n]}),'context':m,'config':c});m[B(0x10d)]&&this['fsi']['template']({'srcPath':'api/publications.js','destPath':this[B(0xec)]['pathFromApp']({'pathParts':['imports',B(0xf4),b[B(0x130)],j,B(0xe3)+n]}),'context':m,'config':c});if(c['engines'][B(0x11d)]===B(0x11f)){if(g[B(0x111)](B(0xe6))){const q=this['fsi'][B(0xd9)]({'pathParts':['imports','startup','server',B(0x133)+c[B(0x11b)]['js']]}),r=this[B(0xec)][B(0xf1)]({'pathParts':[q],'config':c}),s=this[B(0xec)][B(0xd9)]({'pathParts':[B(0x10a),B(0xf4),b[B(0x130)],j,B(0x11d),'typeDefs.'+n]}),t=B(0x112)+l+j+B(0x122);this[B(0xec)][B(0xdd)]({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this[B(0xec)][B(0x105)]({'filePath':r,'content':B(0xe7)+k+B(0x12b)+t+B(0x11c)}),this[B(0xec)][B(0xfd)]({'filePath':r,'content':'typeList.push('+k+B(0x131),'begin':'const','end':B(0x103)});const u=this[B(0xec)][B(0xd9)]({'pathParts':['imports',B(0xf4),b['dir'],j,B(0x11d),B(0x124)+n]}),v=B(0x112)+l+j+B(0xeb);this[B(0xec)][B(0xdd)]({'srcPath':B(0xfe),'destPath':u,'context':m,'config':c}),this[B(0xec)][B(0x105)]({'filePath':r,'content':B(0x11a)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[B(0xec)][B(0xfd)]({'filePath':r,'content':B(0x10f)+k+B(0x129),'begin':B(0xe2),'end':B(0x103)});}}this[B(0xec)][B(0xdd)]({'srcPath':B(0xdc),'destPath':this[B(0xec)][B(0xd9)]({'pathParts':[B(0x10a),B(0x125),B(0x110),'register-'+j+B(0xf9)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0xd9)]({'pathParts':[B(0x10a),B(0x125),B(0x110),B(0x133)+c[B(0x11b)]['js']]});this[B(0xec)][B(0x107)]({'filePath':p,'content':B(0xf3)+j+B(0xfc)});});}catch(h){console[A(0x108)](h),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0x1da))/0x1*(parseInt(k(0x1d9))/0x2)+-parseInt(k(0x1e6))/0x3+parseInt(k(0x1f6))/0x4+parseInt(k(0x1f7))/0x5+-parseInt(k(0x1f1))/0x6*(parseInt(k(0x1d7))/0x7)+-parseInt(k(0x1dc))/0x8+parseInt(k(0x1d5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x6fece));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x1d3)]()['search'](m(0x1db))[m(0x1d3)]()[m(0x1e7)](a97a)[m(0x1e3)](m(0x1db));});a97a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a97c(){const q=['collection','2189577wGNwyD','constructor','tsx','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','startup','installMeteorPackage','mongo','where','engines','resourceName','pathFromApp','1964676YCPSGo','notice','fsi','maka\x20g:collection\x20todos','imports','2036692nWVptE','4166225YjQutn','test','apply','injectAtEndOfFile','collection/tests.js','create','template','.app-tests.','error','index.','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','appPathPrefix','toString','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','2562912hsaMOG','col','7tqdCMK','maka:check','67198nwfpho','3wZXhCU','(((.+)+)+)+$','85104aVNMpC','withValue','collections','checkMeteorPackage','collection/collection.js','\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','dir','search','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection'];a97c=function(){return q;};return a97c();}function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1d1;let f=c[d];return f;},a97d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a97n(0x1fc)]({'name':a97n(0x1e5),'aliases':[a97n(0x1d6)],'usage':a97n(0x1d4),'checkWhere':!![],'shortDesc':a97n(0x1e4),'validOpts':['dir',a97n(0x1ed)],'description':a97n(0x1e1),'examples':[a97n(0x1f4)]},async function(a,b){const o=a97n;try{const c=this['fsi']['pathFromApp']({}),d=this[o(0x1f3)]['getProjectConfig']();this[o(0x1f3)][o(0x1dd)](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x1ef)]),'fileName':f,'where':b['where'],'test':d[p(0x1ee)][p(0x1f8)],'noRename':!![]};let h='js';d[p(0x1ee)]['js']===p(0x1e8)&&(h='ts');!this[p(0x1f3)]['checkMeteorPackage'](p(0x1ec))&&(Log[p(0x1f2)](p(0x1e9)),await this[p(0x1f3)][p(0x1eb)]('mongo',{'cwd':c}));!this[p(0x1f3)][p(0x1df)](p(0x1d8))&&(Log[p(0x1f2)](p(0x1d1)),await this[p(0x1f3)][p(0x1eb)](p(0x1d8),{'cwd':c}));this[p(0x1f3)][p(0x1fd)]({'srcPath':p(0x1e0),'destPath':this[p(0x1f3)][p(0x1f0)]({'pathParts':[p(0x1f5),p(0x1ea),b[p(0x1d2)],p(0x1de),b[p(0x1e2)],f+'.'+h]}),'context':g,'config':d});d[p(0x1ee)][p(0x1f8)]!=='none'&&this['fsi']['template']({'srcPath':p(0x1fb),'destPath':this[p(0x1f3)][p(0x1f0)]({'pathParts':[p(0x1f5),p(0x1ea),b['appPathPrefix'],p(0x1de),b[p(0x1e2)],f+p(0x1fe)+h]}),'context':g,'config':d});const i=b[p(0x1e2)]?'/'+b[p(0x1e2)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':[p(0x1f5),p(0x1ea),b[p(0x1d2)],p(0x200)+d['engines']['js']]});this[p(0x1f3)][p(0x1fa)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0x1ff)](f);}});
1
+ const a97m=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0x17e))/0x1+parseInt(k(0x17c))/0x2+-parseInt(k(0x19e))/0x3+-parseInt(k(0x1a0))/0x4+parseInt(k(0x193))/0x5*(-parseInt(k(0x1a2))/0x6)+parseInt(k(0x18b))/0x7*(parseInt(k(0x176))/0x8)+parseInt(k(0x189))/0x9*(parseInt(k(0x199))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xb92e0));const a97b=(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;};}()),a97a=a97b(this,function(){const l=a97d;return a97a[l(0x196)]()[l(0x19d)]('(((.+)+)+)+$')[l(0x196)]()[l(0x19c)](a97a)[l(0x19d)]('(((.+)+)+)+$');});a97a();import{paramCase,pascalCase}from'change-case';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x175;let f=c[d];return f;},a97d(a,b);}function a97c(){const p=['none','6843487QNwshX','installMeteorPackage','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','collection/tests.js','mongo','template','appPathPrefix','col','5089255EOehcU','maka\x20g:collection\x20todos','collection','toString','maka:check','fsi','10zwtYVX','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','engines','constructor','search','3434817tJqUSZ','error','247780fyvoWP','pathFromApp','6BtTfIn','imports','8CKqtag','notice','resourceName','tsx','import\x20\x27./collections','test','2827754sRwCYX','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','718293ZuRmil','where','startup','dir','checkMeteorPackage','\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','create','.app-tests.','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','collections','injectAtEndOfFile','11790054KuTaIp'];a97c=function(){return p;};return a97c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a97m(0x184)]({'name':a97m(0x195),'aliases':[a97m(0x192)],'usage':a97m(0x18d),'checkWhere':!![],'shortDesc':a97m(0x186),'validOpts':[a97m(0x181),'where'],'description':a97m(0x183),'examples':[a97m(0x194)]},async function(a,b){const n=a97m;try{const c=this[n(0x198)]['pathFromApp']({}),d=this[n(0x198)]['getProjectConfig']();this[n(0x198)]['withValue'](d,async()=>{const o=n,f=paramCase(b[o(0x178)]),g={'name':pascalCase(b[o(0x178)]),'collectionName':pascalCase(b[o(0x178)]),'fileName':f,'where':b[o(0x17f)],'test':d['engines']['test'],'noRename':!![]};let h='js';d['engines']['js']===o(0x179)&&(h='ts');!this[o(0x198)][o(0x182)]('mongo')&&(Log[o(0x177)](o(0x17d)),await this[o(0x198)][o(0x18c)](o(0x18f),{'cwd':c}));!this['fsi'][o(0x182)](o(0x197))&&(Log[o(0x177)](o(0x19a)),await this[o(0x198)][o(0x18c)](o(0x197),{'cwd':c}));this['fsi'][o(0x190)]({'srcPath':'collection/collection.js','destPath':this['fsi'][o(0x1a1)]({'pathParts':[o(0x175),o(0x180),b[o(0x191)],o(0x187),b[o(0x181)],f+'.'+h]}),'context':g,'config':d});d[o(0x19b)][o(0x17b)]!==o(0x18a)&&this[o(0x198)][o(0x190)]({'srcPath':o(0x18e),'destPath':this['fsi'][o(0x1a1)]({'pathParts':[o(0x175),o(0x180),b[o(0x191)],'collections',b['dir'],f+o(0x185)+h]}),'context':g,'config':d});const i=b[o(0x181)]?'/'+b[o(0x181)]+'/':'/',j=this[o(0x198)][o(0x1a1)]({'pathParts':[o(0x175),'startup',b[o(0x191)],'index.'+d[o(0x19b)]['js']]});this[o(0x198)][o(0x188)]({'filePath':j,'content':o(0x17a)+i+f+'\x27;'});});}catch(f){Log[n(0x19f)](f);}});
@@ -1 +1 @@
1
- const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=parseInt(n(0xf4))/0x1*(parseInt(n(0x105))/0x2)+-parseInt(n(0xd7))/0x3+parseInt(n(0xc4))/0x4+-parseInt(n(0xd1))/0x5+-parseInt(n(0xf9))/0x6+-parseInt(n(0x104))/0x7*(-parseInt(n(0xef))/0x8)+parseInt(n(0x103))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x81a1f));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0xc5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0xf5)]()['search']('(((.+)+)+)+$')[p(0xf5)]()[p(0xcd)](a98a)[p(0xd3)](p(0xec));});a98a();import a98e from'path';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xbd;let f=c[d];return f;},a98d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a98q(0xca)];Generator[a98q(0xbe)]({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a98q(0xbf),'validOpts':[{'name':a98q(0x106),'values':[a98q(0xed),'components','pages',a98q(0xee)]}],'examples':[a98q(0xce)]},async function(a,b){const r=a98q;try{const c=this['fsi'][r(0xc7)](),d=b[r(0x106)]?r(0xd8)+b['baseDir']:r(0xc6),f=this[r(0xeb)][r(0x102)]({'pathParts':[d,b[r(0xdf)],paramCase(b[r(0xff)]),paramCase(b['resourceName'])]}),g=await this[r(0xeb)][r(0x109)]();this['fsi'][r(0xe8)](g,async()=>{const s=r;typeof g['template']['test']===s(0xd9)&&(g[s(0xd6)][s(0xfc)]=g[s(0xd6)][s(0xfc)]===s(0xd2)?!![]:![],this[s(0xeb)][s(0xde)](s(0xfc),g[s(0xd6)]['test']));typeof g[s(0xd6)]['css']==='string'&&(g[s(0xd6)]['css']=g[s(0xd6)][s(0xe3)]===s(0xd2)?!![]:![],this[s(0xeb)][s(0xde)](s(0xe3),g[s(0xd6)][s(0xe3)]));typeof g[s(0xd6)]['js']===s(0xd9)&&(g[s(0xd6)]['js']=g[s(0xd6)]['js']===s(0xd2)?!![]:![],this[s(0xeb)]['setTemplate']('js',g[s(0xd6)]['js']));!g[s(0xfd)]&&(g['features']={});!b['root']&&!this[s(0xeb)][s(0xc3)](s(0xe2))&&(Log[s(0xfe)](s(0xd0)),await this[s(0xeb)][s(0x10a)](s(0xe2),{'cwd':c}));if(!b[s(0xf0)]&&!this[s(0xeb)][s(0xc3)](s(0xd5))){Log[s(0xdd)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[s(0xff)]),'myPath':a98e['relative'](this[s(0xeb)][s(0xe7)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[s(0xff)]),'graphql':g[s(0xcb)][s(0xf1)],'features':g['features'],'client':g[s(0xcb)][s(0xf8)],'api':g['engines'][s(0xe0)],'ssr':g[s(0xcb)][s(0xda)],'test':g['engines'][s(0xfc)],'theme':g[s(0xcb)][s(0xcf)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0xfd)][s(0xc1)]};this[s(0xeb)]['template']({'srcPath':s(0xf7),'destPath':f+s(0x101),'context':h,'framework':s(0xd5),'config':g});g[s(0xcb)][s(0xfc)]!==s(0xc0)&&this[s(0xeb)][s(0xd6)]({'srcPath':s(0xd4),'destPath':f+s(0xea),'context':h,'framework':s(0xd5),'config':g});g[s(0xd6)][s(0xe3)]&&(this[s(0xeb)][s(0xd6)]({'srcPath':'template/template.css','destPath':f+s(0xdc),'context':Object[s(0xe5)]({},h,{'className':paramCase(b[s(0xff)])}),'config':g}),this['fsi'][s(0xe9)]({'filePath':f+'.'+g[s(0xcb)]['js'],'content':s(0x108)+h[s(0xe6)]+'.'+g[s(0xcb)][s(0xe3)]+'\x27;'}));const i=b[s(0xdf)]?'/'+b[s(0xdf)]+'/':'/',j=''+d+i+h[s(0xf3)]+'/'+h[s(0xf3)];let k;if(g[s(0xcb)]['ssr']===s(0xd2)){const l=this['fsi']['pathFromApp']({'pathParts':[s(0xe1),s(0xf6),s(0xfa),s(0xf2)]});k=this[s(0xeb)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0xeb)][s(0x102)]({'pathParts':[s(0xe1),s(0xf6),s(0xf8),s(0xf2)]});k=this[s(0xeb)][s(0xbd)]({'pathParts':[m],'config':g});}g[s(0xcb)][s(0xf8)]===s(0xd5)||g[s(0xcb)][s(0xf8)]===s(0xc8)?(g[s(0xcb)]['js']==='tsx'?this[s(0xeb)][s(0xe9)]({'filePath':k,'content':'import\x20{\x20'+h['className']+s(0x107)+j+s(0x100)}):this['fsi']['injectAtBeginningOfFile']({'filePath':k,'content':s(0xcc)+h[s(0xc2)]+s(0x107)+j+'.'+g['engines']['js']+s(0x100)}),this['fsi'][s(0xc9)]({'filePath':k,'content':s(0xdb)+h[s(0xc2)]+s(0xe4)})):this[s(0xeb)]['injectAtEndOfFile']({'filePath':k,'content':s(0xfb)+j+'.'+g[s(0xcb)]['js']+s(0x100)});});}catch(h){Log[r(0xdd)](h);}});function a98c(){const t=['export\x20{\x20','.css','error','setTemplate','dir','api','imports','ramda','css','\x20};\x0a','assign','cssCaseName','pathFromProject','withValue','injectAtBeginningOfFile','.tests.js','fsi','(((.+)+)+)+$','hooks','layouts','8HEBSky','root','graphql','templates.js','fileName','13394PNgCGL','toString','startup','component/component.js','client','3780684kWmyTn','lib','import\x20\x27','test','features','warn','resourceName','\x27;\x0a','.js','pathFromApp','619299vyKMZy','6694429pdyFjM','38vkbSiA','baseDir','\x20}\x20from\x20\x27','import\x20\x27./','getProjectConfig','installNpmPackage','rewriteDestinationPathForEngine','create','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','none','withTranslations','className','checkNpmPackage','3369376gcRMff','apply','/imports/ui/components','findAppDirectory','reflux','injectAtEndOfFile','comp','engines','import\x20{\x20','constructor','maka\x20g:comp\x20todos/todos-item','theme','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','1681405dooRxB','true','search','test/test.js','react','template','1873854trRUye','/imports/ui/','string','ssr'];a98c=function(){return t;};return a98c();}
1
+ const a98p=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=parseInt(n(0xa2))/0x1+parseInt(n(0x89))/0x2*(-parseInt(n(0xa0))/0x3)+-parseInt(n(0xac))/0x4*(parseInt(n(0x90))/0x5)+parseInt(n(0x68))/0x6+-parseInt(n(0xaf))/0x7*(parseInt(n(0x91))/0x8)+-parseInt(n(0x6f))/0x9+parseInt(n(0xa8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x8c3b1));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(0x71)]()[o(0x9f)]('(((.+)+)+)+$')[o(0x71)]()[o(0x70)](a98a)[o(0x9f)](o(0x86));});a98a();import a98e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a98c(){const s=['dir','error','resourceName','react','pages','getProjectConfig','export\x20{\x20','root','client','ssr','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','startup','installNpmPackage','fileName','(((.+)+)+)+$','lib','findAppDirectory','890646dFfaSz','hooks','theme','templates.js','import\x20\x27','.tests.js','/imports/ui/','5517665tejtmA','13792tvyuCY','\x20}\x20from\x20\x27','components','injectAtBeginningOfFile','component','template','baseDir','template/template.css','\x27;\x0a','true','injectAtEndOfFile','css','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','withTranslations','search','6SLWMPd','imports','190804WiRQMV','test','reflux','checkNpmPackage','\x20};\x0a','.css','19569840WCImGk','className','create','maka\x20g:comp\x20todos/todos-item','4IAsZEh','.js','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','1967VUoace','/imports/ui/components','relative','ramda','warn','cssCaseName','pathFromProject','api','6511152FDmDjn','fsi','rewriteDestinationPathForEngine','setTemplate','none','import\x20{\x20','layouts','1619748EUDEqs','constructor','toString','pathFromApp','string','graphql','component/component.js','engines','features'];a98c=function(){return s;};return a98c();}function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x68;let f=c[d];return f;},a98d(a,b);}import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator[a98p(0xaa)]({'name':a98p(0x95),'aliases':aliases,'usage':a98p(0x9d),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a98p(0x97),'values':[a98p(0x8a),a98p(0x93),a98p(0x7c),a98p(0x6e)]}],'examples':[a98p(0xab)]},async function(a,b){const q=a98p;try{const c=this[q(0x69)][q(0x88)](),d=b[q(0x97)]?q(0x8f)+b[q(0x97)]:q(0xb0),f=this[q(0x69)]['pathFromApp']({'pathParts':[d,b[q(0x78)],paramCase(b[q(0x7a)]),paramCase(b['resourceName'])]}),g=await this[q(0x69)][q(0x7d)]();this[q(0x69)]['withValue'](g,async()=>{const r=q;typeof g['template'][r(0xa3)]===r(0x73)&&(g[r(0x96)][r(0xa3)]=g[r(0x96)][r(0xa3)]===r(0x9a)?!![]:![],this[r(0x69)][r(0x6b)](r(0xa3),g['template'][r(0xa3)]));typeof g[r(0x96)][r(0x9c)]==='string'&&(g[r(0x96)][r(0x9c)]=g[r(0x96)][r(0x9c)]===r(0x9a)?!![]:![],this[r(0x69)][r(0x6b)](r(0x9c),g[r(0x96)][r(0x9c)]));typeof g[r(0x96)]['js']==='string'&&(g['template']['js']=g['template']['js']===r(0x9a)?!![]:![],this[r(0x69)]['setTemplate']('js',g[r(0x96)]['js']));!g[r(0x77)]&&(g['features']={});!b[r(0x7f)]&&!this['fsi'][r(0xa5)]('ramda')&&(Log[r(0xb3)](r(0x82)),await this[r(0x69)][r(0x84)](r(0xb2),{'cwd':c}));if(!b[r(0x7f)]&&!this[r(0x69)][r(0xa5)](r(0x7b))){Log[r(0x79)](r(0xae));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a98e[r(0xb1)](this[r(0x69)][r(0xb5)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0x7a)]),'fileName':paramCase(b[r(0x7a)]),'graphql':g[r(0x76)][r(0x74)],'features':g[r(0x77)],'client':g[r(0x76)][r(0x80)],'api':g[r(0x76)][r(0xb6)],'ssr':g[r(0x76)][r(0x81)],'test':g[r(0x76)][r(0xa3)],'theme':g['engines'][r(0x8b)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0x77)][r(0x9e)]};this[r(0x69)][r(0x96)]({'srcPath':r(0x75),'destPath':f+r(0xad),'context':h,'framework':'react','config':g});g['engines']['test']!==r(0x6c)&&this[r(0x69)]['template']({'srcPath':'test/test.js','destPath':f+r(0x8e),'context':h,'framework':r(0x7b),'config':g});g[r(0x96)]['css']&&(this[r(0x69)][r(0x96)]({'srcPath':r(0x98),'destPath':f+r(0xa7),'context':Object['assign']({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[r(0x69)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[r(0x76)]['js'],'content':'import\x20\x27./'+h[r(0xb4)]+'.'+g[r(0x76)][r(0x9c)]+'\x27;'}));const i=b[r(0x78)]?'/'+b[r(0x78)]+'/':'/',j=''+d+i+h[r(0x85)]+'/'+h[r(0x85)];let k;if(g[r(0x76)][r(0x81)]===r(0x9a)){const l=this['fsi']['pathFromApp']({'pathParts':['imports','startup',r(0x87),r(0x8c)]});k=this[r(0x69)][r(0x6a)]({'pathParts':[l],'config':g});}else{const m=this['fsi'][r(0x72)]({'pathParts':[r(0xa1),r(0x83),'client',r(0x8c)]});k=this['fsi'][r(0x6a)]({'pathParts':[m],'config':g});}g['engines'][r(0x80)]===r(0x7b)||g[r(0x76)][r(0x80)]===r(0xa4)?(g[r(0x76)]['js']==='tsx'?this['fsi']['injectAtBeginningOfFile']({'filePath':k,'content':r(0x6d)+h['className']+r(0x92)+j+'\x27;\x0a'}):this[r(0x69)][r(0x94)]({'filePath':k,'content':r(0x6d)+h[r(0xa9)]+r(0x92)+j+'.'+g[r(0x76)]['js']+r(0x99)}),this[r(0x69)]['injectAtEndOfFile']({'filePath':k,'content':r(0x7e)+h['className']+r(0xa6)})):this[r(0x69)][r(0x9b)]({'filePath':k,'content':r(0x8d)+j+'.'+g['engines']['js']+r(0x99)});});}catch(h){Log[q(0x79)](h);}});
@@ -1 +1 @@
1
- const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x118))/0x1+parseInt(h(0x117))/0x2*(parseInt(h(0x101))/0x3)+parseInt(h(0x10a))/0x4+parseInt(h(0x115))/0x5+parseInt(h(0x105))/0x6+parseInt(h(0x11a))/0x7+parseInt(h(0x111))/0x8*(-parseInt(h(0x119))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x95255));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xff;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x10f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a[j(0x102)]()[j(0x10c)]('(((.+)+)+)+$')[j(0x102)]()[j(0x106)](a99a)[j(0x10c)](j(0x11b));});a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a99c(){const n=['4431287VeHJDC','(((.+)+)+)+$','maka\x20{generate,\x20g}:{config}\x20<name>','settings.json','getProjectConfig','1658574yYmrly','toString','resourceName','fsi','3381618UXJGWX','constructor','dev','maka\x20g:config\x20production','config/process.env','2753328EunjZq','appName','search','template','pathFromProject','apply','Generate\x20configuration\x20settings.','5766184AoCVbs','production','config','isDocker','5896720iDrsdH','development','4jNuuAg','765503iHchFQ','54zomewH'];a99c=function(){return n;};return a99c();}Generator['create']({'name':a99k(0x113),'usage':a99k(0x11c),'shortDesc':a99k(0x110),'validOpts':[a99k(0x114)],'examples':[a99k(0x108)]},function(a,b){const l=a99k,c=this[l(0x104)][l(0x100)]();this[l(0x104)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0x10b)],'appFileCase':paramCase(c[m(0x10b)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x103)]),'camelCase':camelCase(b[m(0x103)]),'userName':'ubuntu','isDocker':b['isDocker']};let e=b['resourceName'];if(e===m(0x107))e=m(0x116);else e==='prod'&&(e=m(0x112));const f=this[m(0x104)][m(0x10e)]({'pathParts':['config',e,m(0xff)]});this[m(0x104)][m(0x10d)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x114)]){const g=this[m(0x104)]['pathFromProject']({'pathParts':[m(0x113),e,'process.env']});this[m(0x104)][m(0x10d)]({'srcPath':m(0x109),'destPath':g,'context':d,'config':c});}});});
1
+ const a99k=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xf2;let f=c[d];return f;},a99d(a,b);}(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x108))/0x1*(parseInt(h(0xf8))/0x2)+-parseInt(h(0x10a))/0x3*(parseInt(h(0x100))/0x4)+parseInt(h(0x104))/0x5*(parseInt(h(0x101))/0x6)+-parseInt(h(0x107))/0x7*(-parseInt(h(0xff))/0x8)+-parseInt(h(0x102))/0x9+parseInt(h(0xf9))/0xa*(-parseInt(h(0x105))/0xb)+parseInt(h(0x106))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x378f4));function a99c(){const n=['fsi','resourceName','process.env','(((.+)+)+)+$','config/process.env','template','maka\x20g:config\x20production','create','constructor','778854IVYXoF','18660VscpoH','production','search','isDocker','Generate\x20configuration\x20settings.','apply','9160tzdntC','812824MwbqvG','6HVQGQI','3706983QlfqEX','appName','204675pUKecs','528OKyXYO','7141884klyhuV','672XfJvVJ','1jrkdKs','config','6NvkNdC','pathFromProject','withValue','getProjectConfig'];a99c=function(){return n;};return a99c();}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a['toString']()[j(0xfb)](j(0xf2))['toString']()[j(0xf7)](a99a)[j(0xfb)](j(0xf2));});a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99k(0xf6)]({'name':a99k(0x109),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a99k(0xfd),'validOpts':[a99k(0xfc)],'examples':[a99k(0xf5)]},function(a,b){const l=a99k,c=this[l(0x10e)][l(0x10d)]();this[l(0x10e)][l(0x10c)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x103)]),'name':pascalCase(b[m(0x10f)]),'fileName':paramCase(b[m(0x10f)]),'camelCase':camelCase(b[m(0x10f)]),'userName':'ubuntu','isDocker':b['isDocker']};let e=b[m(0x10f)];if(e==='dev')e='development';else e==='prod'&&(e=m(0xfa));const f=this[m(0x10e)][m(0x10b)]({'pathParts':[m(0x109),e,'settings.json']});this[m(0x10e)][m(0xf4)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0xfc)]){const g=this[m(0x10e)][m(0x10b)]({'pathParts':['config',e,m(0x110)]});this['fsi'][m(0xf4)]({'srcPath':m(0xf3),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0xbf))/0x1+parseInt(j(0xda))/0x2+parseInt(j(0xd1))/0x3*(-parseInt(j(0xb9))/0x4)+parseInt(j(0xcd))/0x5*(-parseInt(j(0xd6))/0x6)+parseInt(j(0xe0))/0x7+parseInt(j(0xbd))/0x8*(parseInt(j(0xcf))/0x9)+-parseInt(j(0xc9))/0xa*(-parseInt(j(0xd7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xc0b5f));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0xcc)]()[l(0xdf)](l(0xe4))['toString']()[l(0xe1)](a100a)[l(0xdf)]('(((.+)+)+)+$');});a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xaf;let f=c[d];return f;},a100d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a100c(){const p=['69142VpgQjr','getProjectConfig','dir','server','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','engines','-dbc.','dbc/conn.js','maka\x20g:dbc\x20todos\x20--type=sqlite','pathFromApp','212210gTyWcF','-dbc\x27;','startup','toString','29145lQbjgd','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','1413ghiPwv','type','575199tsCsgK','index.','pgsql','dbc/register-dbc.js','injectAtEndOfFile','294HtDZdo','253WVytcx','better-sqlite3','maka\x20g:dbc\x20geoserver\x20--type=pgsql','2618760FLFWrp','conn.','withValue','dbc','maka\x20g:dbc\x20azure\x20--type=mssql','search','839972cvHOuC','constructor','resourceName','apply','(((.+)+)+)+$','imports','register-','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','dbc/config.js','import\x20\x27./register-','error','sqlite','mssql','checkNpmPackage','config.','28VtgNnz','fsi','installNpmPackage','template','21936fJmPXx','warn'];a100c=function(){return p;};return a100c();}Generator['create']({'name':a100m(0xdd),'usage':a100m(0xc3),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a100m(0xc1)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100m(0xd0),'values':[a100m(0xd3),'mssql',a100m(0xb5)]}],'examples':[a100m(0xd9),a100m(0xde),a100m(0xc7)]},async function(a,b){const n=a100m;try{const c=await this[n(0xba)][n(0xc0)](),d=this[n(0xba)]['pathFromApp']({}),f=paramCase(b[n(0xe2)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[n(0xe2)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};this['fsi'][n(0xdc)](c,async()=>{const o=n;let h='js';c[o(0xc4)]['js']==='tsx'&&(h='ts');b[o(0xd0)]==='pgsql'&&!this[o(0xba)][o(0xb7)]('pg')&&(Log[o(0xbe)](o(0xce)),await this['fsi'][o(0xbb)]('pg',{'cwd':d}));b['type']===o(0xb6)&&!this[o(0xba)][o(0xb7)](o(0xb6))&&(Log[o(0xbe)](o(0xb1)),await this['fsi'][o(0xbb)](o(0xb6),{'cwd':d}));b[o(0xd0)]===o(0xb5)&&!this[o(0xba)]['checkNpmPackage']('better-sqlite3')&&(Log['warn']('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[o(0xba)][o(0xbb)](o(0xd8),{'cwd':d}));this[o(0xba)][o(0xbc)]({'srcPath':o(0xb2),'destPath':this[o(0xba)]['pathFromApp']({'pathParts':['imports','startup',o(0xc2),o(0xdd),b[o(0xc1)],f,o(0xb8)+h]}),'context':g,'config':c}),this[o(0xba)]['template']({'srcPath':o(0xc6),'destPath':this['fsi']['pathFromApp']({'pathParts':[o(0xaf),o(0xcb),o(0xc2),o(0xdd),b[o(0xc1)],f,o(0xdb)+h]}),'context':g,'config':c}),this[o(0xba)][o(0xbc)]({'srcPath':o(0xd4),'destPath':this[o(0xba)][o(0xc8)]({'pathParts':[o(0xaf),o(0xcb),o(0xc2),o(0xb0)+f+o(0xc5)+h]}),'context':g,'config':c});const i=this[o(0xba)][o(0xc8)]({'pathParts':[o(0xaf),o(0xcb),o(0xc2),o(0xd2)+c['engines']['js']]});this[o(0xba)][o(0xd5)]({'filePath':i,'content':o(0xb3)+f+o(0xca)});});}catch(h){Log[n(0xb4)](h);}});
1
+ const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=-parseInt(j(0x8a))/0x1*(parseInt(j(0xac))/0x2)+parseInt(j(0x9e))/0x3*(-parseInt(j(0xa4))/0x4)+-parseInt(j(0x99))/0x5+parseInt(j(0x9d))/0x6+parseInt(j(0xb1))/0x7*(-parseInt(j(0xa8))/0x8)+-parseInt(j(0x8d))/0x9+parseInt(j(0x9b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xa1bb5));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0x97)]()[l(0x90)](l(0x93))[l(0x97)]()[l(0x8b)](a100a)['search'](l(0x93));});function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x80;let f=c[d];return f;},a100d(a,b);}function a100c(){const p=['startup','257596zqcPxF','maka\x20g:dbc\x20azure\x20--type=mssql','installNpmPackage','register-','664kEOnDn','checkNpmPackage','mssql','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','468092aMwTza','apply','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','template','dbc/conn.js','12334xkkLRg','config.','dbc','tsx','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','index.','import\x20\x27./register-','-dbc\x27;','better-sqlite3','create','conn.','imports','warn','server','pathFromApp','4ZgbTRC','constructor','dbc/register-dbc.js','11813517qIgMxd','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','injectAtEndOfFile','search','error','fsi','(((.+)+)+)+$','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','dbc/config.js','-dbc.','toString','sqlite','1768235qCPmQG','getProjectConfig','40880900lGxQlc','pgsql','2507016IlXUwd','51NnLIhA','engines','dir','type','resourceName'];a100c=function(){return p;};return a100c();}a100a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100m(0x84)]({'name':'dbc','usage':a100m(0x8e),'shortDesc':a100m(0xae),'validOpts':[a100m(0xa0)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100m(0xa1),'values':[a100m(0x9c),a100m(0xaa),a100m(0x98)]}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a100m(0xa5),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const n=a100m;try{const c=await this[n(0x92)][n(0x9a)](),d=this[n(0x92)]['pathFromApp']({}),f=paramCase(b[n(0xa2)]),g={'name':pascalCase(b[n(0xa2)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[n(0xa2)]),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};this[n(0x92)]['withValue'](c,async()=>{const o=n;let h='js';c[o(0x9f)]['js']===o(0xb4)&&(h='ts');b[o(0xa1)]==='pgsql'&&!this['fsi'][o(0xa9)]('pg')&&(Log['warn'](o(0xb5)),await this[o(0x92)][o(0xa6)]('pg',{'cwd':d}));b[o(0xa1)]==='mssql'&&!this[o(0x92)][o(0xa9)](o(0xaa))&&(Log[o(0x87)](o(0x94)),await this[o(0x92)][o(0xa6)](o(0xaa),{'cwd':d}));b[o(0xa1)]===o(0x98)&&!this[o(0x92)][o(0xa9)](o(0x83))&&(Log['warn'](o(0xab)),await this[o(0x92)][o(0xa6)](o(0x83),{'cwd':d}));this[o(0x92)][o(0xaf)]({'srcPath':o(0x95),'destPath':this[o(0x92)][o(0x89)]({'pathParts':[o(0x86),o(0xa3),o(0x88),o(0xb3),b['dir'],f,o(0xb2)+h]}),'context':g,'config':c}),this[o(0x92)][o(0xaf)]({'srcPath':o(0xb0),'destPath':this[o(0x92)][o(0x89)]({'pathParts':['imports',o(0xa3),'server','dbc',b[o(0xa0)],f,o(0x85)+h]}),'context':g,'config':c}),this[o(0x92)][o(0xaf)]({'srcPath':o(0x8c),'destPath':this['fsi'][o(0x89)]({'pathParts':[o(0x86),'startup',o(0x88),o(0xa7)+f+o(0x96)+h]}),'context':g,'config':c});const i=this[o(0x92)]['pathFromApp']({'pathParts':['imports','startup',o(0x88),o(0x80)+c[o(0x9f)]['js']]});this[o(0x92)][o(0x8f)]({'filePath':i,'content':o(0x81)+f+o(0x82)});});}catch(h){Log[n(0x91)](h);}});
@@ -1 +1 @@
1
- function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a101d(a,b);}const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0x1d1))/0x1+parseInt(f(0x1ce))/0x2*(parseInt(f(0x1cb))/0x3)+-parseInt(f(0x1e5))/0x4+-parseInt(f(0x1d2))/0x5*(-parseInt(f(0x1d0))/0x6)+-parseInt(f(0x1e2))/0x7+parseInt(f(0x1cf))/0x8*(parseInt(f(0x1d6))/0x9)+parseInt(f(0x1e3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x5ead8));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x1d3)]()[h(0x1de)](h(0x1cd))[h(0x1d3)]()[h(0x1d5)](a101a)[h(0x1de)](h(0x1cd));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';Generator[a101i(0x1e1)]({'name':'dockerfile','usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a101i(0x1e4)]},async function(){const j=a101i;try{const a=await this[j(0x1e7)]['getProjectConfig'](),b=await this[j(0x1e7)]['getGlobalConfig'](),c=this[j(0x1e7)]['findProjectDirectory']();this[j(0x1e7)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0x1dc)],'config':a,'appPath':a101e[k(0x1db)](c,k(0x1dd)),'bundlePath':a101e[k(0x1db)](c,k(0x1d8),'app.tar.gz'),'useCert':this['fsi'][k(0x1da)](b[k(0x1d7)])};this[k(0x1e7)][k(0x1d4)]({'srcPath':k(0x1df),'destPath':a101e['join'](c,k(0x1d9)),'framework':k(0x1e6),'context':d,'config':a});});}catch(d){Log[j(0x1e0)](d);}});function a101c(){const l=['Dockerfile','isFile','join','appName','app','search','docker/Dockerfile','error','create','1999123gVToHR','144410AzvtyJ','maka\x20g:dockerfile','2395000iSVAfz','service','fsi','12seRvyV','apply','(((.+)+)+)+$','182786xhwhZl','4104624EnczqJ','4056IVPbxG','315204reuxBj','5135UNsWRD','toString','template','constructor','9PsFJrs','cert','build'];a101c=function(){return l;};return a101c();}
1
+ const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0x19c))/0x1+parseInt(f(0x1a5))/0x2*(-parseInt(f(0x196))/0x3)+-parseInt(f(0x1a8))/0x4*(-parseInt(f(0x1a2))/0x5)+-parseInt(f(0x19e))/0x6*(parseInt(f(0x1a1))/0x7)+-parseInt(f(0x19a))/0x8*(parseInt(f(0x19d))/0x9)+-parseInt(f(0x1a9))/0xa+-parseInt(f(0x19f))/0xb*(-parseInt(f(0x199))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x290ea));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x1ad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x1ac)]()[h(0x198)]('(((.+)+)+)+$')['toString']()['constructor'](a101a)[h(0x198)](h(0x1ab));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a101c(){const l=['30PgXQmH','85151QIzksT','isFile','40747hRYRLC','110gRYXPm','appName','create','48060EWwFzv','findProjectDirectory','build','31804oVbxcq','2771940SvfPNk','app.tar.gz','(((.+)+)+)+$','toString','apply','maka\x20g:dockerfile','Dockerfile','service','join','docker/Dockerfile','Generate\x20an\x20updated\x20dockerfile','app','getProjectConfig','error','27vPLTTG','withValue','search','1212AiOqTl','88gHBXvD','fsi','64317xXmRhM','165033mwfZEH'];a101c=function(){return l;};return a101c();}import a101e from'path';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x194;let f=c[d];return f;},a101d(a,b);}Generator[a101i(0x1a4)]({'name':'dockerfile','usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a101i(0x1b3),'validOpts':[],'noResource':!![],'examples':[a101i(0x1ae)]},async function(){const j=a101i;try{const a=await this['fsi'][j(0x194)](),b=await this[j(0x19b)]['getGlobalConfig'](),c=this['fsi'][j(0x1a6)]();this[j(0x19b)][j(0x197)](a,async()=>{const k=j,d={'app':b[k(0x1a3)],'config':a,'appPath':a101e[k(0x1b1)](c,k(0x1b4)),'bundlePath':a101e[k(0x1b1)](c,k(0x1a7),k(0x1aa)),'useCert':this['fsi'][k(0x1a0)](b['cert'])};this[k(0x19b)]['template']({'srcPath':k(0x1b2),'destPath':a101e['join'](c,k(0x1af)),'framework':k(0x1b0),'context':d,'config':a});});}catch(d){Log[j(0x195)](d);}});
@@ -1 +1 @@
1
- const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=parseInt(o(0x8c))/0x1+parseInt(o(0x74))/0x2*(parseInt(o(0xa9))/0x3)+-parseInt(o(0x7e))/0x4+parseInt(o(0xa0))/0x5*(-parseInt(o(0x7f))/0x6)+parseInt(o(0xab))/0x7+parseInt(o(0xba))/0x8+parseInt(o(0xaf))/0x9*(-parseInt(o(0xb4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x7455c));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a['toString']()[q(0x84)](q(0xa1))[q(0x83)]()['constructor'](a102a)[q(0x84)](q(0xa1));});a102a();function a102c(){const u=['startup','6762744hGWgLQ','.js','export\x20{\x20','injectAtEndOfFile','@apollo/client\x20isomorphic-fetch','className','2SfjGOw','tsx','hook','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','/imports/ui/','installNpmPackage','setTemplate','.css','withTranslations','notice','10720GkoByc','54HhrdCv','Creating\x20','string','cssCaseName','toString','search','rewriteDestinationPathForEngine','theme','test','import\x20\x27./','warn','withValue','components','547102hlVFrS','react','getProjectConfig','injectAtBeginningOfFile','fileName','pathFromProject','pathFromApp','\x20}\x20from\x20\x27','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','checkNpmPackage','relative','resourceName','graphql','\x27;\x0a','fsi','\x20hook...','client','true','hooks','import\x20\x27','180240NKYfny','(((.+)+)+)+$','apply','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','features','error','/imports/ui/hooks','templates.js','import\x20{\x20','1525089ZNAwmL','template','1256899kwaOSD','css','layouts','pages','9OnUDQF','\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','engines','imports','dir','12767450gDRwAv','none','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','baseDir','template/template.css'];a102c=function(){return u;};return a102c();}import a102e from'path';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x74;let f=c[d];return f;},a102d(a,b);}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['create']({'name':a102r(0x76),'aliases':['h'],'checkWhere':![],'usage':a102r(0xa3),'shortDesc':a102r(0x94),'validOpts':[{'name':a102r(0xb7),'values':[a102r(0x9e),a102r(0x8b),a102r(0xae),a102r(0xad)]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a102r(0xb0)},async function(a,b){const s=a102r;Log[s(0x7d)](s(0x80)+b[s(0x97)]+s(0x9b));try{const c=this[s(0x9a)][s(0x95)](s(0x8d));if(!c){Log[s(0xa5)](s(0xb6));throw new UsageError();}const d=this[s(0x9a)][s(0x92)](b),f=b[s(0xb7)]?s(0x78)+b[s(0xb7)]:s(0xa6),g=this[s(0x9a)][s(0x92)]({'pathParts':[f,b[s(0xb3)],paramCase(b[s(0x97)]),paramCase(b[s(0x97)])]}),h=await this[s(0x9a)][s(0x8e)]();this[s(0x9a)][s(0x8a)](h,async()=>{const t=s;typeof h[t(0xaa)][t(0xac)]===t(0x81)&&(h[t(0xaa)]['css']=h[t(0xaa)]['css']===t(0x9d)?!![]:![],this[t(0x9a)][t(0x7a)]('css',h[t(0xaa)]['css']));h['engines'][t(0x98)]==='apollo'&&!this[t(0x9a)][t(0x95)]('@apollo/client')&&(Log[t(0x89)](t(0x77)),await this[t(0x9a)][t(0x79)](t(0xbe),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x97)]),'camelCaseName':camelCase(b[t(0x97)]),'className':pascalCase(b[t(0x97)]),'name':pascalCase(b[t(0x97)]),'graphql':h[t(0xb1)][t(0x98)],'theme':h[t(0xb1)][t(0x86)],'features':h[t(0xa4)],'myPath':a102e[t(0x96)](this[t(0x9a)][t(0x91)]({}),g),'fileName':paramCase(b[t(0x97)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xa4)][t(0x7c)]};this['fsi'][t(0xaa)]({'srcPath':'hook/hook.js','destPath':g+t(0xbb),'context':i,'config':h,'framework':'react'});h['template']['css']&&(this[t(0x9a)]['template']({'srcPath':t(0xb8),'destPath':g+t(0x7b),'context':Object['assign']({},i,{'className':i[t(0x82)]}),'config':h}),this['fsi'][t(0x8f)]({'filePath':g+'.'+h[t(0xb1)]['js'],'content':t(0x88)+i[t(0x90)]+'.'+h['engines'][t(0xac)]+'\x27;'}));h[t(0xb1)][t(0x87)]!==t(0xb5)&&this[t(0x9a)][t(0xaa)]({'srcPath':'test/test.js','destPath':g+'.app-tests.js','framework':t(0x8d),'context':i,'config':h});const j=b['dir']?'/'+b[t(0xb3)]+'/':'/',k=''+f+j+i[t(0x90)]+'/'+i[t(0x90)];let l;if(h[t(0xb1)]['ssr']===t(0x9d)){const m=this[t(0x9a)][t(0x92)]({'pathParts':[t(0xb2),'startup','lib',t(0xa7)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x9a)][t(0x92)]({'pathParts':['imports',t(0xb9),t(0x9c),t(0xa7)]});l=this[t(0x9a)][t(0x85)]({'pathParts':[n],'config':h});}h['engines']['client']===t(0x8d)?(h['engines']['js']===t(0x75)?this[t(0x9a)][t(0x8f)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xbf)]+t(0x93)+k+t(0x99)}):this[t(0x9a)][t(0x8f)]({'filePath':l,'content':t(0xa8)+i[t(0xbf)]+'\x20}\x20from\x20\x27'+k+'.'+h[t(0xb1)]['js']+'\x27;\x0a'}),this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0xbc)+i[t(0xbf)]+'\x20};\x0a'})):this[t(0x9a)][t(0xbd)]({'filePath':l,'content':t(0x9f)+k+'.'+h[t(0xb1)]['js']+t(0x99)});});}catch(i){Log['error'](i);}});
1
+ const a102r=a102d;function a102c(){const u=['engines','579628OmHePc','installNpmPackage','baseDir','maka\x20g:hook\x20cool-hook','test','81881jkGssw','constructor','lib','export\x20{\x20','components','/imports/ui/hooks','features','relative','checkNpmPackage','warn','1562192MxjHGs','error','6hcaBwM','import\x20\x27','layouts','fileName','.css','assign','injectAtEndOfFile','tsx','36QVVHNH','setTemplate','rewriteDestinationPathForEngine','pathFromApp','\x27;\x0a','notice','getProjectConfig','client','toString','injectAtBeginningOfFile','startup','fsi','template','react','.app-tests.js','className','graphql','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','1553504CpzSOG','cssCaseName','search','hook','test/test.js','ssr','resourceName','dir','apply','templates.js','true','5498310toBPce','css','pages','hooks','\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','withTranslations','withValue','Creating\x20','import\x20\x27./','@apollo/client','3865120IVFJig','import\x20{\x20','\x20}\x20from\x20\x27','template/template.css','pathFromProject','imports','411381cKTzGc'];a102c=function(){return u;};return a102c();}(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0xa2))/0x1+-parseInt(o(0x9d))/0x2+-parseInt(o(0xe3))/0x3+parseInt(o(0xac))/0x4+-parseInt(o(0xd3))/0x5*(-parseInt(o(0xae))/0x6)+parseInt(o(0xdd))/0x7+parseInt(o(0xc8))/0x8*(-parseInt(o(0xb6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xb8c3c));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a[q(0xbe)]()[q(0xca)]('(((.+)+)+)+$')[q(0xbe)]()[q(0xa3)](a102a)[q(0xca)]('(((.+)+)+)+$');});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';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x9d;let f=c[d];return f;},a102d(a,b);}Generator['create']({'name':a102r(0xcb),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a102r(0xc7),'validOpts':[{'name':a102r(0x9f),'values':[a102r(0xd6),a102r(0xa6),a102r(0xd5),a102r(0xb0)]}],'examples':[a102r(0xa0)],'description':a102r(0xd7)},async function(a,b){const s=a102r;Log[s(0xbb)](s(0xda)+b[s(0xce)]+'\x20hook...');try{const c=this[s(0xc1)][s(0xaa)](s(0xc3));if(!c){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[s(0xc1)]['pathFromApp'](b),f=b['baseDir']?'/imports/ui/'+b[s(0x9f)]:s(0xa7),g=this['fsi']['pathFromApp']({'pathParts':[f,b[s(0xcf)],paramCase(b[s(0xce)]),paramCase(b['resourceName'])]}),h=await this[s(0xc1)][s(0xbc)]();this[s(0xc1)][s(0xd9)](h,async()=>{const t=s;typeof h[t(0xc2)]['css']==='string'&&(h[t(0xc2)][t(0xd4)]=h['template'][t(0xd4)]===t(0xd2)?!![]:![],this[t(0xc1)][t(0xb7)]('css',h[t(0xc2)][t(0xd4)]));h[t(0xe4)][t(0xc6)]==='apollo'&&!this[t(0xc1)][t(0xaa)](t(0xdc))&&(Log[t(0xab)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0xc1)][t(0x9e)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xce)]),'camelCaseName':camelCase(b[t(0xce)]),'className':pascalCase(b[t(0xce)]),'name':pascalCase(b['resourceName']),'graphql':h[t(0xe4)]['graphql'],'theme':h[t(0xe4)]['theme'],'features':h['features'],'myPath':a102e[t(0xa9)](this[t(0xc1)][t(0xe1)]({}),g),'fileName':paramCase(b[t(0xce)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xa8)][t(0xd8)]};this[t(0xc1)]['template']({'srcPath':'hook/hook.js','destPath':g+'.js','context':i,'config':h,'framework':t(0xc3)});h[t(0xc2)][t(0xd4)]&&(this[t(0xc1)][t(0xc2)]({'srcPath':t(0xe0),'destPath':g+t(0xb2),'context':Object[t(0xb3)]({},i,{'className':i[t(0xc9)]}),'config':h}),this[t(0xc1)]['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':t(0xdb)+i[t(0xb1)]+'.'+h[t(0xe4)][t(0xd4)]+'\x27;'}));h[t(0xe4)][t(0xa1)]!=='none'&&this['fsi'][t(0xc2)]({'srcPath':t(0xcc),'destPath':g+t(0xc4),'framework':t(0xc3),'context':i,'config':h});const j=b['dir']?'/'+b[t(0xcf)]+'/':'/',k=''+f+j+i[t(0xb1)]+'/'+i[t(0xb1)];let l;if(h[t(0xe4)][t(0xcd)]==='true'){const m=this[t(0xc1)]['pathFromApp']({'pathParts':['imports','startup',t(0xa4),'templates.js']});l=this[t(0xc1)][t(0xb8)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0xb9)]({'pathParts':[t(0xe2),t(0xc0),t(0xbd),t(0xd1)]});l=this[t(0xc1)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h[t(0xe4)]['client']===t(0xc3)?(h[t(0xe4)]['js']===t(0xb5)?this[t(0xc1)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0xde)+i['className']+'\x20}\x20from\x20\x27'+k+t(0xba)}):this['fsi'][t(0xbf)]({'filePath':l,'content':t(0xde)+i[t(0xc5)]+t(0xdf)+k+'.'+h[t(0xe4)]['js']+t(0xba)}),this[t(0xc1)][t(0xb4)]({'filePath':l,'content':t(0xa5)+i[t(0xc5)]+'\x20};\x0a'})):this[t(0xc1)][t(0xb4)]({'filePath':l,'content':t(0xaf)+k+'.'+h[t(0xe4)]['js']+t(0xba)});});}catch(i){Log[s(0xad)](i);}});
@@ -1 +1 @@
1
- function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x12a;let f=c[d];return f;},a103d(a,b);}const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0x12a))/0x1*(parseInt(h(0x146))/0x2)+-parseInt(h(0x138))/0x3*(-parseInt(h(0x13b))/0x4)+parseInt(h(0x12e))/0x5*(parseInt(h(0x139))/0x6)+parseInt(h(0x141))/0x7+parseInt(h(0x12b))/0x8*(-parseInt(h(0x134))/0x9)+parseInt(h(0x13e))/0xa+-parseInt(h(0x144))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xcd641));function a103c(){const n=['4175850CNtGSe','type','apply','10804192zrWHXR','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','search','25445288DmWVYQ','engines','109414AhdZBh','toString','error','fsi','25jObhlA','1464NnNjtE','notice','login','20Ynjtem','kit','NIE',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','(((.+)+)+)+$','resourceName','14247mfvjgc','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','withValue','Invalid\x20type\x20','1167351XFopYy','1941516PUiisc','indexOf','16ABGwjD','maka\x20g:k\x20city-map\x20--type=leaflet-map','(blank)'];a103c=function(){return n;};return a103c();}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x140)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0x147)]()[j(0x143)](j(0x132))[j(0x147)]()['constructor'](a103a)[j(0x143)](j(0x132));});a103a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a103k(0x12f),'aliases':['k'],'usage':a103k(0x135),'shortDesc':a103k(0x142),'validOpts':['type'],'examples':['maka\x20g:kit\x20--type=map',a103k(0x13c)]},async function(a,b){const l=a103k;try{const c=this[l(0x149)]['getProjectConfig']();this['fsi'][l(0x136)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x133)]),'fileName':paramCase(b[m(0x133)]),'camelCase':camelCase(b[m(0x133)]),'type':b[m(0x13f)],'engine':c[m(0x145)]['js'],'noRename':!![]},f=['leaflet-map','login'];if(f[m(0x13a)](d[m(0x13f)])<0x0){const g=d[m(0x13f)]?d[m(0x13f)]:m(0x13d);Log[m(0x148)](m(0x137)+g+m(0x131));return;}b[m(0x13f)]==='map'&&Log[m(0x12c)](m(0x130)),b[m(0x13f)]===m(0x12d)&&Log[m(0x12c)]('NIE');});}catch(d){Log[l(0x148)](d);}});
1
+ const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0x1be))/0x1*(parseInt(h(0x1b7))/0x2)+-parseInt(h(0x1ba))/0x3*(-parseInt(h(0x1cb))/0x4)+parseInt(h(0x1c7))/0x5*(-parseInt(h(0x1b1))/0x6)+parseInt(h(0x1bc))/0x7*(parseInt(h(0x1a8))/0x8)+-parseInt(h(0x1a9))/0x9*(-parseInt(h(0x1c0))/0xa)+parseInt(h(0x1bb))/0xb*(-parseInt(h(0x1b5))/0xc)+-parseInt(h(0x1b8))/0xd*(-parseInt(h(0x1c1))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xa673e));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a['toString']()[j(0x1c5)](j(0x1b0))[j(0x1b2)]()[j(0x1c8)](a103a)[j(0x1c5)](j(0x1b0));});a103a();import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a103d(a,b);}function a103c(){const n=['6201706CWoXJI','notice','withValue','NIE','search','login','182330aXSWzs','constructor','resourceName','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','174612RAQXcb','maka\x20g:k\x20city-map\x20--type=leaflet-map','type','24hJQMJP','261sVJrET',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','map','apply','create','Invalid\x20type\x20','leaflet-map','(((.+)+)+)+$','78WfNHvH','toString','fsi','engines','36KYaWIv','error','191240fhKsSh','26GtJBuL','kit','21sXmmIo','1616714kWunPo','2951263TdPZZS','(blank)','12FDDMbG','indexOf','99260bGybBT'];a103c=function(){return n;};return a103c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103k(0x1ad)]({'name':a103k(0x1b9),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':a103k(0x1ca),'validOpts':['type'],'examples':['maka\x20g:kit\x20--type=map',a103k(0x1a6)]},async function(a,b){const l=a103k;try{const c=this['fsi']['getProjectConfig']();this[l(0x1b3)][l(0x1c3)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x1c9)]),'fileName':paramCase(b[m(0x1c9)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[m(0x1b4)]['js'],'noRename':!![]},f=[m(0x1af),m(0x1c6)];if(f[m(0x1bf)](d[m(0x1a7)])<0x0){const g=d[m(0x1a7)]?d[m(0x1a7)]:m(0x1bd);Log['error'](m(0x1ae)+g+m(0x1aa));return;}b[m(0x1a7)]===m(0x1ab)&&Log[m(0x1c2)]('NIE'),b[m(0x1a7)]==='login'&&Log[m(0x1c2)](m(0x1c4));});}catch(d){Log[l(0x1b6)](d);}});
@@ -1 +1 @@
1
- const a104r=a104d;(function(a,b){const o=a104d,c=a();while(!![]){try{const d=-parseInt(o(0xb8))/0x1*(-parseInt(o(0xbc))/0x2)+parseInt(o(0x75))/0x3+-parseInt(o(0x8c))/0x4*(parseInt(o(0xa3))/0x5)+parseInt(o(0x78))/0x6+parseInt(o(0x89))/0x7*(parseInt(o(0x99))/0x8)+-parseInt(o(0x85))/0x9*(-parseInt(o(0x7c))/0xa)+-parseInt(o(0xac))/0xb*(parseInt(o(0x7b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x9fa35));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0xb0)]()[q(0x7a)](q(0x8b))[q(0xb0)]()[q(0x9f)](a104a)[q(0x7a)]('(((.+)+)+)+$');});function a104c(){const u=['import\x20\x27./','create','template/template.css','getProjectConfig','engines','api','5lizrYt','dir','string','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','388328pdHsRT','template','rewriteDestinationPathForEngine','injectAtBeginningOfFile','setTemplate','pathFromApp','405240qkASbB','import\x20\x27','fileName','3386058gHIbJS','\x20}\x20from\x20\x27','search','2083656vQZrQN','5698540jPUrer','none','tsx','hook/hook.js','maka\x20g:layout\x20mobile/iPhone8','.app-tests.js','component/component.js','graphql','className','9mqiBtq','true','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fsi','63JaVBbp','injectAtEndOfFile','(((.+)+)+)+$','92XKxojl','resourceName','/imports/ui/layouts','findAppDirectory','\x20};\x0a','css','ssr','startup','ramda','.css','test','.js','features','394032kyvkXx','apply','split','layout','includes','imports','constructor','warn','export\x20{\x20','client','252460wGzvaL','relative','lib','withTranslations','test/test.js','checkNpmPackage','pathFromProject','withHook','import\x20{\x20','55fKrEpf','assign','react','\x27;\x0a','toString','templates.js'];a104c=function(){return u;};return a104c();}a104a();import a104e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x72;let f=c[d];return f;},a104d(a,b);}Generator[a104r(0xb3)]({'name':a104r(0x9c),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a104r(0x80),'maka\x20g:l\x20web/safari']},function(a,b){const s=a104r,c=s(0x8e),d=this[s(0x88)][s(0x8f)](),e=this['fsi'][s(0x74)]({'pathParts':[c,b[s(0xb9)],paramCase(b[s(0x8d)]),paramCase(b[s(0x8d)])]}),f=this['fsi'][s(0xb5)]();this[s(0x88)]['withValue'](f,()=>{const t=s;typeof f['template'][t(0x96)]===t(0xba)&&(f['template']['test']=f[t(0xbd)][t(0x96)]==='true'?!![]:![],this[t(0x88)][t(0x73)](t(0x96),f[t(0xbd)]['test']));typeof f[t(0xbd)][t(0x91)]===t(0xba)&&(f['template'][t(0x91)]=f[t(0xbd)][t(0x91)]===t(0x86)?!![]:![],this[t(0x88)][t(0x73)]('css',f[t(0xbd)][t(0x91)]));typeof f['template']['js']==='string'&&(f[t(0xbd)]['js']=f[t(0xbd)]['js']===t(0x86)?!![]:![],this[t(0x88)]['setTemplate']('js',f[t(0xbd)]['js']));!f['features']&&(f[t(0x98)]={});const g=b['_']?b['_'][0x0][t(0x9b)](':')[0x1]:![],h=b['_']&&aliases[t(0x9d)](g);h&&!this[t(0xa8)]('ramda')&&(Log['warn'](t(0x87)),this[t(0x88)]['installNpmPackage'](t(0x94),{'cwd':d}));if(h&&!this[t(0xa8)](t(0xae))){Log[t(0xa0)](t(0xbb));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a104e[t(0xa4)](this['fsi'][t(0xa9)]({}),e),'cssCaseName':paramCase(b[t(0x8d)]),'className':pascalCase(b[t(0x8d)]),'camelCaseName':camelCase(b[t(0x8d)]),'fileName':paramCase(b[t(0x8d)]),'graphql':f['engines'][t(0x83)],'features':f[t(0x98)],'client':f[t(0xb6)][t(0xa2)],'api':f['engines'][t(0xb7)],'ssr':f[t(0xb6)][t(0x92)],'test':f[t(0xb6)][t(0x96)],'theme':f[t(0xb6)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x98)][t(0xa6)]};f['features']?.['withHooks']||b[t(0xaa)]?this['fsi'][t(0xbd)]({'srcPath':t(0x7f),'destPath':e+'.js','framework':t(0xae),'context':i,'config':f}):this['fsi'][t(0xbd)]({'srcPath':t(0x82),'destPath':e+t(0x97),'framework':t(0xae),'context':i,'config':f});f[t(0xb6)][t(0x96)]!==t(0x7d)&&this[t(0x88)][t(0xbd)]({'srcPath':t(0xa7),'destPath':e+t(0x81),'framework':'react','context':i,'config':f});f[t(0xbd)][t(0x91)]&&(this[t(0x88)][t(0xbd)]({'srcPath':t(0xb4),'destPath':e+t(0x95),'context':Object[t(0xad)]({},i,{'className':paramCase(b[t(0x8d)])}),'config':f}),this['fsi'][t(0x72)]({'filePath':e+'.'+f[t(0xb6)]['js'],'content':t(0xb2)+i['fileName']+'.'+f[t(0xb6)]['css']+'\x27;'}));const j=b['dir']?'/'+b[t(0xb9)]+'/':'/',k=''+c+j+i[t(0x77)]+'/'+i[t(0x77)];let l;if(f[t(0xb6)][t(0x92)]===t(0x86)){const m=this[t(0x88)][t(0x74)]({'pathParts':[t(0x9e),t(0x93),t(0xa5),t(0xb1)]});l=this[t(0x88)][t(0xbe)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x74)]({'pathParts':[t(0x9e),t(0x93),t(0xa2),t(0xb1)]});l=this[t(0x88)][t(0xbe)]({'pathParts':[n],'config':f});}f[t(0xb6)]['client']==='react'?(f[t(0xb6)]['js']===t(0x7e)?this[t(0x88)][t(0x72)]({'filePath':l,'content':t(0xab)+i[t(0x84)]+t(0x79)+k+t(0xaf)}):this[t(0x88)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0xab)+i[t(0x84)]+t(0x79)+k+'.'+f[t(0xb6)]['js']+'\x27;\x0a'}),this['fsi'][t(0x8a)]({'filePath':l,'content':t(0xa1)+i[t(0x84)]+t(0x90)})):this[t(0x88)]['injectAtEndOfFile']({'filePath':l,'content':t(0x76)+k+'.'+f[t(0xb6)]['js']+t(0xaf)});});});
1
+ const a104r=a104d;function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x81;let f=c[d];return f;},a104d(a,b);}(function(a,b){const o=a104d,c=a();while(!![]){try{const d=parseInt(o(0xa4))/0x1+-parseInt(o(0x98))/0x2+parseInt(o(0x85))/0x3+-parseInt(o(0xb3))/0x4+-parseInt(o(0x8c))/0x5+parseInt(o(0xab))/0x6+-parseInt(o(0xc1))/0x7*(-parseInt(o(0x8b))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x4bc49));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0x83)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0xa2)]()[q(0xa6)](q(0x99))[q(0xa2)]()[q(0x9b)](a104a)[q(0xa6)](q(0x99));});function a104c(){const u=['ramda','templates.js','.app-tests.js','\x20}\x20from\x20\x27','apply','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','1429509JVYfQw','withHook','findAppDirectory','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','checkNpmPackage','injectAtEndOfFile','1283384vOpvoD','2770700PPbesI','imports','setTemplate','resourceName','assign','startup','withValue','css','create','export\x20{\x20','test','api','1137634bQNMVS','(((.+)+)+)+$','relative','constructor','true','split','layout','template','installNpmPackage','fsi','toString','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','381908DDkbBd','ssr','search','fileName','string','features','includes','3385812iuoNEL','withHooks','engines','component/component.js','/imports/ui/layouts','injectAtBeginningOfFile','pathFromProject','rewriteDestinationPathForEngine','599336vKodTJ','client','\x27;\x0a','Scaffolding\x20for\x20a\x20React\x20Layout.','maka\x20g:layout\x20mobile/iPhone8','withTranslations','tsx','maka\x20g:l\x20web/safari','dir','hook/hook.js','warn','import\x20\x27./','className','react','7agNsos','.css','.js','pathFromApp','test/test.js','import\x20{\x20'];a104c=function(){return u;};return a104c();}a104a();import a104e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a104r(0x94)]({'name':a104r(0x9e),'aliases':aliases,'usage':a104r(0x84),'shortDesc':a104r(0xb6),'validOpts':[],'examples':[a104r(0xb7),a104r(0xba)]},function(a,b){const s=a104r,c=s(0xaf),d=this[s(0xa1)][s(0x87)](),e=this[s(0xa1)][s(0xc4)]({'pathParts':[c,b['dir'],paramCase(b[s(0x8f)]),paramCase(b[s(0x8f)])]}),f=this[s(0xa1)]['getProjectConfig']();this[s(0xa1)][s(0x92)](f,()=>{const t=s;typeof f['template'][t(0x96)]===t(0xa8)&&(f[t(0x9f)][t(0x96)]=f[t(0x9f)][t(0x96)]==='true'?!![]:![],this[t(0xa1)]['setTemplate']('test',f['template']['test']));typeof f[t(0x9f)]['css']==='string'&&(f[t(0x9f)][t(0x93)]=f[t(0x9f)][t(0x93)]===t(0x9c)?!![]:![],this['fsi'][t(0x8e)](t(0x93),f[t(0x9f)][t(0x93)]));typeof f[t(0x9f)]['js']===t(0xa8)&&(f[t(0x9f)]['js']=f[t(0x9f)]['js']===t(0x9c)?!![]:![],this['fsi']['setTemplate']('js',f[t(0x9f)]['js']));!f['features']&&(f[t(0xa9)]={});const g=b['_']?b['_'][0x0][t(0x9d)](':')[0x1]:![],h=b['_']&&aliases[t(0xaa)](g);h&&!this['checkNpmPackage']('ramda')&&(Log[t(0xbd)](t(0xa3)),this[t(0xa1)][t(0xa0)](t(0xc7),{'cwd':d}));if(h&&!this[t(0x89)](t(0xc0))){Log[t(0xbd)](t(0x88));return;}const i={'name':pascalCase(b[t(0x8f)]),'myPath':a104e[t(0x9a)](this['fsi'][t(0xb1)]({}),e),'cssCaseName':paramCase(b[t(0x8f)]),'className':pascalCase(b[t(0x8f)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':f[t(0xad)]['graphql'],'features':f[t(0xa9)],'client':f[t(0xad)][t(0xb4)],'api':f[t(0xad)][t(0x97)],'ssr':f['engines'][t(0xa5)],'test':f[t(0xad)][t(0x96)],'theme':f[t(0xad)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0xa9)][t(0xb8)]};f[t(0xa9)]?.[t(0xac)]||b[t(0x86)]?this[t(0xa1)][t(0x9f)]({'srcPath':t(0xbc),'destPath':e+t(0xc3),'framework':t(0xc0),'context':i,'config':f}):this[t(0xa1)][t(0x9f)]({'srcPath':t(0xae),'destPath':e+t(0xc3),'framework':t(0xc0),'context':i,'config':f});f[t(0xad)][t(0x96)]!=='none'&&this[t(0xa1)]['template']({'srcPath':t(0xc5),'destPath':e+t(0x81),'framework':t(0xc0),'context':i,'config':f});f[t(0x9f)]['css']&&(this[t(0xa1)][t(0x9f)]({'srcPath':'template/template.css','destPath':e+t(0xc2),'context':Object[t(0x90)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0xa1)][t(0xb0)]({'filePath':e+'.'+f[t(0xad)]['js'],'content':t(0xbe)+i['fileName']+'.'+f[t(0xad)][t(0x93)]+'\x27;'}));const j=b['dir']?'/'+b[t(0xbb)]+'/':'/',k=''+c+j+i[t(0xa7)]+'/'+i[t(0xa7)];let l;if(f['engines'][t(0xa5)]===t(0x9c)){const m=this['fsi'][t(0xc4)]({'pathParts':[t(0x8d),t(0x91),'lib',t(0xc8)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0xa1)][t(0xc4)]({'pathParts':[t(0x8d),t(0x91),t(0xb4),t(0xc8)]});l=this[t(0xa1)][t(0xb2)]({'pathParts':[n],'config':f});}f['engines'][t(0xb4)]===t(0xc0)?(f[t(0xad)]['js']===t(0xb9)?this[t(0xa1)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0xc6)+i['className']+t(0x82)+k+t(0xb5)}):this[t(0xa1)][t(0xb0)]({'filePath':l,'content':t(0xc6)+i[t(0xbf)]+t(0x82)+k+'.'+f[t(0xad)]['js']+'\x27;\x0a'}),this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0x95)+i[t(0xbf)]+'\x20};\x0a'})):this[t(0xa1)][t(0x8a)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0xad)]['js']+t(0xb5)});});});
@@ -1 +1 @@
1
- const a105i=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=parseInt(f(0x103))/0x1+-parseInt(f(0xfe))/0x2*(-parseInt(f(0xfb))/0x3)+-parseInt(f(0xfc))/0x4*(parseInt(f(0x107))/0x5)+parseInt(f(0x10b))/0x6+parseInt(f(0xfd))/0x7*(parseInt(f(0x104))/0x8)+parseInt(f(0x105))/0x9+-parseInt(f(0x102))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x94df2));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a105d;if(c){const e=c[g(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const h=a105d;return a105a[h(0x101)]()['search'](h(0x100))[h(0x101)]()[h(0xff)](a105a)['search']('(((.+)+)+)+$');});a105a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a105i(0x108),'shortDesc':a105i(0x106),'validOpts':[],'description':a105i(0x10c),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':[a105i(0x109),'maka\x20g:hook\x20cool-hook']},function(){return null;});function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xfb;let f=c[d];return f;},a105d(a,b);}function a105c(){const j=['90GdAFeY','constructor','(((.+)+)+)+$','toString','34713860zcnpWU','1077776LgsaQN','16efYCqz','10742679uNXQsr','Maka!','357515icMQiT','maka','maka\x20generate:api\x20Trucks','apply','4707912UfuHxX','\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','69693ajHULv','24hfHwPc','1430548aJikRR'];a105c=function(){return j;};return a105c();}export default MakaGen;
1
+ const a105i=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=-parseInt(f(0x9b))/0x1+-parseInt(f(0xa9))/0x2+parseInt(f(0xad))/0x3+parseInt(f(0xa6))/0x4*(parseInt(f(0x9d))/0x5)+-parseInt(f(0xac))/0x6+-parseInt(f(0xa0))/0x7+-parseInt(f(0xaa))/0x8*(-parseInt(f(0xa8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xc7755));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a105d;if(c){const e=c[g(0xa4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const h=a105d;return a105a[h(0x9f)]()[h(0xa3)](h(0xab))[h(0x9f)]()[h(0x9e)](a105a)[h(0xa3)]('(((.+)+)+)+$');});function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x9b;let f=c[d];return f;},a105d(a,b);}a105a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a105i(0xa5),'validOpts':[],'description':a105i(0xa7),'usage':a105i(0xa1),'examples':[a105i(0x9c),a105i(0xa2)]},function(){return null;});export default MakaGen;function a105c(){const j=['\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','5238KlQXRH','1354128vjNCVe','10312zODgNf','(((.+)+)+)+$','5774832dPLrSr','4595142voZlcf','648511EiHXzX','maka\x20generate:api\x20Trucks','14015LeaPqF','constructor','toString','2557492RKRUyG','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','maka\x20g:hook\x20cool-hook','search','apply','Maka!','1696gfWHuk'];a105c=function(){return j;};return a105c();}
@@ -1 +1 @@
1
- const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=parseInt(k(0x1d8))/0x1*(-parseInt(k(0x1b7))/0x2)+-parseInt(k(0x1bd))/0x3+parseInt(k(0x1ba))/0x4+parseInt(k(0x1c4))/0x5*(-parseInt(k(0x1d7))/0x6)+parseInt(k(0x1b3))/0x7*(parseInt(k(0x1cf))/0x8)+-parseInt(k(0x1b0))/0x9+parseInt(k(0x1d6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xd5629));function a106c(){const q=['template','appPathPrefix','methods','startup','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','565ECWDvO','create','tsx','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','withValue','dir','pathFromApp','resourceName','method/method.js','getProjectConfig','imports','10776GlXzsd','warn','check\x20ddp-rate-limiter\x20mdg:validated-method','injectAtEndOfFile','(((.+)+)+)+$','error','-rpc-method\x27;','38353990EmhJry','47730RMTBtd','48zevgAG','13202595gKjQld','fsi','installMeteorPackage','1925dBKEGe','search','checkMeteorPackage','toString','52160CgWAGJ','check','ddp-rate-limiter','6314176jwxISw','method','engines','3877899MVUonV','apply'];a106c=function(){return q;};return a106c();}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0x1b6)]()[m(0x1b4)](m(0x1d3))['toString']()['constructor'](a106a)[m(0x1b4)](m(0x1d3));});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-0x1b0;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0x1c5)]({'name':a106n(0x1bb),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a106n(0x1c3),'validOpts':[a106n(0x1c9)],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a106n;try{const c=this[o(0x1b1)][o(0x1cd)]();this[o(0x1b1)][o(0x1c8)](c,async()=>{const p=o,d=paramCase(b[p(0x1cb)]),f={'name':b[p(0x1cb)],'fileName':d,'className':pascalCase(b[p(0x1cb)]),'camelCase':camelCase(b[p(0x1cb)]),'noRename':!![]};let g='js';c['engines']['js']===p(0x1c6)&&(g='ts');const h=this['fsi'][p(0x1ca)]({});(!this[p(0x1b1)][p(0x1b5)](p(0x1b8))||!this[p(0x1b1)][p(0x1b5)](p(0x1b9))||!this[p(0x1b1)][p(0x1b5)]('mdg:validated-method'))&&(Log[p(0x1d0)](p(0x1c7)),this['fsi'][p(0x1b2)](p(0x1d1),{'cwd':h}));this[p(0x1b1)][p(0x1bf)]({'srcPath':p(0x1cc),'destPath':this['fsi'][p(0x1ca)]({'pathParts':[p(0x1ce),'startup',b[p(0x1c0)],p(0x1c1),b[p(0x1c9)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x1c9)]?'/'+b[p(0x1c9)]+'/':'/',j=this[p(0x1b1)][p(0x1ca)]({'pathParts':[p(0x1ce),p(0x1c2),b[p(0x1c0)],'index.'+c[p(0x1bc)]['js']]});this[p(0x1b1)][p(0x1d2)]({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0x1d5)});});}catch(d){Log[o(0x1d4)](d);}});
1
+ const a106m=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=parseInt(k(0x184))/0x1*(-parseInt(k(0x16e))/0x2)+parseInt(k(0x168))/0x3+-parseInt(k(0x18a))/0x4*(-parseInt(k(0x169))/0x5)+parseInt(k(0x182))/0x6*(-parseInt(k(0x170))/0x7)+-parseInt(k(0x188))/0x8*(-parseInt(k(0x177))/0x9)+parseInt(k(0x16d))/0xa+-parseInt(k(0x185))/0xb*(parseInt(k(0x16f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xcf6ab));const a106b=(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;};}()),a106a=a106b(this,function(){const l=a106d;return a106a[l(0x17c)]()['search']('(((.+)+)+)+$')[l(0x17c)]()[l(0x16c)](a106a)[l(0x175)](l(0x161));});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x15f;let f=c[d];return f;},a106d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a106c(){const p=['fsi','1394201IBHOod','167838LlSabT','import\x20\x27./methods','checkMeteorPackage','8tixOwq','template','3404DwguGG','maka\x20{generate,\x20g}:{method,\x20m}\x20name','injectAtEndOfFile','(((.+)+)+)+$','index.','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','resourceName','getProjectConfig','startup','imports','4546938OUDhfP','7770OmtNfm','ddp-rate-limiter','installMeteorPackage','constructor','9580750WxzWdV','2NWwrSK','384nbkEwR','14126onHeuV','dir','check\x20ddp-rate-limiter\x20mdg:validated-method','engines','-rpc-method\x27;','search','check','2881881lfKlgO','error','method','withValue','mdg:validated-method','toString','tsx','pathFromApp','method/method.js','appPathPrefix','create','4116xfGGaS'];a106c=function(){return p;};return a106c();}Generator[a106m(0x181)]({'name':a106m(0x179),'aliases':['m'],'usage':a106m(0x15f),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a106m(0x171)],'examples':['maka\x20g:method\x20todos']},function(a,b){const n=a106m;try{const c=this[n(0x183)][n(0x165)]();this[n(0x183)][n(0x17a)](c,async()=>{const o=n,d=paramCase(b[o(0x164)]),f={'name':b[o(0x164)],'fileName':d,'className':pascalCase(b[o(0x164)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[o(0x173)]['js']===o(0x17d)&&(g='ts');const h=this['fsi']['pathFromApp']({});(!this[o(0x183)][o(0x187)](o(0x176))||!this[o(0x183)][o(0x187)](o(0x16a))||!this[o(0x183)][o(0x187)](o(0x17b)))&&(Log['warn'](o(0x163)),this['fsi'][o(0x16b)](o(0x172),{'cwd':h}));this[o(0x183)][o(0x189)]({'srcPath':o(0x17f),'destPath':this[o(0x183)][o(0x17e)]({'pathParts':['imports',o(0x166),b['appPathPrefix'],'methods',b[o(0x171)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[o(0x171)]?'/'+b[o(0x171)]+'/':'/',j=this['fsi'][o(0x17e)]({'pathParts':[o(0x167),o(0x166),b[o(0x180)],o(0x162)+c[o(0x173)]['js']]});this[o(0x183)][o(0x160)]({'filePath':j,'content':o(0x186)+i+d+o(0x174)});});}catch(d){Log[n(0x178)](d);}});
@@ -1 +1 @@
1
- const a107o=a107d;function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x166;let f=c[d];return f;},a107d(a,b);}(function(a,b){const l=a107d,c=a();while(!![]){try{const d=-parseInt(l(0x171))/0x1+parseInt(l(0x17d))/0x2*(-parseInt(l(0x176))/0x3)+parseInt(l(0x180))/0x4+parseInt(l(0x190))/0x5+-parseInt(l(0x17a))/0x6*(parseInt(l(0x175))/0x7)+-parseInt(l(0x183))/0x8*(parseInt(l(0x17f))/0x9)+parseInt(l(0x186))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x8e5e0));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a['toString']()[n(0x16b)](n(0x178))[n(0x181)]()[n(0x182)](a107a)['search']('(((.+)+)+)+$');});a107a();import a107e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a107c(){const s=['pathFromApp','component','1044127drnfNN','3ERGKta','features','(((.+)+)+)+$','pathFromAppWithNoReWrite','24ALQELz','.js','create','2253082mnVTvd','packages','215037CVGLRM','766756kqlrgo','toString','constructor','176DZnmvI','lib','fsi','34548800VTPsjF','maka\x20g:package\x20todos:package','hasOwnProperty','tests/client','ssr','resourceName','noRename','withValue','/client/','package/','549890XfgHyI','template/template.js','package','template','pathFromProject','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','tests/server','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','apply','search','/package.js','engines','client','dir','package/package.js','924580yvlSmD','theme'];a107c=function(){return s;};return a107c();}Generator[a107o(0x17c)]({'name':a107o(0x192),'aliases':['p'],'usage':a107o(0x167),'shortDesc':a107o(0x169),'validOpts':['dir'],'examples':[a107o(0x187)]},async function(a,b){const p=a107o,c=paramCase(b[p(0x18b)]),d=this['fsi'][p(0x173)]({'pathParts':[p(0x17e),b[p(0x16f)],c]}),e=this[p(0x185)][p(0x179)]({'pathParts':[p(0x17e),b[p(0x16f)],c,'package.js']}),f=this[p(0x185)]['getProjectConfig']();this['fsi'][p(0x18d)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x18b)]),'myPath':a107e['relative'](this[q(0x185)][q(0x166)]({}),d),'cssCaseName':paramCase(b[q(0x18b)]),'className':pascalCase(b[q(0x18b)]),'camelCaseName':camelCase(b[q(0x18b)]),'fileName':c,'client':f['engines'][q(0x16e)],'graphql':f[q(0x16d)]['graphql'],'ssr':f['engines'][q(0x18a)],'isComponent':b[q(0x188)](q(0x174)),'isLayout':b[q(0x188)]('layout'),'isStore':b[q(0x188)]('store'),'features':f[q(0x177)],'noRename':!![],'theme':f[q(0x16d)][q(0x172)]};this[q(0x185)][q(0x193)]({'srcPath':q(0x170),'destPath':e,'context':g,'config':f}),g[q(0x18c)]=![];const h=d+q(0x18e)+c+q(0x17b);this[q(0x185)][q(0x193)]({'srcPath':q(0x191),'destPath':h,'context':g,'config':f});const i=[q(0x184),'server',q(0x189),q(0x168)];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x17b);this[r(0x185)][r(0x193)]({'srcPath':r(0x18f)+j+r(0x16c),'destPath':k,'context':g,'config':f});});});});
1
+ const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=parseInt(l(0xf7))/0x1+-parseInt(l(0xec))/0x2+parseInt(l(0xd9))/0x3*(-parseInt(l(0xf1))/0x4)+parseInt(l(0xf4))/0x5*(parseInt(l(0xd6))/0x6)+parseInt(l(0xe5))/0x7+-parseInt(l(0xf6))/0x8*(parseInt(l(0xdf))/0x9)+parseInt(l(0xd3))/0xa*(parseInt(l(0xd8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xa381b));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0xf2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a[n(0xf5)]()[n(0xe9)]('(((.+)+)+)+$')['toString']()['constructor'](a107a)[n(0xe9)]('(((.+)+)+)+$');});a107a();import a107e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xd3;let f=c[d];return f;},a107d(a,b);}Generator[a107o(0xf8)]({'name':'package','aliases':['p'],'usage':a107o(0xe6),'shortDesc':a107o(0xd5),'validOpts':['dir'],'examples':[a107o(0xe0)]},async function(a,b){const p=a107o,c=paramCase(b[p(0xe4)]),d=this[p(0xf0)][p(0xdd)]({'pathParts':[p(0xf9),b['dir'],c]}),e=this[p(0xf0)]['pathFromAppWithNoReWrite']({'pathParts':[p(0xf9),b[p(0xfb)],c,p(0xd4)]}),f=this[p(0xf0)]['getProjectConfig']();this[p(0xf0)][p(0xee)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a107e['relative'](this['fsi'][q(0xe3)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0xe4)]),'camelCaseName':camelCase(b[q(0xe4)]),'fileName':c,'client':f[q(0xe8)][q(0xd7)],'graphql':f[q(0xe8)][q(0xdc)],'ssr':f['engines'][q(0xf3)],'isComponent':b['hasOwnProperty'](q(0xda)),'isLayout':b[q(0xde)](q(0xfa)),'isStore':b[q(0xde)]('store'),'features':f[q(0xe2)],'noRename':!![],'theme':f['engines']['theme']};this['fsi'][q(0xe7)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0xed)]=![];const h=d+q(0xea)+c+q(0xdb);this['fsi']['template']({'srcPath':q(0xfc),'destPath':h,'context':g,'config':f});const i=['lib','server','tests/client','tests/server'];i[q(0xef)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xdb);this[r(0xf0)][r(0xe7)]({'srcPath':r(0xeb)+j+r(0xe1),'destPath':k,'context':g,'config':f});});});});function a107c(){const s=['resourceName','717843QkTPAH','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','template','engines','search','/client/','package/','1260520OSLYhc','noRename','withValue','forEach','fsi','4656IjYsRr','apply','ssr','3265woDYlQ','toString','5679376JMbVFA','432122ThZVmJ','create','packages','layout','dir','template/template.js','100YERHAM','package.js','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','4416XARwtI','client','1863609BCgwYI','1803hvWmcI','component','.js','graphql','pathFromApp','hasOwnProperty','9tCmiZq','maka\x20g:package\x20todos:package','/package.js','features','pathFromProject'];a107c=function(){return s;};return a107c();}
@@ -1 +1 @@
1
- const a108p=a108d;function a108c(){const s=['/imports/ui/','rewriteDestinationPathForEngine','test','.js','search','(((.+)+)+)+$','fileName','1249995LIHpKo','80rLXwfw','import\x20\x27./','35qZxzag','page','installNpmPackage','lib','tsx','template/template.html','client','fsi','export\x20{\x20','withHook','features','pages','\x27;\x0a','api','withTranslations','ssr','checkNpmPackage','component/component.js','warn','withHooks','true','import\x20{\x20','css','string','startup','baseDir','\x20}\x20from\x20\x27','2997907SItnAb','create','engines','Generate\x20a\x20page.','pathFromProject','template','pathFromApp','layout','ramda','41934rNTKYO','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','className','injectAtEndOfFile','hook/hook.js','234044dtEEGL','maka\x20g:page\x20todos/todos-item','import\x20\x27','apply','root','1mIEbOX','getProjectConfig','react','hasOwnProperty','template/template.css','store','hooks','88QYaIWr','Updating\x20npm\x20packages\x20...','injectAtBeginningOfFile','test/test.js','resourceName','theme','none','templates.js','189432mwYOjT','\x20};\x0a','constructor','1292120hsxiKI','imports','setTemplate','dir','244422ySpgQb','html','graphql','/imports/ui/pages'];a108c=function(){return s;};return a108c();}function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x191;let f=c[d];return f;},a108d(a,b);}(function(a,b){const m=a108d,c=a();while(!![]){try{const d=-parseInt(m(0x1d7))/0x1*(parseInt(m(0x1d2))/0x2)+-parseInt(m(0x1cd))/0x3*(-parseInt(m(0x1de))/0x4)+-parseInt(m(0x1a6))/0x5+-parseInt(m(0x194))/0x6*(-parseInt(m(0x1a9))/0x7)+parseInt(m(0x1a7))/0x8*(parseInt(m(0x19b))/0x9)+parseInt(m(0x197))/0xa+-parseInt(m(0x1c4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x37532));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a108d;if(c){const e=c[n(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const o=a108d;return a108a['toString']()[o(0x1a3)](o(0x1a4))['toString']()[o(0x196)](a108a)['search'](o(0x1a4));});a108a();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(0x1c5)]({'name':a108p(0x1aa),'aliases':aliases,'usage':a108p(0x1ce),'shortDesc':a108p(0x1c7),'validOpts':[{'name':a108p(0x1c2),'values':[a108p(0x1dd),'components',a108p(0x1b4),'layouts']},{'name':'withHook','boolFlag':!![]}],'examples':[a108p(0x1d3)]},function(a,b){const q=a108p,c=b[q(0x1c2)]?q(0x19f)+b[q(0x1c2)]:q(0x19e),d=this[q(0x1b0)][q(0x1ca)](b),e=this['fsi'][q(0x1ca)]({'pathParts':[c,b['dir'],paramCase(b[q(0x1e2)]),paramCase(b['resourceName'])]}),f=this[q(0x1b0)][q(0x1d8)]();this[q(0x1b0)]['withValue'](f,()=>{const r=q;typeof f['template'][r(0x19c)]===r(0x1c0)&&(f[r(0x1c9)][r(0x19c)]=f['template']['html']===r(0x1bd)?!![]:![],this[r(0x1b0)][r(0x199)](r(0x19c),f[r(0x1c9)][r(0x19c)]));typeof f[r(0x1c9)][r(0x1a1)]===r(0x1c0)&&(f[r(0x1c9)][r(0x1a1)]=f[r(0x1c9)][r(0x1a1)]===r(0x1bd)?!![]:![],this[r(0x1b0)][r(0x199)](r(0x1a1),f[r(0x1c9)][r(0x1a1)]));typeof f[r(0x1c9)][r(0x1bf)]===r(0x1c0)&&(f['template'][r(0x1bf)]=f[r(0x1c9)][r(0x1bf)]==='true'?!![]:![],this[r(0x1b0)][r(0x199)]('css',f[r(0x1c9)][r(0x1bf)]));typeof f['template']['js']==='string'&&(f[r(0x1c9)]['js']=f[r(0x1c9)]['js']===r(0x1bd)?!![]:![],this['fsi'][r(0x199)]('js',f[r(0x1c9)]['js']));!f[r(0x1b3)]&&(f[r(0x1b3)]={});!b[r(0x1d6)]&&!this[r(0x1b0)][r(0x1b9)](r(0x1cc))&&(Log[r(0x1bb)](r(0x1df)),this['fsi'][r(0x1ab)](r(0x1cc),{'cwd':d}));const g={'name':pascalCase(b[r(0x1e2)]),'myPath':a108e['relative'](this['fsi'][r(0x1c8)]({}),e),'cssCaseName':paramCase(b[r(0x1e2)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0x1e2)]),'fileName':paramCase(b[r(0x1e2)]),'graphql':f[r(0x1c6)][r(0x19d)],'features':f[r(0x1b3)],'client':f['engines'][r(0x1af)],'api':f[r(0x1c6)][r(0x1b6)],'ssr':f[r(0x1c6)][r(0x1b8)],'isStore':b[r(0x1da)](r(0x1dc)),'isComponent':b[r(0x1da)]('component'),'isLayout':b[r(0x1da)](r(0x1cb)),'withTranslations':f[r(0x1b3)][r(0x1b7)],'test':f[r(0x1c6)][r(0x1a1)],'theme':f[r(0x1c6)][r(0x191)]};f['template'][r(0x19c)]&&this['fsi'][r(0x1c9)]({'srcPath':r(0x1ae),'destPath':e+'.html','context':g,'config':f});f[r(0x1b3)]?.[r(0x1bc)]||b[r(0x1b2)]?this['fsi'][r(0x1c9)]({'srcPath':r(0x1d1),'destPath':e+'.js','framework':r(0x1d9),'context':g,'config':f}):this['fsi'][r(0x1c9)]({'srcPath':r(0x1ba),'destPath':e+r(0x1a2),'framework':r(0x1d9),'context':g,'config':f});f[r(0x1c6)]['test']!==r(0x192)&&this['fsi'][r(0x1c9)]({'srcPath':r(0x1e1),'destPath':e+'.app-tests.js','framework':r(0x1d9),'context':g,'config':f});f[r(0x1c9)]['css']&&this[r(0x1b0)][r(0x1c9)]({'srcPath':r(0x1db),'destPath':e+'.css','context':Object['assign']({},g,{'className':paramCase(b[r(0x1e2)])}),'config':f});f[r(0x1c6)][r(0x1af)]!==r(0x1d9)&&f[r(0x1c6)][r(0x1af)]!=='vanilla'?(f[r(0x1c9)]['css']&&this[r(0x1b0)][r(0x1e0)]({'filePath':e+'.'+f[r(0x1c6)]['js'],'content':r(0x1a8)+g['fileName']+'.'+f[r(0x1c6)][r(0x19c)]+r(0x1b5)+r(0x1a8)+g[r(0x1a5)]+'.'+f[r(0x1c6)][r(0x1bf)]+'\x27;'}),!f[r(0x1c9)][r(0x1bf)]&&this[r(0x1b0)][r(0x1e0)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x1a8)+g[r(0x1a5)]+'.'+f['engines']['html']+'\x27;'})):f[r(0x1c9)][r(0x1bf)]&&this[r(0x1b0)][r(0x1e0)]({'filePath':e+'.'+f[r(0x1c6)]['js'],'content':r(0x1a8)+g[r(0x1a5)]+'.'+f[r(0x1c6)][r(0x1bf)]+'\x27;'});const h=b[r(0x19a)]?'/'+b[r(0x19a)]+'/':'/',i=''+c+h+g['fileName']+'/'+g[r(0x1a5)];let j;if(f['engines'][r(0x1b8)]===r(0x1bd)){const k=this[r(0x1b0)][r(0x1ca)]({'pathParts':['imports',r(0x1c1),r(0x1ac),r(0x193)]});j=this[r(0x1b0)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this[r(0x1b0)]['pathFromApp']({'pathParts':[r(0x198),r(0x1c1),r(0x1af),'templates.js']});j=this[r(0x1b0)][r(0x1a0)]({'pathParts':[l],'config':f});}f[r(0x1c6)][r(0x1af)]==='react'?(f['engines']['js']===r(0x1ad)?this[r(0x1b0)]['injectAtBeginningOfFile']({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x1c3)+i+r(0x1b5)}):this['fsi'][r(0x1e0)]({'filePath':j,'content':r(0x1be)+g[r(0x1cf)]+r(0x1c3)+i+'.'+f[r(0x1c6)]['js']+r(0x1b5)}),this[r(0x1b0)][r(0x1d0)]({'filePath':j,'content':r(0x1b1)+g[r(0x1cf)]+r(0x195)})):this[r(0x1b0)][r(0x1d0)]({'filePath':j,'content':r(0x1d4)+i+'.'+f[r(0x1c6)]['js']+r(0x1b5)});});});
1
+ const a108o=a108d;(function(a,b){const m=a108d,c=a();while(!![]){try{const d=parseInt(m(0xc8))/0x1*(-parseInt(m(0xda))/0x2)+parseInt(m(0xcf))/0x3*(parseInt(m(0xc1))/0x4)+-parseInt(m(0xbd))/0x5+parseInt(m(0xd0))/0x6*(parseInt(m(0xa7))/0x7)+-parseInt(m(0xc9))/0x8+parseInt(m(0xcd))/0x9+parseInt(m(0xca))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xe54e1));const a108b=(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;};}()),a108a=a108b(this,function(){const n=a108d;return a108a['toString']()['search'](n(0xc5))[n(0xac)]()[n(0xab)](a108a)[n(0x9b)]('(((.+)+)+)+$');});a108a();function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x9a;let f=c[d];return f;},a108d(a,b);}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'];function a108c(){const r=['components','graphql','67613qWtGpr','html','checkNpmPackage','getProjectConfig','constructor','toString','resourceName','warn','component','fileName','/imports/ui/pages','\x20}\x20from\x20\x27','store','templates.js','css','className','string','engines','.app-tests.js','.html','template','template/template.css','2657930zejZIL','react','template/template.html','true','8ojmAIJ','tsx','test','rewriteDestinationPathForEngine','(((.+)+)+)+$','ramda','page','73PSGNfh','12155864nYhqna','9369920wxrTHC','pathFromApp','test/test.js','674379wyLRrc','theme','2599749ZLTMrr','192IhljJB','import\x20\x27','\x20};\x0a','lib','injectAtBeginningOfFile','\x27;\x0a','hooks','ssr','maka\x20g:page\x20todos/todos-item','imports','1750ZUipUK','installNpmPackage','component/component.js','layouts','Generate\x20a\x20page.','injectAtEndOfFile','client','fsi','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','import\x20{\x20','Updating\x20npm\x20packages\x20...','export\x20{\x20','setTemplate','hasOwnProperty','withValue','root','hook/hook.js','import\x20\x27./','search','api','dir','features','baseDir','pathFromProject','withTranslations','.js','withHook','startup'];a108c=function(){return r;};return a108c();}Generator['create']({'name':a108o(0xc7),'aliases':aliases,'usage':a108o(0xe2),'shortDesc':a108o(0xde),'validOpts':[{'name':'baseDir','values':[a108o(0xd6),a108o(0xa5),'pages',a108o(0xdd)]},{'name':a108o(0xa3),'boolFlag':!![]}],'examples':[a108o(0xd8)]},function(a,b){const p=a108o,c=b[p(0x9f)]?'/imports/ui/'+b[p(0x9f)]:p(0xb1),d=this['fsi'][p(0xcb)](b),e=this[p(0xe1)][p(0xcb)]({'pathParts':[c,b[p(0x9d)],paramCase(b[p(0xad)]),paramCase(b[p(0xad)])]}),f=this['fsi'][p(0xaa)]();this['fsi'][p(0xe8)](f,()=>{const q=p;typeof f[q(0xbb)][q(0xa8)]===q(0xb7)&&(f[q(0xbb)][q(0xa8)]=f['template'][q(0xa8)]===q(0xc0)?!![]:![],this[q(0xe1)][q(0xe6)](q(0xa8),f[q(0xbb)]['html']));typeof f[q(0xbb)][q(0xc3)]===q(0xb7)&&(f[q(0xbb)][q(0xc3)]=f[q(0xbb)][q(0xc3)]===q(0xc0)?!![]:![],this[q(0xe1)][q(0xe6)](q(0xc3),f['template'][q(0xc3)]));typeof f['template']['css']===q(0xb7)&&(f[q(0xbb)][q(0xb5)]=f[q(0xbb)][q(0xb5)]==='true'?!![]:![],this[q(0xe1)][q(0xe6)](q(0xb5),f[q(0xbb)][q(0xb5)]));typeof f[q(0xbb)]['js']===q(0xb7)&&(f[q(0xbb)]['js']=f[q(0xbb)]['js']===q(0xc0)?!![]:![],this[q(0xe1)][q(0xe6)]('js',f[q(0xbb)]['js']));!f[q(0x9e)]&&(f[q(0x9e)]={});!b[q(0xe9)]&&!this[q(0xe1)][q(0xa9)](q(0xc6))&&(Log[q(0xae)](q(0xe4)),this[q(0xe1)][q(0xdb)](q(0xc6),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a108e['relative'](this['fsi'][q(0xa0)]({}),e),'cssCaseName':paramCase(b[q(0xad)]),'className':pascalCase(b[q(0xad)]),'camelCaseName':camelCase(b[q(0xad)]),'fileName':paramCase(b['resourceName']),'graphql':f['engines'][q(0xa6)],'features':f[q(0x9e)],'client':f[q(0xb8)]['client'],'api':f['engines'][q(0x9c)],'ssr':f[q(0xb8)][q(0xd7)],'isStore':b[q(0xe7)](q(0xb3)),'isComponent':b[q(0xe7)](q(0xaf)),'isLayout':b[q(0xe7)]('layout'),'withTranslations':f[q(0x9e)][q(0xa1)],'test':f[q(0xb8)]['test'],'theme':f[q(0xb8)][q(0xce)]};f[q(0xbb)]['html']&&this[q(0xe1)][q(0xbb)]({'srcPath':q(0xbf),'destPath':e+q(0xba),'context':g,'config':f});f['features']?.['withHooks']||b[q(0xa3)]?this[q(0xe1)]['template']({'srcPath':q(0xea),'destPath':e+q(0xa2),'framework':q(0xbe),'context':g,'config':f}):this[q(0xe1)][q(0xbb)]({'srcPath':q(0xdc),'destPath':e+q(0xa2),'framework':q(0xbe),'context':g,'config':f});f[q(0xb8)][q(0xc3)]!=='none'&&this[q(0xe1)][q(0xbb)]({'srcPath':q(0xcc),'destPath':e+q(0xb9),'framework':q(0xbe),'context':g,'config':f});f[q(0xbb)]['css']&&this['fsi']['template']({'srcPath':q(0xbc),'destPath':e+'.css','context':Object['assign']({},g,{'className':paramCase(b[q(0xad)])}),'config':f});f[q(0xb8)][q(0xe0)]!==q(0xbe)&&f['engines']['client']!=='vanilla'?(f[q(0xbb)][q(0xb5)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0xb8)]['js'],'content':q(0x9a)+g[q(0xb0)]+'.'+f[q(0xb8)][q(0xa8)]+q(0xd5)+q(0x9a)+g[q(0xb0)]+'.'+f['engines'][q(0xb5)]+'\x27;'}),!f[q(0xbb)]['css']&&this[q(0xe1)][q(0xd4)]({'filePath':e+'.'+f[q(0xb8)]['js'],'content':'import\x20\x27./'+g[q(0xb0)]+'.'+f[q(0xb8)][q(0xa8)]+'\x27;'})):f[q(0xbb)][q(0xb5)]&&this['fsi'][q(0xd4)]({'filePath':e+'.'+f['engines']['js'],'content':q(0x9a)+g[q(0xb0)]+'.'+f[q(0xb8)][q(0xb5)]+'\x27;'});const h=b['dir']?'/'+b['dir']+'/':'/',i=''+c+h+g['fileName']+'/'+g['fileName'];let j;if(f[q(0xb8)][q(0xd7)]===q(0xc0)){const k=this[q(0xe1)][q(0xcb)]({'pathParts':[q(0xd9),q(0xa4),q(0xd3),q(0xb4)]});j=this[q(0xe1)][q(0xc4)]({'pathParts':[k],'config':f});}else{const l=this[q(0xe1)][q(0xcb)]({'pathParts':[q(0xd9),q(0xa4),q(0xe0),q(0xb4)]});j=this[q(0xe1)][q(0xc4)]({'pathParts':[l],'config':f});}f[q(0xb8)]['client']===q(0xbe)?(f['engines']['js']===q(0xc2)?this[q(0xe1)][q(0xd4)]({'filePath':j,'content':q(0xe3)+g['className']+q(0xb2)+i+'\x27;\x0a'}):this[q(0xe1)][q(0xd4)]({'filePath':j,'content':q(0xe3)+g[q(0xb6)]+'\x20}\x20from\x20\x27'+i+'.'+f[q(0xb8)]['js']+'\x27;\x0a'}),this['fsi'][q(0xdf)]({'filePath':j,'content':q(0xe5)+g['className']+q(0xd2)})):this[q(0xe1)][q(0xdf)]({'filePath':j,'content':q(0xd1)+i+'.'+f['engines']['js']+'\x27;\x0a'});});});
@@ -1 +1 @@
1
- const a109j=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=-parseInt(h(0x124))/0x1*(parseInt(h(0x12f))/0x2)+parseInt(h(0x125))/0x3+-parseInt(h(0x11d))/0x4*(-parseInt(h(0x130))/0x5)+parseInt(h(0x123))/0x6*(-parseInt(h(0x121))/0x7)+-parseInt(h(0x126))/0x8+-parseInt(h(0x12a))/0x9+-parseInt(h(0x12e))/0xa*(-parseInt(h(0x11c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xd5960));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(0x127)]()[i(0x11a)](i(0x11b))[i(0x127)]()[i(0x128)](a109a)[i(0x11a)](i(0x11b));});function a109c(){const m=['maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','4626414XgWKyc','28kKDxcG','461370GsMlbw','4404224oblOzx','toString','constructor','publish','9615510NvVmPF','resourceName','fsi','templateContent','30sPPFCV','102260UJDKBU','3804965hOoUfu','injectAtEndOfFile','engines','create','search','(((.+)+)+)+$','16693457XyfKul','4MqJVJz','getProjectConfig','publish/publish.','tsx','14ClRUwz'];a109c=function(){return m;};return a109c();}function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x117;let f=c[d];return f;},a109d(a,b);}a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a109j(0x119)]({'name':a109j(0x129),'aliases':['p'],'usage':a109j(0x122),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const k=a109j,c=this[k(0x12c)][k(0x11e)]();this[k(0x12c)]['withValue'](c,async()=>{const l=k,d={'name':b[l(0x12b)],'collection':paramCase(b[l(0x12b)]),'noRename':!![]};let e='js';c[l(0x118)]['js']===l(0x120)&&(e='ts');const f=this[l(0x12c)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c[l(0x118)]['js']]}),g=this['fsi'][l(0x12d)]({'srcPath':l(0x11f)+e,'context':d,'config':c});this[l(0x12c)][l(0x117)]({'filePath':f,'content':'\x0a'+g});});});
1
+ const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=-parseInt(h(0x86))/0x1+parseInt(h(0x7e))/0x2+-parseInt(h(0x87))/0x3+parseInt(h(0x91))/0x4+parseInt(h(0x83))/0x5*(parseInt(h(0x90))/0x6)+-parseInt(h(0x89))/0x7*(-parseInt(h(0x85))/0x8)+parseInt(h(0x92))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xb1e3d));function a109c(){const n=['templateContent','toString','tsx','fsi','852594vuNhze','560536wScbzO','8120547rRluNK','(((.+)+)+)+$','getProjectConfig','maka\x20g:publish\x20todos','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','38156McZzHL','resourceName','injectAtEndOfFile','engines','server/publish.','10rUKGPu','search','4668904FpoMdF','914332INBRpO','859011XSWdOt','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','7xPkfFe','apply','publish'];a109c=function(){return n;};return a109c();}function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x7d;let f=c[d];return f;},a109d(a,b);}const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x8a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0x8d)]()[j(0x84)](j(0x93))[j(0x8d)]()['constructor'](a109a)[j(0x84)](j(0x93));});a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator['create']({'name':a109k(0x8b),'aliases':['p'],'usage':a109k(0x7d),'shortDesc':a109k(0x88),'validOpts':[],'examples':[a109k(0x95)]},async function(a,b){const l=a109k,c=this[l(0x8f)][l(0x94)]();this[l(0x8f)]['withValue'](c,async()=>{const m=l,d={'name':b[m(0x7f)],'collection':paramCase(b[m(0x7f)]),'noRename':!![]};let e='js';c[m(0x81)]['js']===m(0x8e)&&(e='ts');const f=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m(0x82)+c[m(0x81)]['js']]}),g=this[m(0x8f)][m(0x8c)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this['fsi'][m(0x80)]({'filePath':f,'content':'\x0a'+g});});});