@maka/maka-cli 4.5.27 → 4.5.28

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(0x1fb))/0x1+-parseInt(w(0x206))/0x2*(-parseInt(w(0x1de))/0x3)+parseInt(w(0x20d))/0x4+parseInt(w(0x213))/0x5*(parseInt(w(0x211))/0x6)+-parseInt(w(0x1f1))/0x7+-parseInt(w(0x1d0))/0x8*(parseInt(w(0x215))/0x9)+parseInt(w(0x20f))/0xa*(parseInt(w(0x1ca))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xb87ab));function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a94d(a,b);}const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a94d;if(c){const e=c[x(0x20b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const y=a94d;return a94a['toString']()[y(0x212)](y(0x1d4))[y(0x1fc)]()[y(0x1e9)](a94a)[y(0x212)](y(0x1d4));});a94a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a94e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a94c(){const C=['10776fZMoNm','/imports/api','pathFromApp','Resolvers);\x0a\x0a','(((.+)+)+)+$','push','findGenerator','GraphQL','api','Publications','RPC\x20(Methods)','API\x20boundaries\x20to\x20create','const','installMeteorPackage','3HkVRBF','typeList.push(','.app-tests.','injectAtEndOfFile','test','/graphql/resolvers','graphql','rest','injectIntoFile','maka:rest','none','constructor','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','rewriteDestinationPathForEngine','create','maka:check','engines','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','withFixtures','7131152lqzmPR','withMethods','api/publications.js','injectAtBeginningOfFile','apollo','fsi','api/api.js','checkbox','startup','maka\x20{generate,\x20g}:{api}\x20<resource-name>','581178sKNdLa','toString','ddp-rate-limiter','maka\x20g:api\x20todos','\x0aimport\x20{\x20resolvers\x20as\x20','No\x20API\x20boundaries\x20selected','api/tests.js','server','withGql','publications.','index.','1120382nynTqb','includes','dir','api/typeDefs.js','Resolvers\x20}\x20from\x20\x27','apply','api/methods.js','394532DXbjAQ','api/fixtures.js','10BjcxmL','if\x20\x5c(typeList','6wsRGRs','search','6759785TpUMZi','register-','8649mBphDO','error','collection','import\x20\x27./register-','withRest','apiAnswers','-api.','template','imports','5245581rmWLab','withPubs','resolverList.push(','withValue','checkMeteorPackage','fixtures.'];a94c=function(){return C;};return a94c();}Generator[a94z(0x1ec)]({'name':a94z(0x1d8),'aliases':['a'],'usage':a94z(0x1fa),'shortDesc':a94z(0x1ef),'validOpts':[a94z(0x208)],'examples':[a94z(0x1fe)]},async function(a,b){const A=a94z;try{const c=this[A(0x1f6)]['getProjectConfig'](),d=[{'name':A(0x1da),'value':A(0x1f2)},{'name':'Fixtures','value':A(0x1f0)},{'name':A(0x1d9),'value':A(0x1cb)}];c['engines']['api']===A(0x1e5)&&d['push']({'name':'REST\x20API','value':A(0x219)});c[A(0x1ee)][A(0x1e4)]===A(0x1f5)&&d[A(0x1d5)]({'name':A(0x1d7),'value':A(0x203)});const f={'type':A(0x1f8),'name':A(0x21a),'message':A(0x1db),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g['length']===0x0&&(Log[A(0x216)](A(0x200)),process['exit'](0x1)),this[A(0x1f6)][A(0x1cd)](c,async()=>{const B=A,h=this[B(0x1f6)][B(0x1d2)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x208)]?'/'+b[B(0x208)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x1d8)],'graphql':c['engines'][B(0x1e4)],'test':c[B(0x1ee)][B(0x1e2)],'noRename':!![],'withPubs':g[B(0x207)]('withPubs'),'withFixtures':g[B(0x207)](B(0x1f0)),'withMethods':g[B(0x207)](B(0x1f2)),'withRest':g[B(0x207)](B(0x219))};let n='js';c['engines']['js']==='tsx'&&(n='ts');(!this['fsi'][B(0x1ce)](B(0x1e7))||!this['fsi']['checkMeteorPackage'](B(0x1ed))||!this[B(0x1f6)][B(0x1ce)](B(0x1fd))||!this[B(0x1f6)][B(0x1ce)]('mdg:validated-method')||!this['fsi'][B(0x1ce)]('mongo'))&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements\x20...'),await this['fsi'][B(0x1dd)](B(0x1ea),{'cwd':h}));const o=a94e[B(0x1d6)](B(0x217));o&&await o['invoke']([j],{'config':c,'where':B(0x202)});c[B(0x1ee)][B(0x1d8)]===B(0x1e5)&&(m['withRest']&&this['fsi'][B(0x1c8)]({'srcPath':B(0x1f7),'destPath':this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][B(0x1c8)]({'srcPath':B(0x20c),'destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b['dir'],j,'rpc-methods.'+n]}),'context':m,'config':c});m[B(0x1f0)]&&this['fsi'][B(0x1c8)]({'srcPath':B(0x20e),'destPath':this['fsi'][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1cf)+n]}),'context':m,'config':c});c[B(0x1ee)][B(0x1e2)]!==B(0x1e8)&&this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x201),'destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b['dir'],j,j+B(0x1e0)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x1f3),'destPath':this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),'api',b[B(0x208)],j,B(0x204)+n]}),'context':m,'config':c});if(c[B(0x1ee)][B(0x1e4)]===B(0x1f5)){if(g[B(0x207)]('withGql')){const q=this['fsi']['pathFromApp']({'pathParts':['imports',B(0x1f9),'server',B(0x205)+c[B(0x1ee)]['js']]}),r=this[B(0x1f6)][B(0x1eb)]({'pathParts':[q],'config':c}),s=this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1e4),'typeDefs.'+n]}),t=B(0x1d1)+l+j+'/graphql/typeDefs';this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x209),'destPath':s,'context':m,'config':c}),this['fsi'][B(0x1f4)]({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+'TypeDefs\x20}\x20from\x20\x27'+t+'\x27;\x0a'}),this[B(0x1f6)][B(0x1e6)]({'filePath':r,'content':B(0x1df)+k+'TypeDefs);\x0a','begin':B(0x1dc),'end':'if\x20\x5c(typeList'});const u=this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1e4),'resolvers.'+n]}),v=B(0x1d1)+l+j+B(0x1e3);this['fsi'][B(0x1c8)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x1f6)][B(0x1f4)]({'filePath':r,'content':B(0x1ff)+k+B(0x20a)+v+'\x27;'}),this[B(0x1f6)][B(0x1e6)]({'filePath':r,'content':B(0x1cc)+k+B(0x1d3),'begin':'const','end':B(0x210)});}}this[B(0x1f6)][B(0x1c8)]({'srcPath':'api/register-api.js','destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1f9),B(0x202),B(0x214)+j+B(0x1c7)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1f9),'server',B(0x205)+c[B(0x1ee)]['js']]});this[B(0x1f6)][B(0x1e1)]({'filePath':p,'content':B(0x218)+j+'-api\x27;'});});}catch(h){console['log'](h),process['exit'](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(0x1f3))/0x1*(-parseInt(k(0x1ce))/0x2)+-parseInt(k(0x1da))/0x3+parseInt(k(0x1e8))/0x4+parseInt(k(0x1d8))/0x5+-parseInt(k(0x1f4))/0x6+parseInt(k(0x1e2))/0x7*(-parseInt(k(0x1c9))/0x8)+parseInt(k(0x1e1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x616c1));function a95c(){const q=['create','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','template','test','2SddXtb','.app-tests.','collection','where','dir','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','none','appPathPrefix','collections','injectAtEndOfFile','2561375zODFsL','(((.+)+)+)+$','1033827TlKFUK','resourceName','withValue','tsx','imports','startup','fsi','6531714JqJVvV','33299DWxXnc','error','getProjectConfig','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','collection/collection.js','collection/tests.js','858636zJaXAL','checkMeteorPackage','maka:check','mongo','engines','col','installMeteorPackage','apply','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','notice','toString','373181CCNynG','4409700yirCGZ','maka\x20g:collection\x20todos','import\x20\x27./collections','pathFromApp','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','584UkYKLS'];a95c=function(){return q;};return a95c();}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a95d;if(c){const e=c[l(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const m=a95d;return a95a[m(0x1f2)]()['search'](m(0x1d9))[m(0x1f2)]()['constructor'](a95a)['search']('(((.+)+)+)+$');});a95a();import{paramCase,pascalCase}from'change-case';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a95n(0x1ca)]({'name':a95n(0x1d0),'aliases':[a95n(0x1ed)],'usage':a95n(0x1c8),'checkWhere':!![],'shortDesc':a95n(0x1cb),'validOpts':[a95n(0x1d2),a95n(0x1d1)],'description':a95n(0x1e5),'examples':[a95n(0x1f5)]},async function(a,b){const o=a95n;try{const c=this['fsi'][o(0x1c7)]({}),d=this[o(0x1e0)][o(0x1e4)]();this[o(0x1e0)][o(0x1dc)](d,async()=>{const p=o,f=paramCase(b[p(0x1db)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x1d1)],'test':d[p(0x1ec)]['test'],'noRename':!![]};let h='js';d['engines']['js']===p(0x1dd)&&(h='ts');!this[p(0x1e0)][p(0x1e9)](p(0x1eb))&&(Log[p(0x1f1)](p(0x1d3)),await this[p(0x1e0)][p(0x1ee)](p(0x1eb),{'cwd':c}));!this[p(0x1e0)][p(0x1e9)](p(0x1ea))&&(Log[p(0x1f1)](p(0x1f0)),await this[p(0x1e0)][p(0x1ee)]('maka:check',{'cwd':c}));this[p(0x1e0)]['template']({'srcPath':p(0x1e6),'destPath':this[p(0x1e0)]['pathFromApp']({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],p(0x1d6),b[p(0x1d2)],f+'.'+h]}),'context':g,'config':d});d[p(0x1ec)][p(0x1cd)]!==p(0x1d4)&&this['fsi'][p(0x1cc)]({'srcPath':p(0x1e7),'destPath':this['fsi'][p(0x1c7)]({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],p(0x1d6),b[p(0x1d2)],f+p(0x1cf)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[p(0x1e0)][p(0x1c7)]({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],'index.'+d['engines']['js']]});this[p(0x1e0)][p(0x1d7)]({'filePath':j,'content':p(0x1c6)+i+f+'\x27;'});});}catch(f){Log[o(0x1e3)](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(0x10c))/0x1+-parseInt(o(0x100))/0x2+parseInt(o(0x137))/0x3+-parseInt(o(0x119))/0x4*(-parseInt(o(0xfe))/0x5)+parseInt(o(0x128))/0x6*(parseInt(o(0x10b))/0x7)+parseInt(o(0xfd))/0x8*(parseInt(o(0x142))/0x9)+-parseInt(o(0xf7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x39549));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a96d;if(c){const e=c[p(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const q=a96d;return a96a['toString']()[q(0x116)](q(0x122))[q(0x110)]()[q(0x138)](a96a)['search'](q(0x122));});function a96c(){const u=['\x20}\x20from\x20\x27','521320bMABcH','getProjectConfig','installNpmPackage','resourceName','create','assign','.css','reflux','component/component.js','test','root','147shWBXA','329043jTlhKT','tsx','string','fsi','toString','pages','baseDir','withValue','component','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','import\x20{\x20','features','68024FTEvph','graphql','hooks','setTemplate','apply','import\x20\x27','ramda','engines','injectAtBeginningOfFile','(((.+)+)+)+$','withTranslations','\x27;\x0a','relative','injectAtEndOfFile','error','95076PZzTmn','warn','components','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','.js','cssCaseName','maka\x20g:comp\x20todos/todos-item','findAppDirectory','\x20};\x0a','true','import\x20\x27./','pathFromProject','fileName','templates.js','className','635196aYMDqa','constructor','theme','template','css','Invalid\x20directory\x20option\x20\x22','dir','startup','/imports/ui/','template/template.css','react','9GSMMtX','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','imports','/imports/ui/components','8530330wCJzGD','pathFromApp','checkNpmPackage','api','client','rewriteDestinationPathForEngine','1895144wknYhT','70dHKEcC'];a96c=function(){return u;};return a96c();}function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xf4;let f=c[d];return f;},a96d(a,b);}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';const aliases=['comp'];Generator[a96r(0x104)]({'name':a96r(0x114),'aliases':aliases,'usage':a96r(0x12b),'shortDesc':a96r(0xf4),'validOpts':[a96r(0x112)],'examples':[a96r(0x12e)]},async function(a,b){const s=a96r;try{const c=[s(0x11b),s(0x12a),s(0x111),'layouts'];if(b[s(0x112)]&&!c['includes'](b['baseDir'])){Log[s(0x127)](s(0x13c)+b[s(0x112)]+'\x22'),Log[s(0x127)]('Valid\x20options\x20are:\x20'+c['join'](',\x20'));throw new UsageError();}const d=this[s(0x10f)][s(0x12f)](),f=b[s(0x112)]?s(0x13f)+b['baseDir']:s(0xf6),g=this['fsi']['pathFromApp']({'pathParts':[f,b['dir'],b['resourceName'],paramCase(b[s(0x103)])]}),h=await this[s(0x10f)][s(0x101)]();this['fsi'][s(0x113)](h,async()=>{const t=s;typeof h['template'][t(0x109)]==='string'&&(h[t(0x13a)]['test']=h[t(0x13a)]['test']==='true'?!![]:![],this['fsi']['setTemplate'](t(0x109),h['template']['test']));typeof h[t(0x13a)]['css']==='string'&&(h[t(0x13a)]['css']=h[t(0x13a)][t(0x13b)]===t(0x131)?!![]:![],this['fsi'][t(0x11c)](t(0x13b),h[t(0x13a)][t(0x13b)]));typeof h['template']['js']===t(0x10e)&&(h[t(0x13a)]['js']=h[t(0x13a)]['js']===t(0x131)?!![]:![],this[t(0x10f)][t(0x11c)]('js',h['template']['js']));!h[t(0x118)]&&(h[t(0x118)]={});!b[t(0x10a)]&&!this[t(0x10f)][t(0xf9)]('ramda')&&(Log[t(0x129)](t(0x143)),await this[t(0x10f)][t(0x102)](t(0x11f),{'cwd':d}));if(!b[t(0x10a)]&&!this['fsi']['checkNpmPackage']('react')){Log['error'](t(0x115));return;}const i={'name':pascalCase(b[t(0x103)]),'myPath':a96e[t(0x125)](this[t(0x10f)][t(0x133)]({}),g),'cssCaseName':paramCase(b[t(0x103)]),'className':pascalCase(b[t(0x103)]),'camelCaseName':camelCase(b[t(0x103)]),'fileName':paramCase(b['resourceName']),'graphql':h[t(0x120)][t(0x11a)],'features':h[t(0x118)],'client':h[t(0x120)][t(0xfb)],'api':h['engines'][t(0xfa)],'ssr':h[t(0x120)]['ssr'],'test':h[t(0x120)][t(0x109)],'theme':h['engines'][t(0x139)],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0x118)][t(0x123)]};this[t(0x10f)][t(0x13a)]({'srcPath':t(0x108),'destPath':g+t(0x12c),'context':i,'framework':t(0x141),'config':h});h[t(0x120)]['test']!=='none'&&this[t(0x10f)][t(0x13a)]({'srcPath':'test/test.js','destPath':g+'.tests.js','context':i,'framework':'react','config':h});h['template'][t(0x13b)]&&(this[t(0x10f)]['template']({'srcPath':t(0x140),'destPath':g+t(0x106),'context':Object[t(0x105)]({},i,{'className':paramCase(b[t(0x103)])}),'config':h}),this[t(0x10f)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x120)]['js'],'content':t(0x132)+i[t(0x12d)]+'.'+h[t(0x120)][t(0x13b)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x13d)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x134)];let l;if(h[t(0x120)]['ssr']==='true'){const m=this[t(0x10f)][t(0xf8)]({'pathParts':[t(0xf5),t(0x13e),'lib',t(0x135)]});l=this[t(0x10f)][t(0xfc)]({'pathParts':[m],'config':h});}else{const n=this[t(0x10f)][t(0xf8)]({'pathParts':['imports',t(0x13e),'client',t(0x135)]});l=this[t(0x10f)][t(0xfc)]({'pathParts':[n],'config':h});}h['engines'][t(0xfb)]===t(0x141)||h[t(0x120)][t(0xfb)]===t(0x107)?(h[t(0x120)]['js']===t(0x10d)?this[t(0x10f)][t(0x121)]({'filePath':l,'content':t(0x117)+i['className']+t(0xff)+k+t(0x124)}):this[t(0x10f)][t(0x121)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x136)]+t(0xff)+k+'.'+h[t(0x120)]['js']+t(0x124)}),this[t(0x10f)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i[t(0x136)]+t(0x130)})):this['fsi'][t(0x126)]({'filePath':l,'content':t(0x11e)+k+'.'+h[t(0x120)]['js']+t(0x124)});});}catch(i){Log[s(0x127)](i);}});
@@ -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(0x1e6))/0x1+parseInt(h(0x1d8))/0x2+-parseInt(h(0x1db))/0x3+-parseInt(h(0x1cb))/0x4+parseInt(h(0x1e7))/0x5*(-parseInt(h(0x1e0))/0x6)+parseInt(h(0x1e2))/0x7*(-parseInt(h(0x1d7))/0x8)+parseInt(h(0x1d2))/0x9*(parseInt(h(0x1c8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xbd21e));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a97d;if(c){const e=c[i(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const j=a97d;return a97a['toString']()['search'](j(0x1cd))[j(0x1d3)]()[j(0x1ce)](a97a)['search'](j(0x1cd));});a97a();function a97c(){const n=['isDocker','3567221uBqFoN','pathFromProject','withValue','apply','1282107fEVgox','16495CKYmfi','production','20wNskmz','ubuntu','dev','5574584wZCHQG','Generate\x20configuration\x20settings.','(((.+)+)+)+$','constructor','create','maka\x20g:config\x20production','fsi','5303079tXxbiJ','toString','resourceName','config/settings.json','config','8FOkjzP','1160920SpLzUk','appName','template','406389fBKemJ','settings.json','maka\x20{generate,\x20g}:{config}\x20<name>','getProjectConfig','development','414hkMJZI'];a97c=function(){return n;};return a97c();}import{Generator}from'../generator.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a97d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a97k(0x1cf)]({'name':a97k(0x1d6),'usage':a97k(0x1dd),'shortDesc':a97k(0x1cc),'validOpts':[a97k(0x1e1)],'examples':[a97k(0x1d0)]},function(a,b){const l=a97k,c=this['fsi'][l(0x1de)]();this[l(0x1d1)][l(0x1e4)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x1d9)]),'name':pascalCase(b[m(0x1d4)]),'fileName':paramCase(b[m(0x1d4)]),'camelCase':camelCase(b[m(0x1d4)]),'userName':m(0x1c9),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0x1ca))e=m(0x1df);else e==='prod'&&(e=m(0x1c7));const f=this[m(0x1d1)][m(0x1e3)]({'pathParts':[m(0x1d6),e,m(0x1dc)]});this['fsi'][m(0x1da)]({'srcPath':m(0x1d5),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x1d1)][m(0x1e3)]({'pathParts':['config',e,'process.env']});this[m(0x1d1)]['template']({'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
+ function a98c(){const t=['1930190Yabbrh','startup','9535064gmSabq','getProjectConfig','warn','1zDtHFj','tsx','33Mlttym','Invalid\x20type\x20','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','imports','fsi','pgsql','error','better-sqlite3','list','search','dbc/register-dbc.js','server','create','withValue','471wreWKy','maka\x20g:dbc\x20azure\x20--type=mssql','installNpmPackage','PostgreSQL','1964475quvsTN','dbc/config.js','31224tlevAB','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','6635845wRRzer','DB\x20Driver','template','register-','mssql','toString','engines',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','type','dbAnswer','checkNpmPackage','dbc/conn.js','options','config.','apply','pathFromApp','constructor','dir','35smIJpr','import\x20\x27./register-','dbc','-dbc\x27;','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','775538OkAiFI','sqlite','(((.+)+)+)+$','MS\x20SQL','injectAtEndOfFile','index.','maka\x20g:dbc\x20geoserver\x20--type=pgsql','indexOf','resourceName','(blank)','88842zBanDA'];a98c=function(){return t;};return a98c();}const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x123))/0x1*(parseInt(n(0x113))/0x2)+parseInt(n(0x133))/0x3*(parseInt(n(0xfa))/0x4)+parseInt(n(0xfc))/0x5+parseInt(n(0x11d))/0x6*(parseInt(n(0x10e))/0x7)+-parseInt(n(0x120))/0x8+parseInt(n(0xf8))/0x9+-parseInt(n(0x11e))/0xa*(parseInt(n(0x125))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xa78e8));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x101)]()[p(0x12e)](p(0x115))[p(0x101)]()[p(0x10c)](a98a)['search']('(((.+)+)+)+$');});a98a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xf5;let f=c[d];return f;},a98d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a98q(0x131)]({'name':'dbc','usage':a98q(0xfb),'shortDesc':a98q(0x112),'validOpts':[a98q(0x104),'dir'],'examples':[a98q(0x119),a98q(0xf5),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a98q;try{const c=await this[r(0x129)][r(0x121)](),d=this[r(0x129)][r(0x10b)]({}),f=paramCase(b[r(0x11b)]);if(!b['type']){const h={'type':r(0x12d),'name':r(0x105),'message':r(0xfd),'choices':[{'name':r(0xf7),'value':'pgsql'},{'name':r(0x116),'value':'mssql'}]},{dbAnswer:i}=await Actions[r(0x108)](h);i&&(b[r(0x104)]=i);}const g={'name':pascalCase(b[r(0x11b)]),'fileName':paramCase(b[r(0x11b)]),'camelCase':camelCase(b['resourceName']),'type':b[r(0x104)],'engine':c[r(0x102)]['js'],'noRename':!![]};this['fsi'][r(0x132)](c,async()=>{const s=r;let j='js';c[s(0x102)]['js']===s(0x124)&&(j='ts');const k=['mssql',s(0x12a)];if(k[s(0x11a)](g[s(0x104)])<0x0){const m=g[s(0x104)]?g[s(0x104)]:s(0x11c);Log[s(0x12b)](s(0x126)+m+s(0x103));return;}b['type']===s(0x12a)&&!this['fsi'][s(0x106)]('pg')&&(Log[s(0x122)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0xf6)]('pg',{'cwd':d}));b[s(0x104)]===s(0x100)&&!this[s(0x129)]['checkNpmPackage'](s(0x100))&&(Log[s(0x122)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[s(0x129)][s(0xf6)]('mssql',{'cwd':d}));b[s(0x104)]===s(0x114)&&!this['fsi'][s(0x106)](s(0x12c))&&(Log[s(0x122)](s(0x127)),await this[s(0x129)][s(0xf6)](s(0x12c),{'cwd':d}));this[s(0x129)][s(0xfe)]({'srcPath':s(0xf9),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),'server','dbc',b[s(0x10d)],f,s(0x109)+j]}),'context':g,'config':c}),this[s(0x129)][s(0xfe)]({'srcPath':s(0x107),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0x110),b[s(0x10d)],f,'conn.'+j]}),'context':g,'config':c}),this[s(0x129)][s(0xfe)]({'srcPath':s(0x12f),'destPath':this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0xff)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x129)][s(0x10b)]({'pathParts':[s(0x128),s(0x11f),s(0x130),s(0x118)+c[s(0x102)]['js']]});this['fsi'][s(0x117)]({'filePath':l,'content':s(0x10f)+f+s(0x111)});});}catch(j){Log[r(0x12b)](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(0x76))/0x1+parseInt(f(0x7b))/0x2*(parseInt(f(0x80))/0x3)+parseInt(f(0x7c))/0x4+-parseInt(f(0x88))/0x5+-parseInt(f(0x8b))/0x6*(-parseInt(f(0x73))/0x7)+-parseInt(f(0x84))/0x8+parseInt(f(0x7a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xbbb4f));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a99d;if(c){const e=c[g(0x6f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const h=a99d;return a99a[h(0x78)]()[h(0x89)](h(0x74))['toString']()[h(0x81)](a99a)[h(0x89)](h(0x74));});a99a();import{Generator}from'../generator.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x6b;let f=c[d];return f;},a99d(a,b);}import{Log}from'../tools/log/log.class.js';import a99e from'path';Generator[a99i(0x82)]({'name':'dockerfile','usage':a99i(0x6d),'shortDesc':a99i(0x70),'validOpts':[],'noResource':!![],'examples':[a99i(0x7f)]},async function(){const j=a99i;try{const a=await this['fsi'][j(0x72)](),b=await this['fsi'][j(0x7d)](),c=this[j(0x87)]['findProjectDirectory']();this[j(0x87)][j(0x6b)](a,async()=>{const k=j,d={'app':b[k(0x83)],'config':a,'appPath':a99e[k(0x79)](c,'app'),'bundlePath':a99e[k(0x79)](c,k(0x6c),k(0x85)),'useCert':this[k(0x87)][k(0x7e)](b[k(0x6e)])};this['fsi'][k(0x75)]({'srcPath':k(0x8a),'destPath':a99e[k(0x79)](c,k(0x77)),'framework':k(0x71),'context':d,'config':a});});}catch(d){Log[j(0x86)](d);}});function a99c(){const l=['docker/Dockerfile','6HRFYNO','withValue','build','maka\x20{generate,\x20g}:dockerfile','cert','apply','Generate\x20an\x20updated\x20dockerfile','service','getProjectConfig','3843637AMFbse','(((.+)+)+)+$','template','447875sMMRoH','Dockerfile','toString','join','3770523PIMqsk','6418jOZHgt','2370516TUUQVJ','getGlobalConfig','isFile','maka\x20g:dockerfile','930IpISPY','constructor','create','appName','552080pGRDky','app.tar.gz','error','fsi','6348625LaGLCW','search'];a99c=function(){return l;};return a99c();}
@@ -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 a100s=a100d;(function(a,b){const p=a100d,c=a();while(!![]){try{const d=-parseInt(p(0x18f))/0x1+parseInt(p(0x174))/0x2+-parseInt(p(0x165))/0x3+parseInt(p(0x183))/0x4*(parseInt(p(0x15a))/0x5)+parseInt(p(0x180))/0x6+-parseInt(p(0x15c))/0x7+parseInt(p(0x164))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x7d2fd));function a100c(){const v=['This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','baseDir','includes','Creating\x20','ssr','templates.js','checkNpmPackage','pages','theme','template/template.css','/imports/ui/','export\x20{\x20','273236qxbOba','lib','assign','test/test.js','test','resourceName','\x20}\x20from\x20\x27','fsi','startup','.css','\x27;\x0a','injectAtEndOfFile','3353508YBYUHf','graphql','Valid\x20options\x20are:\x20','10732xocoVB','\x20hook...','/imports/ui/hooks','client','layouts','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','@apollo/client','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','Invalid\x20directory\x20option\x20\x22','template','apply','apollo','16533WsHRGy','components','setTemplate','(((.+)+)+)+$','rewriteDestinationPathForEngine','hook/hook.js','css','withValue','true','search','getProjectConfig','import\x20\x27','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','constructor','fileName','imports','hooks','relative','toString','@apollo/client\x20isomorphic-fetch','error','features','engines','pathFromProject','.js','185YMYVhx','.app-tests.js','6695829cShaSC','className','pathFromApp','import\x20{\x20','dir','injectAtBeginningOfFile','string','react','11141992WdrmxK','2105133TIkEfq','withTranslations','none'];a100c=function(){return v;};return a100c();}function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x157;let f=c[d];return f;},a100d(a,b);}const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a100d;if(c){const e=c[q(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const r=a100d;return a100a[r(0x1a1)]()[r(0x198)](r(0x192))[r(0x1a1)]()[r(0x19c)](a100a)['search'](r(0x192));});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['create']({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a100s(0x188),'shortDesc':a100s(0x18a),'validOpts':[a100s(0x169)],'examples':['maka\x20g:hook\x20cool-hook']},async function(a,b){const t=a100s;Log['notice'](t(0x16b)+a[0x0]+t(0x184));try{const c=[t(0x19f),t(0x190),t(0x16f),t(0x187)];if(b[t(0x169)]&&!c[t(0x16a)](b[t(0x169)])){Log[t(0x1a3)](t(0x18b)+b[t(0x169)]+'\x22'),Log[t(0x1a3)](t(0x182)+c['join'](',\x20'));throw new UsageError();}const d=this['fsi'][t(0x16e)](t(0x163));if(!d){Log[t(0x1a3)](t(0x168));throw new UsageError();}const f=this['fsi'][t(0x15e)](b),g=b['baseDir']?t(0x172)+b[t(0x169)]:t(0x185),h=this[t(0x17b)][t(0x15e)]({'pathParts':[g,b[t(0x160)],b[t(0x179)],paramCase(b['resourceName'])]}),i=await this[t(0x17b)][t(0x199)]();this[t(0x17b)][t(0x196)](i,async()=>{const u=t;typeof i[u(0x18c)][u(0x195)]===u(0x162)&&(i[u(0x18c)][u(0x195)]=i[u(0x18c)][u(0x195)]===u(0x197)?!![]:![],this[u(0x17b)][u(0x191)](u(0x195),i[u(0x18c)]['css']));i['engines'][u(0x181)]===u(0x18e)&&!this[u(0x17b)][u(0x16e)](u(0x189))&&(Log['warn'](u(0x19b)),await this[u(0x17b)]['installNpmPackage'](u(0x1a2),{'cwd':f}));const j={'cssCaseName':paramCase(b[u(0x179)]),'className':pascalCase(b[u(0x179)]),'name':pascalCase(b['resourceName']),'graphql':i[u(0x157)][u(0x181)],'theme':i[u(0x157)][u(0x170)],'features':i[u(0x1a4)],'myPath':a100e[u(0x1a0)](this['fsi'][u(0x158)]({}),h),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':i[u(0x1a4)][u(0x166)]};this[u(0x17b)][u(0x18c)]({'srcPath':u(0x194),'destPath':h+u(0x159),'context':j,'config':i,'framework':u(0x163)});i[u(0x18c)][u(0x195)]&&(this[u(0x17b)][u(0x18c)]({'srcPath':u(0x171),'destPath':h+u(0x17d),'context':Object[u(0x176)]({},j,{'className':j['cssCaseName']}),'config':i}),this[u(0x17b)][u(0x161)]({'filePath':h+'.'+i['engines']['js'],'content':'import\x20\x27./'+j[u(0x19d)]+'.'+i[u(0x157)]['css']+'\x27;'}));i['engines'][u(0x178)]!==u(0x167)&&this[u(0x17b)][u(0x18c)]({'srcPath':u(0x177),'destPath':h+u(0x15b),'framework':u(0x163),'context':j,'config':i});const k=b[u(0x160)]?'/'+b[u(0x160)]+'/':'/',l=''+g+k+j['fileName']+'/'+j[u(0x19d)];let m;if(i['engines'][u(0x16c)]===u(0x197)){const n=this[u(0x17b)]['pathFromApp']({'pathParts':[u(0x19e),'startup',u(0x175),u(0x16d)]});m=this[u(0x17b)][u(0x193)]({'pathParts':[n],'config':i});}else{const o=this[u(0x17b)][u(0x15e)]({'pathParts':['imports',u(0x17c),u(0x186),u(0x16d)]});m=this[u(0x17b)][u(0x193)]({'pathParts':[o],'config':i});}i[u(0x157)][u(0x186)]===u(0x163)?(i[u(0x157)]['js']==='tsx'?this[u(0x17b)][u(0x161)]({'filePath':m,'content':u(0x15f)+j['className']+u(0x17a)+l+u(0x17e)}):this[u(0x17b)][u(0x161)]({'filePath':m,'content':u(0x15f)+j[u(0x15d)]+u(0x17a)+l+'.'+i[u(0x157)]['js']+'\x27;\x0a'}),this[u(0x17b)][u(0x17f)]({'filePath':m,'content':u(0x173)+j['className']+'\x20};\x0a'})):this[u(0x17b)][u(0x17f)]({'filePath':m,'content':u(0x19a)+l+'.'+i[u(0x157)]['js']+u(0x17e)});});}catch(j){Log['error'](j);}});
@@ -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 a101c(){const n=['2AQLwnI','engines','map','resourceName','maka\x20g:kit\x20--type=map','4ZCsAvR','login','maka\x20g:k\x20city-map\x20--type=leaflet-map','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','getProjectConfig','create','143ZjqEhk','withValue','2526cedftI','type','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','fsi','indexOf',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','NIE','search','error','notice','1278PdOaXV','3035zbcPsk','159622QQfUxU','1135248aOpnuR','leaflet-map','26056xHlJmV','apply','5303583JwMvVW','kit','8996267Myfnzk','(((.+)+)+)+$','toString','1473370qYoQTm'];a101c=function(){return n;};return a101c();}(function(a,b){const h=a101d,c=a();while(!![]){try{const d=-parseInt(h(0x7d))/0x1*(-parseInt(h(0x88))/0x2)+parseInt(h(0x82))/0x3*(parseInt(h(0x69))/0x4)+parseInt(h(0x7c))/0x5*(parseInt(h(0x71))/0x6)+parseInt(h(0x84))/0x7+parseInt(h(0x80))/0x8*(-parseInt(h(0x7b))/0x9)+-parseInt(h(0x87))/0xa*(parseInt(h(0x6f))/0xb)+-parseInt(h(0x7e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xf3194));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a101d;if(c){const e=c[i(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const j=a101d;return a101a[j(0x86)]()[j(0x78)](j(0x85))[j(0x86)]()['constructor'](a101a)[j(0x78)](j(0x85));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x68;let f=c[d];return f;},a101d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a101k(0x6e)]({'name':a101k(0x83),'aliases':['k'],'usage':a101k(0x73),'shortDesc':a101k(0x6c),'validOpts':[a101k(0x72)],'examples':[a101k(0x68),a101k(0x6b)]},async function(a,b){const l=a101k;try{const c=this[l(0x74)][l(0x6d)]();this[l(0x74)][l(0x70)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x8b)]),'fileName':paramCase(b[m(0x8b)]),'camelCase':camelCase(b[m(0x8b)]),'type':b[m(0x72)],'engine':c[m(0x89)]['js'],'noRename':!![]},f=[m(0x7f),m(0x6a)];if(f[m(0x75)](d[m(0x72)])<0x0){const g=d['type']?d[m(0x72)]:'(blank)';Log[m(0x79)]('Invalid\x20type\x20'+g+m(0x76));return;}b['type']===m(0x8a)&&Log[m(0x7a)](m(0x77)),b[m(0x72)]===m(0x6a)&&Log['notice'](m(0x77));});}catch(d){Log[l(0x79)](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(0x1d2))/0x1+-parseInt(o(0x1e7))/0x2+parseInt(o(0x1c8))/0x3*(-parseInt(o(0x1d6))/0x4)+-parseInt(o(0x1de))/0x5+parseInt(o(0x1c3))/0x6*(parseInt(o(0x1d8))/0x7)+parseInt(o(0x1e8))/0x8*(parseInt(o(0x1eb))/0x9)+parseInt(o(0x1bb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x49264));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a['toString']()['search'](q(0x1cf))[q(0x1e1)]()['constructor'](a102a)['search'](q(0x1cf));});a102a();function a102c(){const u=['ssr','6918090tyPTxj','layout','create','template/template.css','import\x20{\x20','maka\x20g:layout\x20mobile/iPhone8','\x20};\x0a','warn','348546lxXnkG','test','relative','.js','tsx','72537LQZcdm','.app-tests.js','import\x20\x27','fsi','injectAtBeginningOfFile','true','setTemplate','(((.+)+)+)+$','startup','import\x20\x27./','101941mZdYxs','templates.js','injectAtEndOfFile','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','56SKHjut','className','49EIvOCh','theme','pathFromApp','withHook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','resourceName','2059695XQISyt','template','\x20}\x20from\x20\x27','toString','css','\x27;\x0a','features','none','hook/hook.js','955132vZXxfr','456BrOvUV','string','findAppDirectory','83862CjvVXQ','dir','apply','fileName','assign','client','getProjectConfig','withValue','imports','rewriteDestinationPathForEngine','withTranslations','ramda','checkNpmPackage','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','maka\x20g:l\x20web/safari','engines','includes','lib','api','react','Scaffolding\x20for\x20a\x20React\x20Layout.','withHooks','split'];a102c=function(){return u;};return a102c();}import a102e from'path';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-0x1af;let f=c[d];return f;},a102d(a,b);}const aliases=['l'];Generator[a102r(0x1bd)]({'name':a102r(0x1bc),'aliases':aliases,'usage':a102r(0x1b0),'shortDesc':a102r(0x1b7),'validOpts':[],'examples':[a102r(0x1c0),a102r(0x1b1)]},function(a,b){const s=a102r,c='/imports/ui/layouts',d=this[s(0x1cb)][s(0x1ea)](),e=this[s(0x1cb)][s(0x1da)]({'pathParts':[c,b[s(0x1ec)],paramCase(b[s(0x1dd)]),paramCase(b[s(0x1dd)])]}),f=this[s(0x1cb)][s(0x1f1)]();this['fsi'][s(0x1f2)](f,()=>{const t=s;typeof f['template'][t(0x1c4)]===t(0x1e9)&&(f[t(0x1df)][t(0x1c4)]=f[t(0x1df)][t(0x1c4)]===t(0x1cd)?!![]:![],this[t(0x1cb)][t(0x1ce)](t(0x1c4),f[t(0x1df)][t(0x1c4)]));typeof f[t(0x1df)][t(0x1e2)]===t(0x1e9)&&(f[t(0x1df)][t(0x1e2)]=f[t(0x1df)][t(0x1e2)]===t(0x1cd)?!![]:![],this[t(0x1cb)]['setTemplate'](t(0x1e2),f['template'][t(0x1e2)]));typeof f[t(0x1df)]['js']===t(0x1e9)&&(f[t(0x1df)]['js']=f[t(0x1df)]['js']===t(0x1cd)?!![]:![],this[t(0x1cb)][t(0x1ce)]('js',f[t(0x1df)]['js']));!f[t(0x1e4)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x1b9)](':')[0x1]:![],h=b['_']&&aliases[t(0x1b3)](g);h&&!this[t(0x1af)](t(0x1f6))&&(Log['warn'](t(0x1d5)),this['fsi']['installNpmPackage'](t(0x1f6),{'cwd':d}));if(h&&!this[t(0x1af)](t(0x1b6))){Log[t(0x1c2)](t(0x1dc));return;}const i={'name':pascalCase(b[t(0x1dd)]),'myPath':a102e[t(0x1c5)](this[t(0x1cb)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[t(0x1dd)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1dd)]),'fileName':paramCase(b[t(0x1dd)]),'graphql':f['engines']['graphql'],'features':f[t(0x1e4)],'client':f['engines']['client'],'api':f[t(0x1b2)][t(0x1b5)],'ssr':f[t(0x1b2)]['ssr'],'test':f['engines']['test'],'theme':f['engines'][t(0x1d9)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1e4)][t(0x1f5)]};f['features']?.[t(0x1b8)]||b[t(0x1db)]?this['fsi'][t(0x1df)]({'srcPath':t(0x1e6),'destPath':e+t(0x1c6),'framework':t(0x1b6),'context':i,'config':f}):this['fsi'][t(0x1df)]({'srcPath':'component/component.js','destPath':e+t(0x1c6),'framework':t(0x1b6),'context':i,'config':f});f[t(0x1b2)][t(0x1c4)]!==t(0x1e5)&&this[t(0x1cb)][t(0x1df)]({'srcPath':'test/test.js','destPath':e+t(0x1c9),'framework':t(0x1b6),'context':i,'config':f});f[t(0x1df)][t(0x1e2)]&&(this[t(0x1cb)][t(0x1df)]({'srcPath':t(0x1be),'destPath':e+'.css','context':Object[t(0x1ef)]({},i,{'className':paramCase(b[t(0x1dd)])}),'config':f}),this['fsi'][t(0x1cc)]({'filePath':e+'.'+f[t(0x1b2)]['js'],'content':t(0x1d1)+i['fileName']+'.'+f[t(0x1b2)][t(0x1e2)]+'\x27;'}));const j=b['dir']?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x1ee)]+'/'+i['fileName'];let l;if(f[t(0x1b2)][t(0x1ba)]===t(0x1cd)){const m=this[t(0x1cb)][t(0x1da)]({'pathParts':[t(0x1f3),'startup',t(0x1b4),t(0x1d3)]});l=this[t(0x1cb)][t(0x1f4)]({'pathParts':[m],'config':f});}else{const n=this['fsi']['pathFromApp']({'pathParts':['imports',t(0x1d0),t(0x1f0),'templates.js']});l=this[t(0x1cb)][t(0x1f4)]({'pathParts':[n],'config':f});}f[t(0x1b2)][t(0x1f0)]===t(0x1b6)?(f['engines']['js']===t(0x1c7)?this[t(0x1cb)][t(0x1cc)]({'filePath':l,'content':t(0x1bf)+i[t(0x1d7)]+'\x20}\x20from\x20\x27'+k+t(0x1e3)}):this[t(0x1cb)][t(0x1cc)]({'filePath':l,'content':t(0x1bf)+i['className']+t(0x1e0)+k+'.'+f[t(0x1b2)]['js']+t(0x1e3)}),this[t(0x1cb)][t(0x1d4)]({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x1c1)})):this['fsi'][t(0x1d4)]({'filePath':l,'content':t(0x1ca)+k+'.'+f['engines']['js']+t(0x1e3)});});});
@@ -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
+ const a103i=a103d;(function(a,b){const f=a103d,c=a();while(!![]){try{const d=-parseInt(f(0x15f))/0x1+parseInt(f(0x159))/0x2+-parseInt(f(0x15e))/0x3*(-parseInt(f(0x162))/0x4)+parseInt(f(0x164))/0x5*(parseInt(f(0x157))/0x6)+parseInt(f(0x167))/0x7*(parseInt(f(0x169))/0x8)+-parseInt(f(0x16b))/0x9*(parseInt(f(0x160))/0xa)+-parseInt(f(0x16a))/0xb*(-parseInt(f(0x16c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x779e8));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a103d;if(c){const e=c[g(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const h=a103d;return a103a[h(0x163)]()[h(0x15c)](h(0x168))[h(0x163)]()[h(0x166)](a103a)[h(0x15c)](h(0x168));});a103a();import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x157;let f=c[d];return f;},a103d(a,b);}function a103c(){const j=['maka\x20g:hook\x20cool-hook','constructor','2488437gAwKSK','(((.+)+)+)+$','8JEqSDN','649CuJnRa','126hdgYdc','32388VXEiHo','6bepcwD','Maka!','646234iZoYHU','maka\x20generate:api\x20Trucks','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','search','apply','642981qjAmsD','553528CKLYUj','503340kGMWyw','\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','16PtQrUp','toString','265035cOKObJ'];a103c=function(){return j;};return a103c();}const MakaGen=new Generator({'name':'maka','shortDesc':a103i(0x158),'validOpts':[],'description':a103i(0x161),'usage':a103i(0x15b),'examples':[a103i(0x15a),a103i(0x165)]},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 a104c(){const q=['-rpc-method\x27;','getProjectConfig','1322364uYxcIR','method/method.js','toString','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','maka\x20g:method\x20todos','148977Hebmoh','91882hTzoxQ','962290BmTMUL','pathFromApp','import\x20\x27./methods','2088HMvKMB','check','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','methods','search','25701610oZgitC','fsi','resourceName','dir','408gZrFJl','apply','mdg:validated-method','constructor','1334wuhixV','8GFzoYB','550OYVbMO','appPathPrefix','index.','maka\x20{generate,\x20g}:{method,\x20m}\x20name','check\x20ddp-rate-limiter\x20mdg:validated-method','startup','template','create','ddp-rate-limiter','3822972yrSBNf','checkMeteorPackage','engines','warn','error'];a104c=function(){return q;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a104d(a,b);}(function(a,b){const k=a104d,c=a();while(!![]){try{const d=-parseInt(k(0x1dd))/0x1+parseInt(k(0x1cb))/0x2*(parseInt(k(0x1e8))/0x3)+-parseInt(k(0x1cc))/0x4*(parseInt(k(0x1e5))/0x5)+-parseInt(k(0x1d6))/0x6+-parseInt(k(0x1e4))/0x7*(parseInt(k(0x1c7))/0x8)+-parseInt(k(0x1e3))/0x9*(-parseInt(k(0x1cd))/0xa)+parseInt(k(0x1c3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xaa3c9));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a104d;if(c){const e=c[l(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const m=a104d;return a104a[m(0x1df)]()[m(0x1c2)](m(0x1e0))[m(0x1df)]()[m(0x1ca)](a104a)[m(0x1c2)](m(0x1e0));});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a104n(0x1d4)]({'name':'method','aliases':['m'],'usage':a104n(0x1d0),'checkWhere':!![],'shortDesc':a104n(0x1e1),'validOpts':[a104n(0x1c6)],'examples':[a104n(0x1e2)]},function(a,b){const o=a104n;try{const c=this[o(0x1c4)][o(0x1dc)]();this[o(0x1c4)]['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x1c5)]),f={'name':b[p(0x1c5)],'fileName':d,'className':pascalCase(b[p(0x1c5)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x1d8)]['js']==='tsx'&&(g='ts');const h=this['fsi'][p(0x1e6)]({});(!this[p(0x1c4)][p(0x1d7)](p(0x1bf))||!this['fsi'][p(0x1d7)](p(0x1d5))||!this['fsi'][p(0x1d7)](p(0x1c9)))&&(Log[p(0x1d9)](p(0x1c0)),this[p(0x1c4)]['installMeteorPackage'](p(0x1d1),{'cwd':h}));this[p(0x1c4)][p(0x1d3)]({'srcPath':p(0x1de),'destPath':this[p(0x1c4)][p(0x1e6)]({'pathParts':['imports',p(0x1d2),b[p(0x1ce)],p(0x1c1),b[p(0x1c6)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x1c6)]?'/'+b[p(0x1c6)]+'/':'/',j=this[p(0x1c4)][p(0x1e6)]({'pathParts':['imports',p(0x1d2),b[p(0x1ce)],p(0x1cf)+c[p(0x1d8)]['js']]});this[p(0x1c4)]['injectAtEndOfFile']({'filePath':j,'content':p(0x1e7)+i+d+p(0x1db)});});}catch(d){Log[o(0x1da)](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
+ const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x16b))/0x1*(-parseInt(l(0x180))/0x2)+-parseInt(l(0x171))/0x3+parseInt(l(0x166))/0x4+parseInt(l(0x18a))/0x5+-parseInt(l(0x17a))/0x6*(-parseInt(l(0x16d))/0x7)+parseInt(l(0x182))/0x8*(parseInt(l(0x18e))/0x9)+-parseInt(l(0x189))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x88068));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x183)]()[n(0x167)]('(((.+)+)+)+$')[n(0x183)]()[n(0x174)](a105a)['search'](n(0x179));});a105a();import a105e from'path';import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x161;let f=c[d];return f;},a105d(a,b);}function a105c(){const s=['1358100oPlfGp','client','tests/server','constructor','theme','relative','.js','noRename','(((.+)+)+)+$','209478BgUFuF','pathFromApp','fsi','tests/client','create','ssr','14ftqinv','/client/','230264KIFIql','toString','/package.js','getProjectConfig','maka\x20g:package\x20todos:package','pathFromAppWithNoReWrite','dir','6793280XPvKGO','163360ODJLOA','engines','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','server','207IkfDWi','layout','features','forEach','lib','template/template.js','package.js','template','1451632HxWsrX','search','packages','store','package/','25390ckfgad','hasOwnProperty','91jPtAqh','resourceName','apply','withValue'];a105c=function(){return s;};return a105c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105o(0x17e)]({'name':'package','aliases':['p'],'usage':a105o(0x18c),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a105o(0x188)],'examples':[a105o(0x186)]},async function(a,b){const p=a105o,c=paramCase(b[p(0x16e)]),d=this[p(0x17c)][p(0x17b)]({'pathParts':['packages',b['dir'],c]}),e=this[p(0x17c)][p(0x187)]({'pathParts':[p(0x168),b[p(0x188)],c,p(0x164)]}),f=this[p(0x17c)][p(0x185)]();this[p(0x17c)][p(0x170)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x16e)]),'myPath':a105e[q(0x176)](this['fsi']['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x16e)]),'className':pascalCase(b[q(0x16e)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x18b)][q(0x172)],'graphql':f[q(0x18b)]['graphql'],'ssr':f[q(0x18b)][q(0x17f)],'isComponent':b['hasOwnProperty']('component'),'isLayout':b['hasOwnProperty'](q(0x18f)),'isStore':b[q(0x16c)](q(0x169)),'features':f[q(0x190)],'noRename':!![],'theme':f[q(0x18b)][q(0x175)]};this[q(0x17c)][q(0x165)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x178)]=![];const h=d+q(0x181)+c+q(0x177);this[q(0x17c)][q(0x165)]({'srcPath':q(0x163),'destPath':h,'context':g,'config':f});const i=[q(0x162),q(0x18d),q(0x17d),q(0x173)];i[q(0x161)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x177);this[r(0x17c)]['template']({'srcPath':r(0x16a)+j+r(0x184),'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(0xde))/0x1*(-parseInt(n(0x8f))/0x2)+-parseInt(n(0xb1))/0x3+parseInt(n(0xd4))/0x4+parseInt(n(0xd7))/0x5+-parseInt(n(0xbe))/0x6+parseInt(n(0xaa))/0x7*(-parseInt(n(0xc7))/0x8)+parseInt(n(0x90))/0x9*(parseInt(n(0xbd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x61e58));function a106c(){const t=['.js','ssr','715646qeeWSl','9swFUbq','hook/hook.js','withValue','installNpmPackage','template/template.html','className','templates.js','error','none','template','rewriteDestinationPathForEngine','/imports/ui/pages','relative','layout','resourceName','components','true','root','Generate\x20a\x20page.','pathFromApp','injectAtBeginningOfFile','imports','import\x20\x27./','component/component.js','pathFromProject','baseDir','749solvSH','html','startup','graphql','fileName','hooks','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','307335pmKTfJ','component','includes','hasOwnProperty','dir','.css','engines','page','test','withHook','warn','import\x20\x27','14610250UYPZGM','1286478wNdAPU','maka\x20g:page\x20todos/todos-item','vanilla','fsi','create','checkNpmPackage','toString','Valid\x20options\x20are:\x20','lib','40856zxdIoM','Updating\x20npm\x20packages\x20...','import\x20{\x20','store','(((.+)+)+)+$','injectAtEndOfFile','withHooks','apply','setTemplate','search','layouts','\x20}\x20from\x20\x27','react','652172RjawGD','features','client','1779345wxTEeY','theme','\x27;\x0a','ramda','template/template.css','assign','css','2efTGcn','getProjectConfig','api','pages','export\x20{\x20','string','join','\x20};\x0a'];a106c=function(){return t;};return a106c();}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a106d;if(c){const e=c[o(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const p=a106d;return a106a[p(0xc4)]()[p(0xd0)]('(((.+)+)+)+$')[p(0xc4)]()['constructor'](a106a)[p(0xd0)](p(0xcb));});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x8b;let f=c[d];return f;},a106d(a,b);}import a106e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a106q(0xc2)]({'name':a106q(0xb8),'aliases':aliases,'usage':a106q(0xb0),'shortDesc':a106q(0xa2),'validOpts':[a106q(0xa9),'withHook'],'examples':[a106q(0xbf)]},function(a,b){const r=a106q,c=[r(0xaf),r(0x9f),r(0xe1),r(0xd1)];if(b[r(0xa9)]&&!c[r(0xb3)](b[r(0xa9)])){Log[r(0x97)]('Invalid\x20directory\x20option\x20\x22'+b[r(0xa9)]+'\x22'),Log[r(0x97)](r(0xc5)+c[r(0x8b)](',\x20'));throw new UsageError();}const d=b[r(0xa9)]?'/imports/ui/'+b[r(0xa9)]:r(0x9b),e=this['fsi'][r(0xa3)](b),f=this[r(0xc1)][r(0xa3)]({'pathParts':[d,b[r(0xb5)],b[r(0x9e)],paramCase(b[r(0x9e)])]}),g=this[r(0xc1)][r(0xdf)]();this[r(0xc1)][r(0x92)](g,()=>{const s=r;typeof g['template'][s(0xab)]===s(0xe3)&&(g[s(0x99)][s(0xab)]=g[s(0x99)]['html']==='true'?!![]:![],this['fsi']['setTemplate'](s(0xab),g['template'][s(0xab)]));typeof g[s(0x99)][s(0xb9)]==='string'&&(g[s(0x99)][s(0xb9)]=g[s(0x99)][s(0xb9)]===s(0xa0)?!![]:![],this[s(0xc1)][s(0xcf)]('test',g[s(0x99)][s(0xb9)]));typeof g[s(0x99)]['css']===s(0xe3)&&(g[s(0x99)][s(0xdd)]=g[s(0x99)]['css']===s(0xa0)?!![]:![],this[s(0xc1)][s(0xcf)](s(0xdd),g[s(0x99)][s(0xdd)]));typeof g[s(0x99)]['js']===s(0xe3)&&(g[s(0x99)]['js']=g[s(0x99)]['js']==='true'?!![]:![],this[s(0xc1)][s(0xcf)]('js',g[s(0x99)]['js']));!g[s(0xd5)]&&(g[s(0xd5)]={});!b[s(0xa1)]&&!this[s(0xc1)][s(0xc3)](s(0xda))&&(Log[s(0xbb)](s(0xc8)),this[s(0xc1)][s(0x93)](s(0xda),{'cwd':e}));const h={'name':pascalCase(b[s(0x9e)]),'myPath':a106e[s(0x9c)](this[s(0xc1)][s(0xa8)]({}),f),'cssCaseName':paramCase(b[s(0x9e)]),'className':pascalCase(b[s(0x9e)]),'camelCaseName':camelCase(b[s(0x9e)]),'fileName':paramCase(b[s(0x9e)]),'graphql':g[s(0xb7)][s(0xad)],'features':g['features'],'client':g[s(0xb7)][s(0xd6)],'api':g[s(0xb7)][s(0xe0)],'ssr':g[s(0xb7)][s(0x8e)],'isStore':b['hasOwnProperty'](s(0xca)),'isComponent':b[s(0xb4)](s(0xb2)),'isLayout':b[s(0xb4)](s(0x9d)),'withTranslations':g[s(0xd5)]['withTranslations'],'test':g['engines'][s(0xb9)],'theme':g[s(0xb7)][s(0xd8)]};g['template'][s(0xab)]&&this[s(0xc1)][s(0x99)]({'srcPath':s(0x94),'destPath':f+'.html','context':h,'config':g});g['features']?.[s(0xcd)]||b[s(0xba)]?this[s(0xc1)]['template']({'srcPath':s(0x91),'destPath':f+s(0x8d),'framework':s(0xd3),'context':h,'config':g}):this[s(0xc1)][s(0x99)]({'srcPath':s(0xa7),'destPath':f+s(0x8d),'framework':'react','context':h,'config':g});g[s(0xb7)][s(0xb9)]!==s(0x98)&&this[s(0xc1)][s(0x99)]({'srcPath':'test/test.js','destPath':f+'.app-tests.js','framework':'react','context':h,'config':g});g[s(0x99)][s(0xdd)]&&this[s(0xc1)][s(0x99)]({'srcPath':s(0xdb),'destPath':f+s(0xb6),'context':Object[s(0xdc)]({},h,{'className':paramCase(b[s(0x9e)])}),'config':g});g[s(0xb7)]['client']!==s(0xd3)&&g[s(0xb7)]['client']!==s(0xc0)?(g[s(0x99)]['css']&&this[s(0xc1)][s(0xa4)]({'filePath':f+'.'+g[s(0xb7)]['js'],'content':'import\x20\x27./'+h[s(0xae)]+'.'+g['engines'][s(0xab)]+'\x27;\x0a'+s(0xa6)+h['fileName']+'.'+g[s(0xb7)][s(0xdd)]+'\x27;'}),!g[s(0x99)][s(0xdd)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0xb7)]['js'],'content':s(0xa6)+h[s(0xae)]+'.'+g[s(0xb7)][s(0xab)]+'\x27;'})):g[s(0x99)]['css']&&this[s(0xc1)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0xb7)]['js'],'content':s(0xa6)+h['fileName']+'.'+g[s(0xb7)][s(0xdd)]+'\x27;'});const i=b[s(0xb5)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0xae)]+'/'+h['fileName'];let k;if(g[s(0xb7)]['ssr']===s(0xa0)){const l=this[s(0xc1)][s(0xa3)]({'pathParts':['imports','startup',s(0xc6),s(0x96)]});k=this[s(0xc1)][s(0x9a)]({'pathParts':[l],'config':g});}else{const m=this[s(0xc1)]['pathFromApp']({'pathParts':[s(0xa5),s(0xac),'client',s(0x96)]});k=this[s(0xc1)][s(0x9a)]({'pathParts':[m],'config':g});}g[s(0xb7)][s(0xd6)]===s(0xd3)?(g[s(0xb7)]['js']==='tsx'?this[s(0xc1)][s(0xa4)]({'filePath':k,'content':s(0xc9)+h[s(0x95)]+s(0xd2)+j+s(0xd9)}):this[s(0xc1)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h['className']+'\x20}\x20from\x20\x27'+j+'.'+g['engines']['js']+s(0xd9)}),this[s(0xc1)][s(0xcc)]({'filePath':k,'content':s(0xe2)+h[s(0x95)]+s(0x8c)})):this[s(0xc1)][s(0xcc)]({'filePath':k,'content':s(0xbc)+j+'.'+g[s(0xb7)]['js']+'\x27;\x0a'});});});
@@ -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(0x17a))/0x1*(parseInt(h(0x174))/0x2)+-parseInt(h(0x17f))/0x3*(-parseInt(h(0x183))/0x4)+parseInt(h(0x17e))/0x5+-parseInt(h(0x172))/0x6+-parseInt(h(0x179))/0x7+parseInt(h(0x17b))/0x8*(parseInt(h(0x16c))/0x9)+parseInt(h(0x177))/0xa*(-parseInt(h(0x168))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x2440d));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a107d;if(c){const e=c[i(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const j=a107d;return a107a[j(0x16d)]()[j(0x181)](j(0x175))[j(0x16d)]()[j(0x180)](a107a)['search']('(((.+)+)+)+$');});a107a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x166;let f=c[d];return f;},a107d(a,b);}Generator[a107k(0x173)]({'name':a107k(0x17d),'aliases':['p'],'usage':a107k(0x16a),'shortDesc':a107k(0x16f),'validOpts':[],'examples':[a107k(0x170)]},async function(a,b){const l=a107k,c=this['fsi'][l(0x169)]();this[l(0x182)][l(0x176)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x17c)]),'noRename':!![]};let e='js';c[m(0x16b)]['js']==='tsx'&&(e='ts');const f=this[m(0x182)][m(0x167)]({'pathParts':[m(0x178)+c[m(0x16b)]['js']]}),g=this[m(0x182)][m(0x16e)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x182)][m(0x171)]({'filePath':f,'content':'\x0a'+g});});});function a107c(){const n=['server/publish.','1761277dZmjtQ','59fvRfiQ','104oeccBp','resourceName','publish','668200XUAwSx','3DEzpag','constructor','search','fsi','1119396gyJzal','apply','rewriteDestinationPathForEngine','22uQRkjM','getProjectConfig','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','engines','122373bkDOsI','toString','templateContent','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','maka\x20g:publish\x20todos','injectAtEndOfFile','508176ZJlkeq','create','9536IUwFCx','(((.+)+)+)+$','withValue','1933810XPpOHS'];a107c=function(){return n;};return a107c();}