@maka/maka-cli 4.6.6 → 4.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/install.js +1 -1
  73. package/bundle/obf/src/commands/jsdoc.js +1 -1
  74. package/bundle/obf/src/commands/lint.js +1 -1
  75. package/bundle/obf/src/commands/login.js +1 -1
  76. package/bundle/obf/src/commands/logout.js +1 -1
  77. package/bundle/obf/src/commands/logs.js +1 -1
  78. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  79. package/bundle/obf/src/commands/murder.js +1 -1
  80. package/bundle/obf/src/commands/proxy.js +1 -1
  81. package/bundle/obf/src/commands/reconfig.js +1 -1
  82. package/bundle/obf/src/commands/run/_index.js +1 -1
  83. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  84. package/bundle/obf/src/commands/run/run.command.js +1 -1
  85. package/bundle/obf/src/commands/set/_index.js +1 -1
  86. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/set/set.command.js +1 -1
  89. package/bundle/obf/src/commands/ssh.js +1 -1
  90. package/bundle/obf/src/commands/ssl.js +1 -1
  91. package/bundle/obf/src/commands/test.js +1 -1
  92. package/bundle/obf/src/commands/version.js +1 -1
  93. package/bundle/obf/src/error.js +1 -1
  94. package/bundle/obf/src/exec.js +1 -1
  95. package/bundle/obf/src/generator.js +1 -1
  96. package/bundle/obf/src/generators/_index.js +1 -1
  97. package/bundle/obf/src/generators/api.js +1 -1
  98. package/bundle/obf/src/generators/collection.js +1 -1
  99. package/bundle/obf/src/generators/component.js +1 -1
  100. package/bundle/obf/src/generators/config.js +1 -1
  101. package/bundle/obf/src/generators/dbc.js +1 -1
  102. package/bundle/obf/src/generators/dockerfile.js +1 -1
  103. package/bundle/obf/src/generators/hook.js +1 -1
  104. package/bundle/obf/src/generators/kit.js +1 -1
  105. package/bundle/obf/src/generators/layout.js +1 -1
  106. package/bundle/obf/src/generators/maka.gen.js +1 -1
  107. package/bundle/obf/src/generators/methods.js +1 -1
  108. package/bundle/obf/src/generators/package.js +1 -1
  109. package/bundle/obf/src/generators/page.js +1 -1
  110. package/bundle/obf/src/generators/publish.js +1 -1
  111. package/bundle/obf/src/generators/route.js +1 -1
  112. package/bundle/obf/src/generators/service.js +1 -1
  113. package/bundle/obf/src/generators/services/_index.js +1 -1
  114. package/bundle/obf/src/generators/services/openssl.js +1 -1
  115. package/bundle/obf/src/generators/services/translation.js +1 -1
  116. package/bundle/obf/src/maka.js +1 -1
  117. package/bundle/obf/src/tool.js +1 -1
  118. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  119. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  120. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  122. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  124. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  125. package/bundle/obf/src/tools/https/https.class.js +1 -1
  126. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  127. package/bundle/obf/src/tools/https/progress.class.js +1 -1
  128. package/bundle/obf/src/tools/log/log.class.js +1 -1
  129. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/options/options.class.js +1 -1
  131. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  132. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  134. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  136. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(a,b){var f=a95d,c=a();while(!![]){try{var d=-parseInt(f(0x9e))/0x1+-parseInt(f(0x9b))/0x2+-parseInt(f(0x9c))/0x3*(parseInt(f(0xa3))/0x4)+-parseInt(f(0xa0))/0x5+parseInt(f(0x9d))/0x6*(-parseInt(f(0xa2))/0x7)+-parseInt(f(0xa5))/0x8+parseInt(f(0xa1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x531d7));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var g=a95d;return a95a['toString']()['search'](g(0x9f))['toString']()[g(0x9a)](a95a)[g(0xa4)](g(0x9f));});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';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x9a;var f=c[d];return f;},a95d(a,b);}import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a95c(){var h=['constructor','1037852qYCDeG','12747ACRoUm','38022qDxMNw','550329HjHJxB','(((.+)+)+)+$','2057260KuWYZz','22778820XipBSp','623ujNGvO','64GjnRUO','search','622856qjZQpM'];a95c=function(){return h;};return a95c();}import'./maka.gen.js';
1
+ (function(a,b){var f=a95d,c=a();while(!![]){try{var d=parseInt(f(0xe0))/0x1*(-parseInt(f(0xdf))/0x2)+parseInt(f(0xda))/0x3+parseInt(f(0xdb))/0x4+parseInt(f(0xd9))/0x5*(parseInt(f(0xdd))/0x6)+-parseInt(f(0xe5))/0x7+parseInt(f(0xdc))/0x8+-parseInt(f(0xe1))/0x9*(parseInt(f(0xde))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x7aa09));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a['toString']()[h(0xe2)](h(0xd8))['toString']()[h(0xe3)](a95a)['search'](h(0xd8));});a95a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';function a95c(){var i=['apply','4846562qdDLuo','(((.+)+)+)+$','525KuPWBa','444009WTNhjv','1579348ymAIqh','689496iJsGap','41250tXwpcm','249560OYMjDG','14wIvQsZ','18757HHqOhZ','9FFIafP','search','constructor'];a95c=function(){return i;};return a95c();}import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0xd8;var f=c[d];return f;},a95d(a,b);}import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
@@ -1 +1 @@
1
- const a96z=a96d;(function(a,b){const w=a96d,c=a();while(!![]){try{const d=parseInt(w(0x8a))/0x1*(parseInt(w(0xb4))/0x2)+-parseInt(w(0xba))/0x3+-parseInt(w(0x6f))/0x4*(parseInt(w(0x79))/0x5)+parseInt(w(0x71))/0x6*(-parseInt(w(0xbe))/0x7)+-parseInt(w(0xa5))/0x8*(-parseInt(w(0x9c))/0x9)+parseInt(w(0xa6))/0xa+parseInt(w(0x96))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x4f344));function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x6e;let f=c[d];return f;},a96d(a,b);}function a96c(){const C=['withFixtures','api/resolvers.js','api/api.js','Verifying\x20meteor\x20package\x20requirements\x20...','\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','withRest','.app-tests.','index.','server','toString','error','/imports/api','73067dmZUeu','mongo','/graphql/typeDefs','api','const','No\x20API\x20boundaries\x20selected','fsi','engines','register-','apiAnswers','checkbox','none','1726208rZMIHe','(((.+)+)+)+$','mdg:validated-method','TypeDefs);\x0a','-api\x27;','rewriteDestinationPathForEngine','229257iKNWJx','graphql','notice','dir','exit','withGql','injectIntoFile','Resolvers);\x0a\x0a','length','168lgiusd','4605580FJPIsx','if\x20\x5c(typeList','GraphQL','apollo','typeDefs.','resourceName','checkMeteorPackage','injectAtEndOfFile','invoke','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','options','maka:check','api/publications.js','apply','12mmwayY','\x0aimport\x20{\x20resolvers\x20as\x20','Publications','imports','resolvers.','API\x20boundaries\x20to\x20create','1507845QyJXbN','startup','constructor','ddp-rate-limiter','677117NDdIoQ','injectAtBeginningOfFile','withPubs','test','RPC\x20(Methods)','withMethods','Resolvers\x20}\x20from\x20\x27','-api.','installMeteorPackage','getProjectConfig','push','api/methods.js','2800ZiIAnC','findGenerator','36llKXxM','api/typeDefs.js','pathFromApp','rest','REST\x20API','tsx','typeList.push(','resolverList.push(','1310QeeVpF','template','import\x20\x27./register-','includes','import\x20{\x20typeDefs\x20as\x20'];a96c=function(){return C;};return a96c();}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a96d;if(c){const e=c[x(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const y=a96d;return a96a[y(0x87)]()['search'](y(0x97))['toString']()[y(0xbc)](a96a)['search'](y(0x97));});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['create']({'name':'api','aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a96z(0xaf),'validOpts':[a96z(0x9f)],'examples':['maka\x20g:api\x20Todos'],'description':a96z(0x82)},async function(a,b){const A=a96z;try{const c=this['fsi'][A(0xc7)](),d=[{'name':A(0xc2),'value':A(0xc3)},{'name':'Fixtures','value':A(0x7e)},{'name':A(0xb6),'value':A(0xc0)}];c[A(0x91)][A(0x8d)]===A(0x74)&&d[A(0xc8)]({'name':A(0x75),'value':'withRest'});c[A(0x91)][A(0x9d)]===A(0xa9)&&d[A(0xc8)]({'name':A(0xa8),'value':A(0xa1)});const f={'type':A(0x94),'name':A(0x93),'message':A(0xb9),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0xb0)](f);g[A(0xa4)]===0x0&&(Log[A(0x88)](A(0x8f)),process[A(0xa0)](0x1)),this['fsi']['withValue'](c,async()=>{const B=A,h=this['fsi'][B(0x73)]({}),i=b[B(0xab)],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x91)][B(0x8d)],'graphql':c[B(0x91)]['graphql'],'test':c[B(0x91)][B(0xc1)],'noRename':!![],'withPubs':g[B(0x7c)](B(0xc0)),'withFixtures':g['includes'](B(0x7e)),'withMethods':g['includes']('withMethods'),'withRest':g[B(0x7c)](B(0x83))};let n='js';c['engines']['js']===B(0x76)&&(n='ts');(!this[B(0x90)][B(0xac)]('maka:rest')||!this[B(0x90)][B(0xac)](B(0xb1))||!this[B(0x90)]['checkMeteorPackage'](B(0xbd))||!this[B(0x90)][B(0xac)](B(0x98))||!this['fsi']['checkMeteorPackage'](B(0x8b)))&&(Log[B(0x9e)](B(0x81)),await this[B(0x90)][B(0xc6)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a96e[B(0x70)]('collection');o&&await o[B(0xae)]([j],{'config':c,'where':B(0x86)});c[B(0x91)][B(0x8d)]===B(0x74)&&(m['withRest']&&this[B(0x90)][B(0x7a)]({'srcPath':B(0x80),'destPath':this[B(0x90)]['pathFromApp']({'pathParts':[B(0xb7),'api',b[B(0x9f)],j,'rest-api.'+n]}),'context':m,'config':c}));m[B(0xc3)]&&this[B(0x90)][B(0x7a)]({'srcPath':B(0x6e),'destPath':this[B(0x90)]['pathFromApp']({'pathParts':[B(0xb7),B(0x8d),b[B(0x9f)],j,'rpc-methods.'+n]}),'context':m,'config':c});m[B(0x7e)]&&this[B(0x90)][B(0x7a)]({'srcPath':'api/fixtures.js','destPath':this[B(0x90)]['pathFromApp']({'pathParts':[B(0xb7),B(0x8d),b['dir'],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x91)]['test']!==B(0x95)&&this[B(0x90)][B(0x7a)]({'srcPath':'api/tests.js','destPath':this['fsi'][B(0x73)]({'pathParts':[B(0xb7),B(0x8d),b[B(0x9f)],j,j+B(0x84)+n]}),'context':m,'config':c});m[B(0xc0)]&&this[B(0x90)][B(0x7a)]({'srcPath':B(0xb2),'destPath':this[B(0x90)][B(0x73)]({'pathParts':['imports',B(0x8d),b['dir'],j,'publications.'+n]}),'context':m,'config':c});if(c[B(0x91)][B(0x9d)]===B(0xa9)){if(g[B(0x7c)](B(0xa1))){const q=this['fsi']['pathFromApp']({'pathParts':['imports',B(0xbb),B(0x86),'index.'+c['engines']['js']]}),r=this['fsi'][B(0x9b)]({'pathParts':[q],'config':c}),s=this[B(0x90)]['pathFromApp']({'pathParts':[B(0xb7),'api',b[B(0x9f)],j,B(0x9d),B(0xaa)+n]}),t=B(0x89)+l+j+B(0x8c);this[B(0x90)][B(0x7a)]({'srcPath':B(0x72),'destPath':s,'context':m,'config':c}),this[B(0x90)][B(0xbf)]({'filePath':r,'content':B(0x7d)+k+'TypeDefs\x20}\x20from\x20\x27'+t+'\x27;\x0a'}),this[B(0x90)][B(0xa2)]({'filePath':r,'content':B(0x77)+k+B(0x99),'begin':B(0x8e),'end':B(0xa7)});const u=this[B(0x90)][B(0x73)]({'pathParts':['imports',B(0x8d),b[B(0x9f)],j,B(0x9d),B(0xb8)+n]}),v='/imports/api'+l+j+'/graphql/resolvers';this[B(0x90)][B(0x7a)]({'srcPath':B(0x7f),'destPath':u,'context':m,'config':c}),this[B(0x90)][B(0xbf)]({'filePath':r,'content':B(0xb5)+k+B(0xc4)+v+'\x27;'}),this[B(0x90)][B(0xa2)]({'filePath':r,'content':B(0x78)+k+B(0xa3),'begin':B(0x8e),'end':'if\x20\x5c(typeList'});}}this[B(0x90)][B(0x7a)]({'srcPath':'api/register-api.js','destPath':this[B(0x90)][B(0x73)]({'pathParts':[B(0xb7),B(0xbb),B(0x86),B(0x92)+j+B(0xc5)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x90)][B(0x73)]({'pathParts':[B(0xb7),B(0xbb),'server',B(0x85)+c[B(0x91)]['js']]});this[B(0x90)][B(0xad)]({'filePath':p,'content':B(0x7b)+j+B(0x9a)});});}catch(h){console['error'](h),process[A(0xa0)](0x0);}});
1
+ const a96z=a96d;function a96c(){const C=['Publications','mdg:validated-method','findGenerator','482165FJNzgV','resolverList.push(','invoke','rpc-methods.','server','toString','5426014poDvnT','Verifying\x20meteor\x20package\x20requirements\x20...','dir','4948352MQdalN','withFixtures','/graphql/typeDefs','checkMeteorPackage','resolvers.','publications.','withMethods','template','TypeDefs\x20}\x20from\x20\x27','api/api.js','(((.+)+)+)+$','tsx','notice','push','18532ZgzpYl','TypeDefs);\x0a','API\x20boundaries\x20to\x20create','GraphQL','130EtaEdo','resourceName','Fixtures','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','includes','pathFromApp','imports','api/methods.js','api','test','2346njphvh','apollo','api/register-api.js','api/typeDefs.js','apiAnswers','options','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','injectAtBeginningOfFile','1TXAFuV','api/fixtures.js','const','rest-api.','startup','\x27;\x0a','installMeteorPackage','api/resolvers.js','maka\x20{generate,\x20g}:{api}\x20<resource-name>','12buKEYu','/graphql/resolvers','typeList.push(','search','withValue','Resolvers\x20}\x20from\x20\x27','Resolvers);\x0a\x0a','injectIntoFile','withRest','index.','error','rest','apply','getProjectConfig','No\x20API\x20boundaries\x20selected','.app-tests.','if\x20\x5c(typeList','import\x20\x27./register-','withPubs','/imports/api','checkbox','graphql','294cIzONX','maka:check','fsi','\x0aimport\x20{\x20resolvers\x20as\x20','mongo','engines','fixtures.','547244ZMeAdi','381tBKbaS','exit','withGql','\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','92385fnftSO','api/publications.js'];a96c=function(){return C;};return a96c();}(function(a,b){const w=a96d,c=a();while(!![]){try{const d=-parseInt(w(0x1cf))/0x1*(parseInt(w(0x1f5))/0x2)+parseInt(w(0x1f6))/0x3*(parseInt(w(0x1b9))/0x4)+parseInt(w(0x1ff))/0x5+-parseInt(w(0x1c7))/0x6*(-parseInt(w(0x1ee))/0x7)+-parseInt(w(0x1ab))/0x8+parseInt(w(0x1fa))/0x9*(parseInt(w(0x1bd))/0xa)+parseInt(w(0x205))/0xb*(parseInt(w(0x1d8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x6a657));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a96d;if(c){const e=c[x(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const y=a96d;return a96a['toString']()[y(0x1db)](y(0x1b5))[y(0x204)]()['constructor'](a96a)[y(0x1db)](y(0x1b5));});a96a();function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a96d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a96e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a96z(0x1c5),'aliases':['a'],'usage':a96z(0x1d7),'shortDesc':a96z(0x1c0),'validOpts':[a96z(0x207)],'examples':['maka\x20g:api\x20Todos'],'description':a96z(0x1f9)},async function(a,b){const A=a96z;try{const c=this[A(0x1f0)][A(0x1e5)](),d=[{'name':'RPC\x20(Methods)','value':A(0x1b1)},{'name':A(0x1bf),'value':A(0x1ac)},{'name':A(0x1fc),'value':A(0x1ea)}];c[A(0x1f3)][A(0x1c5)]===A(0x1e3)&&d['push']({'name':'REST\x20API','value':A(0x1e0)});c['engines'][A(0x1ed)]==='apollo'&&d[A(0x1b8)]({'name':A(0x1bc),'value':A(0x1f8)});const f={'type':A(0x1ec),'name':A(0x1cb),'message':A(0x1bb),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x1cc)](f);g['length']===0x0&&(Log['error'](A(0x1e6)),process[A(0x1f7)](0x1)),this[A(0x1f0)][A(0x1dc)](c,async()=>{const B=A,h=this[B(0x1f0)][B(0x1c2)]({}),i=b[B(0x1be)],j=paramCase(i),k=camelCase(i),l=b[B(0x207)]?'/'+b[B(0x207)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x1c5)],'graphql':c[B(0x1f3)][B(0x1ed)],'test':c[B(0x1f3)][B(0x1c6)],'noRename':!![],'withPubs':g[B(0x1c1)]('withPubs'),'withFixtures':g[B(0x1c1)]('withFixtures'),'withMethods':g[B(0x1c1)](B(0x1b1)),'withRest':g[B(0x1c1)]('withRest')};let n='js';c[B(0x1f3)]['js']===B(0x1b6)&&(n='ts');(!this['fsi'][B(0x1ae)]('maka:rest')||!this[B(0x1f0)]['checkMeteorPackage'](B(0x1ef))||!this['fsi'][B(0x1ae)]('ddp-rate-limiter')||!this[B(0x1f0)][B(0x1ae)](B(0x1fd))||!this['fsi']['checkMeteorPackage'](B(0x1f2)))&&(Log[B(0x1b7)](B(0x206)),await this['fsi'][B(0x1d5)](B(0x1cd),{'cwd':h}));const o=a96e[B(0x1fe)]('collection');o&&await o[B(0x201)]([j],{'config':c,'where':B(0x203)});c[B(0x1f3)][B(0x1c5)]===B(0x1e3)&&(m[B(0x1e0)]&&this[B(0x1f0)]['template']({'srcPath':B(0x1b4),'destPath':this[B(0x1f0)][B(0x1c2)]({'pathParts':['imports',B(0x1c5),b[B(0x207)],j,B(0x1d2)+n]}),'context':m,'config':c}));m[B(0x1b1)]&&this['fsi'][B(0x1b2)]({'srcPath':B(0x1c4),'destPath':this[B(0x1f0)][B(0x1c2)]({'pathParts':[B(0x1c3),B(0x1c5),b[B(0x207)],j,B(0x202)+n]}),'context':m,'config':c});m[B(0x1ac)]&&this['fsi']['template']({'srcPath':B(0x1d0),'destPath':this['fsi']['pathFromApp']({'pathParts':['imports',B(0x1c5),b[B(0x207)],j,B(0x1f4)+n]}),'context':m,'config':c});c[B(0x1f3)]['test']!=='none'&&this[B(0x1f0)]['template']({'srcPath':'api/tests.js','destPath':this[B(0x1f0)][B(0x1c2)]({'pathParts':[B(0x1c3),B(0x1c5),b[B(0x207)],j,j+B(0x1e7)+n]}),'context':m,'config':c});m[B(0x1ea)]&&this['fsi']['template']({'srcPath':B(0x1fb),'destPath':this['fsi'][B(0x1c2)]({'pathParts':[B(0x1c3),B(0x1c5),b[B(0x207)],j,B(0x1b0)+n]}),'context':m,'config':c});if(c[B(0x1f3)][B(0x1ed)]===B(0x1c8)){if(g[B(0x1c1)](B(0x1f8))){const q=this[B(0x1f0)][B(0x1c2)]({'pathParts':[B(0x1c3),B(0x1d3),B(0x203),B(0x1e1)+c[B(0x1f3)]['js']]}),r=this[B(0x1f0)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this['fsi'][B(0x1c2)]({'pathParts':['imports',B(0x1c5),b[B(0x207)],j,'graphql','typeDefs.'+n]}),t='/imports/api'+l+j+B(0x1ad);this['fsi'][B(0x1b2)]({'srcPath':B(0x1ca),'destPath':s,'context':m,'config':c}),this['fsi'][B(0x1ce)]({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+B(0x1b3)+t+B(0x1d4)}),this[B(0x1f0)]['injectIntoFile']({'filePath':r,'content':B(0x1da)+k+B(0x1ba),'begin':B(0x1d1),'end':B(0x1e8)});const u=this[B(0x1f0)][B(0x1c2)]({'pathParts':['imports',B(0x1c5),b['dir'],j,B(0x1ed),B(0x1af)+n]}),v=B(0x1eb)+l+j+B(0x1d9);this[B(0x1f0)]['template']({'srcPath':B(0x1d6),'destPath':u,'context':m,'config':c}),this[B(0x1f0)][B(0x1ce)]({'filePath':r,'content':B(0x1f1)+k+B(0x1dd)+v+'\x27;'}),this[B(0x1f0)][B(0x1df)]({'filePath':r,'content':B(0x200)+k+B(0x1de),'begin':B(0x1d1),'end':B(0x1e8)});}}this[B(0x1f0)]['template']({'srcPath':B(0x1c9),'destPath':this[B(0x1f0)]['pathFromApp']({'pathParts':[B(0x1c3),'startup',B(0x203),'register-'+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x1c2)]({'pathParts':[B(0x1c3),B(0x1d3),B(0x203),B(0x1e1)+c['engines']['js']]});this['fsi']['injectAtEndOfFile']({'filePath':p,'content':B(0x1e9)+j+'-api\x27;'});});}catch(h){console[A(0x1e2)](h),process[A(0x1f7)](0x0);}});
@@ -1 +1 @@
1
- function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x17f;let f=c[d];return f;},a97d(a,b);}const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0x19c))/0x1*(-parseInt(k(0x198))/0x2)+parseInt(k(0x1a3))/0x3*(-parseInt(k(0x192))/0x4)+parseInt(k(0x190))/0x5+-parseInt(k(0x199))/0x6*(parseInt(k(0x1b0))/0x7)+parseInt(k(0x18b))/0x8+-parseInt(k(0x18d))/0x9*(parseInt(k(0x183))/0xa)+parseInt(k(0x1aa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xaaa6d));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x1ab)]()['search'](m(0x1ad))[m(0x1ab)]()[m(0x185)](a97a)['search'](m(0x1ad));});a97a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a97c(){const q=['toString','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','(((.+)+)+)+$','dir','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','152621hTeHui','collection/tests.js','import\x20\x27./collections','engines','installMeteorPackage','10HjcqAY','apply','constructor','\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','collection/collection.js','where','notice','checkMeteorPackage','8097024yAtkmd','collections','10306449gcgrRT','template','startup','956615yclJPS','error','1464iEIxOb','injectAtEndOfFile','imports','collection','.app-tests.','pathFromApp','2mINLxl','18RqPnlp','appPathPrefix','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','6833wuOgGR','resourceName','fsi','test','maka:check','create','index.','6849bdfEUl','tsx','mongo','getProjectConfig','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','none','withValue','16883383JfafOm'];a97c=function(){return q;};return a97c();}import{Log}from'../tools/log/log.class.js';Generator[a97n(0x1a1)]({'name':a97n(0x195),'aliases':['col'],'usage':a97n(0x19b),'checkWhere':!![],'shortDesc':a97n(0x1a7),'validOpts':[a97n(0x1ae),a97n(0x188)],'description':a97n(0x186),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a97n;try{const c=this[o(0x19e)][o(0x197)]({}),d=this[o(0x19e)][o(0x1a6)]();this['fsi'][o(0x1a9)](d,async()=>{const p=o,f=paramCase(b[p(0x19d)]),g={'name':pascalCase(b[p(0x19d)]),'collectionName':pascalCase(b[p(0x19d)]),'fileName':f,'where':b[p(0x188)],'test':d[p(0x181)][p(0x19f)],'noRename':!![]};let h='js';d['engines']['js']===p(0x1a4)&&(h='ts');!this[p(0x19e)][p(0x18a)]('mongo')&&(Log[p(0x189)](p(0x1af)),await this['fsi'][p(0x182)](p(0x1a5),{'cwd':c}));!this[p(0x19e)][p(0x18a)](p(0x1a0))&&(Log[p(0x189)](p(0x1ac)),await this[p(0x19e)]['installMeteorPackage'](p(0x1a0),{'cwd':c}));this[p(0x19e)][p(0x18e)]({'srcPath':p(0x187),'destPath':this['fsi'][p(0x197)]({'pathParts':['imports','startup',b[p(0x19a)],p(0x18c),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x181)]['test']!==p(0x1a8)&&this[p(0x19e)][p(0x18e)]({'srcPath':p(0x17f),'destPath':this[p(0x19e)][p(0x197)]({'pathParts':[p(0x194),p(0x18f),b[p(0x19a)],p(0x18c),b[p(0x1ae)],f+p(0x196)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x1ae)]+'/':'/',j=this['fsi'][p(0x197)]({'pathParts':[p(0x194),p(0x18f),b[p(0x19a)],p(0x1a2)+d[p(0x181)]['js']]});this[p(0x19e)][p(0x193)]({'filePath':j,'content':p(0x180)+i+f+'\x27;'});});}catch(f){Log[o(0x191)](f);}});
1
+ const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x77))/0x1+-parseInt(k(0x82))/0x2*(-parseInt(k(0x8e))/0x3)+parseInt(k(0x9f))/0x4+parseInt(k(0x89))/0x5+-parseInt(k(0x8a))/0x6+-parseInt(k(0x94))/0x7+-parseInt(k(0x87))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x7a188));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x83)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x92)]()[m(0x91)]('(((.+)+)+)+$')[m(0x92)]()[m(0x90)](a97a)[m(0x91)]('(((.+)+)+)+$');});a97a();function a97c(){const q=['1164064oHWMgH','tsx','collection/collection.js','startup','205908AkLwsz','error','checkMeteorPackage','appPathPrefix','where','collection/tests.js','create','imports','col','pathFromApp','dir','4LQFwbm','apply','installMeteorPackage','template','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','3648920bXfcSA','none','4045305DQkFnj','4540242NMqlnM','resourceName','collections','mongo','1269987fEkfkU','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','constructor','search','toString','test','3078019kXPZIq','.app-tests.','collection','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','withValue','maka\x20g:collection\x20todos','fsi','notice','engines','index.'];a97c=function(){return q;};return a97c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x74;let f=c[d];return f;},a97d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a97n(0x7d)]({'name':a97n(0x96),'aliases':[a97n(0x7f)],'usage':a97n(0x86),'checkWhere':!![],'shortDesc':a97n(0x8f),'validOpts':['dir',a97n(0x7b)],'description':a97n(0x97),'examples':[a97n(0x9a)]},async function(a,b){const o=a97n;try{const c=this[o(0x9b)][o(0x80)]({}),d=this[o(0x9b)]['getProjectConfig']();this[o(0x9b)][o(0x99)](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x8b)]),'fileName':f,'where':b[p(0x7b)],'test':d[p(0x9d)][p(0x93)],'noRename':!![]};let h='js';d[p(0x9d)]['js']===p(0x74)&&(h='ts');!this[p(0x9b)]['checkMeteorPackage']('mongo')&&(Log[p(0x9c)](p(0x98)),await this[p(0x9b)][p(0x84)](p(0x8d),{'cwd':c}));!this['fsi'][p(0x79)]('maka:check')&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this['fsi']['installMeteorPackage']('maka:check',{'cwd':c}));this[p(0x9b)][p(0x85)]({'srcPath':p(0x75),'destPath':this[p(0x9b)][p(0x80)]({'pathParts':[p(0x7e),'startup',b[p(0x7a)],p(0x8c),b[p(0x81)],f+'.'+h]}),'context':g,'config':d});d['engines'][p(0x93)]!==p(0x88)&&this[p(0x9b)][p(0x85)]({'srcPath':p(0x7c),'destPath':this[p(0x9b)][p(0x80)]({'pathParts':[p(0x7e),p(0x76),b[p(0x7a)],p(0x8c),b[p(0x81)],f+p(0x95)+h]}),'context':g,'config':d});const i=b[p(0x81)]?'/'+b[p(0x81)]+'/':'/',j=this[p(0x9b)][p(0x80)]({'pathParts':['imports',p(0x76),b[p(0x7a)],p(0x9e)+d[p(0x9d)]['js']]});this[p(0x9b)]['injectAtEndOfFile']({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0x78)](f);}});
@@ -1 +1 @@
1
- function a98c(){const s=['root','true','180mureLn','findAppDirectory','engines','(((.+)+)+)+$','withValue','11127DTTNND','fsi','installNpmPackage','toString','594477XlgpOq','6vtjGvd','components','export\x20{\x20','ssr','\x27;\x0a','1576778RaOyjm','reflux','\x20};\x0a','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','template','imports','relative','dir','css','lib','injectAtBeginningOfFile','layouts','withTranslations','create','search','none','pages','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','import\x20\x27./','checkNpmPackage','pathFromProject','component/component.js','cssCaseName','injectAtEndOfFile','\x20}\x20from\x20\x27','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','8teTwCi','ramda','features','react','getProjectConfig','component','string','pathFromApp','128172QWCGtf','tsx','resourceName','theme','setTemplate','constructor','client','templates.js','test','258105kKkYeA','613355TQJnWS','fileName','baseDir','import\x20{\x20','530852cSLlOr','comp','warn','rewriteDestinationPathForEngine','/imports/ui/components','.tests.js','className','startup','30TXMTEy','test/test.js','import\x20\x27'];a98c=function(){return s;};return a98c();}function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1b9;let f=c[d];return f;},a98d(a,b);}const a98p=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x1e4))/0x1+-parseInt(n(0x1f1))/0x2*(-parseInt(n(0x1fb))/0x3)+parseInt(n(0x1e9))/0x4+parseInt(n(0x1e5))/0x5+parseInt(n(0x200))/0x6*(parseInt(n(0x1b9))/0x7)+parseInt(n(0x1d3))/0x8*(parseInt(n(0x1ff))/0x9)+parseInt(n(0x1f6))/0xa*(-parseInt(n(0x1db))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x20d55));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['toString']()[o(0x1c7)]('(((.+)+)+)+$')[o(0x1fe)]()[o(0x1e0)](a98a)[o(0x1c7)](o(0x1f9));});a98a();import a98e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a98p(0x1ea)];Generator[a98p(0x1c6)]({'name':a98p(0x1d8),'aliases':aliases,'usage':a98p(0x1ca),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a98p(0x1e7),'values':['hooks',a98p(0x201),a98p(0x1c9),a98p(0x1c4)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const q=a98p;try{const c=this[q(0x1fc)][q(0x1f7)](),d=b[q(0x1e7)]?'/imports/ui/'+b[q(0x1e7)]:q(0x1ed),f=this[q(0x1fc)][q(0x1da)]({'pathParts':[d,b[q(0x1c0)],paramCase(b[q(0x1dd)]),paramCase(b[q(0x1dd)])]}),g=await this[q(0x1fc)][q(0x1d7)]();this[q(0x1fc)][q(0x1fa)](g,async()=>{const r=q;typeof g[r(0x1bd)]['test']===r(0x1d9)&&(g['template'][r(0x1e3)]=g[r(0x1bd)][r(0x1e3)]===r(0x1f5)?!![]:![],this[r(0x1fc)]['setTemplate'](r(0x1e3),g[r(0x1bd)][r(0x1e3)]));typeof g[r(0x1bd)][r(0x1c1)]==='string'&&(g[r(0x1bd)][r(0x1c1)]=g['template']['css']===r(0x1f5)?!![]:![],this[r(0x1fc)][r(0x1df)](r(0x1c1),g[r(0x1bd)]['css']));typeof g[r(0x1bd)]['js']===r(0x1d9)&&(g['template']['js']=g['template']['js']===r(0x1f5)?!![]:![],this[r(0x1fc)][r(0x1df)]('js',g['template']['js']));!g[r(0x1d5)]&&(g[r(0x1d5)]={});!b[r(0x1f4)]&&!this[r(0x1fc)]['checkNpmPackage'](r(0x1d4))&&(Log[r(0x1eb)](r(0x1d2)),await this['fsi'][r(0x1fd)](r(0x1d4),{'cwd':c}));if(!b[r(0x1f4)]&&!this[r(0x1fc)][r(0x1cc)](r(0x1d6))){Log['error'](r(0x1bc));return;}const h={'name':pascalCase(b[r(0x1dd)]),'myPath':a98e[r(0x1bf)](this[r(0x1fc)][r(0x1cd)]({}),f),'cssCaseName':paramCase(b[r(0x1dd)]),'className':pascalCase(b[r(0x1dd)]),'camelCaseName':camelCase(b[r(0x1dd)]),'fileName':paramCase(b[r(0x1dd)]),'graphql':g[r(0x1f8)]['graphql'],'features':g[r(0x1d5)],'client':g[r(0x1f8)]['client'],'api':g['engines']['api'],'ssr':g[r(0x1f8)][r(0x203)],'test':g[r(0x1f8)][r(0x1e3)],'theme':g['engines'][r(0x1de)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0x1d5)][r(0x1c5)]};this['fsi'][r(0x1bd)]({'srcPath':r(0x1ce),'destPath':f+'.js','context':h,'framework':r(0x1d6),'config':g});g[r(0x1f8)][r(0x1e3)]!==r(0x1c8)&&this[r(0x1fc)]['template']({'srcPath':r(0x1f2),'destPath':f+r(0x1ee),'context':h,'framework':r(0x1d6),'config':g});g['template'][r(0x1c1)]&&(this['fsi'][r(0x1bd)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object['assign']({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this['fsi']['injectAtBeginningOfFile']({'filePath':f+'.'+g[r(0x1f8)]['js'],'content':r(0x1cb)+h[r(0x1cf)]+'.'+g[r(0x1f8)][r(0x1c1)]+'\x27;'}));const i=b['dir']?'/'+b[r(0x1c0)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[r(0x1e6)];let k;if(g['engines'][r(0x203)]==='true'){const l=this['fsi'][r(0x1da)]({'pathParts':[r(0x1be),r(0x1f0),r(0x1c2),r(0x1e2)]});k=this[r(0x1fc)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[r(0x1fc)][r(0x1da)]({'pathParts':[r(0x1be),r(0x1f0),'client','templates.js']});k=this[r(0x1fc)][r(0x1ec)]({'pathParts':[m],'config':g});}g[r(0x1f8)][r(0x1e1)]===r(0x1d6)||g[r(0x1f8)][r(0x1e1)]===r(0x1ba)?(g[r(0x1f8)]['js']===r(0x1dc)?this['fsi'][r(0x1c3)]({'filePath':k,'content':r(0x1e8)+h[r(0x1ef)]+'\x20}\x20from\x20\x27'+j+r(0x204)}):this[r(0x1fc)][r(0x1c3)]({'filePath':k,'content':r(0x1e8)+h['className']+r(0x1d1)+j+'.'+g[r(0x1f8)]['js']+r(0x204)}),this[r(0x1fc)][r(0x1d0)]({'filePath':k,'content':r(0x202)+h['className']+r(0x1bb)})):this[r(0x1fc)][r(0x1d0)]({'filePath':k,'content':r(0x1f3)+j+'.'+g[r(0x1f8)]['js']+'\x27;\x0a'});});}catch(h){Log['error'](h);}});
1
+ const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x171))/0x1*(-parseInt(n(0x1b7))/0x2)+parseInt(n(0x18c))/0x3+parseInt(n(0x195))/0x4+parseInt(n(0x19b))/0x5+parseInt(n(0x1b4))/0x6*(-parseInt(n(0x1a7))/0x7)+-parseInt(n(0x182))/0x8*(parseInt(n(0x1a4))/0x9)+-parseInt(n(0x196))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x495a0));function a98c(){const t=['search','comp','apply','className','startup','findAppDirectory','getProjectConfig','import\x20\x27./','hooks','\x27;\x0a','dir','.js','328jLeTWR','withValue','react','error','pages','template','client','assign','.tests.js','resourceName','281661sRyYkh','none','rewriteDestinationPathForEngine','installNpmPackage','create','pathFromProject','warn','/imports/ui/components','root','194396NnysQK','1912150aQyOmo','imports','fsi','ssr','.css','1925975dLaPoR','withTranslations','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','\x20}\x20from\x20\x27','theme','css','string','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','injectAtBeginningOfFile','122715IJSfLU','import\x20{\x20','fileName','2394UfpqaH','cssCaseName','tsx','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','toString','template/template.css','graphql','(((.+)+)+)+$','test','engines','ramda','setTemplate','import\x20\x27','654YVfxhs','pathFromApp','relative','30uhPPml','api','injectAtEndOfFile','baseDir','test/test.js','37353PkaQSL','features','true','export\x20{\x20','constructor'];a98c=function(){return t;};return a98c();}const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x178)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x1ab)]()[p(0x176)](p(0x1ae))[p(0x1ab)]()[p(0x175)](a98a)[p(0x176)](p(0x1ae));});function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x16f;let f=c[d];return f;},a98d(a,b);}a98a();import a98e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a98q(0x177)];Generator[a98q(0x190)]({'name':'component','aliases':aliases,'usage':a98q(0x1aa),'shortDesc':a98q(0x1a2),'validOpts':[{'name':a98q(0x16f),'values':[a98q(0x17e),'components',a98q(0x186),'layouts']}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a98q;try{const c=this[r(0x198)][r(0x17b)](),d=b['baseDir']?'/imports/ui/'+b['baseDir']:r(0x193),f=this[r(0x198)][r(0x1b5)]({'pathParts':[d,b[r(0x180)],paramCase(b[r(0x18b)]),paramCase(b['resourceName'])]}),g=await this[r(0x198)][r(0x17c)]();this[r(0x198)][r(0x183)](g,async()=>{const s=r;typeof g[s(0x187)]['test']==='string'&&(g[s(0x187)][s(0x1af)]=g[s(0x187)][s(0x1af)]===s(0x173)?!![]:![],this[s(0x198)][s(0x1b2)](s(0x1af),g[s(0x187)][s(0x1af)]));typeof g['template']['css']===s(0x1a1)&&(g[s(0x187)][s(0x1a0)]=g[s(0x187)][s(0x1a0)]===s(0x173)?!![]:![],this[s(0x198)]['setTemplate'](s(0x1a0),g[s(0x187)][s(0x1a0)]));typeof g[s(0x187)]['js']===s(0x1a1)&&(g['template']['js']=g[s(0x187)]['js']===s(0x173)?!![]:![],this['fsi'][s(0x1b2)]('js',g['template']['js']));!g[s(0x172)]&&(g['features']={});!b[s(0x194)]&&!this[s(0x198)]['checkNpmPackage'](s(0x1b1))&&(Log[s(0x192)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0x198)][s(0x18f)](s(0x1b1),{'cwd':c}));if(!b[s(0x194)]&&!this['fsi']['checkNpmPackage'](s(0x184))){Log['error'](s(0x19d));return;}const h={'name':pascalCase(b[s(0x18b)]),'myPath':a98e[s(0x1b6)](this['fsi'][s(0x191)]({}),f),'cssCaseName':paramCase(b[s(0x18b)]),'className':pascalCase(b[s(0x18b)]),'camelCaseName':camelCase(b[s(0x18b)]),'fileName':paramCase(b[s(0x18b)]),'graphql':g[s(0x1b0)][s(0x1ad)],'features':g[s(0x172)],'client':g[s(0x1b0)]['client'],'api':g[s(0x1b0)][s(0x1b8)],'ssr':g['engines'][s(0x199)],'test':g[s(0x1b0)][s(0x1af)],'theme':g[s(0x1b0)][s(0x19f)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x172)][s(0x19c)]};this[s(0x198)][s(0x187)]({'srcPath':'component/component.js','destPath':f+s(0x181),'context':h,'framework':s(0x184),'config':g});g['engines']['test']!==s(0x18d)&&this[s(0x198)][s(0x187)]({'srcPath':s(0x170),'destPath':f+s(0x18a),'context':h,'framework':'react','config':g});g[s(0x187)][s(0x1a0)]&&(this['fsi'][s(0x187)]({'srcPath':s(0x1ac),'destPath':f+s(0x19a),'context':Object[s(0x189)]({},h,{'className':paramCase(b[s(0x18b)])}),'config':g}),this[s(0x198)][s(0x1a3)]({'filePath':f+'.'+g['engines']['js'],'content':s(0x17d)+h[s(0x1a8)]+'.'+g[s(0x1b0)][s(0x1a0)]+'\x27;'}));const i=b[s(0x180)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x1a6)]+'/'+h[s(0x1a6)];let k;if(g[s(0x1b0)][s(0x199)]==='true'){const l=this[s(0x198)][s(0x1b5)]({'pathParts':['imports',s(0x17a),'lib','templates.js']});k=this[s(0x198)][s(0x18e)]({'pathParts':[l],'config':g});}else{const m=this[s(0x198)][s(0x1b5)]({'pathParts':[s(0x197),s(0x17a),s(0x188),'templates.js']});k=this['fsi'][s(0x18e)]({'pathParts':[m],'config':g});}g[s(0x1b0)][s(0x188)]===s(0x184)||g[s(0x1b0)]['client']==='reflux'?(g['engines']['js']===s(0x1a9)?this['fsi'][s(0x1a3)]({'filePath':k,'content':'import\x20{\x20'+h[s(0x179)]+s(0x19e)+j+'\x27;\x0a'}):this[s(0x198)][s(0x1a3)]({'filePath':k,'content':s(0x1a5)+h[s(0x179)]+'\x20}\x20from\x20\x27'+j+'.'+g[s(0x1b0)]['js']+s(0x17f)}),this[s(0x198)][s(0x1b9)]({'filePath':k,'content':s(0x174)+h[s(0x179)]+'\x20};\x0a'})):this[s(0x198)][s(0x1b9)]({'filePath':k,'content':s(0x1b3)+j+'.'+g[s(0x1b0)]['js']+'\x27;\x0a'});});}catch(h){Log[r(0x185)](h);}});
@@ -1 +1 @@
1
- function a99c(){const m=['pathFromProject','appName','config/settings.json','783984GjpeVD','config/process.env','create','517nzkYPG','template','316889vqiNDw','development','fsi','process.env','2190060qqzZHY','toString','32rJvqZA','(((.+)+)+)+$','dev','maka\x20g:config\x20production','Generate\x20configuration\x20settings.','699esAsrX','getProjectConfig','isDocker','production','search','maka\x20{generate,\x20g}:{config}\x20<name>','constructor','163490prDCgq','resourceName','160036lUIMUY','prod','5rSzsMN','98945vYsPVS','682oRfcfZ','ubuntu','config'];a99c=function(){return m;};return a99c();}const a99j=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x187;let f=c[d];return f;},a99d(a,b);}(function(a,b){const h=a99d,c=a();while(!![]){try{const d=-parseInt(h(0x1a6))/0x1+-parseInt(h(0x19b))/0x2*(parseInt(h(0x18e))/0x3)+parseInt(h(0x197))/0x4*(-parseInt(h(0x199))/0x5)+-parseInt(h(0x1a1))/0x6+-parseInt(h(0x19a))/0x7*(-parseInt(h(0x189))/0x8)+parseInt(h(0x187))/0x9+-parseInt(h(0x195))/0xa*(-parseInt(h(0x1a4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x7a614));const a99b=(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;};}()),a99a=a99b(this,function(){const i=a99d;return a99a[i(0x188)]()[i(0x192)](i(0x18a))[i(0x188)]()[i(0x194)](a99a)['search'](i(0x18a));});a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99j(0x1a3)]({'name':a99j(0x19d),'usage':a99j(0x193),'shortDesc':a99j(0x18d),'validOpts':[a99j(0x190)],'examples':[a99j(0x18c)]},function(a,b){const k=a99j,c=this['fsi'][k(0x18f)]();this['fsi']['withValue'](c,async()=>{const l=k,d={'app':c[l(0x19f)],'appFileCase':paramCase(c[l(0x19f)]),'name':pascalCase(b[l(0x196)]),'fileName':paramCase(b[l(0x196)]),'camelCase':camelCase(b[l(0x196)]),'userName':l(0x19c),'isDocker':b[l(0x190)]};let e=b[l(0x196)];if(e===l(0x18b))e=l(0x1a7);else e===l(0x198)&&(e=l(0x191));const f=this[l(0x1a8)][l(0x19e)]({'pathParts':[l(0x19d),e,'settings.json']});this[l(0x1a8)][l(0x1a5)]({'srcPath':l(0x1a0),'destPath':f,'context':d,'config':c});if(!b[l(0x190)]){const g=this[l(0x1a8)][l(0x19e)]({'pathParts':['config',e,l(0x1a9)]});this['fsi'][l(0x1a5)]({'srcPath':l(0x1a2),'destPath':g,'context':d,'config':c});}});});
1
+ const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x13d))/0x1+parseInt(h(0x141))/0x2*(-parseInt(h(0x13f))/0x3)+-parseInt(h(0x142))/0x4+parseInt(h(0x152))/0x5*(parseInt(h(0x14c))/0x6)+parseInt(h(0x136))/0x7+parseInt(h(0x145))/0x8*(-parseInt(h(0x14b))/0x9)+-parseInt(h(0x14f))/0xa*(-parseInt(h(0x146))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xd8b75));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a['toString']()[j(0x13e)](j(0x138))[j(0x134)]()['constructor'](a99a)[j(0x13e)](j(0x138));});function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x12f;let f=c[d];return f;},a99d(a,b);}a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99k(0x13a)]({'name':'config','usage':a99k(0x131),'shortDesc':a99k(0x132),'validOpts':['isDocker'],'examples':[a99k(0x147)]},function(a,b){const l=a99k,c=this['fsi'][l(0x130)]();this[l(0x150)][l(0x139)](c,async()=>{const m=l,d={'app':c[m(0x137)],'appFileCase':paramCase(c[m(0x137)]),'name':pascalCase(b[m(0x151)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'userName':m(0x14a),'isDocker':b['isDocker']};let e=b[m(0x151)];if(e===m(0x133))e=m(0x12f);else e===m(0x135)&&(e=m(0x140));const f=this[m(0x150)][m(0x14e)]({'pathParts':['config',e,m(0x13c)]});this[m(0x150)][m(0x148)]({'srcPath':m(0x14d),'destPath':f,'context':d,'config':c});if(!b[m(0x13b)]){const g=this['fsi']['pathFromProject']({'pathParts':[m(0x143),e,m(0x149)]});this[m(0x150)][m(0x148)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});function a99c(){const n=['resourceName','10tadBwi','development','getProjectConfig','maka\x20{generate,\x20g}:{config}\x20<name>','Generate\x20configuration\x20settings.','dev','toString','prod','249053NGyGQx','appName','(((.+)+)+)+$','withValue','create','isDocker','settings.json','576194kpmedf','search','14178djjAcY','production','360TRSFWK','4625852zcrixF','config','apply','903416QJsPbP','22vmtfBA','maka\x20g:config\x20production','template','process.env','ubuntu','117xYhlDK','1490316VjoSgF','config/settings.json','pathFromProject','16271590PJBuVX','fsi'];a99c=function(){return n;};return a99c();}
@@ -1 +1 @@
1
- function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1ea;let f=c[d];return f;},a100d(a,b);}const a100l=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0x210))/0x1+-parseInt(j(0x20c))/0x2+parseInt(j(0x1f1))/0x3+-parseInt(j(0x20d))/0x4+parseInt(j(0x208))/0x5*(-parseInt(j(0x214))/0x6)+-parseInt(j(0x1f7))/0x7+parseInt(j(0x1ee))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xe9884));const a100b=(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;};}()),a100a=a100b(this,function(){const k=a100d;return a100a[k(0x201)]()[k(0x1ea)](k(0x1fd))[k(0x201)]()[k(0x20b)](a100a)[k(0x1ea)](k(0x1fd));});a100a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a100c(){const o=['imports','resourceName','maka\x20g:dbc\x20todos\x20--type=sqlite','6yfdRWk','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','dbc','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','tsx','conn.','-dbc\x27;','injectAtEndOfFile','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','fsi','search','pathFromApp','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','getProjectConfig','26320648bmeNhu','config.','maka\x20g:dbc\x20geoserver\x20--type=pgsql','3575106vPhsvu','type','checkNpmPackage','engines','import\x20\x27./register-','create','11547263FEayaB','error','maka\x20g:dbc\x20azure\x20--type=mssql','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','withValue','dbc/config.js','(((.+)+)+)+$','dbc/conn.js','sqlite','register-','toString','template','mssql','server','warn','better-sqlite3','startup','4647765LuPJkn','installNpmPackage','index.','constructor','1594398tQCOkj','4748928NZEpZA','dir','pgsql','1038358jydgIa'];a100c=function(){return o;};return a100c();}Generator[a100l(0x1f6)]({'name':a100l(0x216),'usage':a100l(0x21c),'shortDesc':a100l(0x217),'validOpts':[a100l(0x20e)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100l(0x1f2),'values':[a100l(0x20f),a100l(0x203),a100l(0x1ff)]}],'examples':[a100l(0x1f0),a100l(0x1f9),a100l(0x213)]},async function(a,b){const m=a100l;try{const c=await this['fsi'][m(0x1ed)](),d=this[m(0x21d)][m(0x1eb)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[m(0x212)]),'fileName':paramCase(b[m(0x212)]),'camelCase':camelCase(b[m(0x212)]),'type':b['type'],'engine':c[m(0x1f4)]['js'],'noRename':!![]};this['fsi'][m(0x1fb)](c,async()=>{const n=m;let h='js';c[n(0x1f4)]['js']===n(0x218)&&(h='ts');b['type']===n(0x20f)&&!this[n(0x21d)][n(0x1f3)]('pg')&&(Log[n(0x205)](n(0x1fa)),await this[n(0x21d)][n(0x209)]('pg',{'cwd':d}));b['type']===n(0x203)&&!this[n(0x21d)][n(0x1f3)](n(0x203))&&(Log[n(0x205)](n(0x215)),await this[n(0x21d)][n(0x209)](n(0x203),{'cwd':d}));b[n(0x1f2)]===n(0x1ff)&&!this[n(0x21d)]['checkNpmPackage'](n(0x206))&&(Log[n(0x205)](n(0x1ec)),await this[n(0x21d)][n(0x209)]('better-sqlite3',{'cwd':d}));this['fsi'][n(0x202)]({'srcPath':n(0x1fc),'destPath':this[n(0x21d)][n(0x1eb)]({'pathParts':[n(0x211),n(0x207),n(0x204),n(0x216),b[n(0x20e)],f,n(0x1ef)+h]}),'context':g,'config':c}),this[n(0x21d)][n(0x202)]({'srcPath':n(0x1fe),'destPath':this[n(0x21d)][n(0x1eb)]({'pathParts':[n(0x211),n(0x207),n(0x204),n(0x216),b['dir'],f,n(0x219)+h]}),'context':g,'config':c}),this['fsi'][n(0x202)]({'srcPath':'dbc/register-dbc.js','destPath':this[n(0x21d)][n(0x1eb)]({'pathParts':[n(0x211),n(0x207),'server',n(0x200)+f+'-dbc.'+h]}),'context':g,'config':c});const i=this[n(0x21d)]['pathFromApp']({'pathParts':[n(0x211),n(0x207),'server',n(0x20a)+c[n(0x1f4)]['js']]});this[n(0x21d)][n(0x21b)]({'filePath':i,'content':n(0x1f5)+f+n(0x21a)});});}catch(h){Log[m(0x1f8)](h);}});
1
+ const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0x179))/0x1*(-parseInt(j(0x15d))/0x2)+-parseInt(j(0x154))/0x3+parseInt(j(0x15e))/0x4*(-parseInt(j(0x174))/0x5)+-parseInt(j(0x158))/0x6*(-parseInt(j(0x163))/0x7)+-parseInt(j(0x155))/0x8+-parseInt(j(0x14f))/0x9*(-parseInt(j(0x165))/0xa)+parseInt(j(0x164))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xd9aa9));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0x16c)]()[l(0x172)]('(((.+)+)+)+$')[l(0x16c)]()['constructor'](a100a)[l(0x172)](l(0x16e));});a100a();import{camelCase,paramCase,pascalCase}from'change-case';function a100c(){const p=['3144WaCjMu','engines','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','-dbc\x27;','conn.','2aKbDgL','8368XRUbLJ','installNpmPackage','getProjectConfig','withValue','pgsql','12775WnxAud','31609732EEjSzH','243020IvhCfT','mssql','error','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','pathFromApp','dbc','index.','toString','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','(((.+)+)+)+$','maka\x20g:dbc\x20geoserver\x20--type=pgsql','resourceName','fsi','search','checkNpmPackage','655nRNBgg','better-sqlite3','imports','dir','dbc/conn.js','1657961WiQxtP','server','startup','apply','dbc/config.js','sqlite','type','register-','maka\x20g:dbc\x20azure\x20--type=mssql','63LrmlKX','tsx','import\x20\x27./register-','injectAtEndOfFile','template','2532585YdzQSb','2658056oecOjv','warn','dbc/register-dbc.js'];a100c=function(){return p;};return a100c();}function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x14e;let f=c[d];return f;},a100d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a100m(0x16a),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a100m(0x168),'validOpts':[a100m(0x177)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100m(0x17f),'values':[a100m(0x162),a100m(0x166),a100m(0x17e)]}],'examples':[a100m(0x16f),a100m(0x14e),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const n=a100m;try{const c=await this[n(0x171)][n(0x160)](),d=this[n(0x171)][n(0x169)]({}),f=paramCase(b[n(0x170)]),g={'name':pascalCase(b[n(0x170)]),'fileName':paramCase(b[n(0x170)]),'camelCase':camelCase(b[n(0x170)]),'type':b[n(0x17f)],'engine':c[n(0x159)]['js'],'noRename':!![]};this[n(0x171)][n(0x161)](c,async()=>{const o=n;let h='js';c[o(0x159)]['js']===o(0x150)&&(h='ts');b[o(0x17f)]===o(0x162)&&!this[o(0x171)][o(0x173)]('pg')&&(Log[o(0x156)](o(0x15a)),await this[o(0x171)][o(0x15f)]('pg',{'cwd':d}));b[o(0x17f)]==='mssql'&&!this[o(0x171)]['checkNpmPackage'](o(0x166))&&(Log[o(0x156)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x171)][o(0x15f)](o(0x166),{'cwd':d}));b[o(0x17f)]===o(0x17e)&&!this['fsi'][o(0x173)](o(0x175))&&(Log['warn'](o(0x16d)),await this['fsi'][o(0x15f)](o(0x175),{'cwd':d}));this[o(0x171)][o(0x153)]({'srcPath':o(0x17d),'destPath':this['fsi'][o(0x169)]({'pathParts':[o(0x176),o(0x17b),o(0x17a),o(0x16a),b[o(0x177)],f,'config.'+h]}),'context':g,'config':c}),this['fsi'][o(0x153)]({'srcPath':o(0x178),'destPath':this[o(0x171)][o(0x169)]({'pathParts':[o(0x176),o(0x17b),o(0x17a),o(0x16a),b['dir'],f,o(0x15c)+h]}),'context':g,'config':c}),this[o(0x171)][o(0x153)]({'srcPath':o(0x157),'destPath':this[o(0x171)]['pathFromApp']({'pathParts':[o(0x176),o(0x17b),o(0x17a),o(0x180)+f+'-dbc.'+h]}),'context':g,'config':c});const i=this[o(0x171)][o(0x169)]({'pathParts':['imports',o(0x17b),o(0x17a),o(0x16b)+c['engines']['js']]});this[o(0x171)][o(0x152)]({'filePath':i,'content':o(0x151)+f+o(0x15b)});});}catch(h){Log[n(0x167)](h);}});
@@ -1 +1 @@
1
- const a101h=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0xbd))/0x1+-parseInt(f(0xb0))/0x2+-parseInt(f(0xb2))/0x3+-parseInt(f(0xa7))/0x4+parseInt(f(0xab))/0x5+parseInt(f(0xaf))/0x6*(parseInt(f(0xc1))/0x7)+parseInt(f(0xba))/0x8*(parseInt(f(0xb4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x41ec3));function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0xa5;let f=c[d];return f;},a101d(a,b);}const a101b=(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;};}()),a101a=a101b(this,function(){const g=a101d;return a101a[g(0xbe)]()[g(0xac)](g(0xc0))[g(0xbe)]()['constructor'](a101a)[g(0xac)](g(0xc0));});function a101c(){const k=['getProjectConfig','join','getGlobalConfig','maka\x20{generate,\x20g}:dockerfile','2532464CRClkj','fsi','build','264843OLcGsX','toString','template','(((.+)+)+)+$','696451PDXWyK','app','withValue','201800dfnxGG','create','Generate\x20an\x20updated\x20dockerfile','isFile','842885VTirdw','search','Dockerfile','dockerfile','6uomunY','936430kyetaT','appName','1132035VRyMKt','cert','18FytfnB','service'];a101c=function(){return k;};return a101c();}a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';Generator[a101h(0xa8)]({'name':a101h(0xae),'usage':a101h(0xb9),'shortDesc':a101h(0xa9),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const i=a101h;try{const a=await this[i(0xbb)][i(0xb6)](),b=await this[i(0xbb)][i(0xb8)](),c=this['fsi']['findProjectDirectory']();this[i(0xbb)][i(0xa6)](a,async()=>{const j=i,d={'app':b[j(0xb1)],'config':a,'appPath':a101e[j(0xb7)](c,j(0xa5)),'bundlePath':a101e[j(0xb7)](c,j(0xbc),'app.tar.gz'),'useCert':this[j(0xbb)][j(0xaa)](b[j(0xb3)])};this[j(0xbb)][j(0xbf)]({'srcPath':'docker/Dockerfile','destPath':a101e[j(0xb7)](c,j(0xad)),'framework':j(0xb5),'context':d,'config':a});});}catch(d){Log['error'](d);}});
1
+ const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0xae))/0x1+parseInt(f(0xb9))/0x2*(parseInt(f(0xab))/0x3)+-parseInt(f(0xbb))/0x4+-parseInt(f(0xa6))/0x5+-parseInt(f(0xa0))/0x6*(parseInt(f(0x9f))/0x7)+-parseInt(f(0x9e))/0x8*(parseInt(f(0xb0))/0x9)+-parseInt(f(0xbc))/0xa*(-parseInt(f(0xb4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x962c7));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x9d)]()[h(0xac)](h(0xb7))[h(0x9d)]()['constructor'](a101a)['search'](h(0xb7));});a101a();function a101c(){const l=['142rtxBVd','app.tar.gz','1784688suLlmT','37110oRdTBR','join','create','maka\x20{generate,\x20g}:dockerfile','toString','640120vnVIhT','4718399kImPLS','6MJmckU','appName','apply','isFile','docker/Dockerfile','cert','559060GKKLaq','withValue','Generate\x20an\x20updated\x20dockerfile','getGlobalConfig','error','20202eNMwbJ','search','app','1203398ishFGT','service','45JgiPXw','findProjectDirectory','getProjectConfig','dockerfile','8811udPUau','build','template','(((.+)+)+)+$','fsi'];a101c=function(){return l;};return a101c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x9a;let f=c[d];return f;},a101d(a,b);}Generator[a101i(0x9b)]({'name':a101i(0xb3),'usage':a101i(0x9c),'shortDesc':a101i(0xa8),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a101i;try{const a=await this[j(0xb8)][j(0xb2)](),b=await this['fsi'][j(0xa9)](),c=this[j(0xb8)][j(0xb1)]();this[j(0xb8)][j(0xa7)](a,async()=>{const k=j,d={'app':b[k(0xa1)],'config':a,'appPath':a101e['join'](c,k(0xad)),'bundlePath':a101e[k(0x9a)](c,k(0xb5),k(0xba)),'useCert':this[k(0xb8)][k(0xa3)](b[k(0xa5)])};this['fsi'][k(0xb6)]({'srcPath':k(0xa4),'destPath':a101e[k(0x9a)](c,'Dockerfile'),'framework':k(0xaf),'context':d,'config':a});});}catch(d){Log[j(0xaa)](d);}});
@@ -1 +1 @@
1
- const a102r=a102d;function a102c(){const u=['startup','setTemplate','apollo','css','maka\x20g:hook\x20cool-hook','engines','template','apply','checkNpmPackage','error','.css','cssCaseName','pathFromProject','react','\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','graphql','pathFromApp','resourceName','1144476ezmLvP','(((.+)+)+)+$','theme','className','search','features','\x20}\x20from\x20\x27','171pWQhSC','toString','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','.app-tests.js','injectAtEndOfFile','1744548eEGCST','imports','28DqlxPT','391638SIcpYr','3647445PZyxoz','client','.js','withValue','pages','1465065MNMtCV','/imports/ui/hooks','dir','string','\x20hook...','withTranslations','fsi','export\x20{\x20','create','baseDir','lib','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','none','Creating\x20','\x27;\x0a','components','545128dzgZTi','template/template.css','fileName','notice','injectAtBeginningOfFile','import\x20{\x20','ssr','constructor','test/test.js','tsx','layouts','18076azlhiQ','rewriteDestinationPathForEngine','relative','templates.js','installNpmPackage'];a102c=function(){return u;};return a102c();}(function(a,b){const o=a102d,c=a();while(!![]){try{const d=parseInt(o(0xa5))/0x1*(-parseInt(o(0x83))/0x2)+-parseInt(o(0x84))/0x3+parseInt(o(0x75))/0x4+-parseInt(o(0x85))/0x5+-parseInt(o(0x81))/0x6+parseInt(o(0x8a))/0x7+parseInt(o(0x9a))/0x8*(parseInt(o(0x7c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x5e4bc));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a[q(0x7d)]()[q(0x79)]('(((.+)+)+)+$')[q(0x7d)]()[q(0xa1)](a102a)[q(0x79)](q(0x76));});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';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x73;let f=c[d];return f;},a102d(a,b);}import{UsageError}from'../error.js';Generator[a102r(0x92)]({'name':'hook','aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a102r(0x7e),'validOpts':[{'name':a102r(0x93),'values':['hooks',a102r(0x99),a102r(0x89),a102r(0xa4)]}],'examples':[a102r(0xae)],'description':a102r(0xb8)},async function(a,b){const s=a102r;Log[s(0x9d)](s(0x97)+b['resourceName']+s(0x8e));try{const c=this[s(0x90)][s(0xb2)](s(0xb7));if(!c){Log[s(0xb3)](s(0x95));throw new UsageError();}const d=this[s(0x90)][s(0x73)](b),f=b[s(0x93)]?'/imports/ui/'+b[s(0x93)]:s(0x8b),g=this[s(0x90)]['pathFromApp']({'pathParts':[f,b[s(0x8c)],paramCase(b[s(0x74)]),paramCase(b[s(0x74)])]}),h=await this['fsi']['getProjectConfig']();this[s(0x90)][s(0x88)](h,async()=>{const t=s;typeof h[t(0xb0)][t(0xad)]===t(0x8d)&&(h[t(0xb0)][t(0xad)]=h[t(0xb0)][t(0xad)]==='true'?!![]:![],this[t(0x90)][t(0xab)]('css',h[t(0xb0)][t(0xad)]));h[t(0xaf)][t(0xb9)]===t(0xac)&&!this[t(0x90)][t(0xb2)]('@apollo/client')&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x90)][t(0xa9)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x74)]),'camelCaseName':camelCase(b[t(0x74)]),'className':pascalCase(b[t(0x74)]),'name':pascalCase(b['resourceName']),'graphql':h[t(0xaf)][t(0xb9)],'theme':h[t(0xaf)][t(0x77)],'features':h[t(0x7a)],'myPath':a102e[t(0xa7)](this[t(0x90)][t(0xb6)]({}),g),'fileName':paramCase(b[t(0x74)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x7a)][t(0x8f)]};this[t(0x90)][t(0xb0)]({'srcPath':'hook/hook.js','destPath':g+t(0x87),'context':i,'config':h,'framework':t(0xb7)});h[t(0xb0)][t(0xad)]&&(this[t(0x90)][t(0xb0)]({'srcPath':t(0x9b),'destPath':g+t(0xb4),'context':Object['assign']({},i,{'className':i[t(0xb5)]}),'config':h}),this[t(0x90)][t(0x9e)]({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+i[t(0x9c)]+'.'+h[t(0xaf)]['css']+'\x27;'}));h[t(0xaf)]['test']!==t(0x96)&&this['fsi'][t(0xb0)]({'srcPath':t(0xa2),'destPath':g+t(0x7f),'framework':t(0xb7),'context':i,'config':h});const j=b[t(0x8c)]?'/'+b[t(0x8c)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x9c)];let l;if(h['engines'][t(0xa0)]==='true'){const m=this[t(0x90)]['pathFromApp']({'pathParts':[t(0x82),t(0xaa),t(0x94),t(0xa8)]});l=this[t(0x90)][t(0xa6)]({'pathParts':[m],'config':h});}else{const n=this[t(0x90)][t(0x73)]({'pathParts':[t(0x82),t(0xaa),t(0x86),t(0xa8)]});l=this['fsi'][t(0xa6)]({'pathParts':[n],'config':h});}h['engines'][t(0x86)]===t(0xb7)?(h[t(0xaf)]['js']===t(0xa3)?this[t(0x90)][t(0x9e)]({'filePath':l,'content':t(0x9f)+i[t(0x78)]+t(0x7b)+k+t(0x98)}):this[t(0x90)][t(0x9e)]({'filePath':l,'content':t(0x9f)+i[t(0x78)]+t(0x7b)+k+'.'+h['engines']['js']+'\x27;\x0a'}),this[t(0x90)][t(0x80)]({'filePath':l,'content':t(0x91)+i['className']+'\x20};\x0a'})):this['fsi'][t(0x80)]({'filePath':l,'content':'import\x20\x27'+k+'.'+h['engines']['js']+t(0x98)});});}catch(i){Log[s(0xb3)](i);}});
1
+ const a102r=a102d;function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a102d(a,b);}(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x1c4))/0x1+-parseInt(o(0x1ee))/0x2+-parseInt(o(0x1f7))/0x3+parseInt(o(0x1c6))/0x4+-parseInt(o(0x1e7))/0x5+-parseInt(o(0x1dd))/0x6*(parseInt(o(0x1df))/0x7)+-parseInt(o(0x1bb))/0x8*(-parseInt(o(0x1ce))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x877e0));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a['toString']()[q(0x1f6)](q(0x1cf))[q(0x1d3)]()[q(0x1ed)](a102a)['search']('(((.+)+)+)+$');});a102a();function a102c(){const u=['toString','className','true','engines','@apollo/client','withTranslations','/imports/ui/hooks','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','pathFromProject','6VhtsJn','apply','647311QntOIe','graphql','template/template.css','startup','import\x20\x27','features','\x20}\x20from\x20\x27','fileName','1329625zkNUNy','layouts','cssCaseName','create','string','error','constructor','1797522kIlMUx','hook','\x20};\x0a','test','template','fsi','hook/hook.js','export\x20{\x20','search','1255296MVRivb','installNpmPackage','imports','getProjectConfig','ssr','dir','\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','import\x20{\x20','css','warn','injectAtEndOfFile','tsx','react','relative','baseDir','none','pathFromApp','templates.js','20925448OZauyO','client','withValue','injectAtBeginningOfFile','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','components','@apollo/client\x20isomorphic-fetch','.css','rewriteDestinationPathForEngine','807535wJvKfk','\x27;\x0a','1689684tPnJYv','resourceName','apollo','hooks','/imports/ui/','import\x20\x27./','notice','Creating\x20','9TcFUHi','(((.+)+)+)+$','setTemplate','lib','.app-tests.js'];a102c=function(){return u;};return a102c();}import a102e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a102r(0x1ea)]({'name':a102r(0x1ef),'aliases':['h'],'checkWhere':![],'usage':a102r(0x1db),'shortDesc':a102r(0x1da),'validOpts':[{'name':a102r(0x1b7),'values':[a102r(0x1c9),a102r(0x1c0),'pages',a102r(0x1e8)]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a102r(0x1af)},async function(a,b){const s=a102r;Log[s(0x1cc)](s(0x1cd)+b['resourceName']+'\x20hook...');try{const c=this[s(0x1f3)]['checkNpmPackage'](s(0x1b5));if(!c){Log[s(0x1ec)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[s(0x1f3)][s(0x1b9)](b),f=b[s(0x1b7)]?s(0x1ca)+b[s(0x1b7)]:s(0x1d9),g=this[s(0x1f3)]['pathFromApp']({'pathParts':[f,b['dir'],paramCase(b[s(0x1c7)]),paramCase(b[s(0x1c7)])]}),h=await this[s(0x1f3)][s(0x1ac)]();this[s(0x1f3)][s(0x1bd)](h,async()=>{const t=s;typeof h[t(0x1f2)]['css']===t(0x1eb)&&(h['template']['css']=h['template'][t(0x1b1)]==='true'?!![]:![],this[t(0x1f3)][t(0x1d0)](t(0x1b1),h[t(0x1f2)][t(0x1b1)]));h['engines']['graphql']===t(0x1c8)&&!this[t(0x1f3)]['checkNpmPackage'](t(0x1d7))&&(Log[t(0x1b2)](t(0x1bf)),await this[t(0x1f3)][t(0x1f8)](t(0x1c1),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1c7)]),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b[t(0x1c7)]),'name':pascalCase(b['resourceName']),'graphql':h[t(0x1d6)][t(0x1e0)],'theme':h['engines']['theme'],'features':h[t(0x1e4)],'myPath':a102e[t(0x1b6)](this[t(0x1f3)][t(0x1dc)]({}),g),'fileName':paramCase(b[t(0x1c7)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x1e4)][t(0x1d8)]};this['fsi'][t(0x1f2)]({'srcPath':t(0x1f4),'destPath':g+'.js','context':i,'config':h,'framework':'react'});h[t(0x1f2)][t(0x1b1)]&&(this[t(0x1f3)][t(0x1f2)]({'srcPath':t(0x1e1),'destPath':g+t(0x1c2),'context':Object['assign']({},i,{'className':i[t(0x1e9)]}),'config':h}),this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x1d6)]['js'],'content':t(0x1cb)+i[t(0x1e6)]+'.'+h[t(0x1d6)]['css']+'\x27;'}));h[t(0x1d6)][t(0x1f1)]!==t(0x1b8)&&this['fsi'][t(0x1f2)]({'srcPath':'test/test.js','destPath':g+t(0x1d2),'framework':t(0x1b5),'context':i,'config':h});const j=b[t(0x1ae)]?'/'+b['dir']+'/':'/',k=''+f+j+i[t(0x1e6)]+'/'+i[t(0x1e6)];let l;if(h[t(0x1d6)][t(0x1ad)]===t(0x1d5)){const m=this[t(0x1f3)][t(0x1b9)]({'pathParts':[t(0x1ab),t(0x1e2),t(0x1d1),'templates.js']});l=this[t(0x1f3)][t(0x1c3)]({'pathParts':[m],'config':h});}else{const n=this['fsi']['pathFromApp']({'pathParts':[t(0x1ab),t(0x1e2),t(0x1bc),t(0x1ba)]});l=this[t(0x1f3)][t(0x1c3)]({'pathParts':[n],'config':h});}h['engines'][t(0x1bc)]===t(0x1b5)?(h[t(0x1d6)]['js']===t(0x1b4)?this[t(0x1f3)][t(0x1be)]({'filePath':l,'content':t(0x1b0)+i[t(0x1d4)]+t(0x1e5)+k+t(0x1c5)}):this[t(0x1f3)][t(0x1be)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x1d4)]+'\x20}\x20from\x20\x27'+k+'.'+h[t(0x1d6)]['js']+'\x27;\x0a'}),this[t(0x1f3)][t(0x1b3)]({'filePath':l,'content':t(0x1f5)+i[t(0x1d4)]+t(0x1f0)})):this[t(0x1f3)][t(0x1b3)]({'filePath':l,'content':t(0x1e3)+k+'.'+h[t(0x1d6)]['js']+'\x27;\x0a'});});}catch(i){Log[s(0x1ec)](i);}});
@@ -1 +1 @@
1
- const a103j=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0xb8))/0x1+-parseInt(h(0xbf))/0x2+-parseInt(h(0xc8))/0x3*(parseInt(h(0xcd))/0x4)+-parseInt(h(0xc6))/0x5+-parseInt(h(0xbc))/0x6*(-parseInt(h(0xc5))/0x7)+parseInt(h(0xb7))/0x8+-parseInt(h(0xb3))/0x9*(-parseInt(h(0xba))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x7f2ba));function a103c(){const m=['engines','(blank)','type','7RhmLGu','2773085FiadAh','create','33nxrtjv','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','map','(((.+)+)+)+$',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','106924aAWMJr','fsi','leaflet-map','maka\x20g:kit\x20--type=map','kit','toString','search','4149KfYIfm','constructor','error','notice','1580936FrTOFx','1031987ZBxBqY','withValue','50950qZVSJb','login','1066596dJtTOH','resourceName','NIE','645286Pusozs','indexOf','Invalid\x20type\x20'];a103c=function(){return m;};return a103c();}const a103b=(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;};}()),a103a=a103b(this,function(){const i=a103d;return a103a[i(0xd2)]()['search'](i(0xcb))['toString']()[i(0xb4)](a103a)[i(0xd3)](i(0xcb));});function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0xb3;let f=c[d];return f;},a103d(a,b);}a103a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103j(0xc7)]({'name':a103j(0xd1),'aliases':['k'],'usage':a103j(0xc9),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a103j(0xc4)],'examples':[a103j(0xd0),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const k=a103j;try{const c=this[k(0xce)]['getProjectConfig']();this[k(0xce)][k(0xb9)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0xbd)]),'fileName':paramCase(b[l(0xbd)]),'camelCase':camelCase(b['resourceName']),'type':b[l(0xc4)],'engine':c[l(0xc2)]['js'],'noRename':!![]},f=[l(0xcf),l(0xbb)];if(f[l(0xc0)](d[l(0xc4)])<0x0){const g=d[l(0xc4)]?d[l(0xc4)]:l(0xc3);Log[l(0xb5)](l(0xc1)+g+l(0xcc));return;}b['type']===l(0xca)&&Log['notice'](l(0xbe)),b['type']==='login'&&Log[l(0xb6)](l(0xbe));});}catch(d){Log[k(0xb5)](d);}});
1
+ const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=parseInt(h(0x143))/0x1*(parseInt(h(0x13a))/0x2)+-parseInt(h(0x151))/0x3*(parseInt(h(0x136))/0x4)+parseInt(h(0x153))/0x5*(parseInt(h(0x14b))/0x6)+parseInt(h(0x131))/0x7*(parseInt(h(0x134))/0x8)+-parseInt(h(0x138))/0x9*(parseInt(h(0x140))/0xa)+-parseInt(h(0x133))/0xb*(parseInt(h(0x152))/0xc)+-parseInt(h(0x142))/0xd*(-parseInt(h(0x154))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x57596));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0x147)]()[j(0x13e)](j(0x150))[j(0x147)]()[j(0x145)](a103a)[j(0x13e)](j(0x150));});a103a();import{Generator}from'../generator.js';function a103c(){const n=['fsi','leaflet-map','notice','1968378sNiKhy','resourceName','Invalid\x20type\x20','maka\x20g:kit\x20--type=map','login','(((.+)+)+)+$','3468eaYbni','1635612SrHHqP','5zZkyng','14iEeARh','NIE','1642403yAcMIO','error','22nxRZGK','24atDoGm','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','1884lgixPE','create','9ZhOBmH','apply','5336EYxiWa',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','indexOf','map','search','engines','4236730MLLPHQ','type','1712087ngtWVT','163vsJvwi','kit','constructor','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','toString'];a103c=function(){return n;};return a103c();}import{Log}from'../tools/log/log.class.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x131;let f=c[d];return f;},a103d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103k(0x137)]({'name':a103k(0x144),'aliases':['k'],'usage':a103k(0x135),'shortDesc':a103k(0x146),'validOpts':[a103k(0x141)],'examples':[a103k(0x14e),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a103k;try{const c=this[l(0x148)]['getProjectConfig']();this['fsi']['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x14c)]),'fileName':paramCase(b[m(0x14c)]),'camelCase':camelCase(b[m(0x14c)]),'type':b[m(0x141)],'engine':c[m(0x13f)]['js'],'noRename':!![]},f=[m(0x149),m(0x14f)];if(f[m(0x13c)](d['type'])<0x0){const g=d[m(0x141)]?d[m(0x141)]:'(blank)';Log[m(0x132)](m(0x14d)+g+m(0x13b));return;}b[m(0x141)]===m(0x13d)&&Log[m(0x14a)](m(0x155)),b[m(0x141)]===m(0x14f)&&Log['notice'](m(0x155));});}catch(d){Log[l(0x132)](d);}});
@@ -1 +1 @@
1
- const a104r=a104d;(function(a,b){const o=a104d,c=a();while(!![]){try{const d=parseInt(o(0x113))/0x1*(-parseInt(o(0xee))/0x2)+-parseInt(o(0xed))/0x3+parseInt(o(0xf2))/0x4+parseInt(o(0x107))/0x5*(parseInt(o(0x122))/0x6)+parseInt(o(0x10d))/0x7+parseInt(o(0x10a))/0x8*(parseInt(o(0x102))/0x9)+-parseInt(o(0x10b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x7506a));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0xe6)]()['search'](q(0x12c))[q(0xe6)]()[q(0x110)](a104a)['search']('(((.+)+)+)+$');});a104a();import a104e from'path';function a104c(){const u=['hook/hook.js','engines','apply','relative','findAppDirectory','className','test','lib','\x27;\x0a','warn','template','withHooks','import\x20{\x20','\x20}\x20from\x20\x27','2462247NOYFGy','theme','css','imports','layout','785TVODYC','split','features','24nHrpFg','14388940uFaGCo','template/template.css','5670273cdWKpd','client','withTranslations','constructor','\x20};\x0a','api','1173ONhcvi','withHook','react','export\x20{\x20','create','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','ramda','dir','startup','tsx','true','none','.js','templates.js','ssr','9180wcdKUp','pathFromProject','rewriteDestinationPathForEngine','fileName','.app-tests.js','withValue','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','maka\x20g:layout\x20mobile/iPhone8','assign','maka\x20g:l\x20web/safari','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20React\x20Layout.','toString','resourceName','import\x20\x27./','injectAtEndOfFile','graphql','injectAtBeginningOfFile','checkNpmPackage','1331076qcRBqs','374UALZOh','fsi','pathFromApp','setTemplate','2841108MlmZjx','component/component.js'];a104c=function(){return u;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xe6;let f=c[d];return f;},a104d(a,b);}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(0x117)]({'name':a104r(0x106),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':a104r(0x12d),'validOpts':[],'examples':[a104r(0x129),a104r(0x12b)]},function(a,b){const s=a104r,c='/imports/ui/layouts',d=this[s(0xef)][s(0xf8)](),e=this[s(0xef)][s(0xf0)]({'pathParts':[c,b[s(0x11a)],paramCase(b[s(0xe7)]),paramCase(b['resourceName'])]}),f=this[s(0xef)]['getProjectConfig']();this[s(0xef)][s(0x127)](f,()=>{const t=s;typeof f[t(0xfe)][t(0xfa)]==='string'&&(f[t(0xfe)][t(0xfa)]=f[t(0xfe)][t(0xfa)]===t(0x11d)?!![]:![],this[t(0xef)][t(0xf1)](t(0xfa),f[t(0xfe)][t(0xfa)]));typeof f[t(0xfe)][t(0x104)]==='string'&&(f[t(0xfe)][t(0x104)]=f[t(0xfe)]['css']===t(0x11d)?!![]:![],this[t(0xef)][t(0xf1)](t(0x104),f[t(0xfe)][t(0x104)]));typeof f['template']['js']==='string'&&(f[t(0xfe)]['js']=f['template']['js']===t(0x11d)?!![]:![],this[t(0xef)][t(0xf1)]('js',f[t(0xfe)]['js']));!f[t(0x109)]&&(f[t(0x109)]={});const g=b['_']?b['_'][0x0][t(0x108)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0xec)](t(0x119))&&(Log['warn'](t(0x118)),this['fsi']['installNpmPackage']('ramda',{'cwd':d}));if(h&&!this[t(0xec)](t(0x115))){Log[t(0xfd)](t(0x128));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a104e[t(0xf7)](this['fsi'][t(0x123)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0xe7)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0xe7)]),'graphql':f[t(0xf5)][t(0xea)],'features':f['features'],'client':f['engines'][t(0x10e)],'api':f[t(0xf5)][t(0x112)],'ssr':f[t(0xf5)][t(0x121)],'test':f[t(0xf5)][t(0xfa)],'theme':f[t(0xf5)][t(0x103)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x109)][t(0x10f)]};f[t(0x109)]?.[t(0xff)]||b[t(0x114)]?this[t(0xef)][t(0xfe)]({'srcPath':t(0xf4),'destPath':e+t(0x11f),'framework':t(0x115),'context':i,'config':f}):this['fsi'][t(0xfe)]({'srcPath':t(0xf3),'destPath':e+t(0x11f),'framework':t(0x115),'context':i,'config':f});f[t(0xf5)][t(0xfa)]!==t(0x11e)&&this[t(0xef)]['template']({'srcPath':'test/test.js','destPath':e+t(0x126),'framework':t(0x115),'context':i,'config':f});f['template'][t(0x104)]&&(this[t(0xef)][t(0xfe)]({'srcPath':t(0x10c),'destPath':e+'.css','context':Object[t(0x12a)]({},i,{'className':paramCase(b[t(0xe7)])}),'config':f}),this[t(0xef)][t(0xeb)]({'filePath':e+'.'+f[t(0xf5)]['js'],'content':t(0xe8)+i[t(0x125)]+'.'+f['engines']['css']+'\x27;'}));const j=b['dir']?'/'+b[t(0x11a)]+'/':'/',k=''+c+j+i[t(0x125)]+'/'+i[t(0x125)];let l;if(f[t(0xf5)][t(0x121)]==='true'){const m=this[t(0xef)]['pathFromApp']({'pathParts':['imports',t(0x11b),t(0xfb),t(0x120)]});l=this[t(0xef)][t(0x124)]({'pathParts':[m],'config':f});}else{const n=this[t(0xef)][t(0xf0)]({'pathParts':[t(0x105),t(0x11b),t(0x10e),t(0x120)]});l=this[t(0xef)][t(0x124)]({'pathParts':[n],'config':f});}f[t(0xf5)][t(0x10e)]===t(0x115)?(f['engines']['js']===t(0x11c)?this[t(0xef)][t(0xeb)]({'filePath':l,'content':t(0x100)+i['className']+t(0x101)+k+t(0xfc)}):this[t(0xef)][t(0xeb)]({'filePath':l,'content':t(0x100)+i[t(0xf9)]+t(0x101)+k+'.'+f[t(0xf5)]['js']+t(0xfc)}),this[t(0xef)][t(0xe9)]({'filePath':l,'content':t(0x116)+i['className']+t(0x111)})):this[t(0xef)][t(0xe9)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0xf5)]['js']+t(0xfc)});});});
1
+ const a104q=a104d;(function(a,b){const o=a104d,c=a();while(!![]){try{const d=parseInt(o(0x1e3))/0x1*(-parseInt(o(0x1c0))/0x2)+-parseInt(o(0x1c3))/0x3+-parseInt(o(0x1eb))/0x4+parseInt(o(0x1d9))/0x5+parseInt(o(0x1b8))/0x6+-parseInt(o(0x1bc))/0x7+parseInt(o(0x1ae))/0x8*(parseInt(o(0x1c5))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xe748c));const a104b=(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;};}()),a104a=a104b(this,function(){const p=a104d;return a104a[p(0x1e0)]()[p(0x1dc)]('(((.+)+)+)+$')[p(0x1e0)]()[p(0x1f1)](a104a)['search'](p(0x1df));});a104a();import a104e from'path';import{Generator}from'../generator.js';function a104c(){const t=['includes','2159180gYdlxN','\x27;\x0a','withHook','search','export\x20{\x20','lib','(((.+)+)+)+$','toString','features','react','59617GSgHYW','import\x20{\x20','.js','.css','findAppDirectory','withTranslations','fileName','withHooks','3490072YWHyuF','template/template.css','injectAtBeginningOfFile','withValue','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','injectAtEndOfFile','constructor','installNpmPackage','layout','theme','css','string','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','18774776ScZQkY','test','rewriteDestinationPathForEngine','className','.app-tests.js','checkNpmPackage','resourceName','none','\x20};\x0a','warn','978738HmyriI','ramda','maka\x20g:l\x20web/safari','relative','5322933YgesJL','test/test.js','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fsi','30txweKa','imports','Scaffolding\x20for\x20a\x20React\x20Layout.','5442363pAATzL','tsx','18rYAoRN','pathFromApp','import\x20\x27./','engines','startup','pathFromProject','\x20}\x20from\x20\x27','import\x20\x27','hook/hook.js','setTemplate','true','api','client','graphql','dir','create','ssr','template','maka\x20g:layout\x20mobile/iPhone8'];a104c=function(){return t;};return a104c();}import{Log}from'../tools/log/log.class.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1ae;let f=c[d];return f;},a104d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a104q(0x1d4)]({'name':a104q(0x1f3),'aliases':aliases,'usage':a104q(0x1ef),'shortDesc':a104q(0x1c2),'validOpts':[],'examples':[a104q(0x1d7),a104q(0x1ba)]},function(a,b){const r=a104q,c='/imports/ui/layouts',d=this[r(0x1bf)][r(0x1e7)](),e=this[r(0x1bf)][r(0x1c6)]({'pathParts':[c,b[r(0x1d3)],paramCase(b[r(0x1b4)]),paramCase(b[r(0x1b4)])]}),f=this[r(0x1bf)]['getProjectConfig']();this[r(0x1bf)][r(0x1ee)](f,()=>{const s=r;typeof f['template'][s(0x1af)]===s(0x1f6)&&(f[s(0x1d6)][s(0x1af)]=f['template'][s(0x1af)]==='true'?!![]:![],this[s(0x1bf)][s(0x1ce)]('test',f[s(0x1d6)][s(0x1af)]));typeof f[s(0x1d6)][s(0x1f5)]===s(0x1f6)&&(f['template']['css']=f[s(0x1d6)][s(0x1f5)]==='true'?!![]:![],this[s(0x1bf)][s(0x1ce)](s(0x1f5),f[s(0x1d6)][s(0x1f5)]));typeof f[s(0x1d6)]['js']===s(0x1f6)&&(f[s(0x1d6)]['js']=f[s(0x1d6)]['js']==='true'?!![]:![],this[s(0x1bf)][s(0x1ce)]('js',f[s(0x1d6)]['js']));!f[s(0x1e1)]&&(f[s(0x1e1)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[s(0x1d8)](g);h&&!this[s(0x1b3)](s(0x1b9))&&(Log[s(0x1b7)](s(0x1be)),this[s(0x1bf)][s(0x1f2)](s(0x1b9),{'cwd':d}));if(h&&!this[s(0x1b3)](s(0x1e2))){Log[s(0x1b7)](s(0x1f7));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a104e[s(0x1bb)](this[s(0x1bf)][s(0x1ca)]({}),e),'cssCaseName':paramCase(b[s(0x1b4)]),'className':pascalCase(b[s(0x1b4)]),'camelCaseName':camelCase(b[s(0x1b4)]),'fileName':paramCase(b[s(0x1b4)]),'graphql':f['engines'][s(0x1d2)],'features':f[s(0x1e1)],'client':f[s(0x1c8)][s(0x1d1)],'api':f[s(0x1c8)][s(0x1d0)],'ssr':f[s(0x1c8)][s(0x1d5)],'test':f['engines'][s(0x1af)],'theme':f['engines'][s(0x1f4)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x1e1)][s(0x1e8)]};f[s(0x1e1)]?.[s(0x1ea)]||b[s(0x1db)]?this[s(0x1bf)][s(0x1d6)]({'srcPath':s(0x1cd),'destPath':e+s(0x1e5),'framework':s(0x1e2),'context':i,'config':f}):this[s(0x1bf)][s(0x1d6)]({'srcPath':'component/component.js','destPath':e+s(0x1e5),'framework':s(0x1e2),'context':i,'config':f});f[s(0x1c8)][s(0x1af)]!==s(0x1b5)&&this[s(0x1bf)][s(0x1d6)]({'srcPath':s(0x1bd),'destPath':e+s(0x1b2),'framework':s(0x1e2),'context':i,'config':f});f['template'][s(0x1f5)]&&(this[s(0x1bf)][s(0x1d6)]({'srcPath':s(0x1ec),'destPath':e+s(0x1e6),'context':Object['assign']({},i,{'className':paramCase(b[s(0x1b4)])}),'config':f}),this[s(0x1bf)][s(0x1ed)]({'filePath':e+'.'+f[s(0x1c8)]['js'],'content':s(0x1c7)+i[s(0x1e9)]+'.'+f[s(0x1c8)]['css']+'\x27;'}));const j=b[s(0x1d3)]?'/'+b[s(0x1d3)]+'/':'/',k=''+c+j+i[s(0x1e9)]+'/'+i[s(0x1e9)];let l;if(f['engines']['ssr']===s(0x1cf)){const m=this['fsi'][s(0x1c6)]({'pathParts':[s(0x1c1),s(0x1c9),s(0x1de),'templates.js']});l=this[s(0x1bf)][s(0x1b0)]({'pathParts':[m],'config':f});}else{const n=this['fsi']['pathFromApp']({'pathParts':[s(0x1c1),'startup','client','templates.js']});l=this[s(0x1bf)][s(0x1b0)]({'pathParts':[n],'config':f});}f[s(0x1c8)][s(0x1d1)]===s(0x1e2)?(f[s(0x1c8)]['js']===s(0x1c4)?this[s(0x1bf)][s(0x1ed)]({'filePath':l,'content':s(0x1e4)+i[s(0x1b1)]+s(0x1cb)+k+'\x27;\x0a'}):this[s(0x1bf)][s(0x1ed)]({'filePath':l,'content':s(0x1e4)+i['className']+s(0x1cb)+k+'.'+f[s(0x1c8)]['js']+s(0x1da)}),this[s(0x1bf)][s(0x1f0)]({'filePath':l,'content':s(0x1dd)+i['className']+s(0x1b6)})):this[s(0x1bf)][s(0x1f0)]({'filePath':l,'content':s(0x1cc)+k+'.'+f[s(0x1c8)]['js']+s(0x1da)});});});
@@ -1 +1 @@
1
- const a105i=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=parseInt(f(0x1a9))/0x1+parseInt(f(0x1ac))/0x2*(parseInt(f(0x1ad))/0x3)+-parseInt(f(0x1a5))/0x4+-parseInt(f(0x1a8))/0x5+parseInt(f(0x19e))/0x6+-parseInt(f(0x1ae))/0x7+-parseInt(f(0x1a4))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x466db));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a105d;if(c){const e=c[g(0x1a0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const h=a105d;return a105a[h(0x1a3)]()[h(0x1a1)](h(0x1aa))[h(0x1a3)]()['constructor'](a105a)[h(0x1a1)](h(0x1aa));});a105a();import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x19d;let f=c[d];return f;},a105d(a,b);}const MakaGen=new Generator({'name':a105i(0x1a6),'shortDesc':a105i(0x19d),'validOpts':[],'description':a105i(0x19f),'usage':a105i(0x1a2),'examples':[a105i(0x1a7),a105i(0x1ab)]},function(){return null;});function a105c(){const j=['toString','727448vxTRIU','1834116SJQAXl','maka','maka\x20generate:api\x20Trucks','1874445OIKZdc','199110oGeKyp','(((.+)+)+)+$','maka\x20g:hook\x20cool-hook','2jyddxL','1636878BHsJLT','182917PvJkep','Maka!','2965314eDpwcP','\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','apply','search','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]'];a105c=function(){return j;};return a105c();}export default MakaGen;
1
+ const a105h=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=-parseInt(f(0xdf))/0x1*(parseInt(f(0xda))/0x2)+-parseInt(f(0xe7))/0x3+parseInt(f(0xe3))/0x4+parseInt(f(0xdb))/0x5+parseInt(f(0xe2))/0x6+parseInt(f(0xe0))/0x7+parseInt(f(0xe5))/0x8*(-parseInt(f(0xe6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xc8b7a));function a105c(){const i=['1507048psbhjS','maka\x20g:hook\x20cool-hook','216SpAvbn','325161eaUkpp','2012082ztrQlH','constructor','Maka!','search','6558tBGWnH','5544000JTmTQz','(((.+)+)+)+$','toString','maka\x20generate:api\x20Trucks','154laKLXX','9285927lhjuoX','\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','966948JjmaTY'];a105c=function(){return i;};return a105c();}const a105b=(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;};}()),a105a=a105b(this,function(){const g=a105d;return a105a[g(0xdd)]()['search'](g(0xdc))[g(0xdd)]()[g(0xd7)](a105a)[g(0xd9)](g(0xdc));});a105a();function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xd7;let f=c[d];return f;},a105d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a105h(0xd8),'validOpts':[],'description':a105h(0xe1),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':[a105h(0xde),a105h(0xe4)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a106d(a,b);}function a106c(){const q=['tsx','24rCoUsz','template','352324UXWVPJ','search','-rpc-method.','method','check\x20ddp-rate-limiter\x20mdg:validated-method','create','dir','735679lPwQxJ','error','engines','1502555JvSdUa','startup','check','maka\x20{generate,\x20g}:{method,\x20m}\x20name','methods','fsi','appPathPrefix','36700GjYwhG','pathFromApp','2OOBrLg','mdg:validated-method','index.','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','(((.+)+)+)+$','installMeteorPackage','5106681vxJOWS','21fFofxP','apply','withValue','615137ZxWbiF','231iCuxdY','getProjectConfig','imports','import\x20\x27./methods','ddp-rate-limiter','injectAtEndOfFile','checkMeteorPackage','resourceName','6494432yHbgTP','toString','constructor'];a106c=function(){return q;};return a106c();}const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=parseInt(k(0x1da))/0x1*(-parseInt(k(0x1fc))/0x2)+parseInt(k(0x1d7))/0x3*(parseInt(k(0x1e9))/0x4)+-parseInt(k(0x1f3))/0x5+parseInt(k(0x1e7))/0x6*(parseInt(k(0x1f0))/0x7)+parseInt(k(0x1e3))/0x8+-parseInt(k(0x1d6))/0x9+parseInt(k(0x1fa))/0xa*(parseInt(k(0x1db))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x6c194));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0x1e4)]()[m(0x1ea)](m(0x200))[m(0x1e4)]()[m(0x1e5)](a106a)['search'](m(0x200));});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0x1ee)]({'name':a106n(0x1ec),'aliases':['m'],'usage':a106n(0x1f6),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':['dir'],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a106n;try{const c=this[o(0x1f8)][o(0x1dc)]();this[o(0x1f8)][o(0x1d9)](c,async()=>{const p=o,d=paramCase(b[p(0x1e2)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x1e2)]),'camelCase':camelCase(b[p(0x1e2)]),'noRename':!![]};let g='js';c[p(0x1f2)]['js']===p(0x1e6)&&(g='ts');const h=this[p(0x1f8)][p(0x1fb)]({});(!this[p(0x1f8)]['checkMeteorPackage'](p(0x1f5))||!this[p(0x1f8)][p(0x1e1)](p(0x1df))||!this[p(0x1f8)]['checkMeteorPackage'](p(0x1fd)))&&(Log['warn'](p(0x1ff)),this[p(0x1f8)][p(0x201)](p(0x1ed),{'cwd':h}));this[p(0x1f8)][p(0x1e8)]({'srcPath':'method/method.js','destPath':this[p(0x1f8)][p(0x1fb)]({'pathParts':[p(0x1dd),p(0x1f4),b['appPathPrefix'],p(0x1f7),b[p(0x1ef)],d+p(0x1eb)+g]}),'context':f,'config':c});const i=b[p(0x1ef)]?'/'+b[p(0x1ef)]+'/':'/',j=this[p(0x1f8)][p(0x1fb)]({'pathParts':[p(0x1dd),p(0x1f4),b[p(0x1f9)],p(0x1fe)+c[p(0x1f2)]['js']]});this[p(0x1f8)][p(0x1e0)]({'filePath':j,'content':p(0x1de)+i+d+'-rpc-method\x27;'});});}catch(d){Log[o(0x1f1)](d);}});
1
+ const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=parseInt(k(0x18d))/0x1+parseInt(k(0x198))/0x2+parseInt(k(0x185))/0x3+-parseInt(k(0x176))/0x4+parseInt(k(0x197))/0x5*(parseInt(k(0x184))/0x6)+parseInt(k(0x195))/0x7*(parseInt(k(0x190))/0x8)+-parseInt(k(0x17d))/0x9*(parseInt(k(0x188))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x64a8d));function a106c(){const q=['checkMeteorPackage','(((.+)+)+)+$','installMeteorPackage','338433UUHDRL','resourceName','imports','80tWbAFy','injectAtEndOfFile','maka\x20g:method\x20todos','dir','mdg:validated-method','132118gIzfgY','methods','5tZTBkU','603840qAFLBB','apply','check','pathFromApp','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','-rpc-method.','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','startup','appPathPrefix','93780jkhnbc','maka\x20{generate,\x20g}:{method,\x20m}\x20name','method/method.js','search','fsi','-rpc-method\x27;','getProjectConfig','726156NLndmX','create','method','withValue','engines','index.','constructor','3016542SCmbzc','216312RqAesa','import\x20\x27./methods','template','120QQFQzX','warn'];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(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a['toString']()[m(0x179)]('(((.+)+)+)+$')['toString']()[m(0x183)](a106a)[m(0x179)](m(0x18b));});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-0x175;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106n(0x17e)]({'name':a106n(0x17f),'aliases':['m'],'usage':a106n(0x177),'checkWhere':!![],'shortDesc':a106n(0x19e),'validOpts':[a106n(0x193)],'examples':[a106n(0x192)]},function(a,b){const o=a106n;try{const c=this[o(0x17a)][o(0x17c)]();this[o(0x17a)][o(0x180)](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b[p(0x18e)],'fileName':d,'className':pascalCase(b[p(0x18e)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x181)]['js']==='tsx'&&(g='ts');const h=this['fsi'][p(0x19b)]({});(!this[p(0x17a)]['checkMeteorPackage'](p(0x19a))||!this[p(0x17a)]['checkMeteorPackage']('ddp-rate-limiter')||!this[p(0x17a)][p(0x18a)](p(0x194)))&&(Log[p(0x189)](p(0x19c)),this[p(0x17a)][p(0x18c)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[p(0x17a)][p(0x187)]({'srcPath':p(0x178),'destPath':this['fsi']['pathFromApp']({'pathParts':[p(0x18f),p(0x19f),b[p(0x175)],p(0x196),b[p(0x193)],d+p(0x19d)+g]}),'context':f,'config':c});const i=b[p(0x193)]?'/'+b[p(0x193)]+'/':'/',j=this[p(0x17a)][p(0x19b)]({'pathParts':[p(0x18f),p(0x19f),b[p(0x175)],p(0x182)+c[p(0x181)]['js']]});this['fsi'][p(0x191)]({'filePath':j,'content':p(0x186)+i+d+p(0x17b)});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a107n=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=-parseInt(l(0x1d8))/0x1*(-parseInt(l(0x1d3))/0x2)+-parseInt(l(0x1da))/0x3+parseInt(l(0x1ee))/0x4+parseInt(l(0x1e2))/0x5*(parseInt(l(0x1e8))/0x6)+-parseInt(l(0x1c9))/0x7+parseInt(l(0x1e1))/0x8*(-parseInt(l(0x1d5))/0x9)+parseInt(l(0x1ea))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xcd658));function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a107d(a,b);}const a107b=(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;};}()),a107a=a107b(this,function(){const m=a107d;return a107a[m(0x1d4)]()[m(0x1cc)](m(0x1ce))[m(0x1d4)]()['constructor'](a107a)[m(0x1cc)]('(((.+)+)+)+$');});a107a();import a107e from'path';import{Generator}from'../generator.js';function a107c(){const r=['(((.+)+)+)+$','theme','ssr','getProjectConfig','pathFromAppWithNoReWrite','174364qEncxm','toString','1245483bkXsyK','package/package.js','noRename','8QZtUYg','packages','4380948dpGCax','maka\x20g:package\x20todos:package','template/template.js','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','features','dir','engines','24GQfmbB','705970syVjyo','.js','component','resourceName','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','pathFromProject','42cROhzY','client','5911670yNYNMZ','/client/','server','fsi','6327756RAfgKO','package','withValue','tests/server','lib','pathFromApp','template','store','7994973zPNgzO','package.js','layout','search','hasOwnProperty'];a107c=function(){return r;};return a107c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a107n(0x1ef),'aliases':['p'],'usage':a107n(0x1e6),'shortDesc':a107n(0x1dd),'validOpts':[a107n(0x1df)],'examples':[a107n(0x1db)]},async function(a,b){const o=a107n,c=paramCase(b['resourceName']),d=this[o(0x1ed)][o(0x1f3)]({'pathParts':[o(0x1d9),b[o(0x1df)],c]}),e=this[o(0x1ed)][o(0x1d2)]({'pathParts':[o(0x1d9),b[o(0x1df)],c,o(0x1ca)]}),f=this['fsi'][o(0x1d1)]();this[o(0x1ed)][o(0x1f0)](f,async()=>{const p=o,g={'name':paramCase(b[p(0x1e5)]),'myPath':a107e['relative'](this[p(0x1ed)][p(0x1e7)]({}),d),'cssCaseName':paramCase(b[p(0x1e5)]),'className':pascalCase(b[p(0x1e5)]),'camelCaseName':camelCase(b[p(0x1e5)]),'fileName':c,'client':f[p(0x1e0)][p(0x1e9)],'graphql':f[p(0x1e0)]['graphql'],'ssr':f['engines'][p(0x1d0)],'isComponent':b['hasOwnProperty'](p(0x1e4)),'isLayout':b[p(0x1cd)](p(0x1cb)),'isStore':b[p(0x1cd)](p(0x1c8)),'features':f[p(0x1de)],'noRename':!![],'theme':f[p(0x1e0)][p(0x1cf)]};this[p(0x1ed)][p(0x1c7)]({'srcPath':p(0x1d6),'destPath':e,'context':g,'config':f}),g[p(0x1d7)]=![];const h=d+p(0x1eb)+c+p(0x1e3);this['fsi'][p(0x1c7)]({'srcPath':p(0x1dc),'destPath':h,'context':g,'config':f});const i=[p(0x1f2),p(0x1ec),'tests/client',p(0x1f1)];i['forEach'](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x1e3);this['fsi'][q(0x1c7)]({'srcPath':'package/'+j+'/package.js','destPath':k,'context':g,'config':f});});});});
1
+ const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=parseInt(l(0x13a))/0x1+parseInt(l(0x14e))/0x2*(parseInt(l(0x161))/0x3)+parseInt(l(0x138))/0x4*(-parseInt(l(0x15e))/0x5)+-parseInt(l(0x143))/0x6*(parseInt(l(0x13d))/0x7)+-parseInt(l(0x145))/0x8*(-parseInt(l(0x13c))/0x9)+parseInt(l(0x15a))/0xa+parseInt(l(0x157))/0xb*(-parseInt(l(0x14b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x1d422));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0x162)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a[n(0x152)]()['search'](n(0x14f))['toString']()['constructor'](a107a)['search'](n(0x14f));});a107a();function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x137;let f=c[d];return f;},a107d(a,b);}function a107c(){const s=['12rQybsq','/package.js','tests/client','55382aqKEOI','(((.+)+)+)+$','hasOwnProperty','store','toString','create','package.js','client','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','2834084imebCF','packages','maka\x20g:package\x20todos:package','2021220Xchuqr','pathFromProject','engines','tests/server','5oGbdbf','ssr','layout','3QUJzdL','apply','graphql','resourceName','.js','component','624028QifjOi','pathFromAppWithNoReWrite','201392oHBdVD','withValue','135pEgrLH','7833UZAxlH','template','server','features','lib','fsi','78ixcnZt','dir','62312YzXQml','theme','package','pathFromApp','relative','forEach'];a107c=function(){return s;};return a107c();}import a107e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a107o(0x153)]({'name':a107o(0x147),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a107o(0x156),'validOpts':[a107o(0x144)],'examples':[a107o(0x159)]},async function(a,b){const p=a107o,c=paramCase(b[p(0x164)]),d=this[p(0x142)][p(0x148)]({'pathParts':[p(0x158),b['dir'],c]}),e=this[p(0x142)][p(0x139)]({'pathParts':[p(0x158),b[p(0x144)],c,p(0x154)]}),f=this['fsi']['getProjectConfig']();this[p(0x142)][p(0x13b)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x164)]),'myPath':a107e[q(0x149)](this[q(0x142)][q(0x15b)]({}),d),'cssCaseName':paramCase(b[q(0x164)]),'className':pascalCase(b[q(0x164)]),'camelCaseName':camelCase(b[q(0x164)]),'fileName':c,'client':f[q(0x15c)][q(0x155)],'graphql':f[q(0x15c)][q(0x163)],'ssr':f[q(0x15c)][q(0x15f)],'isComponent':b['hasOwnProperty'](q(0x137)),'isLayout':b['hasOwnProperty'](q(0x160)),'isStore':b[q(0x150)](q(0x151)),'features':f[q(0x140)],'noRename':!![],'theme':f['engines'][q(0x146)]};this[q(0x142)][q(0x13e)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+'/client/'+c+'.js';this[q(0x142)][q(0x13e)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0x141),q(0x13f),q(0x14d),q(0x15d)];i[q(0x14a)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x165);this[r(0x142)][r(0x13e)]({'srcPath':'package/'+j+r(0x14c),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a108p=a108d;(function(a,b){const m=a108d,c=a();while(!![]){try{const d=-parseInt(m(0x1d8))/0x1*(-parseInt(m(0x1c1))/0x2)+parseInt(m(0x1ca))/0x3*(parseInt(m(0x1d6))/0x4)+parseInt(m(0x19a))/0x5+-parseInt(m(0x197))/0x6*(parseInt(m(0x1ce))/0x7)+parseInt(m(0x1bf))/0x8*(-parseInt(m(0x1db))/0x9)+parseInt(m(0x1c6))/0xa+-parseInt(m(0x1d1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xebc72));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[o(0x1cd)]()[o(0x1d9)](o(0x19c))[o(0x1cd)]()[o(0x1cb)](a108a)[o(0x1d9)](o(0x19c));});a108a();import a108e from'path';import{Generator}from'../generator.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x192;let f=c[d];return f;},a108d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a108c(){const s=['template','6694600wjwxOC','getProjectConfig','injectAtBeginningOfFile','withValue','apply','28CzGeDC','import\x20\x27','184417XARACG','search','hasOwnProperty','9VDJKpn','pages','withHooks','none','theme','react','hooks','components','html','ramda','ssr','features','4168386xpsGgZ','layout','injectAtEndOfFile','3334340OpoUdH','fsi','(((.+)+)+)+$','\x27;\x0a','component/component.js','dir','baseDir','pathFromProject','client','rewriteDestinationPathForEngine','root','import\x20{\x20','.html','tsx','template/template.html','Updating\x20npm\x20packages\x20...','withTranslations','true','startup','vanilla','templates.js','withHook','hook/hook.js','test','imports','.js','pathFromApp','warn','/imports/ui/','test/test.js','import\x20\x27./','resourceName','.css','setTemplate','\x20}\x20from\x20\x27','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','Generate\x20a\x20page.','11769704cqMdxj','assign','12zlMvLa','maka\x20g:page\x20todos/todos-item','engines','lib','installNpmPackage','16886910FpjQkQ','css','string','store','119241OgcLve','constructor','fileName','toString','7SAwzhp','.app-tests.js'];a108c=function(){return s;};return a108c();}Generator['create']({'name':'page','aliases':aliases,'usage':a108p(0x1bd),'shortDesc':a108p(0x1be),'validOpts':[{'name':a108p(0x1a0),'values':[a108p(0x1e1),a108p(0x192),a108p(0x1dc),'layouts']},{'name':a108p(0x1af),'boolFlag':!![]}],'examples':[a108p(0x1c2)]},function(a,b){const q=a108p,c=b[q(0x1a0)]?q(0x1b6)+b[q(0x1a0)]:'/imports/ui/pages',d=this[q(0x19b)][q(0x1b4)](b),e=this['fsi']['pathFromApp']({'pathParts':[c,b[q(0x19f)],paramCase(b['resourceName']),paramCase(b[q(0x1b9)])]}),f=this[q(0x19b)][q(0x1d2)]();this[q(0x19b)][q(0x1d4)](f,()=>{const r=q;typeof f['template'][r(0x193)]===r(0x1c8)&&(f[r(0x1d0)]['html']=f[r(0x1d0)]['html']==='true'?!![]:![],this[r(0x19b)][r(0x1bb)](r(0x193),f[r(0x1d0)][r(0x193)]));typeof f['template'][r(0x1b1)]===r(0x1c8)&&(f[r(0x1d0)][r(0x1b1)]=f[r(0x1d0)][r(0x1b1)]===r(0x1ab)?!![]:![],this[r(0x19b)]['setTemplate'](r(0x1b1),f[r(0x1d0)][r(0x1b1)]));typeof f['template'][r(0x1c7)]===r(0x1c8)&&(f[r(0x1d0)][r(0x1c7)]=f[r(0x1d0)][r(0x1c7)]==='true'?!![]:![],this[r(0x19b)][r(0x1bb)](r(0x1c7),f[r(0x1d0)][r(0x1c7)]));typeof f[r(0x1d0)]['js']===r(0x1c8)&&(f[r(0x1d0)]['js']=f['template']['js']===r(0x1ab)?!![]:![],this[r(0x19b)][r(0x1bb)]('js',f[r(0x1d0)]['js']));!f[r(0x196)]&&(f[r(0x196)]={});!b[r(0x1a4)]&&!this[r(0x19b)]['checkNpmPackage'](r(0x194))&&(Log[r(0x1b5)](r(0x1a9)),this['fsi'][r(0x1c5)](r(0x194),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a108e['relative'](this['fsi'][r(0x1a1)]({}),e),'cssCaseName':paramCase(b[r(0x1b9)]),'className':pascalCase(b[r(0x1b9)]),'camelCaseName':camelCase(b[r(0x1b9)]),'fileName':paramCase(b['resourceName']),'graphql':f[r(0x1c3)]['graphql'],'features':f[r(0x196)],'client':f[r(0x1c3)]['client'],'api':f[r(0x1c3)]['api'],'ssr':f[r(0x1c3)][r(0x195)],'isStore':b[r(0x1da)](r(0x1c9)),'isComponent':b[r(0x1da)]('component'),'isLayout':b[r(0x1da)](r(0x198)),'withTranslations':f[r(0x196)][r(0x1aa)],'test':f[r(0x1c3)][r(0x1b1)],'theme':f[r(0x1c3)][r(0x1df)]};f[r(0x1d0)][r(0x193)]&&this['fsi'][r(0x1d0)]({'srcPath':r(0x1a8),'destPath':e+r(0x1a6),'context':g,'config':f});f[r(0x196)]?.[r(0x1dd)]||b[r(0x1af)]?this[r(0x19b)][r(0x1d0)]({'srcPath':r(0x1b0),'destPath':e+r(0x1b3),'framework':'react','context':g,'config':f}):this[r(0x19b)]['template']({'srcPath':r(0x19e),'destPath':e+r(0x1b3),'framework':r(0x1e0),'context':g,'config':f});f[r(0x1c3)][r(0x1b1)]!==r(0x1de)&&this[r(0x19b)][r(0x1d0)]({'srcPath':r(0x1b7),'destPath':e+r(0x1cf),'framework':r(0x1e0),'context':g,'config':f});f[r(0x1d0)][r(0x1c7)]&&this['fsi']['template']({'srcPath':'template/template.css','destPath':e+r(0x1ba),'context':Object[r(0x1c0)]({},g,{'className':paramCase(b[r(0x1b9)])}),'config':f});f[r(0x1c3)][r(0x1a2)]!==r(0x1e0)&&f[r(0x1c3)][r(0x1a2)]!==r(0x1ad)?(f[r(0x1d0)][r(0x1c7)]&&this['fsi'][r(0x1d3)]({'filePath':e+'.'+f[r(0x1c3)]['js'],'content':r(0x1b8)+g[r(0x1cc)]+'.'+f['engines'][r(0x193)]+r(0x19d)+'import\x20\x27./'+g[r(0x1cc)]+'.'+f[r(0x1c3)][r(0x1c7)]+'\x27;'}),!f['template'][r(0x1c7)]&&this[r(0x19b)][r(0x1d3)]({'filePath':e+'.'+f[r(0x1c3)]['js'],'content':r(0x1b8)+g[r(0x1cc)]+'.'+f['engines'][r(0x193)]+'\x27;'})):f[r(0x1d0)][r(0x1c7)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':r(0x1b8)+g[r(0x1cc)]+'.'+f[r(0x1c3)][r(0x1c7)]+'\x27;'});const h=b['dir']?'/'+b[r(0x19f)]+'/':'/',i=''+c+h+g[r(0x1cc)]+'/'+g[r(0x1cc)];let j;if(f[r(0x1c3)][r(0x195)]===r(0x1ab)){const k=this['fsi'][r(0x1b4)]({'pathParts':[r(0x1b2),r(0x1ac),r(0x1c4),r(0x1ae)]});j=this['fsi'][r(0x1a3)]({'pathParts':[k],'config':f});}else{const l=this['fsi']['pathFromApp']({'pathParts':['imports','startup',r(0x1a2),r(0x1ae)]});j=this[r(0x19b)][r(0x1a3)]({'pathParts':[l],'config':f});}f[r(0x1c3)]['client']===r(0x1e0)?(f['engines']['js']===r(0x1a7)?this[r(0x19b)][r(0x1d3)]({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x1bc)+i+r(0x19d)}):this['fsi'][r(0x1d3)]({'filePath':j,'content':r(0x1a5)+g['className']+r(0x1bc)+i+'.'+f['engines']['js']+r(0x19d)}),this[r(0x19b)][r(0x199)]({'filePath':j,'content':'export\x20{\x20'+g['className']+'\x20};\x0a'})):this[r(0x19b)]['injectAtEndOfFile']({'filePath':j,'content':r(0x1d7)+i+'.'+f['engines']['js']+r(0x19d)});});});
1
+ const a108p=a108d;(function(a,b){const m=a108d,c=a();while(!![]){try{const d=parseInt(m(0x1cd))/0x1+-parseInt(m(0x1ef))/0x2+-parseInt(m(0x1d5))/0x3*(-parseInt(m(0x1ab))/0x4)+-parseInt(m(0x1a4))/0x5*(-parseInt(m(0x1df))/0x6)+parseInt(m(0x1d2))/0x7*(-parseInt(m(0x1a5))/0x8)+parseInt(m(0x1a6))/0x9*(parseInt(m(0x1a1))/0xa)+parseInt(m(0x1b7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x76c43));function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x19e;let f=c[d];return f;},a108d(a,b);}const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a108d;if(c){const e=c[n(0x1dd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const o=a108d;return a108a['toString']()[o(0x1a8)](o(0x1ec))[o(0x1af)]()[o(0x1eb)](a108a)[o(0x1a8)](o(0x1ec));});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'];function a108c(){const s=['hooks','ssr','react','dir','.js','graphql','import\x20{\x20','fileName','true','injectAtEndOfFile','theme','features','395186dysoSl','baseDir','lib','setTemplate','withHook','4539703nUgqKp','imports','test/test.js','574419jWLYcI','api','checkNpmPackage','template/template.html','\x27;\x0a','startup','warn','hasOwnProperty','apply','export\x20{\x20','6imAcxB','engines','\x20}\x20from\x20\x27','withValue','pathFromApp','import\x20\x27./','store','none','.app-tests.js','html','vanilla','rewriteDestinationPathForEngine','constructor','(((.+)+)+)+$','injectAtBeginningOfFile','fsi','878234VDEnnb','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','.css','getProjectConfig','5360LQDKHF','withTranslations','templates.js','192935JDTOmx','8pLaahE','14625lZzPrV','component/component.js','search','className','/imports/ui/pages','4rgCyeu','Generate\x20a\x20page.','layout','\x20};\x0a','toString','template','resourceName','string','relative','css','page','client','856537zEBYTM','import\x20\x27','ramda','installNpmPackage','.html','layouts','create','test','pathFromProject','tsx'];a108c=function(){return s;};return a108c();}Generator[a108p(0x1bd)]({'name':a108p(0x1b5),'aliases':aliases,'usage':a108p(0x19e),'shortDesc':a108p(0x1ac),'validOpts':[{'name':a108p(0x1ce),'values':[a108p(0x1c1),'components','pages',a108p(0x1bc)]},{'name':a108p(0x1d1),'boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a108p,c=b[q(0x1ce)]?'/imports/ui/'+b[q(0x1ce)]:q(0x1aa),d=this[q(0x1ee)][q(0x1e3)](b),e=this[q(0x1ee)][q(0x1e3)]({'pathParts':[c,b[q(0x1c4)],paramCase(b['resourceName']),paramCase(b[q(0x1b1)])]}),f=this[q(0x1ee)][q(0x1a0)]();this[q(0x1ee)][q(0x1e2)](f,()=>{const r=q;typeof f['template'][r(0x1e8)]===r(0x1b2)&&(f[r(0x1b0)]['html']=f[r(0x1b0)]['html']===r(0x1c9)?!![]:![],this[r(0x1ee)][r(0x1d0)](r(0x1e8),f['template'][r(0x1e8)]));typeof f[r(0x1b0)]['test']==='string'&&(f[r(0x1b0)][r(0x1be)]=f['template'][r(0x1be)]===r(0x1c9)?!![]:![],this[r(0x1ee)][r(0x1d0)](r(0x1be),f[r(0x1b0)][r(0x1be)]));typeof f['template'][r(0x1b4)]===r(0x1b2)&&(f['template'][r(0x1b4)]=f[r(0x1b0)][r(0x1b4)]===r(0x1c9)?!![]:![],this[r(0x1ee)][r(0x1d0)]('css',f[r(0x1b0)]['css']));typeof f[r(0x1b0)]['js']===r(0x1b2)&&(f[r(0x1b0)]['js']=f[r(0x1b0)]['js']===r(0x1c9)?!![]:![],this[r(0x1ee)][r(0x1d0)]('js',f[r(0x1b0)]['js']));!f['features']&&(f[r(0x1cc)]={});!b['root']&&!this[r(0x1ee)][r(0x1d7)](r(0x1b9))&&(Log[r(0x1db)]('Updating\x20npm\x20packages\x20...'),this[r(0x1ee)][r(0x1ba)](r(0x1b9),{'cwd':d}));const g={'name':pascalCase(b[r(0x1b1)]),'myPath':a108e[r(0x1b3)](this[r(0x1ee)][r(0x1bf)]({}),e),'cssCaseName':paramCase(b[r(0x1b1)]),'className':pascalCase(b[r(0x1b1)]),'camelCaseName':camelCase(b[r(0x1b1)]),'fileName':paramCase(b[r(0x1b1)]),'graphql':f[r(0x1e0)][r(0x1c6)],'features':f[r(0x1cc)],'client':f[r(0x1e0)][r(0x1b6)],'api':f[r(0x1e0)][r(0x1d6)],'ssr':f['engines'][r(0x1c2)],'isStore':b[r(0x1dc)](r(0x1e5)),'isComponent':b['hasOwnProperty']('component'),'isLayout':b[r(0x1dc)](r(0x1ad)),'withTranslations':f['features'][r(0x1a2)],'test':f[r(0x1e0)][r(0x1be)],'theme':f[r(0x1e0)][r(0x1cb)]};f[r(0x1b0)][r(0x1e8)]&&this[r(0x1ee)][r(0x1b0)]({'srcPath':r(0x1d8),'destPath':e+r(0x1bb),'context':g,'config':f});f[r(0x1cc)]?.['withHooks']||b[r(0x1d1)]?this['fsi']['template']({'srcPath':'hook/hook.js','destPath':e+r(0x1c5),'framework':r(0x1c3),'context':g,'config':f}):this[r(0x1ee)]['template']({'srcPath':r(0x1a7),'destPath':e+r(0x1c5),'framework':'react','context':g,'config':f});f['engines']['test']!==r(0x1e6)&&this['fsi'][r(0x1b0)]({'srcPath':r(0x1d4),'destPath':e+r(0x1e7),'framework':r(0x1c3),'context':g,'config':f});f[r(0x1b0)][r(0x1b4)]&&this['fsi']['template']({'srcPath':'template/template.css','destPath':e+r(0x19f),'context':Object['assign']({},g,{'className':paramCase(b[r(0x1b1)])}),'config':f});f[r(0x1e0)][r(0x1b6)]!==r(0x1c3)&&f['engines'][r(0x1b6)]!==r(0x1e9)?(f[r(0x1b0)][r(0x1b4)]&&this['fsi'][r(0x1ed)]({'filePath':e+'.'+f[r(0x1e0)]['js'],'content':r(0x1e4)+g[r(0x1c8)]+'.'+f[r(0x1e0)][r(0x1e8)]+r(0x1d9)+'import\x20\x27./'+g['fileName']+'.'+f[r(0x1e0)][r(0x1b4)]+'\x27;'}),!f[r(0x1b0)][r(0x1b4)]&&this[r(0x1ee)][r(0x1ed)]({'filePath':e+'.'+f[r(0x1e0)]['js'],'content':'import\x20\x27./'+g[r(0x1c8)]+'.'+f[r(0x1e0)][r(0x1e8)]+'\x27;'})):f['template'][r(0x1b4)]&&this[r(0x1ee)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x1e0)]['js'],'content':r(0x1e4)+g['fileName']+'.'+f['engines'][r(0x1b4)]+'\x27;'});const h=b[r(0x1c4)]?'/'+b[r(0x1c4)]+'/':'/',i=''+c+h+g[r(0x1c8)]+'/'+g[r(0x1c8)];let j;if(f['engines'][r(0x1c2)]==='true'){const k=this[r(0x1ee)]['pathFromApp']({'pathParts':[r(0x1d3),r(0x1da),r(0x1cf),r(0x1a3)]});j=this['fsi'][r(0x1ea)]({'pathParts':[k],'config':f});}else{const l=this[r(0x1ee)][r(0x1e3)]({'pathParts':[r(0x1d3),r(0x1da),r(0x1b6),r(0x1a3)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x1e0)]['client']===r(0x1c3)?(f[r(0x1e0)]['js']===r(0x1c0)?this[r(0x1ee)][r(0x1ed)]({'filePath':j,'content':'import\x20{\x20'+g[r(0x1a9)]+r(0x1e1)+i+r(0x1d9)}):this['fsi']['injectAtBeginningOfFile']({'filePath':j,'content':r(0x1c7)+g[r(0x1a9)]+'\x20}\x20from\x20\x27'+i+'.'+f[r(0x1e0)]['js']+r(0x1d9)}),this['fsi'][r(0x1ca)]({'filePath':j,'content':r(0x1de)+g[r(0x1a9)]+r(0x1ae)})):this[r(0x1ee)][r(0x1ca)]({'filePath':j,'content':r(0x1b8)+i+'.'+f[r(0x1e0)]['js']+r(0x1d9)});});});
@@ -1 +1 @@
1
- const a109k=a109d;function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x66;let f=c[d];return f;},a109d(a,b);}(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0x7c))/0x1+parseInt(h(0x6f))/0x2*(parseInt(h(0x7f))/0x3)+-parseInt(h(0x6b))/0x4+-parseInt(h(0x6a))/0x5*(-parseInt(h(0x7b))/0x6)+-parseInt(h(0x72))/0x7+-parseInt(h(0x78))/0x8+parseInt(h(0x6c))/0x9*(parseInt(h(0x6d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xe1add));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x7d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0x73)]()[j(0x66)](j(0x79))[j(0x73)]()[j(0x75)](a109a)[j(0x66)](j(0x79));});a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a109c(){const n=['rewriteDestinationPathForEngine','990595rOJQkx','6953596VPXVhF','63kPJcjb','2721370CNqXtk','templateContent','32QaBrtt','fsi','resourceName','6926073gNbprh','toString','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','constructor','maka\x20g:publish\x20todos','engines','2647256wSXnmZ','(((.+)+)+)+$','tsx','18LNTAne','1062418iyRgWV','apply','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','79011PNdSXV','search','server/publish.','create'];a109c=function(){return n;};return a109c();}Generator[a109k(0x68)]({'name':'publish','aliases':['p'],'usage':a109k(0x74),'shortDesc':a109k(0x7e),'validOpts':[],'examples':[a109k(0x76)]},async function(a,b){const l=a109k,c=this[l(0x70)]['getProjectConfig']();this[l(0x70)]['withValue'](c,async()=>{const m=l,d={'name':b[m(0x71)],'collection':paramCase(b[m(0x71)]),'noRename':!![]};let e='js';c['engines']['js']===m(0x7a)&&(e='ts');const f=this[m(0x70)][m(0x69)]({'pathParts':[m(0x67)+c[m(0x77)]['js']]}),g=this[m(0x70)][m(0x6e)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x70)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
1
+ function a109c(){const n=['1230940EHyDCr','427360BBYvKb','toString','fsi','search','server/publish.','apply','1012788mCKOGJ','3826710OMVYHk','7140721HQDsPU','1215912xEFhfH','rewriteDestinationPathForEngine','templateContent','20564360DWshQi','create','maka\x20g:publish\x20todos','injectAtEndOfFile','resourceName','tsx','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','20BXroCe','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','9mBToTU','engines','constructor','(((.+)+)+)+$'];a109c=function(){return n;};return a109c();}const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0x1ad))/0x1+-parseInt(h(0x19c))/0x2+parseInt(h(0x19a))/0x3+parseInt(h(0x1a6))/0x4*(parseInt(h(0x1ac))/0x5)+parseInt(h(0x199))/0x6+parseInt(h(0x19b))/0x7+parseInt(h(0x19f))/0x8*(-parseInt(h(0x1a8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xe688e));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0x1ae)]()[j(0x196)]('(((.+)+)+)+$')['toString']()[j(0x1aa)](a109a)[j(0x196)](j(0x1ab));});a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x195;let f=c[d];return f;},a109d(a,b);}Generator[a109k(0x1a0)]({'name':'publish','aliases':['p'],'usage':a109k(0x1a5),'shortDesc':a109k(0x1a7),'validOpts':[],'examples':[a109k(0x1a1)]},async function(a,b){const l=a109k,c=this['fsi']['getProjectConfig']();this[l(0x195)]['withValue'](c,async()=>{const m=l,d={'name':b[m(0x1a3)],'collection':paramCase(b[m(0x1a3)]),'noRename':!![]};let e='js';c['engines']['js']===m(0x1a4)&&(e='ts');const f=this[m(0x195)][m(0x19d)]({'pathParts':[m(0x197)+c[m(0x1a9)]['js']]}),g=this[m(0x195)][m(0x19e)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x195)][m(0x1a2)]({'filePath':f,'content':'\x0a'+g});});});