@maka/maka-cli 4.5.27 → 4.5.29

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 (139) hide show
  1. package/.eslintrc.json +2 -1
  2. package/bundle/obf/package.json +24 -22
  3. package/bundle/obf/src/command.js +1 -1
  4. package/bundle/obf/src/commands/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -0
  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 -0
  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/jsdoc.js +1 -1
  73. package/bundle/obf/src/commands/lint.js +1 -1
  74. package/bundle/obf/src/commands/login.js +1 -1
  75. package/bundle/obf/src/commands/logout.js +1 -1
  76. package/bundle/obf/src/commands/logs.js +1 -1
  77. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  78. package/bundle/obf/src/commands/murder.js +1 -1
  79. package/bundle/obf/src/commands/proxy.js +1 -1
  80. package/bundle/obf/src/commands/reconfig.js +1 -1
  81. package/bundle/obf/src/commands/run/_index.js +1 -1
  82. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  83. package/bundle/obf/src/commands/run/run.command.js +1 -1
  84. package/bundle/obf/src/commands/set/_index.js +1 -1
  85. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/set.command.js +1 -1
  88. package/bundle/obf/src/commands/ssh.js +1 -1
  89. package/bundle/obf/src/commands/ssl.js +1 -1
  90. package/bundle/obf/src/commands/test.js +1 -1
  91. package/bundle/obf/src/commands/version.js +1 -1
  92. package/bundle/obf/src/error.js +1 -1
  93. package/bundle/obf/src/exec.js +1 -1
  94. package/bundle/obf/src/generator.js +1 -1
  95. package/bundle/obf/src/generators/_index.js +1 -1
  96. package/bundle/obf/src/generators/api.js +1 -1
  97. package/bundle/obf/src/generators/collection.js +1 -1
  98. package/bundle/obf/src/generators/component.js +1 -1
  99. package/bundle/obf/src/generators/config.js +1 -1
  100. package/bundle/obf/src/generators/dbc.js +1 -1
  101. package/bundle/obf/src/generators/dockerfile.js +1 -1
  102. package/bundle/obf/src/generators/hook.js +1 -1
  103. package/bundle/obf/src/generators/kit.js +1 -1
  104. package/bundle/obf/src/generators/layout.js +1 -1
  105. package/bundle/obf/src/generators/maka.gen.js +1 -1
  106. package/bundle/obf/src/generators/methods.js +1 -1
  107. package/bundle/obf/src/generators/package.js +1 -1
  108. package/bundle/obf/src/generators/page.js +1 -1
  109. package/bundle/obf/src/generators/publish.js +1 -1
  110. package/bundle/obf/src/generators/route.js +1 -1
  111. package/bundle/obf/src/generators/service.js +1 -1
  112. package/bundle/obf/src/generators/services/_index.js +1 -1
  113. package/bundle/obf/src/generators/services/openssl.js +1 -1
  114. package/bundle/obf/src/generators/services/translation.js +1 -1
  115. package/bundle/obf/src/maka.js +1 -1
  116. package/bundle/obf/src/templates/meteor/template/template.css.scss +3 -0
  117. package/bundle/obf/src/templates/react/component/component.css.scss +3 -0
  118. package/bundle/obf/src/templates/react/hook/hook.css +3 -0
  119. package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -0
  120. package/bundle/obf/src/templates/react/hook/hook.js.jsx +1 -1
  121. package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -1
  122. package/bundle/obf/src/tool.js +1 -1
  123. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  124. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  125. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  126. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  127. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  129. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/https/https.class.js +1 -1
  131. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  132. package/bundle/obf/src/tools/log/log.class.js +1 -1
  133. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  134. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  135. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  136. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  137. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  138. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  139. package/package.json +24 -22
@@ -1 +1 @@
1
- const a92z=a92d;(function(a,b){const w=a92d,c=a();while(!![]){try{const d=-parseInt(w(0x19c))/0x1*(parseInt(w(0x1ba))/0x2)+parseInt(w(0x19f))/0x3*(-parseInt(w(0x18c))/0x4)+-parseInt(w(0x18f))/0x5+-parseInt(w(0x194))/0x6*(parseInt(w(0x1b6))/0x7)+-parseInt(w(0x1a9))/0x8*(-parseInt(w(0x17a))/0x9)+-parseInt(w(0x178))/0xa+parseInt(w(0x169))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x61028));const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a92d;if(c){const e=c[x(0x1a2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const y=a92d;return a92a[y(0x186)]()['search'](y(0x173))[y(0x186)]()[y(0x180)](a92a)[y(0x1a7)]('(((.+)+)+)+$');});a92a();import{Generator}from'../generator.js';function a92c(){const C=['Resolvers\x20}\x20from\x20\x27','findGenerator','56afSNfC','dir','installMeteorPackage','513675NWjfQy','REST\x20API','includes','if\x20\x5c(typeList','injectIntoFile','6SEZyVB','create','template','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','test','invoke','import\x20\x27./register-','maka\x20{generate,\x20g}:{api}\x20<resource-name>','374KuzzBY','length','injectAtBeginningOfFile','9762EVRHxC','server','imports','apply','.app-tests.','rpc-methods.','graphql','api/register-api.js','search','No\x20API\x20boundaries\x20selected','1915280DrzUwh','api/tests.js','withFixtures','const','checkMeteorPackage','maka\x20g:api\x20todos','withGql','none','mdg:validated-method','api','api/typeDefs.js','notice','fsi','1675520wzHuep','typeDefs.','pathFromApp','rest','2796CVwFbs','injectAtEndOfFile','getProjectConfig','withRest','log','api/methods.js','13272699FgsaFY','tsx','Fixtures','Verifying\x20meteor\x20package\x20requirements\x20...','options','apollo','api/api.js','index.','push','typeList.push(','(((.+)+)+)+$','withMethods','\x27;\x0a','exit','apiAnswers','1381640InXCPF','-api\x27;','9MIryDe','mongo','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','TypeDefs\x20}\x20from\x20\x27','withPubs','resolvers.','constructor','rest-api.','/imports/api','Resolvers);\x0a\x0a','TypeDefs);\x0a','error','toString','register-','startup','engines'];a92c=function(){return C;};return a92c();}import{Log}from'../tools/log/log.class.js';function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x165;let f=c[d];return f;},a92d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a92e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a92z(0x195)]({'name':a92z(0x1b2),'aliases':['a'],'usage':a92z(0x19b),'shortDesc':a92z(0x17c),'validOpts':[a92z(0x18d)],'examples':[a92z(0x1ae)]},async function(a,b){const A=a92z;try{const c=this[A(0x1b5)][A(0x165)](),d=[{'name':'RPC\x20(Methods)','value':A(0x174)},{'name':A(0x16b),'value':'withFixtures'},{'name':'Publications','value':A(0x17e)}];c[A(0x189)][A(0x1b2)]===A(0x1b9)&&d[A(0x171)]({'name':A(0x190),'value':'withRest'});c['engines'][A(0x1a5)]===A(0x16e)&&d['push']({'name':'GraphQL','value':A(0x1af)});const f={'type':'checkbox','name':A(0x177),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x16d)](f);g[A(0x19d)]===0x0&&(Log[A(0x185)](A(0x1a8)),process[A(0x176)](0x1)),this[A(0x1b5)]['withValue'](c,async()=>{const B=A,h=this['fsi']['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x18d)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x189)][B(0x1b2)],'graphql':c[B(0x189)]['graphql'],'test':c[B(0x189)][B(0x198)],'noRename':!![],'withPubs':g[B(0x191)](B(0x17e)),'withFixtures':g['includes'](B(0x1ab)),'withMethods':g[B(0x191)](B(0x174)),'withRest':g[B(0x191)](B(0x166))};let n='js';c['engines']['js']===B(0x16a)&&(n='ts');(!this['fsi']['checkMeteorPackage']('maka:rest')||!this['fsi'][B(0x1ad)]('maka:check')||!this['fsi'][B(0x1ad)]('ddp-rate-limiter')||!this[B(0x1b5)][B(0x1ad)](B(0x1b1))||!this[B(0x1b5)][B(0x1ad)](B(0x17b)))&&(Log[B(0x1b4)](B(0x16c)),await this[B(0x1b5)][B(0x18e)](B(0x197),{'cwd':h}));const o=a92e[B(0x18b)]('collection');o&&await o[B(0x199)]([j],{'config':c,'where':B(0x1a0)});c[B(0x189)][B(0x1b2)]===B(0x1b9)&&(m[B(0x166)]&&this[B(0x1b5)][B(0x196)]({'srcPath':B(0x16f),'destPath':this[B(0x1b5)]['pathFromApp']({'pathParts':[B(0x1a1),'api',b[B(0x18d)],j,B(0x181)+n]}),'context':m,'config':c}));m['withMethods']&&this[B(0x1b5)][B(0x196)]({'srcPath':B(0x168),'destPath':this[B(0x1b5)]['pathFromApp']({'pathParts':['imports',B(0x1b2),b[B(0x18d)],j,B(0x1a4)+n]}),'context':m,'config':c});m[B(0x1ab)]&&this['fsi'][B(0x196)]({'srcPath':'api/fixtures.js','destPath':this[B(0x1b5)][B(0x1b8)]({'pathParts':[B(0x1a1),B(0x1b2),b['dir'],j,'fixtures.'+n]}),'context':m,'config':c});c['engines'][B(0x198)]!==B(0x1b0)&&this[B(0x1b5)][B(0x196)]({'srcPath':B(0x1aa),'destPath':this[B(0x1b5)][B(0x1b8)]({'pathParts':[B(0x1a1),'api',b[B(0x18d)],j,j+B(0x1a3)+n]}),'context':m,'config':c});m[B(0x17e)]&&this[B(0x1b5)][B(0x196)]({'srcPath':'api/publications.js','destPath':this[B(0x1b5)]['pathFromApp']({'pathParts':[B(0x1a1),B(0x1b2),b[B(0x18d)],j,'publications.'+n]}),'context':m,'config':c});if(c[B(0x189)][B(0x1a5)]===B(0x16e)){if(g[B(0x191)](B(0x1af))){const q=this['fsi']['pathFromApp']({'pathParts':[B(0x1a1),'startup',B(0x1a0),B(0x170)+c[B(0x189)]['js']]}),r=this[B(0x1b5)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[B(0x1b5)][B(0x1b8)]({'pathParts':['imports',B(0x1b2),b[B(0x18d)],j,B(0x1a5),B(0x1b7)+n]}),t=B(0x182)+l+j+'/graphql/typeDefs';this[B(0x1b5)][B(0x196)]({'srcPath':B(0x1b3),'destPath':s,'context':m,'config':c}),this['fsi'][B(0x19e)]({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+B(0x17d)+t+B(0x175)}),this['fsi'][B(0x193)]({'filePath':r,'content':B(0x172)+k+B(0x184),'begin':B(0x1ac),'end':B(0x192)});const u=this[B(0x1b5)][B(0x1b8)]({'pathParts':['imports',B(0x1b2),b[B(0x18d)],j,'graphql',B(0x17f)+n]}),v=B(0x182)+l+j+'/graphql/resolvers';this['fsi'][B(0x196)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x1b5)][B(0x19e)]({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+B(0x18a)+v+'\x27;'}),this[B(0x1b5)][B(0x193)]({'filePath':r,'content':'resolverList.push('+k+B(0x183),'begin':B(0x1ac),'end':B(0x192)});}}this['fsi'][B(0x196)]({'srcPath':B(0x1a6),'destPath':this[B(0x1b5)]['pathFromApp']({'pathParts':[B(0x1a1),'startup',B(0x1a0),B(0x187)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1b5)]['pathFromApp']({'pathParts':[B(0x1a1),B(0x188),'server',B(0x170)+c[B(0x189)]['js']]});this[B(0x1b5)][B(0x1bb)]({'filePath':p,'content':B(0x19a)+j+B(0x179)});});}catch(h){console[A(0x167)](h),process[A(0x176)](0x0);}});
1
+ const a94z=a94d;(function(a,b){const w=a94d,c=a();while(!![]){try{const d=parseInt(w(0x193))/0x1*(parseInt(w(0x1a3))/0x2)+-parseInt(w(0x185))/0x3+-parseInt(w(0x178))/0x4*(parseInt(w(0x176))/0x5)+parseInt(w(0x1a7))/0x6*(-parseInt(w(0x164))/0x7)+-parseInt(w(0x18f))/0x8+-parseInt(w(0x1a5))/0x9+parseInt(w(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x8c14b));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a94d;if(c){const e=c[x(0x15c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const y=a94d;return a94a[y(0x175)]()[y(0x1af)]('(((.+)+)+)+$')[y(0x175)]()[y(0x1a6)](a94a)['search'](y(0x186));});a94a();import{Generator}from'../generator.js';function a94c(){const C=['No\x20API\x20boundaries\x20selected','api/resolvers.js','if\x20\x5c(typeList','2448486oZtRvH','(((.+)+)+)+$','checkbox','server','apollo','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','pathFromApp','\x0aimport\x20{\x20resolvers\x20as\x20','injectIntoFile','injectAtEndOfFile','4981240utDNro','import\x20\x27./register-','maka\x20g:api\x20todos','length','7zJJQQj','template','Publications','/imports/api','test','options','typeDefs.','ddp-rate-limiter','apiAnswers','startup','withFixtures','exit','const','rest','includes','api','230158ovxbKB','api/tests.js','2232135Xwvcvm','constructor','12eQZLYV','tsx','withRest','injectAtBeginningOfFile','resolvers.','TypeDefs\x20}\x20from\x20\x27','register-','GraphQL','search','mongo','/graphql/typeDefs','fixtures.','installMeteorPackage','API\x20boundaries\x20to\x20create','apply','imports','Fixtures','withGql','api/typeDefs.js','dir','typeList.push(','publications.','327138cNHXqO','api/api.js','TypeDefs);\x0a','engines','import\x20{\x20typeDefs\x20as\x20','rewriteDestinationPathForEngine','withMethods','graphql','resolverList.push(','index.','rpc-methods.','withValue','21964830GaoNbV','REST\x20API','push','RPC\x20(Methods)','checkMeteorPackage','toString','5nTytTw','api/publications.js','2591860JPUXDX','.app-tests.','api/methods.js','withPubs','none','fsi','maka\x20{generate,\x20g}:{api}\x20<resource-name>','rest-api.','maka:check','mdg:validated-method'];a94c=function(){return C;};return a94c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a94e from'../generators/maka.gen.js';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x159;let f=c[d];return f;},a94d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'api','aliases':['a'],'usage':a94z(0x17e),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a94z(0x161)],'examples':[a94z(0x191)]},async function(a,b){const A=a94z;try{const c=this[A(0x17d)]['getProjectConfig'](),d=[{'name':A(0x173),'value':A(0x16a)},{'name':A(0x15e),'value':A(0x19d)},{'name':A(0x195),'value':A(0x17b)}];c[A(0x167)][A(0x1a2)]===A(0x1a0)&&d[A(0x172)]({'name':A(0x171),'value':A(0x1a9)});c[A(0x167)][A(0x16b)]===A(0x189)&&d[A(0x172)]({'name':A(0x1ae),'value':A(0x15f)});const f={'type':A(0x187),'name':A(0x19b),'message':A(0x15b),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x198)](f);g[A(0x192)]===0x0&&(Log['error'](A(0x182)),process[A(0x19e)](0x1)),this[A(0x17d)][A(0x16f)](c,async()=>{const B=A,h=this[B(0x17d)][B(0x18b)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x161)]?'/'+b[B(0x161)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x167)][B(0x1a2)],'graphql':c[B(0x167)][B(0x16b)],'test':c[B(0x167)][B(0x197)],'noRename':!![],'withPubs':g[B(0x1a1)]('withPubs'),'withFixtures':g[B(0x1a1)](B(0x19d)),'withMethods':g[B(0x1a1)](B(0x16a)),'withRest':g[B(0x1a1)]('withRest')};let n='js';c[B(0x167)]['js']===B(0x1a8)&&(n='ts');(!this['fsi'][B(0x174)]('maka:rest')||!this[B(0x17d)][B(0x174)](B(0x180))||!this['fsi']['checkMeteorPackage'](B(0x19a))||!this['fsi']['checkMeteorPackage'](B(0x181))||!this[B(0x17d)][B(0x174)](B(0x1b0)))&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements\x20...'),await this[B(0x17d)][B(0x15a)](B(0x18a),{'cwd':h}));const o=a94e['findGenerator']('collection');o&&await o['invoke']([j],{'config':c,'where':'server'});c[B(0x167)][B(0x1a2)]===B(0x1a0)&&(m['withRest']&&this['fsi'][B(0x194)]({'srcPath':B(0x165),'destPath':this[B(0x17d)][B(0x18b)]({'pathParts':[B(0x15d),'api',b[B(0x161)],j,B(0x17f)+n]}),'context':m,'config':c}));m[B(0x16a)]&&this[B(0x17d)][B(0x194)]({'srcPath':B(0x17a),'destPath':this[B(0x17d)]['pathFromApp']({'pathParts':['imports',B(0x1a2),b[B(0x161)],j,B(0x16e)+n]}),'context':m,'config':c});m['withFixtures']&&this['fsi'][B(0x194)]({'srcPath':'api/fixtures.js','destPath':this['fsi'][B(0x18b)]({'pathParts':[B(0x15d),B(0x1a2),b['dir'],j,B(0x159)+n]}),'context':m,'config':c});c[B(0x167)][B(0x197)]!==B(0x17c)&&this['fsi'][B(0x194)]({'srcPath':B(0x1a4),'destPath':this[B(0x17d)][B(0x18b)]({'pathParts':[B(0x15d),'api',b[B(0x161)],j,j+B(0x179)+n]}),'context':m,'config':c});m['withPubs']&&this['fsi'][B(0x194)]({'srcPath':B(0x177),'destPath':this[B(0x17d)]['pathFromApp']({'pathParts':['imports','api',b[B(0x161)],j,B(0x163)+n]}),'context':m,'config':c});if(c['engines']['graphql']===B(0x189)){if(g['includes'](B(0x15f))){const q=this[B(0x17d)]['pathFromApp']({'pathParts':[B(0x15d),B(0x19c),'server',B(0x16d)+c['engines']['js']]}),r=this[B(0x17d)][B(0x169)]({'pathParts':[q],'config':c}),s=this[B(0x17d)][B(0x18b)]({'pathParts':[B(0x15d),'api',b[B(0x161)],j,B(0x16b),B(0x199)+n]}),t='/imports/api'+l+j+B(0x1b1);this[B(0x17d)]['template']({'srcPath':B(0x160),'destPath':s,'context':m,'config':c}),this[B(0x17d)][B(0x1aa)]({'filePath':r,'content':B(0x168)+k+B(0x1ac)+t+'\x27;\x0a'}),this[B(0x17d)]['injectIntoFile']({'filePath':r,'content':B(0x162)+k+B(0x166),'begin':'const','end':B(0x184)});const u=this[B(0x17d)][B(0x18b)]({'pathParts':['imports',B(0x1a2),b[B(0x161)],j,B(0x16b),B(0x1ab)+n]}),v=B(0x196)+l+j+'/graphql/resolvers';this['fsi'][B(0x194)]({'srcPath':B(0x183),'destPath':u,'context':m,'config':c}),this[B(0x17d)][B(0x1aa)]({'filePath':r,'content':B(0x18c)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[B(0x17d)][B(0x18d)]({'filePath':r,'content':B(0x16c)+k+'Resolvers);\x0a\x0a','begin':B(0x19f),'end':B(0x184)});}}this[B(0x17d)][B(0x194)]({'srcPath':'api/register-api.js','destPath':this[B(0x17d)][B(0x18b)]({'pathParts':['imports',B(0x19c),B(0x188),B(0x1ad)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x17d)]['pathFromApp']({'pathParts':[B(0x15d),'startup',B(0x188),B(0x16d)+c[B(0x167)]['js']]});this[B(0x17d)][B(0x18e)]({'filePath':p,'content':B(0x190)+j+'-api\x27;'});});}catch(h){console['log'](h),process[A(0x19e)](0x0);}});
@@ -1 +1 @@
1
- const a93n=a93d;(function(a,b){const k=a93d,c=a();while(!![]){try{const d=-parseInt(k(0x196))/0x1+-parseInt(k(0x180))/0x2+-parseInt(k(0x192))/0x3*(-parseInt(k(0x184))/0x4)+parseInt(k(0x199))/0x5*(parseInt(k(0x185))/0x6)+-parseInt(k(0x1a1))/0x7+-parseInt(k(0x18d))/0x8*(-parseInt(k(0x1a5))/0x9)+-parseInt(k(0x198))/0xa*(-parseInt(k(0x189))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x48aeb));function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x17c;let f=c[d];return f;},a93d(a,b);}const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a93d;if(c){const e=c[l(0x1a3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const m=a93d;return a93a[m(0x1aa)]()[m(0x191)](m(0x182))[m(0x1aa)]()[m(0x1a6)](a93a)[m(0x191)]('(((.+)+)+)+$');});a93a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a93n(0x187),'aliases':['col'],'usage':a93n(0x19b),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a93n(0x18f),'where'],'description':a93n(0x1a8),'examples':[a93n(0x186)]},async function(a,b){const o=a93n;try{const c=this[o(0x19d)][o(0x183)]({}),d=this[o(0x19d)][o(0x190)]();this[o(0x19d)][o(0x18b)](d,async()=>{const p=o,f=paramCase(b[p(0x195)]),g={'name':pascalCase(b[p(0x195)]),'collectionName':pascalCase(b[p(0x195)]),'fileName':f,'where':b[p(0x19e)],'test':d[p(0x18e)][p(0x181)],'noRename':!![]};let h='js';d[p(0x18e)]['js']===p(0x17d)&&(h='ts');!this[p(0x19d)][p(0x1a9)](p(0x19f))&&(Log[p(0x194)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this['fsi'][p(0x17e)]('mongo',{'cwd':c}));!this[p(0x19d)][p(0x1a9)](p(0x1a2))&&(Log[p(0x194)](p(0x19a)),await this['fsi'][p(0x17e)]('maka:check',{'cwd':c}));this[p(0x19d)][p(0x18a)]({'srcPath':'collection/collection.js','destPath':this[p(0x19d)][p(0x183)]({'pathParts':['imports',p(0x193),b['appPathPrefix'],p(0x19c),b[p(0x18f)],f+'.'+h]}),'context':g,'config':d});d[p(0x18e)][p(0x181)]!==p(0x197)&&this[p(0x19d)]['template']({'srcPath':p(0x18c),'destPath':this[p(0x19d)][p(0x183)]({'pathParts':[p(0x17c),'startup',b['appPathPrefix'],p(0x19c),b[p(0x18f)],f+p(0x17f)+h]}),'context':g,'config':d});const i=b[p(0x18f)]?'/'+b[p(0x18f)]+'/':'/',j=this['fsi'][p(0x183)]({'pathParts':[p(0x17c),p(0x193),b[p(0x188)],'index.'+d[p(0x18e)]['js']]});this['fsi'][p(0x1a4)]({'filePath':j,'content':p(0x1a0)+i+f+'\x27;'});});}catch(f){Log[o(0x1a7)](f);}});function a93c(){const q=['7868090qBCMwk','50EQpAZo','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','collections','fsi','where','mongo','import\x20\x27./collections','3093636KKEUpC','maka:check','apply','injectAtEndOfFile','18EnSAau','constructor','error','\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','checkMeteorPackage','toString','imports','tsx','installMeteorPackage','.app-tests.','924122slXgmk','test','(((.+)+)+)+$','pathFromApp','2164VFNOIJ','16506veifNW','maka\x20g:collection\x20todos','collection','appPathPrefix','22pfTVpr','template','withValue','collection/tests.js','275864uIasdf','engines','dir','getProjectConfig','search','48BUPChI','startup','notice','resourceName','477034GEpGyr','none'];a93c=function(){return q;};return a93c();}
1
+ const a95n=a95d;(function(a,b){const k=a95d,c=a();while(!![]){try{const d=-parseInt(k(0xd1))/0x1+parseInt(k(0xd4))/0x2+parseInt(k(0xe2))/0x3+parseInt(k(0xc2))/0x4*(parseInt(k(0xd5))/0x5)+parseInt(k(0xcd))/0x6*(-parseInt(k(0xba))/0x7)+-parseInt(k(0xb6))/0x8+-parseInt(k(0xbc))/0x9*(-parseInt(k(0xd2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x5b316));function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xb5;let f=c[d];return f;},a95d(a,b);}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a95d;if(c){const e=c[l(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const m=a95d;return a95a[m(0xcc)]()[m(0xd8)](m(0xb5))[m(0xcc)]()[m(0xe1)](a95a)[m(0xd8)](m(0xb5));});a95a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a95c(){const q=['mongo','col','notice','appPathPrefix','engines','index.','none','template','withValue','toString','66LJWzmk','dir','create','pathFromApp','526478ozDejF','50IbpwfW','\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','412920WpkLtH','5QLchzz','checkMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','search','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','collection','resourceName','error','collections','installMeteorPackage','collection/tests.js','where','constructor','1435734FmAQSj','(((.+)+)+)+$','1634584QoNaTa','imports','import\x20\x27./collections','fsi','91161YZMDyZ','apply','73971JlACoG','getProjectConfig','startup','maka:check','test','maka\x20g:collection\x20todos','2085788NBzzdU'];a95c=function(){return q;};return a95c();}Generator[a95n(0xcf)]({'name':a95n(0xda),'aliases':[a95n(0xc4)],'usage':a95n(0xd9),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':['dir',a95n(0xe0)],'description':a95n(0xd3),'examples':[a95n(0xc1)]},async function(a,b){const o=a95n;try{const c=this[o(0xb9)][o(0xd0)]({}),d=this[o(0xb9)][o(0xbd)]();this[o(0xb9)][o(0xcb)](d,async()=>{const p=o,f=paramCase(b[p(0xdb)]),g={'name':pascalCase(b[p(0xdb)]),'collectionName':pascalCase(b[p(0xdb)]),'fileName':f,'where':b['where'],'test':d[p(0xc7)][p(0xc0)],'noRename':!![]};let h='js';d[p(0xc7)]['js']==='tsx'&&(h='ts');!this[p(0xb9)][p(0xd6)](p(0xc3))&&(Log[p(0xc5)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this['fsi'][p(0xde)](p(0xc3),{'cwd':c}));!this['fsi'][p(0xd6)](p(0xbf))&&(Log[p(0xc5)](p(0xd7)),await this[p(0xb9)][p(0xde)](p(0xbf),{'cwd':c}));this[p(0xb9)][p(0xca)]({'srcPath':'collection/collection.js','destPath':this[p(0xb9)][p(0xd0)]({'pathParts':['imports',p(0xbe),b['appPathPrefix'],p(0xdd),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0xc7)][p(0xc0)]!==p(0xc9)&&this[p(0xb9)][p(0xca)]({'srcPath':p(0xdf),'destPath':this[p(0xb9)]['pathFromApp']({'pathParts':[p(0xb7),p(0xbe),b['appPathPrefix'],p(0xdd),b[p(0xce)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b[p(0xce)]?'/'+b[p(0xce)]+'/':'/',j=this[p(0xb9)][p(0xd0)]({'pathParts':[p(0xb7),'startup',b[p(0xc6)],p(0xc8)+d[p(0xc7)]['js']]});this[p(0xb9)]['injectAtEndOfFile']({'filePath':j,'content':p(0xb8)+i+f+'\x27;'});});}catch(f){Log[o(0xdc)](f);}});
@@ -1 +1 @@
1
- const a94q=a94d;function a94c(){const t=['fsi','64430XvQBQw','checkNpmPackage','import\x20{\x20','withValue','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','theme','45mcfRnA','32XtRVTy','5bqYJyp','lib','import\x20\x27./','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','950378NkgAom','startup','test','3wcERDY','pathFromApp','toString','3933980DlVOwX','pathFromProject','2526618fGJjpd','(((.+)+)+)+$','getProjectConfig','string','comp','create','component/component.js','tsx','cssCaseName','findAppDirectory','reflux','export\x20{\x20','installNpmPackage','constructor','\x20};\x0a','4lncMmv','className','templates.js','error','/imports/ui/components','relative','apply','9093936XEILdy','\x27;\x0a','engines','test/test.js','fileName','dir','.js','imports','client','template','ramda','ssr','resourceName','575668jocMPE','setTemplate','react','template/template.css','\x20}\x20from\x20\x27','injectAtBeginningOfFile','features','search','1539860nPSUUh','css','root','injectAtEndOfFile','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','true'];a94c=function(){return t;};return a94c();}(function(a,b){const n=a94d,c=a();while(!![]){try{const d=parseInt(n(0x1e1))/0x1*(parseInt(n(0x1af))/0x2)+parseInt(n(0x1cd))/0x3*(-parseInt(n(0x1d0))/0x4)+parseInt(n(0x1c6))/0x5*(parseInt(n(0x1d2))/0x6)+parseInt(n(0x1b7))/0x7*(-parseInt(n(0x1c5))/0x8)+parseInt(n(0x1c4))/0x9*(parseInt(n(0x1be))/0xa)+parseInt(n(0x1ca))/0xb+parseInt(n(0x1a2))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x8eef9));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a94d;if(c){const e=c[o(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const p=a94d;return a94a[p(0x1cf)]()['search'](p(0x1d3))[p(0x1cf)]()[p(0x1df)](a94a)[p(0x1b6)](p(0x1d3));});a94a();import a94e from'path';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x19d;let f=c[d];return f;},a94d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a94q(0x1d6)];Generator[a94q(0x1d7)]({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a94q(0x1c9),'validOpts':[a94q(0x1a7)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a94q;try{const c=this['fsi'][r(0x1db)](),d=r(0x19f),f=this['fsi'][r(0x1ce)]({'pathParts':[d,b['dir'],paramCase(b['resourceName']),paramCase(b[r(0x1ae)])]}),g=await this['fsi'][r(0x1d4)]();this[r(0x1bd)][r(0x1c1)](g,async()=>{const s=r;typeof g[s(0x1ab)][s(0x1cc)]===s(0x1d5)&&(g[s(0x1ab)]['test']=g['template'][s(0x1cc)]===s(0x1bc)?!![]:![],this[s(0x1bd)]['setTemplate'](s(0x1cc),g[s(0x1ab)][s(0x1cc)]));typeof g['template'][s(0x1b8)]===s(0x1d5)&&(g[s(0x1ab)][s(0x1b8)]=g[s(0x1ab)][s(0x1b8)]===s(0x1bc)?!![]:![],this['fsi'][s(0x1b0)](s(0x1b8),g[s(0x1ab)][s(0x1b8)]));typeof g[s(0x1ab)]['js']===s(0x1d5)&&(g['template']['js']=g['template']['js']==='true'?!![]:![],this[s(0x1bd)][s(0x1b0)]('js',g[s(0x1ab)]['js']));!g[s(0x1b5)]&&(g[s(0x1b5)]={});!b[s(0x1b9)]&&!this['fsi']['checkNpmPackage'](s(0x1ac))&&(Log['warn'](s(0x1bb)),await this[s(0x1bd)][s(0x1de)](s(0x1ac),{'cwd':c}));if(!b[s(0x1b9)]&&!this[s(0x1bd)][s(0x1bf)](s(0x1b1))){Log['error'](s(0x1c2));return;}const h={'name':pascalCase(b[s(0x1ae)]),'myPath':a94e[s(0x1a0)](this[s(0x1bd)][s(0x1d1)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[s(0x1ae)]),'camelCaseName':camelCase(b[s(0x1ae)]),'fileName':paramCase(b[s(0x1ae)]),'graphql':g[s(0x1a4)]['graphql'],'features':g[s(0x1b5)],'client':g['engines'][s(0x1aa)],'api':g[s(0x1a4)]['api'],'ssr':g[s(0x1a4)]['ssr'],'test':g[s(0x1a4)][s(0x1cc)],'theme':g[s(0x1a4)][s(0x1c3)],'isLayout':![],'isComponent':!![],'withTranslations':g['features']['withTranslations']};this[s(0x1bd)][s(0x1ab)]({'srcPath':s(0x1d8),'destPath':f+s(0x1a8),'context':h,'framework':s(0x1b1),'config':g});g['engines'][s(0x1cc)]!=='none'&&this['fsi'][s(0x1ab)]({'srcPath':s(0x1a5),'destPath':f+'.tests.js','context':h,'framework':s(0x1b1),'config':g});g[s(0x1ab)][s(0x1b8)]&&(this[s(0x1bd)][s(0x1ab)]({'srcPath':s(0x1b2),'destPath':f+'.css','context':Object['assign']({},h,{'className':paramCase(b[s(0x1ae)])}),'config':g}),this['fsi']['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x1a4)]['js'],'content':s(0x1c8)+h[s(0x1da)]+'.'+g[s(0x1a4)][s(0x1b8)]+'\x27;'}));const i=b[s(0x1a7)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x1a6)]+'/'+h['fileName'];let k;if(g['engines'][s(0x1ad)]==='true'){const l=this[s(0x1bd)][s(0x1ce)]({'pathParts':[s(0x1a9),s(0x1cb),s(0x1c7),s(0x19d)]});k=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x1bd)][s(0x1ce)]({'pathParts':['imports',s(0x1cb),'client',s(0x19d)]});k=this[s(0x1bd)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g[s(0x1a4)][s(0x1aa)]===s(0x1b1)||g[s(0x1a4)]['client']===s(0x1dc)?(g[s(0x1a4)]['js']===s(0x1d9)?this[s(0x1bd)][s(0x1b4)]({'filePath':k,'content':s(0x1c0)+h[s(0x1e2)]+s(0x1b3)+j+s(0x1a3)}):this[s(0x1bd)][s(0x1b4)]({'filePath':k,'content':s(0x1c0)+h[s(0x1e2)]+s(0x1b3)+j+'.'+g['engines']['js']+s(0x1a3)}),this[s(0x1bd)]['injectAtEndOfFile']({'filePath':k,'content':s(0x1dd)+h[s(0x1e2)]+s(0x1e0)})):this[s(0x1bd)][s(0x1ba)]({'filePath':k,'content':'import\x20\x27'+j+'.'+g[s(0x1a4)]['js']+'\x27;\x0a'});});}catch(h){Log[r(0x19e)](h);}});
1
+ const a96r=a96d;(function(a,b){const o=a96d,c=a();while(!![]){try{const d=-parseInt(o(0x12a))/0x1*(-parseInt(o(0x13b))/0x2)+-parseInt(o(0x147))/0x3+-parseInt(o(0x116))/0x4*(parseInt(o(0x112))/0x5)+-parseInt(o(0x126))/0x6*(-parseInt(o(0x144))/0x7)+-parseInt(o(0x12b))/0x8*(-parseInt(o(0x148))/0x9)+-parseInt(o(0x11a))/0xa*(parseInt(o(0x10b))/0xb)+parseInt(o(0x111))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x5b7ad));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a96d;if(c){const e=c[p(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const q=a96d;return a96a['toString']()[q(0x151)](q(0x12e))[q(0x136)]()[q(0x108)](a96a)['search'](q(0x12e));});a96a();import a96e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x104;let f=c[d];return f;},a96d(a,b);}const aliases=[a96r(0x11c)];Generator[a96r(0x135)]({'name':a96r(0x133),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a96r(0x13c),'validOpts':[a96r(0x118)],'examples':[a96r(0x128)]},async function(a,b){const s=a96r;try{const c=['hooks',s(0x146),'pages',s(0x131)];if(b[s(0x118)]&&!c[s(0x10d)](b[s(0x118)])){Log[s(0x145)](s(0x127)+b[s(0x118)]+'\x22'),Log[s(0x145)](s(0x11e)+c[s(0x137)](',\x20'));throw new UsageError();}const d=this['fsi']['findAppDirectory'](),f=b['baseDir']?s(0x14a)+b['baseDir']:s(0x123),g=this[s(0x130)][s(0x121)]({'pathParts':[f,b[s(0x14c)],b[s(0x142)],paramCase(b['resourceName'])]}),h=await this['fsi'][s(0x120)]();this[s(0x130)]['withValue'](h,async()=>{const t=s;typeof h[t(0x13d)][t(0x10a)]==='string'&&(h[t(0x13d)][t(0x10a)]=h[t(0x13d)]['test']===t(0x152)?!![]:![],this['fsi']['setTemplate'](t(0x10a),h[t(0x13d)][t(0x10a)]));typeof h[t(0x13d)][t(0x134)]===t(0x12d)&&(h[t(0x13d)][t(0x134)]=h[t(0x13d)][t(0x134)]===t(0x152)?!![]:![],this['fsi']['setTemplate'](t(0x134),h[t(0x13d)]['css']));typeof h[t(0x13d)]['js']==='string'&&(h[t(0x13d)]['js']=h[t(0x13d)]['js']==='true'?!![]:![],this[t(0x130)][t(0x139)]('js',h[t(0x13d)]['js']));!h[t(0x12f)]&&(h[t(0x12f)]={});!b[t(0x11d)]&&!this['fsi']['checkNpmPackage']('ramda')&&(Log[t(0x109)](t(0x12c)),await this[t(0x130)][t(0x107)](t(0x10c),{'cwd':d}));if(!b['root']&&!this['fsi'][t(0x129)](t(0x117))){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x142)]),'myPath':a96e[t(0x122)](this[t(0x130)][t(0x119)]({}),g),'cssCaseName':paramCase(b[t(0x142)]),'className':pascalCase(b[t(0x142)]),'camelCaseName':camelCase(b[t(0x142)]),'fileName':paramCase(b[t(0x142)]),'graphql':h[t(0x110)]['graphql'],'features':h[t(0x12f)],'client':h['engines'][t(0x113)],'api':h['engines'][t(0x10e)],'ssr':h['engines'][t(0x14f)],'test':h['engines']['test'],'theme':h[t(0x110)][t(0x114)],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0x12f)][t(0x14d)]};this[t(0x130)][t(0x13d)]({'srcPath':'component/component.js','destPath':g+t(0x141),'context':i,'framework':t(0x117),'config':h});h[t(0x110)][t(0x10a)]!==t(0x104)&&this[t(0x130)][t(0x13d)]({'srcPath':t(0x13e),'destPath':g+'.tests.js','context':i,'framework':t(0x117),'config':h});h[t(0x13d)][t(0x134)]&&(this[t(0x130)][t(0x13d)]({'srcPath':t(0x150),'destPath':g+t(0x149),'context':Object[t(0x13f)]({},i,{'className':paramCase(b['resourceName'])}),'config':h}),this[t(0x130)][t(0x125)]({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+i[t(0x13a)]+'.'+h[t(0x110)][t(0x134)]+'\x27;'}));const j=b[t(0x14c)]?'/'+b[t(0x14c)]+'/':'/',k=''+f+j+i[t(0x143)]+'/'+i[t(0x143)];let l;if(h['engines'][t(0x14f)]==='true'){const m=this[t(0x130)][t(0x121)]({'pathParts':[t(0x14e),t(0x115),t(0x124),t(0x153)]});l=this[t(0x130)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x130)][t(0x121)]({'pathParts':[t(0x14e),t(0x115),'client',t(0x153)]});l=this['fsi'][t(0x138)]({'pathParts':[n],'config':h});}h[t(0x110)][t(0x113)]==='react'||h[t(0x110)][t(0x113)]===t(0x132)?(h[t(0x110)]['js']===t(0x11b)?this['fsi'][t(0x125)]({'filePath':l,'content':'import\x20{\x20'+i['className']+'\x20}\x20from\x20\x27'+k+t(0x105)}):this[t(0x130)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x140)+i['className']+'\x20}\x20from\x20\x27'+k+'.'+h['engines']['js']+t(0x105)}),this[t(0x130)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x10f)})):this['fsi'][t(0x106)]({'filePath':l,'content':t(0x11f)+k+'.'+h[t(0x110)]['js']+t(0x105)});});}catch(i){Log[s(0x145)](i);}});function a96c(){const u=['relative','/imports/ui/components','lib','injectAtBeginningOfFile','9462DwjFhv','Invalid\x20directory\x20option\x20\x22','maka\x20g:comp\x20todos/todos-item','checkNpmPackage','67945VEYnuo','170776CFyDbu','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','string','(((.+)+)+)+$','features','fsi','layouts','reflux','component','css','create','toString','join','rewriteDestinationPathForEngine','setTemplate','cssCaseName','8IoWKNG','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','template','test/test.js','assign','import\x20{\x20','.js','resourceName','fileName','2310wukRAl','error','components','1793916TyMNSe','288SgSyoE','.css','/imports/ui/','apply','dir','withTranslations','imports','ssr','template/template.css','search','true','templates.js','none','\x27;\x0a','injectAtEndOfFile','installNpmPackage','constructor','warn','test','737UxAFdu','ramda','includes','api','\x20};\x0a','engines','2241924kWwXCm','2508235EavVpk','client','theme','startup','4tSjWMn','react','baseDir','pathFromProject','28030whWSjM','tsx','comp','root','Valid\x20options\x20are:\x20','import\x20\x27','getProjectConfig','pathFromApp'];a96c=function(){return u;};return a96c();}
@@ -1 +1 @@
1
- const a95k=a95d;(function(a,b){const h=a95d,c=a();while(!![]){try{const d=-parseInt(h(0x145))/0x1+parseInt(h(0x146))/0x2+-parseInt(h(0x149))/0x3+parseInt(h(0x141))/0x4+-parseInt(h(0x137))/0x5+-parseInt(h(0x12d))/0x6+parseInt(h(0x144))/0x7*(parseInt(h(0x148))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x19069));function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x12b;let f=c[d];return f;},a95d(a,b);}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a95d;if(c){const e=c[i(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const j=a95d;return a95a[j(0x130)]()[j(0x139)](j(0x134))[j(0x130)]()[j(0x133)](a95a)[j(0x139)](j(0x134));});a95a();function a95c(){const n=['pathFromProject','getProjectConfig','46516taHmwv','prod','apply','423395oEyJoE','149633LHuwYu','222180SPAAfK','maka\x20{generate,\x20g}:{config}\x20<name>','40cqTQtn','197421lwbyqt','ubuntu','process.env','appName','template','349014PQhPDI','isDocker','maka\x20g:config\x20production','toString','resourceName','settings.json','constructor','(((.+)+)+)+$','development','dev','245150gZsRZf','Generate\x20configuration\x20settings.','search','config/process.env','config/settings.json','fsi','create','config'];a95c=function(){return n;};return a95c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95k(0x13d)]({'name':a95k(0x13e),'usage':a95k(0x147),'shortDesc':a95k(0x138),'validOpts':['isDocker'],'examples':[a95k(0x12f)]},function(a,b){const l=a95k,c=this[l(0x13c)][l(0x140)]();this[l(0x13c)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0x12b)],'appFileCase':paramCase(c[m(0x12b)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x131)]),'camelCase':camelCase(b[m(0x131)]),'userName':m(0x14a),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0x136))e=m(0x135);else e===m(0x142)&&(e='production');const f=this[m(0x13c)][m(0x13f)]({'pathParts':[m(0x13e),e,m(0x132)]});this[m(0x13c)][m(0x12c)]({'srcPath':m(0x13b),'destPath':f,'context':d,'config':c});if(!b[m(0x12e)]){const g=this[m(0x13c)][m(0x13f)]({'pathParts':[m(0x13e),e,m(0x14b)]});this[m(0x13c)]['template']({'srcPath':m(0x13a),'destPath':g,'context':d,'config':c});}});});
1
+ const a97k=a97d;(function(a,b){const h=a97d,c=a();while(!![]){try{const d=-parseInt(h(0x18a))/0x1+parseInt(h(0x17f))/0x2*(parseInt(h(0x192))/0x3)+-parseInt(h(0x194))/0x4+parseInt(h(0x18b))/0x5+parseInt(h(0x195))/0x6*(parseInt(h(0x186))/0x7)+-parseInt(h(0x193))/0x8+parseInt(h(0x184))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x8b286));function a97c(){const n=['5309030qQxBic','prod','appName','maka\x20g:config\x20production','maka\x20{generate,\x20g}:{config}\x20<name>','process.env','apply','62544HEVmrn','6185096GqRRjw','1638540JZQIvx','198tgGcQY','search','development','fsi','ubuntu','template','dev','settings.json','26wZKOUG','constructor','pathFromProject','create','getProjectConfig','3168306tWLTsJ','withValue','85295tLVlyZ','isDocker','config','resourceName','334207gAwLCU'];a97c=function(){return n;};return a97c();}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a97d;if(c){const e=c[i(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const j=a97d;return a97a['toString']()[j(0x196)]('(((.+)+)+)+$')['toString']()[j(0x180)](a97a)[j(0x196)]('(((.+)+)+)+$');});a97a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x179;let f=c[d];return f;},a97d(a,b);}Generator[a97k(0x182)]({'name':a97k(0x188),'usage':a97k(0x18f),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a97k(0x187)],'examples':[a97k(0x18e)]},function(a,b){const l=a97k,c=this[l(0x17a)][l(0x183)]();this[l(0x17a)][l(0x185)](c,async()=>{const m=l,d={'app':c[m(0x18d)],'appFileCase':paramCase(c[m(0x18d)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x189)]),'userName':m(0x17b),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0x17d))e=m(0x179);else e===m(0x18c)&&(e='production');const f=this[m(0x17a)][m(0x181)]({'pathParts':[m(0x188),e,m(0x17e)]});this[m(0x17a)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x17a)][m(0x181)]({'pathParts':['config',e,m(0x190)]});this[m(0x17a)][m(0x17c)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a96q=a96d;(function(a,b){const n=a96d,c=a();while(!![]){try{const d=parseInt(n(0x1e2))/0x1*(-parseInt(n(0x1c1))/0x2)+-parseInt(n(0x1ba))/0x3+parseInt(n(0x1d6))/0x4+parseInt(n(0x1e7))/0x5*(-parseInt(n(0x1be))/0x6)+-parseInt(n(0x1af))/0x7*(parseInt(n(0x1d5))/0x8)+-parseInt(n(0x1ca))/0x9+parseInt(n(0x1ad))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x9798f));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a96d;if(c){const e=c[o(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const p=a96d;return a96a['toString']()[p(0x1dc)](p(0x1dd))[p(0x1b6)]()[p(0x1c9)](a96a)[p(0x1dc)](p(0x1dd));});function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a96d(a,b);}a96a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator['create']({'name':a96q(0x1df),'usage':a96q(0x1c6),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a96q(0x1d3),a96q(0x1c8)],'examples':[a96q(0x1e4),a96q(0x1b7),a96q(0x1b9)]},async function(a,b){const r=a96q;try{const c=await this[r(0x1e0)][r(0x1bf)](),d=this['fsi'][r(0x1c3)]({}),f=paramCase(b['resourceName']);if(!b['type']){const h={'type':r(0x1d1),'name':'dbAnswer','message':r(0x1e6),'choices':[{'name':'PostgreSQL','value':r(0x1e1)},{'name':r(0x1c7),'value':r(0x1b5)}]},{dbAnswer:i}=await Actions[r(0x1cf)](h);i&&(b[r(0x1d3)]=i);}const g={'name':pascalCase(b[r(0x1de)]),'fileName':paramCase(b[r(0x1de)]),'camelCase':camelCase(b[r(0x1de)]),'type':b[r(0x1d3)],'engine':c['engines']['js'],'noRename':!![]};this[r(0x1e0)][r(0x1d8)](c,async()=>{const s=r;let j='js';c[s(0x1cd)]['js']===s(0x1e8)&&(j='ts');const k=[s(0x1b5),'pgsql'];if(k[s(0x1db)](g['type'])<0x0){const m=g[s(0x1d3)]?g[s(0x1d3)]:s(0x1b4);Log[s(0x1bd)]('Invalid\x20type\x20'+m+s(0x1da));return;}b[s(0x1d3)]===s(0x1e1)&&!this[s(0x1e0)][s(0x1ce)]('pg')&&(Log[s(0x1ae)](s(0x1d4)),await this[s(0x1e0)][s(0x1cc)]('pg',{'cwd':d}));b[s(0x1d3)]===s(0x1b5)&&!this[s(0x1e0)][s(0x1ce)](s(0x1b5))&&(Log[s(0x1ae)](s(0x1bb)),await this[s(0x1e0)][s(0x1cc)](s(0x1b5),{'cwd':d}));b[s(0x1d3)]===s(0x1d9)&&!this[s(0x1e0)][s(0x1ce)](s(0x1b3))&&(Log[s(0x1ae)](s(0x1c4)),await this['fsi'][s(0x1cc)](s(0x1b3),{'cwd':d}));this[s(0x1e0)][s(0x1d0)]({'srcPath':s(0x1b8),'destPath':this['fsi'][s(0x1c3)]({'pathParts':[s(0x1b2),s(0x1c5),'server',s(0x1df),b[s(0x1c8)],f,s(0x1e3)+j]}),'context':g,'config':c}),this[s(0x1e0)][s(0x1d0)]({'srcPath':s(0x1d7),'destPath':this[s(0x1e0)][s(0x1c3)]({'pathParts':[s(0x1b2),s(0x1c5),s(0x1b1),s(0x1df),b['dir'],f,s(0x1d2)+j]}),'context':g,'config':c}),this[s(0x1e0)]['template']({'srcPath':s(0x1c2),'destPath':this[s(0x1e0)]['pathFromApp']({'pathParts':[s(0x1b2),'startup',s(0x1b1),s(0x1cb)+f+s(0x1e5)+j]}),'context':g,'config':c});const l=this[s(0x1e0)]['pathFromApp']({'pathParts':['imports',s(0x1c5),'server',s(0x1b0)+c[s(0x1cd)]['js']]});this['fsi']['injectAtEndOfFile']({'filePath':l,'content':'import\x20\x27./register-'+f+s(0x1bc)});});}catch(j){Log['error'](j);}});function a96c(){const t=['1168680vOyMNQ','dbc/conn.js','withValue','sqlite',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','indexOf','search','(((.+)+)+)+$','resourceName','dbc','fsi','pgsql','497SfJrWW','config.','maka\x20g:dbc\x20geoserver\x20--type=pgsql','-dbc.','DB\x20Driver','981185XbJtWv','tsx','29565700bkOYKb','warn','1883MDRbTg','index.','server','imports','better-sqlite3','(blank)','mssql','toString','maka\x20g:dbc\x20azure\x20--type=mssql','dbc/config.js','maka\x20g:dbc\x20todos\x20--type=sqlite','629934SbCObb','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','-dbc\x27;','error','12eYoSbi','getProjectConfig','apply','1522DCaPsG','dbc/register-dbc.js','pathFromApp','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','startup','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','MS\x20SQL','dir','constructor','7394103Fmcimn','register-','installNpmPackage','engines','checkNpmPackage','options','template','list','conn.','type','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','24552WBrkMP'];a96c=function(){return t;};return a96c();}
1
+ const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=parseInt(n(0x1a1))/0x1+-parseInt(n(0x185))/0x2+parseInt(n(0x186))/0x3*(parseInt(n(0x178))/0x4)+parseInt(n(0x19c))/0x5+parseInt(n(0x18e))/0x6+-parseInt(n(0x17c))/0x7*(parseInt(n(0x197))/0x8)+parseInt(n(0x175))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xb456e));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x1a8)]()['search'](p(0x180))['toString']()[p(0x1a5)](a98a)[p(0x17e)](p(0x180));});function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x172;let f=c[d];return f;},a98d(a,b);}a98a();function a98c(){const t=['dir','import\x20\x27./register-','indexOf','constructor','apply','fsi','toString','imports','index.','tsx','20902248BrvHpW','register-','mssql','2315724avHZyG','template','server','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','133nxVqZZ','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','search','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','(((.+)+)+)+$','checkNpmPackage','pgsql','pathFromApp','maka\x20g:dbc\x20geoserver\x20--type=pgsql','2382942HypnKl','3OwJJrZ','warn','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','Invalid\x20type\x20','dbAnswer','error','type','MS\x20SQL','978192zzbyfT','dbc','-dbc.','resourceName','create','dbc/config.js','maka\x20g:dbc\x20todos\x20--type=sqlite','injectAtEndOfFile','getProjectConfig','599568eBMDWx','startup','better-sqlite3','options','conn.','794085RnuMLh','config.','(blank)','engines','installNpmPackage','130863rNwnDf'];a98c=function(){return t;};return a98c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a98q(0x192)]({'name':a98q(0x18f),'usage':a98q(0x188),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':['type',a98q(0x1a2)],'examples':[a98q(0x184),'maka\x20g:dbc\x20azure\x20--type=mssql',a98q(0x194)]},async function(a,b){const r=a98q;try{const c=await this[r(0x1a7)][r(0x196)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b['resourceName']);if(!b[r(0x18c)]){const h={'type':'list','name':r(0x18a),'message':'DB\x20Driver','choices':[{'name':'PostgreSQL','value':r(0x182)},{'name':r(0x18d),'value':r(0x177)}]},{dbAnswer:i}=await Actions[r(0x19a)](h);i&&(b[r(0x18c)]=i);}const g={'name':pascalCase(b[r(0x191)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b[r(0x18c)],'engine':c[r(0x19f)]['js'],'noRename':!![]};this[r(0x1a7)]['withValue'](c,async()=>{const s=r;let j='js';c['engines']['js']===s(0x174)&&(j='ts');const k=['mssql',s(0x182)];if(k[s(0x1a4)](g[s(0x18c)])<0x0){const m=g[s(0x18c)]?g['type']:s(0x19e);Log[s(0x18b)](s(0x189)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b['type']==='pgsql'&&!this[s(0x1a7)][s(0x181)]('pg')&&(Log[s(0x187)](s(0x17d)),await this[s(0x1a7)][s(0x1a0)]('pg',{'cwd':d}));b[s(0x18c)]===s(0x177)&&!this[s(0x1a7)][s(0x181)](s(0x177))&&(Log['warn'](s(0x17f)),await this[s(0x1a7)]['installNpmPackage'](s(0x177),{'cwd':d}));b[s(0x18c)]==='sqlite'&&!this[s(0x1a7)][s(0x181)](s(0x199))&&(Log[s(0x187)](s(0x17b)),await this[s(0x1a7)]['installNpmPackage']('better-sqlite3',{'cwd':d}));this[s(0x1a7)][s(0x179)]({'srcPath':s(0x193),'destPath':this[s(0x1a7)]['pathFromApp']({'pathParts':[s(0x172),'startup',s(0x17a),s(0x18f),b[s(0x1a2)],f,s(0x19d)+j]}),'context':g,'config':c}),this[s(0x1a7)][s(0x179)]({'srcPath':'dbc/conn.js','destPath':this[s(0x1a7)][s(0x183)]({'pathParts':['imports',s(0x198),'server',s(0x18f),b[s(0x1a2)],f,s(0x19b)+j]}),'context':g,'config':c}),this[s(0x1a7)][s(0x179)]({'srcPath':'dbc/register-dbc.js','destPath':this[s(0x1a7)][s(0x183)]({'pathParts':[s(0x172),'startup',s(0x17a),s(0x176)+f+s(0x190)+j]}),'context':g,'config':c});const l=this[s(0x1a7)]['pathFromApp']({'pathParts':[s(0x172),'startup','server',s(0x173)+c[s(0x19f)]['js']]});this[s(0x1a7)][s(0x195)]({'filePath':l,'content':s(0x1a3)+f+'-dbc\x27;'});});}catch(j){Log['error'](j);}});
@@ -1 +1 @@
1
- const a97i=a97d;(function(a,b){const f=a97d,c=a();while(!![]){try{const d=parseInt(f(0x1bb))/0x1*(-parseInt(f(0x1a9))/0x2)+-parseInt(f(0x1ab))/0x3+-parseInt(f(0x1b4))/0x4*(parseInt(f(0x1a5))/0x5)+-parseInt(f(0x1ac))/0x6+parseInt(f(0x1b9))/0x7+parseInt(f(0x1bd))/0x8+parseInt(f(0x1a7))/0x9*(parseInt(f(0x1b7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xda4e9));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a97d;if(c){const e=c[g(0x1a2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const h=a97d;return a97a[h(0x1ba)]()[h(0x1b1)](h(0x1a3))['toString']()['constructor'](a97a)[h(0x1b1)](h(0x1a3));});a97a();function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1a2;let f=c[d];return f;},a97d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a97c(){const l=['551932HwwKQm','template','app','12806340PJwdDL','appName','11770689HtytvE','toString','2zvjGlu','maka\x20g:dockerfile','5536616YjwZHn','getGlobalConfig','Dockerfile','apply','(((.+)+)+)+$','getProjectConfig','55aZCqOT','Generate\x20an\x20updated\x20dockerfile','9ZjQelQ','join','93442QZvTaR','cert','2224584STCZGo','2443620vHqXPf','error','build','fsi','findProjectDirectory','search','service','withValue'];a97c=function(){return l;};return a97c();}import a97e from'path';Generator['create']({'name':'dockerfile','usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a97i(0x1a6),'validOpts':[],'noResource':!![],'examples':[a97i(0x1bc)]},async function(){const j=a97i;try{const a=await this[j(0x1af)][j(0x1a4)](),b=await this[j(0x1af)][j(0x1be)](),c=this[j(0x1af)][j(0x1b0)]();this['fsi'][j(0x1b3)](a,async()=>{const k=j,d={'app':b[k(0x1b8)],'config':a,'appPath':a97e[k(0x1a8)](c,k(0x1b6)),'bundlePath':a97e[k(0x1a8)](c,k(0x1ae),'app.tar.gz'),'useCert':this[k(0x1af)]['isFile'](b[k(0x1aa)])};this[k(0x1af)][k(0x1b5)]({'srcPath':'docker/Dockerfile','destPath':a97e[k(0x1a8)](c,k(0x1bf)),'framework':k(0x1b2),'context':d,'config':a});});}catch(d){Log[j(0x1ad)](d);}});
1
+ const a99i=a99d;(function(a,b){const f=a99d,c=a();while(!![]){try{const d=-parseInt(f(0xf7))/0x1*(parseInt(f(0x111))/0x2)+-parseInt(f(0x101))/0x3+-parseInt(f(0x105))/0x4+parseInt(f(0x108))/0x5+parseInt(f(0x109))/0x6*(parseInt(f(0xff))/0x7)+-parseInt(f(0x10b))/0x8*(-parseInt(f(0x113))/0x9)+-parseInt(f(0x102))/0xa*(parseInt(f(0x10c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x67408));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a99d;if(c){const e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const h=a99d;return a99a['toString']()[h(0xfe)](h(0xfb))['toString']()[h(0x103)](a99a)[h(0xfe)](h(0xfb));});a99a();function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xf7;let f=c[d];return f;},a99d(a,b);}function a99c(){const l=['findProjectDirectory','isFile','39feayPi','maka\x20{generate,\x20g}:dockerfile','getProjectConfig','dockerfile','(((.+)+)+)+$','maka\x20g:dockerfile','fsi','search','7DHgKgT','cert','1840488kmZNYL','7210gyQTch','constructor','app','2054932QGpEsB','service','withValue','2830905HDjSGA','4912380jNgwXa','appName','114832fjBVsw','2244pQJpJS','Generate\x20an\x20updated\x20dockerfile','create','join','Dockerfile','16372PLukzm','docker/Dockerfile','396dcZnUY','apply','build'];a99c=function(){return l;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a99e from'path';Generator[a99i(0x10e)]({'name':a99i(0xfa),'usage':a99i(0xf8),'shortDesc':a99i(0x10d),'validOpts':[],'noResource':!![],'examples':[a99i(0xfc)]},async function(){const j=a99i;try{const a=await this['fsi'][j(0xf9)](),b=await this[j(0xfd)]['getGlobalConfig'](),c=this[j(0xfd)][j(0x116)]();this[j(0xfd)][j(0x107)](a,async()=>{const k=j,d={'app':b[k(0x10a)],'config':a,'appPath':a99e[k(0x10f)](c,k(0x104)),'bundlePath':a99e['join'](c,k(0x115),'app.tar.gz'),'useCert':this[k(0xfd)][k(0x117)](b[k(0x100)])};this[k(0xfd)]['template']({'srcPath':k(0x112),'destPath':a99e['join'](c,k(0x110)),'framework':k(0x106),'context':d,'config':a});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a98r=a98d;(function(a,b){const o=a98d,c=a();while(!![]){try{const d=-parseInt(o(0xbc))/0x1*(-parseInt(o(0xcf))/0x2)+-parseInt(o(0xc9))/0x3*(parseInt(o(0xdc))/0x4)+parseInt(o(0xd8))/0x5*(parseInt(o(0xce))/0x6)+parseInt(o(0xcc))/0x7+-parseInt(o(0xbe))/0x8+-parseInt(o(0xc2))/0x9*(parseInt(o(0xcd))/0xa)+-parseInt(o(0xd7))/0xb*(-parseInt(o(0xeb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xa2e20));function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xa8;let f=c[d];return f;},a98d(a,b);}const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a98d;if(c){const e=c[p(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const q=a98d;return a98a[q(0xab)]()[q(0xd1)]('(((.+)+)+)+$')[q(0xab)]()['constructor'](a98a)['search'](q(0xe2));});a98a();import a98e from'path';function a98c(){const u=['injectAtEndOfFile','pathFromProject','assign','1KolJAq','imports','10433744TumGwV','injectAtBeginningOfFile','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','client','1574199vDgHwM','error','hook','className','getProjectConfig','\x27;\x0a','\x20}\x20from\x20\x27','25698eUGpuJ','@apollo/client\x20isomorphic-fetch','create','3341009oEtSYb','50hpNcSg','6SBShAW','216896ZtMeiG','true','search','none','import\x20{\x20','features','cssCaseName','template','11GiBeQp','4969435gkgaIC','withTranslations','relative','export\x20{\x20','316RsLTrd','lib','apply','test/test.js','maka\x20g:hook\x20cool-hook','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','(((.+)+)+)+$','ssr','import\x20\x27./','test','template/template.css','react','tsx','dir','templates.js','23316396PCLOCk','.css','checkNpmPackage','fsi','toString','css','graphql','rewriteDestinationPathForEngine','fileName','resourceName','string','@apollo/client','installNpmPackage','warn','apollo','engines','startup','pathFromApp'];a98c=function(){return u;};return a98c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a98r(0xcb)]({'name':a98r(0xc4),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a98r(0xc0),'validOpts':[a98r(0xe9)],'examples':[a98r(0xe0)]},async function(a,b){const s=a98r;try{const c=this[s(0xaa)][s(0xa9)](s(0xe7));if(!c){Log[s(0xc3)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[s(0xaa)][s(0xb8)](b),f='/imports/ui/hooks',g=this['fsi'][s(0xb8)]({'pathParts':[f,b['dir'],paramCase(b[s(0xb0)]),paramCase(b[s(0xb0)])]}),h=await this[s(0xaa)][s(0xc6)]();this['fsi']['withValue'](h,async()=>{const t=s;typeof h[t(0xd6)][t(0xac)]===t(0xb1)&&(h[t(0xd6)][t(0xac)]=h['template'][t(0xac)]===t(0xd0)?!![]:![],this[t(0xaa)]['setTemplate'](t(0xac),h[t(0xd6)][t(0xac)]));h[t(0xb6)]['graphql']===t(0xb5)&&!this['fsi']['checkNpmPackage'](t(0xb2))&&(Log[t(0xb4)](t(0xe1)),await this[t(0xaa)][t(0xb3)](t(0xca),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xb0)]),'className':pascalCase(b[t(0xb0)]),'name':pascalCase(b['resourceName']),'graphql':h[t(0xb6)][t(0xad)],'theme':h[t(0xb6)]['theme'],'features':h[t(0xd4)],'myPath':a98e[t(0xda)](this[t(0xaa)][t(0xba)]({}),g),'fileName':paramCase(b[t(0xb0)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xd4)][t(0xd9)]};this['fsi']['template']({'srcPath':'hook/hook.js','destPath':g+'.js','context':i,'config':h,'framework':t(0xe7)});h['template'][t(0xac)]&&(this[t(0xaa)][t(0xd6)]({'srcPath':t(0xe6),'destPath':g+t(0xa8),'context':Object[t(0xbb)]({},i,{'className':i[t(0xd5)]}),'config':h}),this[t(0xaa)][t(0xbf)]({'filePath':g+'.'+h[t(0xb6)]['js'],'content':t(0xe4)+i['fileName']+'.'+h[t(0xb6)][t(0xac)]+'\x27;'}));h[t(0xb6)][t(0xe5)]!==t(0xd2)&&this[t(0xaa)][t(0xd6)]({'srcPath':t(0xdf),'destPath':g+'.app-tests.js','framework':t(0xe7),'context':i,'config':h});const j=b[t(0xe9)]?'/'+b[t(0xe9)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0xaf)];let l;if(h[t(0xb6)][t(0xe3)]===t(0xd0)){const m=this[t(0xaa)][t(0xb8)]({'pathParts':[t(0xbd),t(0xb7),t(0xdd),t(0xea)]});l=this[t(0xaa)][t(0xae)]({'pathParts':[m],'config':h});}else{const n=this['fsi']['pathFromApp']({'pathParts':[t(0xbd),'startup',t(0xc1),t(0xea)]});l=this[t(0xaa)][t(0xae)]({'pathParts':[n],'config':h});}h['engines'][t(0xc1)]===t(0xe7)?(h['engines']['js']===t(0xe8)?this['fsi'][t(0xbf)]({'filePath':l,'content':t(0xd3)+i[t(0xc5)]+'\x20}\x20from\x20\x27'+k+t(0xc7)}):this[t(0xaa)][t(0xbf)]({'filePath':l,'content':t(0xd3)+i[t(0xc5)]+t(0xc8)+k+'.'+h['engines']['js']+t(0xc7)}),this[t(0xaa)][t(0xb9)]({'filePath':l,'content':t(0xdb)+i['className']+'\x20};\x0a'})):this[t(0xaa)]['injectAtEndOfFile']({'filePath':l,'content':'import\x20\x27'+k+'.'+h[t(0xb6)]['js']+'\x27;\x0a'});});}catch(i){Log[s(0xc3)](i);}});
1
+ const a100r=a100d;(function(a,b){const p=a100d,c=a();while(!![]){try{const d=-parseInt(p(0x7a))/0x1*(parseInt(p(0x67))/0x2)+-parseInt(p(0x9f))/0x3*(parseInt(p(0xa6))/0x4)+-parseInt(p(0x68))/0x5*(-parseInt(p(0x74))/0x6)+parseInt(p(0xb5))/0x7*(-parseInt(p(0x95))/0x8)+parseInt(p(0x8c))/0x9*(parseInt(p(0xb6))/0xa)+parseInt(p(0x69))/0xb+parseInt(p(0x6c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xe27cd));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 q=a100d;return a100a[q(0x72)]()['search'](q(0x70))[q(0x72)]()[q(0x84)](a100a)[q(0x8b)]('(((.+)+)+)+$');});function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x65;let f=c[d];return f;},a100d(a,b);}a100a();import a100e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a100r(0x92)]({'name':a100r(0x75),'aliases':['h'],'checkWhere':![],'usage':a100r(0x8e),'shortDesc':a100r(0x9c),'validOpts':['baseDir'],'examples':[a100r(0x80)]},async function(a,b){const s=a100r;Log[s(0xb0)]('Creating\x20'+a[0x0]+s(0x65));try{const c=[s(0x76),s(0xad),'pages',s(0x73)];if(b[s(0xa3)]&&!c[s(0x99)](b['baseDir'])){Log[s(0x66)]('Invalid\x20directory\x20option\x20\x22'+b[s(0xa3)]+'\x22'),Log['error'](s(0xaf)+c[s(0xa4)](',\x20'));throw new UsageError();}const d=this[s(0xa5)][s(0x96)](s(0xaa));if(!d){Log[s(0x66)](s(0x81));throw new UsageError();}const f=this[s(0xa5)][s(0xb8)](b),g=b[s(0xa3)]?s(0x8d)+b['baseDir']:s(0x79),h=this[s(0xa5)][s(0xb8)]({'pathParts':[g,b[s(0x89)],b[s(0xb4)],paramCase(b[s(0xb4)])]}),i=await this[s(0xa5)][s(0xb7)]();this[s(0xa5)][s(0x7f)](i,async()=>{const t=s;typeof i[t(0x85)]['css']===t(0x6f)&&(i[t(0x85)][t(0x6e)]=i[t(0x85)]['css']===t(0x91)?!![]:![],this[t(0xa5)]['setTemplate'](t(0x6e),i[t(0x85)][t(0x6e)]));i[t(0x6b)][t(0x6a)]===t(0x7c)&&!this['fsi']['checkNpmPackage'](t(0x9b))&&(Log['warn'](t(0xa9)),await this[t(0xa5)][t(0xac)](t(0x93),{'cwd':f}));const j={'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0xb4)]),'name':pascalCase(b[t(0xb4)]),'graphql':i[t(0x6b)][t(0x6a)],'theme':i[t(0x6b)][t(0xa2)],'features':i['features'],'myPath':a100e[t(0xab)](this['fsi'][t(0xa1)]({}),h),'fileName':paramCase(b[t(0xb4)]),'isComponent':![],'isLayout':![],'withTranslations':i[t(0xa0)][t(0x8f)]};this['fsi'][t(0x85)]({'srcPath':t(0x87),'destPath':h+t(0x9d),'context':j,'config':i,'framework':'react'});i[t(0x85)][t(0x6e)]&&(this[t(0xa5)][t(0x85)]({'srcPath':t(0xb1),'destPath':h+t(0x78),'context':Object[t(0x8a)]({},j,{'className':j[t(0x90)]}),'config':i}),this['fsi'][t(0x98)]({'filePath':h+'.'+i[t(0x6b)]['js'],'content':t(0x77)+j['fileName']+'.'+i['engines']['css']+'\x27;'}));i[t(0x6b)][t(0xae)]!==t(0x97)&&this[t(0xa5)][t(0x85)]({'srcPath':t(0x9e),'destPath':h+t(0xa7),'framework':t(0xaa),'context':j,'config':i});const k=b['dir']?'/'+b[t(0x89)]+'/':'/',l=''+g+k+j[t(0xa8)]+'/'+j['fileName'];let m;if(i[t(0x6b)][t(0x6d)]===t(0x91)){const n=this['fsi'][t(0xb8)]({'pathParts':[t(0x88),t(0x82),t(0x83),t(0x94)]});m=this[t(0xa5)][t(0x86)]({'pathParts':[n],'config':i});}else{const o=this['fsi'][t(0xb8)]({'pathParts':[t(0x88),t(0x82),t(0x71),'templates.js']});m=this['fsi'][t(0x86)]({'pathParts':[o],'config':i});}i['engines'][t(0x71)]===t(0xaa)?(i[t(0x6b)]['js']===t(0xb3)?this[t(0xa5)][t(0x98)]({'filePath':m,'content':'import\x20{\x20'+j['className']+t(0x9a)+l+t(0x7e)}):this[t(0xa5)][t(0x98)]({'filePath':m,'content':'import\x20{\x20'+j[t(0x7d)]+t(0x9a)+l+'.'+i[t(0x6b)]['js']+t(0x7e)}),this[t(0xa5)][t(0xb2)]({'filePath':m,'content':'export\x20{\x20'+j['className']+t(0x7b)})):this[t(0xa5)][t(0xb2)]({'filePath':m,'content':'import\x20\x27'+l+'.'+i[t(0x6b)]['js']+t(0x7e)});});}catch(j){Log[s(0x66)](j);}});function a100c(){const u=['50953068IBrCxk','ssr','css','string','(((.+)+)+)+$','client','toString','layouts','2788260MHAipo','hook','hooks','import\x20\x27./','.css','/imports/ui/hooks','119753SIzIPI','\x20};\x0a','apollo','className','\x27;\x0a','withValue','maka\x20g:hook\x20cool-hook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','startup','lib','constructor','template','rewriteDestinationPathForEngine','hook/hook.js','imports','dir','assign','search','1291158eJUsGu','/imports/ui/','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','withTranslations','cssCaseName','true','create','@apollo/client\x20isomorphic-fetch','templates.js','12781672uYbjpw','checkNpmPackage','none','injectAtBeginningOfFile','includes','\x20}\x20from\x20\x27','@apollo/client','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','.js','test/test.js','45yDbhBs','features','pathFromProject','theme','baseDir','join','fsi','444428aBKhYp','.app-tests.js','fileName','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','react','relative','installNpmPackage','components','test','Valid\x20options\x20are:\x20','notice','template/template.css','injectAtEndOfFile','tsx','resourceName','7JOhzVW','10AdWMpg','getProjectConfig','pathFromApp','\x20hook...','error','26qeTQOw','10NqSzCQ','4728075yvwLIQ','graphql','engines'];a100c=function(){return u;};return a100c();}
@@ -1 +1 @@
1
- const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x10b))/0x1+-parseInt(h(0x104))/0x2+parseInt(h(0x107))/0x3+-parseInt(h(0x11b))/0x4+parseInt(h(0x112))/0x5+parseInt(h(0x119))/0x6*(parseInt(h(0x118))/0x7)+parseInt(h(0x114))/0x8*(-parseInt(h(0x117))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x5fdf4));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x103)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a[j(0x116)]()['search'](j(0x102))[j(0x116)]()[j(0x105)](a99a)[j(0x109)](j(0x102));});a99a();function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x102;let f=c[d];return f;},a99d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a99c(){const n=['constructor','type','225768IezKrg','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','search','notice','704133KJeiAq','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','resourceName','withValue','kit','create','fsi','1623485xWBomM','login','1372504IDzIkr','leaflet-map','toString','9uwahdc','154Tgtcik','8646ukYUKL','error','258864QPqRBi','(blank)','indexOf','(((.+)+)+)+$','apply','1013634YseloH'];a99c=function(){return n;};return a99c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99k(0x110)]({'name':a99k(0x10f),'aliases':['k'],'usage':a99k(0x10c),'shortDesc':a99k(0x108),'validOpts':['type'],'examples':['maka\x20g:kit\x20--type=map','maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a99k;try{const c=this['fsi']['getProjectConfig']();this[l(0x111)][l(0x10e)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x10d)]),'fileName':paramCase(b[m(0x10d)]),'camelCase':camelCase(b[m(0x10d)]),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]},f=[m(0x115),'login'];if(f[m(0x11d)](d[m(0x106)])<0x0){const g=d['type']?d['type']:m(0x11c);Log[m(0x11a)]('Invalid\x20type\x20'+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0x106)]==='map'&&Log[m(0x10a)]('NIE'),b[m(0x106)]===m(0x113)&&Log[m(0x10a)]('NIE');});}catch(d){Log[l(0x11a)](d);}});
1
+ const a101k=a101d;(function(a,b){const h=a101d,c=a();while(!![]){try{const d=-parseInt(h(0xe0))/0x1*(-parseInt(h(0xea))/0x2)+-parseInt(h(0xe2))/0x3*(parseInt(h(0xd3))/0x4)+-parseInt(h(0xeb))/0x5+parseInt(h(0xd9))/0x6+-parseInt(h(0xe5))/0x7+parseInt(h(0xd5))/0x8+parseInt(h(0xdb))/0x9*(parseInt(h(0xd1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x821ff));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a101d;if(c){const e=c[i(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const j=a101d;return a101a[j(0xec)]()['search'](j(0xd6))[j(0xec)]()['constructor'](a101a)['search'](j(0xd6));});a101a();function a101c(){const n=['engines','4156481AYfNHq','create','maka\x20g:kit\x20--type=map','type','resourceName','840194VbhZco','1429810YiLhzz','toString','withValue','indexOf','(blank)','130OmCvrT','login','245516BQKAhx','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','975600aWkbbq','(((.+)+)+)+$','Invalid\x20type\x20','fsi','2748954eKQzgb','map','370584IUQtKz','kit','notice','maka\x20g:k\x20city-map\x20--type=leaflet-map','NIE','1tDarOZ','error','6rTiZQo','apply'];a101c=function(){return n;};return a101c();}import{Generator}from'../generator.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0xcf;let f=c[d];return f;},a101d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a101k(0xe6)]({'name':a101k(0xdc),'aliases':['k'],'usage':a101k(0xd4),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a101k(0xe8)],'examples':[a101k(0xe7),a101k(0xde)]},async function(a,b){const l=a101k;try{const c=this[l(0xd8)]['getProjectConfig']();this[l(0xd8)][l(0xed)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xe9)]),'fileName':paramCase(b[m(0xe9)]),'camelCase':camelCase(b[m(0xe9)]),'type':b[m(0xe8)],'engine':c[m(0xe4)]['js'],'noRename':!![]},f=['leaflet-map','login'];if(f[m(0xcf)](d['type'])<0x0){const g=d[m(0xe8)]?d[m(0xe8)]:m(0xd0);Log[m(0xe1)](m(0xd7)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xe8)]===m(0xda)&&Log[m(0xdd)](m(0xdf)),b[m(0xe8)]===m(0xd2)&&Log['notice'](m(0xdf));});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- function a100c(){const u=['fileName','injectAtBeginningOfFile','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','features','rewriteDestinationPathForEngine','ramda','apply','graphql','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','(((.+)+)+)+$','template/template.css','pathFromProject','.css','/imports/ui/layouts','assign','split','Scaffolding\x20for\x20a\x20React\x20Layout.','templates.js','hook/hook.js','fsi','.app-tests.js','dir','search','import\x20\x27./','none','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','ssr','\x27;\x0a','engines','template','import\x20\x27','.js','export\x20{\x20','className','component/component.js','true','create','string','79495oeMKNB','client','18TilQob','2231332DXLnos','10BhKNRa','\x20}\x20from\x20\x27','616311UXTAaG','imports','react','css','14YaOhhb','withHooks','test','957208QKAmAQ','maka\x20g:layout\x20mobile/iPhone8','includes','warn','withValue','1884120Cqtktn','import\x20{\x20','startup','tsx','installNpmPackage','checkNpmPackage','maka\x20g:l\x20web/safari','setTemplate','toString','withTranslations','pathFromApp','injectAtEndOfFile','859520sMZXYi','layout','findAppDirectory','relative','6167079UuQCJG','lib','resourceName','getProjectConfig'];a100c=function(){return u;};return a100c();}const a100r=a100d;(function(a,b){const o=a100d,c=a();while(!![]){try{const d=parseInt(o(0x98))/0x1+-parseInt(o(0xb0))/0x2+parseInt(o(0xa4))/0x3+parseInt(o(0x95))/0x4+-parseInt(o(0x92))/0x5*(-parseInt(o(0x94))/0x6)+parseInt(o(0x9c))/0x7*(-parseInt(o(0x9f))/0x8)+parseInt(o(0xb4))/0x9*(-parseInt(o(0x96))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x78fe4));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a100d;if(c){const e=c[p(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const q=a100d;return a100a[q(0xac)]()[q(0xce)](q(0xc1))['toString']()['constructor'](a100a)['search'](q(0xc1));});a100a();import a100e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x8d;let f=c[d];return f;},a100d(a,b);}const aliases=['l'];Generator[a100r(0x90)]({'name':a100r(0xb1),'aliases':aliases,'usage':a100r(0xba),'shortDesc':a100r(0xc8),'validOpts':[],'examples':[a100r(0xa0),a100r(0xaa)]},function(a,b){const s=a100r,c=s(0xc5),d=this[s(0xcb)][s(0xb2)](),e=this['fsi'][s(0xae)]({'pathParts':[c,b[s(0xcd)],paramCase(b['resourceName']),paramCase(b[s(0xb6)])]}),f=this[s(0xcb)][s(0xb7)]();this[s(0xcb)][s(0xa3)](f,()=>{const t=s;typeof f[t(0xd5)][t(0x9e)]===t(0x91)&&(f[t(0xd5)][t(0x9e)]=f[t(0xd5)][t(0x9e)]===t(0x8f)?!![]:![],this[t(0xcb)]['setTemplate'](t(0x9e),f['template'][t(0x9e)]));typeof f[t(0xd5)][t(0x9b)]===t(0x91)&&(f[t(0xd5)][t(0x9b)]=f[t(0xd5)][t(0x9b)]===t(0x8f)?!![]:![],this['fsi']['setTemplate'](t(0x9b),f[t(0xd5)][t(0x9b)]));typeof f[t(0xd5)]['js']===t(0x91)&&(f[t(0xd5)]['js']=f[t(0xd5)]['js']===t(0x8f)?!![]:![],this[t(0xcb)][t(0xab)]('js',f[t(0xd5)]['js']));!f[t(0xbb)]&&(f[t(0xbb)]={});const g=b['_']?b['_'][0x0][t(0xc7)](':')[0x1]:![],h=b['_']&&aliases[t(0xa1)](g);h&&!this[t(0xa9)](t(0xbd))&&(Log[t(0xa2)](t(0xd1)),this[t(0xcb)][t(0xa8)](t(0xbd),{'cwd':d}));if(h&&!this[t(0xa9)]('react')){Log[t(0xa2)](t(0xc0));return;}const i={'name':pascalCase(b[t(0xb6)]),'myPath':a100e[t(0xb3)](this[t(0xcb)][t(0xc3)]({}),e),'cssCaseName':paramCase(b[t(0xb6)]),'className':pascalCase(b[t(0xb6)]),'camelCaseName':camelCase(b[t(0xb6)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0xd4)][t(0xbf)],'features':f['features'],'client':f[t(0xd4)][t(0x93)],'api':f[t(0xd4)]['api'],'ssr':f[t(0xd4)][t(0xd2)],'test':f[t(0xd4)][t(0x9e)],'theme':f['engines']['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0xbb)][t(0xad)]};f[t(0xbb)]?.[t(0x9d)]||b['withHook']?this[t(0xcb)][t(0xd5)]({'srcPath':t(0xca),'destPath':e+'.js','framework':t(0x9a),'context':i,'config':f}):this[t(0xcb)][t(0xd5)]({'srcPath':t(0x8e),'destPath':e+t(0xd7),'framework':t(0x9a),'context':i,'config':f});f[t(0xd4)]['test']!==t(0xd0)&&this[t(0xcb)][t(0xd5)]({'srcPath':'test/test.js','destPath':e+t(0xcc),'framework':t(0x9a),'context':i,'config':f});f[t(0xd5)]['css']&&(this[t(0xcb)][t(0xd5)]({'srcPath':t(0xc2),'destPath':e+t(0xc4),'context':Object[t(0xc6)]({},i,{'className':paramCase(b[t(0xb6)])}),'config':f}),this[t(0xcb)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0xd4)]['js'],'content':t(0xcf)+i['fileName']+'.'+f[t(0xd4)][t(0x9b)]+'\x27;'}));const j=b['dir']?'/'+b[t(0xcd)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0xb8)];let l;if(f[t(0xd4)][t(0xd2)]==='true'){const m=this[t(0xcb)]['pathFromApp']({'pathParts':[t(0x99),t(0xa6),t(0xb5),t(0xc9)]});l=this[t(0xcb)][t(0xbc)]({'pathParts':[m],'config':f});}else{const n=this[t(0xcb)]['pathFromApp']({'pathParts':[t(0x99),t(0xa6),t(0x93),t(0xc9)]});l=this[t(0xcb)][t(0xbc)]({'pathParts':[n],'config':f});}f[t(0xd4)][t(0x93)]===t(0x9a)?(f[t(0xd4)]['js']===t(0xa7)?this[t(0xcb)][t(0xb9)]({'filePath':l,'content':t(0xa5)+i['className']+t(0x97)+k+'\x27;\x0a'}):this[t(0xcb)][t(0xb9)]({'filePath':l,'content':t(0xa5)+i[t(0x8d)]+t(0x97)+k+'.'+f['engines']['js']+t(0xd3)}),this[t(0xcb)][t(0xaf)]({'filePath':l,'content':t(0xd8)+i['className']+'\x20};\x0a'})):this[t(0xcb)][t(0xaf)]({'filePath':l,'content':t(0xd6)+k+'.'+f[t(0xd4)]['js']+t(0xd3)});});});
1
+ const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x1a6))/0x1+parseInt(o(0x16e))/0x2+-parseInt(o(0x16c))/0x3*(-parseInt(o(0x18b))/0x4)+-parseInt(o(0x16b))/0x5*(parseInt(o(0x199))/0x6)+-parseInt(o(0x172))/0x7*(parseInt(o(0x1a3))/0x8)+-parseInt(o(0x192))/0x9+parseInt(o(0x18c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x3c1ba));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x163;let f=c[d];return f;},a102d(a,b);}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a[q(0x1a8)]()[q(0x173)]('(((.+)+)+)+$')[q(0x1a8)]()[q(0x164)](a102a)['search'](q(0x196));});a102a();import a102e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a102c(){const u=['rewriteDestinationPathForEngine','.js','imports','installNpmPackage','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','ssr','create','setTemplate','maka\x20g:l\x20web/safari','layout','features','api','string','template/template.css','injectAtEndOfFile','pathFromApp','resourceName','relative','\x27;\x0a','className','checkNpmPackage','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','graphql','44DvNVtp','5367510WNXVdC','css','pathFromProject','fileName','getProjectConfig','\x20}\x20from\x20\x27','2393577xUqYYZ','dir','react','import\x20{\x20','(((.+)+)+)+$','tsx','theme','1498842qeeIul','component/component.js','Scaffolding\x20for\x20a\x20React\x20Layout.','test/test.js','withValue','engines','ramda','withHook','startup','includes','31056Xxjqci','hook/hook.js','lib','297489flAKSE','client','toString','test','withHooks','fsi','constructor','apply','injectAtBeginningOfFile','maka\x20g:layout\x20mobile/iPhone8','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','findAppDirectory','warn','5XAOVTs','106779SAkyEb','templates.js','285646NFdnCW','true','template','import\x20\x27','21fCHkFr','search'];a102c=function(){return u;};return a102c();}Generator[a102r(0x17a)]({'name':a102r(0x17d),'aliases':aliases,'usage':a102r(0x168),'shortDesc':a102r(0x19b),'validOpts':[],'examples':[a102r(0x167),a102r(0x17c)]},function(a,b){const s=a102r,c='/imports/ui/layouts',d=this[s(0x163)][s(0x169)](),e=this[s(0x163)][s(0x183)]({'pathParts':[c,b[s(0x193)],paramCase(b[s(0x184)]),paramCase(b[s(0x184)])]}),f=this[s(0x163)][s(0x190)]();this[s(0x163)][s(0x19d)](f,()=>{const t=s;typeof f['template'][t(0x1a9)]==='string'&&(f[t(0x170)][t(0x1a9)]=f[t(0x170)][t(0x1a9)]===t(0x16f)?!![]:![],this[t(0x163)]['setTemplate'](t(0x1a9),f[t(0x170)][t(0x1a9)]));typeof f[t(0x170)]['css']===t(0x180)&&(f['template'][t(0x18d)]=f[t(0x170)][t(0x18d)]===t(0x16f)?!![]:![],this[t(0x163)][t(0x17b)]('css',f[t(0x170)]['css']));typeof f['template']['js']==='string'&&(f[t(0x170)]['js']=f[t(0x170)]['js']===t(0x16f)?!![]:![],this[t(0x163)]['setTemplate']('js',f['template']['js']));!f[t(0x17e)]&&(f[t(0x17e)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[t(0x1a2)](g);h&&!this[t(0x188)](t(0x19f))&&(Log[t(0x16a)](t(0x178)),this[t(0x163)][t(0x177)](t(0x19f),{'cwd':d}));if(h&&!this[t(0x188)](t(0x194))){Log[t(0x16a)](t(0x189));return;}const i={'name':pascalCase(b[t(0x184)]),'myPath':a102e[t(0x185)](this['fsi'][t(0x18e)]({}),e),'cssCaseName':paramCase(b[t(0x184)]),'className':pascalCase(b[t(0x184)]),'camelCaseName':camelCase(b[t(0x184)]),'fileName':paramCase(b[t(0x184)]),'graphql':f[t(0x19e)][t(0x18a)],'features':f['features'],'client':f[t(0x19e)][t(0x1a7)],'api':f[t(0x19e)][t(0x17f)],'ssr':f[t(0x19e)][t(0x179)],'test':f[t(0x19e)][t(0x1a9)],'theme':f['engines'][t(0x198)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x17e)]['withTranslations']};f[t(0x17e)]?.[t(0x1aa)]||b[t(0x1a0)]?this[t(0x163)][t(0x170)]({'srcPath':t(0x1a4),'destPath':e+'.js','framework':t(0x194),'context':i,'config':f}):this[t(0x163)]['template']({'srcPath':t(0x19a),'destPath':e+t(0x175),'framework':t(0x194),'context':i,'config':f});f[t(0x19e)][t(0x1a9)]!=='none'&&this[t(0x163)][t(0x170)]({'srcPath':t(0x19c),'destPath':e+'.app-tests.js','framework':t(0x194),'context':i,'config':f});f['template'][t(0x18d)]&&(this[t(0x163)]['template']({'srcPath':t(0x181),'destPath':e+'.css','context':Object['assign']({},i,{'className':paramCase(b[t(0x184)])}),'config':f}),this[t(0x163)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x19e)]['js'],'content':'import\x20\x27./'+i[t(0x18f)]+'.'+f[t(0x19e)][t(0x18d)]+'\x27;'}));const j=b[t(0x193)]?'/'+b[t(0x193)]+'/':'/',k=''+c+j+i[t(0x18f)]+'/'+i[t(0x18f)];let l;if(f['engines']['ssr']===t(0x16f)){const m=this[t(0x163)][t(0x183)]({'pathParts':[t(0x176),t(0x1a1),t(0x1a5),'templates.js']});l=this[t(0x163)][t(0x174)]({'pathParts':[m],'config':f});}else{const n=this[t(0x163)][t(0x183)]({'pathParts':['imports',t(0x1a1),t(0x1a7),t(0x16d)]});l=this[t(0x163)][t(0x174)]({'pathParts':[n],'config':f});}f[t(0x19e)][t(0x1a7)]===t(0x194)?(f[t(0x19e)]['js']===t(0x197)?this[t(0x163)][t(0x166)]({'filePath':l,'content':t(0x195)+i[t(0x187)]+t(0x191)+k+t(0x186)}):this[t(0x163)][t(0x166)]({'filePath':l,'content':t(0x195)+i[t(0x187)]+t(0x191)+k+'.'+f[t(0x19e)]['js']+t(0x186)}),this[t(0x163)][t(0x182)]({'filePath':l,'content':'export\x20{\x20'+i['className']+'\x20};\x0a'})):this[t(0x163)]['injectAtEndOfFile']({'filePath':l,'content':t(0x171)+k+'.'+f[t(0x19e)]['js']+t(0x186)});});});
@@ -1 +1 @@
1
- const a101h=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x1e7))/0x1*(parseInt(f(0x1f8))/0x2)+parseInt(f(0x1ee))/0x3*(-parseInt(f(0x1f3))/0x4)+parseInt(f(0x1ef))/0x5+parseInt(f(0x1ec))/0x6*(parseInt(f(0x1eb))/0x7)+parseInt(f(0x1e6))/0x8+-parseInt(f(0x1e8))/0x9*(parseInt(f(0x1f0))/0xa)+-parseInt(f(0x1e9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x4cde3));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(0x1ed)]()[g(0x1f5)](g(0x1f2))['toString']()['constructor'](a101a)[g(0x1f5)](g(0x1f2));});a101a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a101h(0x1f6),'validOpts':[],'description':a101h(0x1f4),'usage':a101h(0x1f1),'examples':[a101h(0x1ea),a101h(0x1f7)]},function(){return null;});export default MakaGen;function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1e6;let f=c[d];return f;},a101d(a,b);}function a101c(){const i=['2684loxNRr','\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','search','Maka!','maka\x20g:hook\x20cool-hook','272234OzkVUn','3385120ykFKsJ','4KJVYlT','12357rcGloL','10801120VbzOKm','maka\x20generate:api\x20Trucks','622678fqIlkc','36fnloPB','toString','507VGRuSs','2688360EHXDnz','4580tTpSmC','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','(((.+)+)+)+$'];a101c=function(){return i;};return a101c();}
1
+ function a103c(){const j=['maka','toString','maka\x20g:hook\x20cool-hook','72oqQTlm','3846465WPqjIN','apply','Maka!','1684MZufRn','constructor','32udkXlp','2509470rwuoka','\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','25439900bCSJRb','2692485bXluME','5312484nvYZDP','search','(((.+)+)+)+$','19179IIGNjc','2136RWwgWF'];a103c=function(){return j;};return a103c();}const a103i=a103d;function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x8f;let f=c[d];return f;},a103d(a,b);}(function(a,b){const f=a103d,c=a();while(!![]){try{const d=-parseInt(f(0x8f))/0x1*(parseInt(f(0x94))/0x2)+parseInt(f(0x90))/0x3*(parseInt(f(0x98))/0x4)+-parseInt(f(0x9e))/0x5+parseInt(f(0x9f))/0x6+-parseInt(f(0x95))/0x7+parseInt(f(0x9a))/0x8*(-parseInt(f(0x9b))/0x9)+parseInt(f(0x9d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xcbf48));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a103d;if(c){const e=c[g(0x96)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const h=a103d;return a103a[h(0x92)]()['search'](h(0xa1))[h(0x92)]()[h(0x99)](a103a)[h(0xa0)]('(((.+)+)+)+$');});a103a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a103i(0x91),'shortDesc':a103i(0x97),'validOpts':[],'description':a103i(0x9c),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':['maka\x20generate:api\x20Trucks',a103i(0x93)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a102n=a102d;(function(a,b){const k=a102d,c=a();while(!![]){try{const d=parseInt(k(0x14b))/0x1*(parseInt(k(0x13f))/0x2)+parseInt(k(0x13c))/0x3*(parseInt(k(0x14c))/0x4)+-parseInt(k(0x131))/0x5*(parseInt(k(0x142))/0x6)+parseInt(k(0x13e))/0x7*(-parseInt(k(0x12d))/0x8)+parseInt(k(0x12f))/0x9*(-parseInt(k(0x129))/0xa)+-parseInt(k(0x137))/0xb*(parseInt(k(0x134))/0xc)+parseInt(k(0x147))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x7b669));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a102d;if(c){const e=c[l(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const m=a102d;return a102a[m(0x152)]()[m(0x151)]('(((.+)+)+)+$')[m(0x152)]()[m(0x12b)](a102a)[m(0x151)]('(((.+)+)+)+$');});function a102c(){const q=['installMeteorPackage','153BjwfOz','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','5RUNAZz','resourceName','tsx','18420gQovoz','-rpc-method.','dir','1441HsguNG','index.','ddp-rate-limiter','check','checkMeteorPackage','45oskcCv','-rpc-method\x27;','7xGxgxW','10PJJUvg','imports','maka\x20{generate,\x20g}:{method,\x20m}\x20name','4910970kInAzO','engines','getProjectConfig','method/method.js','error','23164986aQKikY','check\x20ddp-rate-limiter\x20mdg:validated-method','warn','pathFromApp','94708EVOcRh','64708YGAFIo','create','appPathPrefix','apply','methods','search','toString','import\x20\x27./methods','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','template','152050SUondN','mdg:validated-method','constructor','fsi','5716824KDoBqF'];a102c=function(){return q;};return a102c();}a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x126;let f=c[d];return f;},a102d(a,b);}Generator[a102n(0x14d)]({'name':'method','aliases':['m'],'usage':a102n(0x141),'checkWhere':!![],'shortDesc':a102n(0x130),'validOpts':[a102n(0x136)],'examples':['maka\x20g:method\x20todos']},function(a,b){const o=a102n;try{const c=this[o(0x12c)][o(0x144)]();this[o(0x12c)]['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x132)]),f={'name':b[p(0x132)],'fileName':d,'className':pascalCase(b[p(0x132)]),'camelCase':camelCase(b[p(0x132)]),'noRename':!![]};let g='js';c[p(0x143)]['js']===p(0x133)&&(g='ts');const h=this['fsi'][p(0x14a)]({});(!this[p(0x12c)][p(0x13b)](p(0x13a))||!this[p(0x12c)][p(0x13b)](p(0x139))||!this[p(0x12c)]['checkMeteorPackage'](p(0x12a)))&&(Log[p(0x149)](p(0x127)),this[p(0x12c)][p(0x12e)](p(0x148),{'cwd':h}));this[p(0x12c)][p(0x128)]({'srcPath':p(0x145),'destPath':this[p(0x12c)][p(0x14a)]({'pathParts':[p(0x140),'startup',b[p(0x14e)],p(0x150),b[p(0x136)],d+p(0x135)+g]}),'context':f,'config':c});const i=b[p(0x136)]?'/'+b[p(0x136)]+'/':'/',j=this[p(0x12c)][p(0x14a)]({'pathParts':[p(0x140),'startup',b[p(0x14e)],p(0x138)+c[p(0x143)]['js']]});this[p(0x12c)]['injectAtEndOfFile']({'filePath':j,'content':p(0x126)+i+d+p(0x13d)});});}catch(d){Log[o(0x146)](d);}});
1
+ const a104n=a104d;(function(a,b){const k=a104d,c=a();while(!![]){try{const d=-parseInt(k(0x1bb))/0x1*(parseInt(k(0x1da))/0x2)+parseInt(k(0x1be))/0x3*(-parseInt(k(0x1d8))/0x4)+parseInt(k(0x1ae))/0x5*(-parseInt(k(0x1b0))/0x6)+-parseInt(k(0x1d5))/0x7*(-parseInt(k(0x1b8))/0x8)+parseInt(k(0x1b5))/0x9+-parseInt(k(0x1bd))/0xa*(parseInt(k(0x1cf))/0xb)+parseInt(k(0x1d9))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x67d11));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a104d;if(c){const e=c[l(0x1b2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const m=a104d;return a104a['toString']()[m(0x1cc)](m(0x1b7))['toString']()[m(0x1bc)](a104a)[m(0x1cc)]('(((.+)+)+)+$');});a104a();import{Generator}from'../generator.js';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);}function a104c(){const q=['resourceName','check\x20ddp-rate-limiter\x20mdg:validated-method','8RbDmYe','19754376pweiVL','4JtdHvS','23735XjSIGI','method/method.js','1062qoVGLv','pathFromApp','apply','dir','tsx','4183425zbvtnW','startup','(((.+)+)+)+$','648bXJdpM','fsi','appPathPrefix','126843staNcs','constructor','44330SksCMO','622437JkORqz','getProjectConfig','warn','-rpc-method\x27;','check','withValue','method','error','checkMeteorPackage','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','injectAtEndOfFile','import\x20\x27./methods','template','mdg:validated-method','search','maka\x20g:method\x20todos','imports','1892KdjOXS','maka\x20{generate,\x20g}:{method,\x20m}\x20name','index.','methods','engines','ddp-rate-limiter','50603LFhRyb'];a104c=function(){return q;};return a104c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a104n(0x1c4),'aliases':['m'],'usage':a104n(0x1d0),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':['dir'],'examples':[a104n(0x1cd)]},function(a,b){const o=a104n;try{const c=this[o(0x1b9)][o(0x1bf)]();this['fsi'][o(0x1c3)](c,async()=>{const p=o,d=paramCase(b[p(0x1d6)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x1d6)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x1d3)]['js']===p(0x1b4)&&(g='ts');const h=this[p(0x1b9)][p(0x1b1)]({});(!this[p(0x1b9)][p(0x1c6)](p(0x1c2))||!this['fsi'][p(0x1c6)](p(0x1d4))||!this['fsi'][p(0x1c6)](p(0x1cb)))&&(Log[p(0x1c0)](p(0x1c7)),this[p(0x1b9)]['installMeteorPackage'](p(0x1d7),{'cwd':h}));this['fsi'][p(0x1ca)]({'srcPath':p(0x1af),'destPath':this[p(0x1b9)][p(0x1b1)]({'pathParts':[p(0x1ce),'startup',b[p(0x1ba)],p(0x1d2),b[p(0x1b3)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x1b3)]?'/'+b[p(0x1b3)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':['imports',p(0x1b6),b['appPathPrefix'],p(0x1d1)+c[p(0x1d3)]['js']]});this[p(0x1b9)][p(0x1c8)]({'filePath':j,'content':p(0x1c9)+i+d+p(0x1c1)});});}catch(d){Log[o(0x1c5)](d);}});
@@ -1 +1 @@
1
- const a103o=a103d;(function(a,b){const l=a103d,c=a();while(!![]){try{const d=-parseInt(l(0x180))/0x1*(parseInt(l(0x1a0))/0x2)+-parseInt(l(0x19a))/0x3*(-parseInt(l(0x186))/0x4)+parseInt(l(0x19f))/0x5*(parseInt(l(0x1a6))/0x6)+-parseInt(l(0x18e))/0x7*(-parseInt(l(0x199))/0x8)+-parseInt(l(0x17a))/0x9*(-parseInt(l(0x196))/0xa)+-parseInt(l(0x1a5))/0xb+parseInt(l(0x1a3))/0xc*(parseInt(l(0x1a9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x194e7));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a103d;if(c){const e=c[m(0x1a2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const n=a103d;return a103a[n(0x17d)]()['search']('(((.+)+)+)+$')[n(0x17d)]()[n(0x19e)](a103a)['search'](n(0x17f));});a103a();import a103e from'path';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x17a;let f=c[d];return f;},a103d(a,b);}function a103c(){const s=['432MhhkTW','resourceName','features','toString','withValue','(((.+)+)+)+$','3GSBxyD','client','engines','noRename','template/template.js','packages','4412QHdphG','/package.js','component','store','layout','pathFromAppWithNoReWrite','pathFromProject','maka\x20g:package\x20todos:package','1001xykwnb','tests/client','hasOwnProperty','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','.js','fsi','template','dir','5150ifUCWS','relative','create','5944sAvhHV','291RMQoss','theme','ssr','package.js','constructor','15HXuZUA','88318hFQExD','tests/server','apply','2484afWAWN','package/package.js','1595000UuzpMc','108738TIcfPb','forEach','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','5577PjCFXu'];a103c=function(){return s;};return a103c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103o(0x198)]({'name':'package','aliases':['p'],'usage':a103o(0x191),'shortDesc':a103o(0x1a8),'validOpts':['dir'],'examples':[a103o(0x18d)]},async function(a,b){const p=a103o,c=paramCase(b[p(0x17b)]),d=this[p(0x193)]['pathFromApp']({'pathParts':['packages',b['dir'],c]}),e=this[p(0x193)][p(0x18b)]({'pathParts':[p(0x185),b[p(0x195)],c,p(0x19d)]}),f=this[p(0x193)]['getProjectConfig']();this['fsi'][p(0x17e)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x17b)]),'myPath':a103e[q(0x197)](this[q(0x193)][q(0x18c)]({}),d),'cssCaseName':paramCase(b[q(0x17b)]),'className':pascalCase(b[q(0x17b)]),'camelCaseName':camelCase(b[q(0x17b)]),'fileName':c,'client':f[q(0x182)][q(0x181)],'graphql':f[q(0x182)]['graphql'],'ssr':f[q(0x182)][q(0x19c)],'isComponent':b[q(0x190)](q(0x188)),'isLayout':b[q(0x190)](q(0x18a)),'isStore':b[q(0x190)](q(0x189)),'features':f[q(0x17c)],'noRename':!![],'theme':f['engines'][q(0x19b)]};this['fsi'][q(0x194)]({'srcPath':q(0x1a4),'destPath':e,'context':g,'config':f}),g[q(0x183)]=![];const h=d+'/client/'+c+q(0x192);this[q(0x193)][q(0x194)]({'srcPath':q(0x184),'destPath':h,'context':g,'config':f});const i=['lib','server',q(0x18f),q(0x1a1)];i[q(0x1a7)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this['fsi'][r(0x194)]({'srcPath':'package/'+j+r(0x187),'destPath':k,'context':g,'config':f});});});});
1
+ function a105c(){const s=['pathFromApp','/package.js','graphql','template','features','noRename','hasOwnProperty','package.js','store','462287EJyCmZ','withValue','2567934xCQRUK','tests/server','forEach','(((.+)+)+)+$','10WRcsQV','layout','1527cLOpbv','ssr','fsi','546716NablNI','package/package.js','12IYgBUg','getProjectConfig','client','apply','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','5dCqExO','package','46665QUVkTw','create','maka\x20g:package\x20todos:package','component','packages','search','toString','engines','2180784HorAEd','534ZpEdWj','12773662wdayGW','resourceName','.js','constructor','dir','/client/'];a105c=function(){return s;};return a105c();}const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x15e))/0x1+-parseInt(l(0x167))/0x2*(parseInt(l(0x152))/0x3)+-parseInt(l(0x155))/0x4*(parseInt(l(0x15c))/0x5)+parseInt(l(0x157))/0x6*(-parseInt(l(0x14a))/0x7)+-parseInt(l(0x166))/0x8+-parseInt(l(0x14c))/0x9*(parseInt(l(0x150))/0xa)+parseInt(l(0x168))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x251b5));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x164)]()[n(0x163)](n(0x14f))[n(0x164)]()[n(0x16b)](a105a)[n(0x163)](n(0x14f));});a105a();import a105e from'path';import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x14a;let f=c[d];return f;},a105d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105o(0x15f)]({'name':a105o(0x15d),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a105o(0x15b),'validOpts':[a105o(0x16c)],'examples':[a105o(0x160)]},async function(a,b){const p=a105o,c=paramCase(b[p(0x169)]),d=this[p(0x154)][p(0x16e)]({'pathParts':[p(0x162),b['dir'],c]}),e=this[p(0x154)]['pathFromAppWithNoReWrite']({'pathParts':['packages',b['dir'],c,p(0x175)]}),f=this[p(0x154)][p(0x158)]();this['fsi'][p(0x14b)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a105e['relative'](this[q(0x154)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x169)]),'className':pascalCase(b[q(0x169)]),'camelCaseName':camelCase(b[q(0x169)]),'fileName':c,'client':f['engines'][q(0x159)],'graphql':f[q(0x165)][q(0x170)],'ssr':f['engines'][q(0x153)],'isComponent':b['hasOwnProperty'](q(0x161)),'isLayout':b[q(0x174)](q(0x151)),'isStore':b['hasOwnProperty'](q(0x176)),'features':f[q(0x172)],'noRename':!![],'theme':f[q(0x165)]['theme']};this[q(0x154)][q(0x171)]({'srcPath':q(0x156),'destPath':e,'context':g,'config':f}),g[q(0x173)]=![];const h=d+q(0x16d)+c+q(0x16a);this[q(0x154)][q(0x171)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=['lib','server','tests/client',q(0x14d)];i[q(0x14e)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x16a);this[r(0x154)][r(0x171)]({'srcPath':'package/'+j+r(0x16f),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a104p=a104d;(function(a,b){const m=a104d,c=a();while(!![]){try{const d=-parseInt(m(0x231))/0x1*(parseInt(m(0x226))/0x2)+parseInt(m(0x22f))/0x3+-parseInt(m(0x20a))/0x4*(parseInt(m(0x1fa))/0x5)+-parseInt(m(0x230))/0x6*(parseInt(m(0x22b))/0x7)+-parseInt(m(0x232))/0x8*(parseInt(m(0x227))/0x9)+parseInt(m(0x1f2))/0xa+parseInt(m(0x1f1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xb76f3));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a104d;if(c){const e=c[n(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const o=a104d;return a104a[o(0x220)]()['search'](o(0x20d))[o(0x220)]()['constructor'](a104a)['search'](o(0x20d));});function a104c(){const s=['template','injectAtBeginningOfFile','installNpmPackage','ramda','vanilla','10841050HCfqNs','14406800bRlXJV','test','injectAtEndOfFile','fileName','withTranslations','string','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','setTemplate','5NjufbK','pathFromProject','dir','\x27;\x0a','none','apply','lib','tsx','withValue','className','import\x20\x27','resourceName','engines','graphql','/imports/ui/pages','react','2192700GOOXnH','test/test.js','template/template.html','(((.+)+)+)+$','withHook','create','startup','import\x20\x27./','templates.js','.app-tests.js','features','\x20};\x0a','component','.js','assign','Generate\x20a\x20page.','\x20}\x20from\x20\x27','withHooks','imports','hasOwnProperty','api','Updating\x20npm\x20packages\x20...','toString','getProjectConfig','client','root','import\x20{\x20','hook/hook.js','16UYPqvh','3123CQKFOS','template/template.css','css','.html','686daroVH','html','rewriteDestinationPathForEngine','fsi','3710415YgpeMj','10062chxcTj','101873zAVVwb','31912SiYqLu','true','.css','pathFromApp','component/component.js','checkNpmPackage'];a104c=function(){return s;};return a104c();}a104a();import a104e from'path';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1ee;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=['p'];Generator[a104p(0x20f)]({'name':'page','aliases':aliases,'usage':a104p(0x1f8),'shortDesc':a104p(0x219),'validOpts':['dir','withHook'],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a104p,c=q(0x208),d=this[q(0x22e)][q(0x235)](b),e=this['fsi'][q(0x235)]({'pathParts':[c,b[q(0x1fc)],paramCase(b[q(0x205)]),paramCase(b['resourceName'])]}),f=this[q(0x22e)][q(0x221)]();this[q(0x22e)][q(0x202)](f,()=>{const r=q;typeof f['template'][r(0x22c)]===r(0x1f7)&&(f[r(0x238)][r(0x22c)]=f[r(0x238)]['html']===r(0x233)?!![]:![],this['fsi']['setTemplate'](r(0x22c),f[r(0x238)][r(0x22c)]));typeof f['template'][r(0x1f3)]===r(0x1f7)&&(f['template'][r(0x1f3)]=f[r(0x238)][r(0x1f3)]==='true'?!![]:![],this[r(0x22e)][r(0x1f9)]('test',f[r(0x238)][r(0x1f3)]));typeof f[r(0x238)][r(0x229)]===r(0x1f7)&&(f[r(0x238)]['css']=f[r(0x238)][r(0x229)]==='true'?!![]:![],this[r(0x22e)][r(0x1f9)](r(0x229),f['template'][r(0x229)]));typeof f['template']['js']===r(0x1f7)&&(f[r(0x238)]['js']=f[r(0x238)]['js']===r(0x233)?!![]:![],this[r(0x22e)][r(0x1f9)]('js',f['template']['js']));!f['features']&&(f['features']={});!b[r(0x223)]&&!this['fsi'][r(0x237)](r(0x1ef))&&(Log['warn'](r(0x21f)),this[r(0x22e)][r(0x1ee)](r(0x1ef),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a104e['relative'](this[r(0x22e)][r(0x1fb)]({}),e),'cssCaseName':paramCase(b[r(0x205)]),'className':pascalCase(b[r(0x205)]),'camelCaseName':camelCase(b[r(0x205)]),'fileName':paramCase(b[r(0x205)]),'graphql':f['engines'][r(0x207)],'features':f[r(0x214)],'client':f[r(0x206)][r(0x222)],'api':f['engines'][r(0x21e)],'ssr':f[r(0x206)]['ssr'],'isStore':b[r(0x21d)]('store'),'isComponent':b['hasOwnProperty'](r(0x216)),'isLayout':b[r(0x21d)]('layout'),'withTranslations':f[r(0x214)][r(0x1f6)],'test':f[r(0x206)][r(0x1f3)],'theme':f[r(0x206)]['theme']};f[r(0x238)][r(0x22c)]&&this[r(0x22e)][r(0x238)]({'srcPath':r(0x20c),'destPath':e+r(0x22a),'context':g,'config':f});f[r(0x214)]?.[r(0x21b)]||b[r(0x20e)]?this[r(0x22e)][r(0x238)]({'srcPath':r(0x225),'destPath':e+r(0x217),'framework':'react','context':g,'config':f}):this[r(0x22e)][r(0x238)]({'srcPath':r(0x236),'destPath':e+r(0x217),'framework':r(0x209),'context':g,'config':f});f['engines'][r(0x1f3)]!==r(0x1fe)&&this[r(0x22e)][r(0x238)]({'srcPath':r(0x20b),'destPath':e+r(0x213),'framework':r(0x209),'context':g,'config':f});f['template'][r(0x229)]&&this[r(0x22e)][r(0x238)]({'srcPath':r(0x228),'destPath':e+r(0x234),'context':Object[r(0x218)]({},g,{'className':paramCase(b[r(0x205)])}),'config':f});f[r(0x206)][r(0x222)]!==r(0x209)&&f[r(0x206)][r(0x222)]!==r(0x1f0)?(f['template']['css']&&this[r(0x22e)][r(0x239)]({'filePath':e+'.'+f[r(0x206)]['js'],'content':r(0x211)+g[r(0x1f5)]+'.'+f['engines']['html']+r(0x1fd)+r(0x211)+g[r(0x1f5)]+'.'+f['engines'][r(0x229)]+'\x27;'}),!f[r(0x238)]['css']&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x206)]['js'],'content':r(0x211)+g[r(0x1f5)]+'.'+f['engines'][r(0x22c)]+'\x27;'})):f[r(0x238)][r(0x229)]&&this[r(0x22e)][r(0x239)]({'filePath':e+'.'+f[r(0x206)]['js'],'content':r(0x211)+g[r(0x1f5)]+'.'+f[r(0x206)][r(0x229)]+'\x27;'});const h=b[r(0x1fc)]?'/'+b['dir']+'/':'/',i=''+c+h+g[r(0x1f5)]+'/'+g[r(0x1f5)];let j;if(f['engines']['ssr']===r(0x233)){const k=this[r(0x22e)]['pathFromApp']({'pathParts':[r(0x21c),r(0x210),r(0x200),r(0x212)]});j=this[r(0x22e)][r(0x22d)]({'pathParts':[k],'config':f});}else{const l=this[r(0x22e)][r(0x235)]({'pathParts':[r(0x21c),'startup','client','templates.js']});j=this[r(0x22e)][r(0x22d)]({'pathParts':[l],'config':f});}f[r(0x206)][r(0x222)]===r(0x209)?(f['engines']['js']===r(0x201)?this[r(0x22e)][r(0x239)]({'filePath':j,'content':'import\x20{\x20'+g[r(0x203)]+r(0x21a)+i+'\x27;\x0a'}):this[r(0x22e)][r(0x239)]({'filePath':j,'content':r(0x224)+g[r(0x203)]+r(0x21a)+i+'.'+f[r(0x206)]['js']+'\x27;\x0a'}),this['fsi'][r(0x1f4)]({'filePath':j,'content':'export\x20{\x20'+g['className']+r(0x215)})):this['fsi']['injectAtEndOfFile']({'filePath':j,'content':r(0x204)+i+'.'+f[r(0x206)]['js']+'\x27;\x0a'});});});
1
+ const a106q=a106d;(function(a,b){const n=a106d,c=a();while(!![]){try{const d=parseInt(n(0xe3))/0x1*(-parseInt(n(0x104))/0x2)+parseInt(n(0xf1))/0x3+-parseInt(n(0x118))/0x4+-parseInt(n(0xd8))/0x5*(parseInt(n(0xff))/0x6)+-parseInt(n(0x109))/0x7*(parseInt(n(0x108))/0x8)+-parseInt(n(0xef))/0x9*(parseInt(n(0x112))/0xa)+parseInt(n(0xd7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x6a327));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a106d;if(c){const e=c[o(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const p=a106d;return a106a['toString']()[p(0x100)](p(0x11c))[p(0x10f)]()[p(0x111)](a106a)[p(0x100)](p(0x11c));});a106a();import a106e from'path';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-0xcb;let f=c[d];return f;},a106d(a,b);}import{UsageError}from'../error.js';function a106c(){const t=['react','maka\x20g:page\x20todos/todos-item','toString','getProjectConfig','constructor','10fcWMYD','setTemplate','injectAtBeginningOfFile','layout','imports','relative','2878732yCdPbm','templates.js','test','\x20};\x0a','(((.+)+)+)+$','pathFromProject','error','root','className','hook/hook.js','import\x20{\x20','\x20}\x20from\x20\x27','.html','assign','vanilla','withHooks','.js','startup','24499189ebXMcq','475zTIleJ','Updating\x20npm\x20packages\x20...','string','pages','true','injectAtEndOfFile','lib','pathFromApp','fsi','html','/imports/ui/','199534iXMyaR','features','rewriteDestinationPathForEngine','store','css','api','theme','apply','Invalid\x20directory\x20option\x20\x22','\x27;\x0a','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','ssr','3003102niJfgh','withHook','2064225KMryyf','installNpmPackage','fileName','components','template/template.html','resourceName','none','import\x20\x27','create','dir','template','Generate\x20a\x20page.','baseDir','hooks','17436sGXusy','search','hasOwnProperty','.app-tests.js','client','8ELqWXO','warn','tsx','import\x20\x27./','32rEdPdN','617267GGITPL','checkNpmPackage','Valid\x20options\x20are:\x20','engines'];a106c=function(){return t;};return a106c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a106q(0xf9)]({'name':'page','aliases':aliases,'usage':a106q(0xed),'shortDesc':a106q(0xfc),'validOpts':[a106q(0xfd),a106q(0xf0)],'examples':[a106q(0x10e)]},function(a,b){const r=a106q,c=[r(0xfe),r(0xf4),r(0xdb),'layouts'];if(b[r(0xfd)]&&!c['includes'](b[r(0xfd)])){Log[r(0xcb)](r(0xeb)+b[r(0xfd)]+'\x22'),Log[r(0xcb)](r(0x10b)+c['join'](',\x20'));throw new UsageError();}const d=b[r(0xfd)]?r(0xe2)+b[r(0xfd)]:'/imports/ui/pages',e=this['fsi'][r(0xdf)](b),f=this[r(0xe0)]['pathFromApp']({'pathParts':[d,b[r(0xfa)],b['resourceName'],paramCase(b[r(0xf6)])]}),g=this[r(0xe0)][r(0x110)]();this['fsi']['withValue'](g,()=>{const s=r;typeof g[s(0xfb)][s(0xe1)]==='string'&&(g[s(0xfb)][s(0xe1)]=g[s(0xfb)]['html']==='true'?!![]:![],this[s(0xe0)][s(0x113)]('html',g[s(0xfb)]['html']));typeof g[s(0xfb)][s(0x11a)]===s(0xda)&&(g['template']['test']=g[s(0xfb)][s(0x11a)]===s(0xdc)?!![]:![],this[s(0xe0)][s(0x113)](s(0x11a),g['template'][s(0x11a)]));typeof g[s(0xfb)][s(0xe7)]===s(0xda)&&(g[s(0xfb)][s(0xe7)]=g[s(0xfb)][s(0xe7)]===s(0xdc)?!![]:![],this['fsi'][s(0x113)](s(0xe7),g[s(0xfb)][s(0xe7)]));typeof g['template']['js']==='string'&&(g[s(0xfb)]['js']=g['template']['js']===s(0xdc)?!![]:![],this[s(0xe0)][s(0x113)]('js',g[s(0xfb)]['js']));!g[s(0xe4)]&&(g[s(0xe4)]={});!b[s(0xcc)]&&!this[s(0xe0)][s(0x10a)]('ramda')&&(Log[s(0x105)](s(0xd9)),this[s(0xe0)][s(0xf2)]('ramda',{'cwd':e}));const h={'name':pascalCase(b[s(0xf6)]),'myPath':a106e[s(0x117)](this['fsi'][s(0x11d)]({}),f),'cssCaseName':paramCase(b[s(0xf6)]),'className':pascalCase(b[s(0xf6)]),'camelCaseName':camelCase(b[s(0xf6)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x10c)]['graphql'],'features':g[s(0xe4)],'client':g[s(0x10c)]['client'],'api':g[s(0x10c)][s(0xe8)],'ssr':g['engines'][s(0xee)],'isStore':b['hasOwnProperty'](s(0xe6)),'isComponent':b[s(0x101)]('component'),'isLayout':b[s(0x101)](s(0x115)),'withTranslations':g[s(0xe4)]['withTranslations'],'test':g[s(0x10c)][s(0x11a)],'theme':g[s(0x10c)][s(0xe9)]};g[s(0xfb)][s(0xe1)]&&this['fsi'][s(0xfb)]({'srcPath':s(0xf5),'destPath':f+s(0xd1),'context':h,'config':g});g['features']?.[s(0xd4)]||b[s(0xf0)]?this['fsi'][s(0xfb)]({'srcPath':s(0xce),'destPath':f+'.js','framework':s(0x10d),'context':h,'config':g}):this[s(0xe0)]['template']({'srcPath':'component/component.js','destPath':f+s(0xd5),'framework':s(0x10d),'context':h,'config':g});g[s(0x10c)][s(0x11a)]!==s(0xf7)&&this['fsi'][s(0xfb)]({'srcPath':'test/test.js','destPath':f+s(0x102),'framework':s(0x10d),'context':h,'config':g});g[s(0xfb)][s(0xe7)]&&this['fsi'][s(0xfb)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[s(0xd2)]({},h,{'className':paramCase(b[s(0xf6)])}),'config':g});g[s(0x10c)]['client']!=='react'&&g[s(0x10c)][s(0x103)]!==s(0xd3)?(g[s(0xfb)][s(0xe7)]&&this[s(0xe0)][s(0x114)]({'filePath':f+'.'+g[s(0x10c)]['js'],'content':'import\x20\x27./'+h[s(0xf3)]+'.'+g['engines'][s(0xe1)]+s(0xec)+s(0x107)+h[s(0xf3)]+'.'+g['engines'][s(0xe7)]+'\x27;'}),!g[s(0xfb)][s(0xe7)]&&this[s(0xe0)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x10c)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+g[s(0x10c)][s(0xe1)]+'\x27;'})):g[s(0xfb)]['css']&&this[s(0xe0)][s(0x114)]({'filePath':f+'.'+g[s(0x10c)]['js'],'content':s(0x107)+h[s(0xf3)]+'.'+g[s(0x10c)][s(0xe7)]+'\x27;'});const i=b['dir']?'/'+b[s(0xfa)]+'/':'/',j=''+d+i+h[s(0xf3)]+'/'+h[s(0xf3)];let k;if(g[s(0x10c)][s(0xee)]===s(0xdc)){const l=this[s(0xe0)][s(0xdf)]({'pathParts':['imports','startup',s(0xde),s(0x119)]});k=this[s(0xe0)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0xe0)]['pathFromApp']({'pathParts':[s(0x116),s(0xd6),s(0x103),'templates.js']});k=this['fsi'][s(0xe5)]({'pathParts':[m],'config':g});}g[s(0x10c)][s(0x103)]===s(0x10d)?(g['engines']['js']===s(0x106)?this[s(0xe0)][s(0x114)]({'filePath':k,'content':'import\x20{\x20'+h[s(0xcd)]+'\x20}\x20from\x20\x27'+j+s(0xec)}):this[s(0xe0)][s(0x114)]({'filePath':k,'content':s(0xcf)+h['className']+s(0xd0)+j+'.'+g[s(0x10c)]['js']+'\x27;\x0a'}),this[s(0xe0)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h[s(0xcd)]+s(0x11b)})):this['fsi'][s(0xdd)]({'filePath':k,'content':s(0xf8)+j+'.'+g[s(0x10c)]['js']+s(0xec)});});});
@@ -1 +1 @@
1
- const a105k=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d=parseInt(h(0x1a8))/0x1+-parseInt(h(0x1a7))/0x2*(-parseInt(h(0x1a6))/0x3)+parseInt(h(0x1a4))/0x4*(parseInt(h(0x1b5))/0x5)+-parseInt(h(0x1ad))/0x6+-parseInt(h(0x1b6))/0x7*(-parseInt(h(0x1a5))/0x8)+-parseInt(h(0x1ba))/0x9*(parseInt(h(0x1b8))/0xa)+-parseInt(h(0x1b0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xb35fe));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a105d;if(c){const e=c[i(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const j=a105d;return a105a[j(0x1af)]()['search'](j(0x1b3))[j(0x1af)]()[j(0x1b7)](a105a)['search'](j(0x1b3));});a105a();function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a105d(a,b);}import{paramCase}from'change-case';import{Generator}from'../generator.js';function a105c(){const n=['injectAtEndOfFile','rewriteDestinationPathForEngine','server/publish.','withValue','7709862shtxcy','fsi','toString','2596902gjSMvP','apply','getProjectConfig','(((.+)+)+)+$','resourceName','83285XLOuTz','973392vqGHtr','constructor','13953710krzIPN','publish','9fMnKYa','engines','tsx','264eudcGo','56UUkYdP','2901657QFbWFU','2tyKoHb','611175toNpFt'];a105c=function(){return n;};return a105c();}Generator['create']({'name':a105k(0x1b9),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a105k,c=this[l(0x1ae)][l(0x1b2)]();this['fsi'][l(0x1ac)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x1b4)]),'noRename':!![]};let e='js';c[m(0x1bb)]['js']===m(0x1a3)&&(e='ts');const f=this[m(0x1ae)][m(0x1aa)]({'pathParts':[m(0x1ab)+c['engines']['js']]}),g=this[m(0x1ae)]['templateContent']({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x1ae)][m(0x1a9)]({'filePath':f,'content':'\x0a'+g});});});
1
+ const a107k=a107d;(function(a,b){const h=a107d,c=a();while(!![]){try{const d=-parseInt(h(0x202))/0x1*(parseInt(h(0x1f1))/0x2)+parseInt(h(0x1f3))/0x3+-parseInt(h(0x1f2))/0x4+-parseInt(h(0x1fe))/0x5*(parseInt(h(0x1f4))/0x6)+-parseInt(h(0x201))/0x7+-parseInt(h(0x1f7))/0x8+parseInt(h(0x1ff))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xd3869));function a107c(){const n=['1612084eRcmEQ','4241130PhXHLV','740562eJcnqL','engines','resourceName','8640560qnNbzY','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','search','injectAtEndOfFile','apply','tsx','(((.+)+)+)+$','5uRLCGK','33731757DvepMw','getProjectConfig','9469985FOyYPz','1335901QQjCPF','maka\x20g:publish\x20todos','constructor','toString','templateContent','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','withValue','create','fsi','2ROjRlN'];a107c=function(){return n;};return a107c();}function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a107d(a,b);}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a107d;if(c){const e=c[i(0x1fb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const j=a107d;return a107a[j(0x1eb)]()[j(0x1f9)](j(0x1fd))[j(0x1eb)]()[j(0x204)](a107a)[j(0x1f9)]('(((.+)+)+)+$');});a107a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a107k(0x1ef)]({'name':'publish','aliases':['p'],'usage':a107k(0x1f8),'shortDesc':a107k(0x1ed),'validOpts':[],'examples':[a107k(0x203)]},async function(a,b){const l=a107k,c=this[l(0x1f0)][l(0x200)]();this[l(0x1f0)][l(0x1ee)](c,async()=>{const m=l,d={'name':b[m(0x1f6)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c[m(0x1f5)]['js']===m(0x1fc)&&(e='ts');const f=this[m(0x1f0)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c['engines']['js']]}),g=this['fsi'][m(0x1ec)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x1f0)][m(0x1fa)]({'filePath':f,'content':'\x0a'+g});});});