@maka/maka-cli 4.6.14 → 4.6.15

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 (140) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy/_index.js +1 -0
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -0
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -0
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -0
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/proxy.js +1 -1
  84. package/bundle/obf/src/commands/reconfig.js +1 -1
  85. package/bundle/obf/src/commands/run/_index.js +1 -1
  86. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/run/run.command.js +1 -1
  88. package/bundle/obf/src/commands/set/_index.js +1 -1
  89. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  90. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  91. package/bundle/obf/src/commands/set/set.command.js +1 -1
  92. package/bundle/obf/src/commands/ssh.js +1 -1
  93. package/bundle/obf/src/commands/ssl.js +1 -1
  94. package/bundle/obf/src/commands/test.js +1 -1
  95. package/bundle/obf/src/commands/version.js +1 -1
  96. package/bundle/obf/src/error.js +1 -1
  97. package/bundle/obf/src/exec.js +1 -1
  98. package/bundle/obf/src/generator.js +1 -1
  99. package/bundle/obf/src/generators/_index.js +1 -1
  100. package/bundle/obf/src/generators/api.js +1 -1
  101. package/bundle/obf/src/generators/collection.js +1 -1
  102. package/bundle/obf/src/generators/component.js +1 -1
  103. package/bundle/obf/src/generators/config.js +1 -1
  104. package/bundle/obf/src/generators/dbc.js +1 -1
  105. package/bundle/obf/src/generators/dockerfile.js +1 -1
  106. package/bundle/obf/src/generators/hook.js +1 -1
  107. package/bundle/obf/src/generators/kit.js +1 -1
  108. package/bundle/obf/src/generators/layout.js +1 -1
  109. package/bundle/obf/src/generators/maka.gen.js +1 -1
  110. package/bundle/obf/src/generators/methods.js +1 -1
  111. package/bundle/obf/src/generators/package.js +1 -1
  112. package/bundle/obf/src/generators/page.js +1 -1
  113. package/bundle/obf/src/generators/publish.js +1 -1
  114. package/bundle/obf/src/generators/route.js +1 -1
  115. package/bundle/obf/src/generators/service.js +1 -1
  116. package/bundle/obf/src/generators/services/_index.js +1 -1
  117. package/bundle/obf/src/generators/services/openssl.js +1 -1
  118. package/bundle/obf/src/generators/services/translation.js +1 -1
  119. package/bundle/obf/src/maka.js +1 -1
  120. package/bundle/obf/src/tool.js +1 -1
  121. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  122. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  123. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  124. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  125. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  126. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  127. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/https/https.class.js +1 -1
  129. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  130. package/bundle/obf/src/tools/log/log.class.js +1 -1
  131. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/options/options.class.js +1 -1
  133. package/bundle/obf/src/tools/progress/progress.class.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 +1 -1
  140. package/bundle/obf/src/commands/deploy.js +0 -1
@@ -1 +1 @@
1
- const a96z=a96d;function a96c(){const C=['Publications','-api\x27;','injectAtEndOfFile','pathFromApp','index.','ddp-rate-limiter','maka\x20{generate,\x20g}:{api}\x20<resource-name>','withPubs','api/register-api.js','checkbox','const','withValue','No\x20API\x20boundaries\x20selected','options','fixtures.','import\x20\x27./register-','api/fixtures.js','checkMeteorPackage','template','-api.','mongo','fsi','resourceName','notice','4849488OpwZKx','withRest','typeDefs.','test','rewriteDestinationPathForEngine','register-','api/tests.js','22ARMXQv','/graphql/resolvers','mdg:validated-method','apply','apollo','/imports/api','9fMsBvZ','invoke','api/typeDefs.js','1442ZQLxUj','api/publications.js','14400DFiujn','(((.+)+)+)+$','injectAtBeginningOfFile','installMeteorPackage','maka\x20g:api\x20Todos','search','Fixtures','api','TypeDefs);\x0a','rpc-methods.','dir','Resolvers\x20}\x20from\x20\x27','resolverList.push(','engines','length','apiAnswers','430852RIvkMj','/graphql/typeDefs','rest','toString','error','Verifying\x20meteor\x20package\x20requirements\x20...','724WyZRQE','none','imports','withGql','withMethods','typeList.push(','import\x20{\x20typeDefs\x20as\x20','2221490GAGQkX','API\x20boundaries\x20to\x20create','exit','resolvers.','api/resolvers.js','startup','3huFECM','server','findGenerator','graphql','2665fudeeH','309482Sbxoya','RPC\x20(Methods)','if\x20\x5c(typeList','\x27;\x0a','api/methods.js','3105064XSGNOt','injectIntoFile','includes','TypeDefs\x20}\x20from\x20\x27','create','tsx','withFixtures','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).'];a96c=function(){return C;};return a96c();}(function(a,b){const w=a96d,c=a();while(!![]){try{const d=parseInt(w(0x1e6))/0x1+-parseInt(w(0x1ce))/0x2*(-parseInt(w(0x1e1))/0x3)+parseInt(w(0x1d4))/0x4*(-parseInt(w(0x1e5))/0x5)+-parseInt(w(0x21d))/0x6*(parseInt(w(0x21b))/0x7)+-parseInt(w(0x1eb))/0x8*(-parseInt(w(0x218))/0x9)+-parseInt(w(0x1db))/0xa*(parseInt(w(0x212))/0xb)+parseInt(w(0x20b))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x44d8a));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a96d;if(c){const e=c[x(0x215)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const y=a96d;return a96a[y(0x1d1)]()['search'](y(0x21e))[y(0x1d1)]()['constructor'](a96a)[y(0x222)](y(0x21e));});a96a();function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a96d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a96e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a96z(0x1ef)]({'name':a96z(0x1c5),'aliases':['a'],'usage':a96z(0x1f9),'shortDesc':a96z(0x1f2),'validOpts':[a96z(0x1c8)],'examples':[a96z(0x221)],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const A=a96z;try{const c=this[A(0x208)]['getProjectConfig'](),d=[{'name':A(0x1e7),'value':A(0x1d8)},{'name':A(0x223),'value':A(0x1f1)},{'name':A(0x1f3),'value':'withPubs'}];c[A(0x1cb)]['api']===A(0x1d0)&&d['push']({'name':'REST\x20API','value':A(0x20c)});c[A(0x1cb)][A(0x1e4)]===A(0x216)&&d['push']({'name':'GraphQL','value':A(0x1d7)});const f={'type':A(0x1fc),'name':A(0x1cd),'message':A(0x1dc),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x200)](f);g[A(0x1cc)]===0x0&&(Log[A(0x1d2)](A(0x1ff)),process[A(0x1dd)](0x1)),this[A(0x208)][A(0x1fe)](c,async()=>{const B=A,h=this[B(0x208)][B(0x1f6)]({}),i=b[B(0x209)],j=paramCase(i),k=camelCase(i),l=b[B(0x1c8)]?'/'+b[B(0x1c8)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines']['api'],'graphql':c[B(0x1cb)][B(0x1e4)],'test':c['engines'][B(0x20e)],'noRename':!![],'withPubs':g[B(0x1ed)]('withPubs'),'withFixtures':g[B(0x1ed)](B(0x1f1)),'withMethods':g[B(0x1ed)]('withMethods'),'withRest':g['includes'](B(0x20c))};let n='js';c['engines']['js']===B(0x1f0)&&(n='ts');(!this[B(0x208)][B(0x204)]('maka:rest')||!this['fsi']['checkMeteorPackage']('maka:check')||!this[B(0x208)][B(0x204)](B(0x1f8))||!this[B(0x208)][B(0x204)](B(0x214))||!this['fsi'][B(0x204)](B(0x207)))&&(Log[B(0x20a)](B(0x1d3)),await this[B(0x208)][B(0x220)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a96e[B(0x1e3)]('collection');o&&await o[B(0x219)]([j],{'config':c,'where':'server'});c['engines'][B(0x1c5)]===B(0x1d0)&&(m[B(0x20c)]&&this['fsi'][B(0x205)]({'srcPath':'api/api.js','destPath':this[B(0x208)]['pathFromApp']({'pathParts':[B(0x1d6),B(0x1c5),b['dir'],j,'rest-api.'+n]}),'context':m,'config':c}));m[B(0x1d8)]&&this[B(0x208)][B(0x205)]({'srcPath':B(0x1ea),'destPath':this[B(0x208)]['pathFromApp']({'pathParts':[B(0x1d6),B(0x1c5),b['dir'],j,B(0x1c7)+n]}),'context':m,'config':c});m[B(0x1f1)]&&this['fsi'][B(0x205)]({'srcPath':B(0x203),'destPath':this[B(0x208)][B(0x1f6)]({'pathParts':['imports',B(0x1c5),b[B(0x1c8)],j,B(0x201)+n]}),'context':m,'config':c});c[B(0x1cb)][B(0x20e)]!==B(0x1d5)&&this[B(0x208)][B(0x205)]({'srcPath':B(0x211),'destPath':this[B(0x208)]['pathFromApp']({'pathParts':[B(0x1d6),B(0x1c5),b['dir'],j,j+'.app-tests.'+n]}),'context':m,'config':c});m[B(0x1fa)]&&this[B(0x208)][B(0x205)]({'srcPath':B(0x21c),'destPath':this[B(0x208)][B(0x1f6)]({'pathParts':[B(0x1d6),B(0x1c5),b['dir'],j,'publications.'+n]}),'context':m,'config':c});if(c['engines']['graphql']===B(0x216)){if(g[B(0x1ed)]('withGql')){const q=this[B(0x208)][B(0x1f6)]({'pathParts':[B(0x1d6),B(0x1e0),B(0x1e2),'index.'+c[B(0x1cb)]['js']]}),r=this[B(0x208)][B(0x20f)]({'pathParts':[q],'config':c}),s=this['fsi'][B(0x1f6)]({'pathParts':[B(0x1d6),B(0x1c5),b['dir'],j,B(0x1e4),B(0x20d)+n]}),t=B(0x217)+l+j+B(0x1cf);this[B(0x208)][B(0x205)]({'srcPath':B(0x21a),'destPath':s,'context':m,'config':c}),this[B(0x208)][B(0x21f)]({'filePath':r,'content':B(0x1da)+k+B(0x1ee)+t+B(0x1e9)}),this[B(0x208)][B(0x1ec)]({'filePath':r,'content':B(0x1d9)+k+B(0x1c6),'begin':B(0x1fd),'end':B(0x1e8)});const u=this[B(0x208)][B(0x1f6)]({'pathParts':['imports','api',b[B(0x1c8)],j,B(0x1e4),B(0x1de)+n]}),v=B(0x217)+l+j+B(0x213);this[B(0x208)][B(0x205)]({'srcPath':B(0x1df),'destPath':u,'context':m,'config':c}),this['fsi'][B(0x21f)]({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+B(0x1c9)+v+'\x27;'}),this['fsi'][B(0x1ec)]({'filePath':r,'content':B(0x1ca)+k+'Resolvers);\x0a\x0a','begin':B(0x1fd),'end':B(0x1e8)});}}this[B(0x208)][B(0x205)]({'srcPath':B(0x1fb),'destPath':this[B(0x208)][B(0x1f6)]({'pathParts':[B(0x1d6),'startup',B(0x1e2),B(0x210)+j+B(0x206)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x1f6)]({'pathParts':[B(0x1d6),B(0x1e0),B(0x1e2),B(0x1f7)+c[B(0x1cb)]['js']]});this[B(0x208)][B(0x1f5)]({'filePath':p,'content':B(0x202)+j+B(0x1f4)});});}catch(h){console[A(0x1d2)](h),process[A(0x1dd)](0x0);}});
1
+ const a99y=a99d;function a99c(){const B=['push','Verifying\x20meteor\x20package\x20requirements\x20...','pathFromApp','TypeDefs);\x0a','index.','injectAtBeginningOfFile','constructor','findGenerator','api/tests.js','34552awZBFl','template','rest','getProjectConfig','ddp-rate-limiter','withPubs','API\x20boundaries\x20to\x20create','graphql','tsx','mongo','-api\x27;','engines','length','notice','imports','checkMeteorPackage','Fixtures','Resolvers);\x0a\x0a','api/resolvers.js','10953216RYwowU','server','injectAtEndOfFile','toString','dir','resolverList.push(','(((.+)+)+)+$','fixtures.','rewriteDestinationPathForEngine','rest-api.','search','Publications','\x0aimport\x20{\x20resolvers\x20as\x20','api/publications.js','options','invoke','includes','if\x20\x5c(typeList','rpc-methods.','api','/graphql/resolvers','mdg:validated-method','withGql','none','startup','publications.','2178256bpEtQi','maka\x20g:api\x20Todos','import\x20{\x20typeDefs\x20as\x20','32831070hSXRal','injectIntoFile','error','apollo','api/typeDefs.js','import\x20\x27./register-','.app-tests.','fsi','39828mKMjIF','GraphQL','api/fixtures.js','1445ueuqwX','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','1098ASLpxP','withValue','apiAnswers','withRest','api/api.js','withFixtures','create','/graphql/typeDefs','const','test','api/methods.js','1436691CmWSnv','687aIQIyx','928XAGJTl','RPC\x20(Methods)','withMethods','exit','maka:check','/imports/api'];a99c=function(){return B;};return a99c();}(function(a,b){const w=a99d,c=a();while(!![]){try{const d=-parseInt(w(0x22e))/0x1+parseInt(w(0x223))/0x2*(-parseInt(w(0x22f))/0x3)+parseInt(w(0x213))/0x4+parseInt(w(0x221))/0x5*(-parseInt(w(0x21e))/0x6)+-parseInt(w(0x1e6))/0x7*(parseInt(w(0x230))/0x8)+parseInt(w(0x1f9))/0x9+parseInt(w(0x216))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xf205d));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const x=a99d;return a99a[x(0x1fc)]()[x(0x203)]('(((.+)+)+)+$')[x(0x1fc)]()[x(0x1e3)](a99a)[x(0x203)](x(0x1ff));});a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a99d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99y(0x229)]({'name':a99y(0x20c),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a99y(0x1fd)],'examples':[a99y(0x214)],'description':a99y(0x222)},async function(a,b){const z=a99y;try{const c=this[z(0x21d)][z(0x1e9)](),d=[{'name':z(0x231),'value':z(0x232)},{'name':z(0x1f6),'value':z(0x228)},{'name':z(0x204),'value':'withPubs'}];c[z(0x1f1)]['api']===z(0x1e8)&&d[z(0x236)]({'name':'REST\x20API','value':z(0x226)});c[z(0x1f1)][z(0x1ed)]===z(0x219)&&d['push']({'name':z(0x21f),'value':z(0x20f)});const f={'type':'checkbox','name':z(0x225),'message':z(0x1ec),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x207)](f);g[z(0x1f2)]===0x0&&(Log[z(0x218)]('No\x20API\x20boundaries\x20selected'),process['exit'](0x1)),this[z(0x21d)][z(0x224)](c,async()=>{const A=z,h=this[A(0x21d)]['pathFromApp']({}),i=b['resourceName'],j=paramCase(i),k=camelCase(i),l=b[A(0x1fd)]?'/'+b[A(0x1fd)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x1f1)][A(0x20c)],'graphql':c[A(0x1f1)][A(0x1ed)],'test':c[A(0x1f1)][A(0x22c)],'noRename':!![],'withPubs':g['includes'](A(0x1eb)),'withFixtures':g['includes']('withFixtures'),'withMethods':g[A(0x209)](A(0x232)),'withRest':g[A(0x209)](A(0x226))};let n='js';c[A(0x1f1)]['js']===A(0x1ee)&&(n='ts');(!this[A(0x21d)][A(0x1f5)]('maka:rest')||!this[A(0x21d)][A(0x1f5)](A(0x234))||!this['fsi'][A(0x1f5)](A(0x1ea))||!this[A(0x21d)]['checkMeteorPackage'](A(0x20e))||!this[A(0x21d)][A(0x1f5)](A(0x1ef)))&&(Log[A(0x1f3)](A(0x237)),await this[A(0x21d)]['installMeteorPackage']('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a99e[A(0x1e4)]('collection');o&&await o[A(0x208)]([j],{'config':c,'where':'server'});c['engines'][A(0x20c)]===A(0x1e8)&&(m[A(0x226)]&&this[A(0x21d)][A(0x1e7)]({'srcPath':A(0x227),'destPath':this[A(0x21d)][A(0x238)]({'pathParts':[A(0x1f4),A(0x20c),b['dir'],j,A(0x202)+n]}),'context':m,'config':c}));m[A(0x232)]&&this[A(0x21d)]['template']({'srcPath':A(0x22d),'destPath':this[A(0x21d)]['pathFromApp']({'pathParts':[A(0x1f4),A(0x20c),b[A(0x1fd)],j,A(0x20b)+n]}),'context':m,'config':c});m[A(0x228)]&&this['fsi'][A(0x1e7)]({'srcPath':A(0x220),'destPath':this[A(0x21d)][A(0x238)]({'pathParts':[A(0x1f4),A(0x20c),b[A(0x1fd)],j,A(0x200)+n]}),'context':m,'config':c});c[A(0x1f1)][A(0x22c)]!==A(0x210)&&this[A(0x21d)]['template']({'srcPath':A(0x1e5),'destPath':this['fsi'][A(0x238)]({'pathParts':[A(0x1f4),'api',b[A(0x1fd)],j,j+A(0x21c)+n]}),'context':m,'config':c});m['withPubs']&&this[A(0x21d)][A(0x1e7)]({'srcPath':A(0x206),'destPath':this[A(0x21d)][A(0x238)]({'pathParts':[A(0x1f4),A(0x20c),b[A(0x1fd)],j,A(0x212)+n]}),'context':m,'config':c});if(c[A(0x1f1)]['graphql']==='apollo'){if(g[A(0x209)](A(0x20f))){const q=this[A(0x21d)][A(0x238)]({'pathParts':[A(0x1f4),A(0x211),A(0x1fa),A(0x23a)+c['engines']['js']]}),r=this['fsi'][A(0x201)]({'pathParts':[q],'config':c}),s=this[A(0x21d)][A(0x238)]({'pathParts':[A(0x1f4),A(0x20c),b[A(0x1fd)],j,A(0x1ed),'typeDefs.'+n]}),t=A(0x235)+l+j+A(0x22a);this[A(0x21d)][A(0x1e7)]({'srcPath':A(0x21a),'destPath':s,'context':m,'config':c}),this[A(0x21d)]['injectAtBeginningOfFile']({'filePath':r,'content':A(0x215)+k+'TypeDefs\x20}\x20from\x20\x27'+t+'\x27;\x0a'}),this[A(0x21d)][A(0x217)]({'filePath':r,'content':'typeList.push('+k+A(0x239),'begin':A(0x22b),'end':A(0x20a)});const u=this[A(0x21d)]['pathFromApp']({'pathParts':[A(0x1f4),A(0x20c),b[A(0x1fd)],j,A(0x1ed),'resolvers.'+n]}),v='/imports/api'+l+j+A(0x20d);this['fsi']['template']({'srcPath':A(0x1f8),'destPath':u,'context':m,'config':c}),this[A(0x21d)][A(0x23b)]({'filePath':r,'content':A(0x205)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[A(0x21d)][A(0x217)]({'filePath':r,'content':A(0x1fe)+k+A(0x1f7),'begin':A(0x22b),'end':A(0x20a)});}}this['fsi'][A(0x1e7)]({'srcPath':'api/register-api.js','destPath':this[A(0x21d)]['pathFromApp']({'pathParts':[A(0x1f4),'startup',A(0x1fa),'register-'+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi']['pathFromApp']({'pathParts':[A(0x1f4),A(0x211),A(0x1fa),A(0x23a)+c['engines']['js']]});this[A(0x21d)][A(0x1fb)]({'filePath':p,'content':A(0x21b)+j+A(0x1f0)});});}catch(h){console[z(0x218)](h),process[z(0x233)](0x0);}});
@@ -1 +1 @@
1
- const a97m=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0x19f))/0x1+parseInt(k(0x1ae))/0x2*(parseInt(k(0x1be))/0x3)+-parseInt(k(0x1a2))/0x4+-parseInt(k(0x1c1))/0x5+parseInt(k(0x199))/0x6*(parseInt(k(0x19d))/0x7)+parseInt(k(0x1aa))/0x8+-parseInt(k(0x197))/0x9*(-parseInt(k(0x1a7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x2fcbe));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const l=a97d;return a97a['toString']()['search'](l(0x1bb))[l(0x1c2)]()[l(0x1ac)](a97a)[l(0x1b6)]('(((.+)+)+)+$');});a97a();function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x197;let f=c[d];return f;},a97d(a,b);}import{paramCase,pascalCase}from'change-case';function a97c(){const p=['1114652rAzTEa','injectAtEndOfFile','engines','fsi','template','20ASrygv','collection/collection.js','resourceName','2975184zTcUdB','maka\x20g:collection\x20todos','constructor','notice','3702lJEShz','maka:check','dir','installMeteorPackage','index.','where','appPathPrefix','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','search','\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','startup','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','create','(((.+)+)+)+$','imports','mongo','534EbTsUg','collection/tests.js','pathFromApp','1854555roQSbC','toString','1459602PnnoKp','checkMeteorPackage','743364PEALuI','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','test','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','7YgsnaJ','collection','304278YPyeJi','getProjectConfig','collections'];a97c=function(){return p;};return a97c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a97m(0x1ba)]({'name':a97m(0x19e),'aliases':['col'],'usage':a97m(0x19a),'checkWhere':!![],'shortDesc':a97m(0x1b5),'validOpts':['dir',a97m(0x1b3)],'description':a97m(0x1b7),'examples':[a97m(0x1ab)]},async function(a,b){const n=a97m;try{const c=this[n(0x1a5)][n(0x1c0)]({}),d=this['fsi'][n(0x1a0)]();this[n(0x1a5)]['withValue'](d,async()=>{const o=n,f=paramCase(b[o(0x1a9)]),g={'name':pascalCase(b[o(0x1a9)]),'collectionName':pascalCase(b[o(0x1a9)]),'fileName':f,'where':b[o(0x1b3)],'test':d[o(0x1a4)][o(0x19b)],'noRename':!![]};let h='js';d[o(0x1a4)]['js']==='tsx'&&(h='ts');!this[o(0x1a5)][o(0x198)]('mongo')&&(Log[o(0x1ad)](o(0x1b9)),await this[o(0x1a5)][o(0x1b1)](o(0x1bd),{'cwd':c}));!this[o(0x1a5)][o(0x198)]('maka:check')&&(Log['notice'](o(0x19c)),await this[o(0x1a5)][o(0x1b1)](o(0x1af),{'cwd':c}));this[o(0x1a5)][o(0x1a6)]({'srcPath':o(0x1a8),'destPath':this[o(0x1a5)][o(0x1c0)]({'pathParts':[o(0x1bc),o(0x1b8),b[o(0x1b4)],o(0x1a1),b['dir'],f+'.'+h]}),'context':g,'config':d});d['engines'][o(0x19b)]!=='none'&&this['fsi'][o(0x1a6)]({'srcPath':o(0x1bf),'destPath':this['fsi'][o(0x1c0)]({'pathParts':[o(0x1bc),o(0x1b8),b[o(0x1b4)],o(0x1a1),b[o(0x1b0)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[o(0x1b0)]+'/':'/',j=this[o(0x1a5)][o(0x1c0)]({'pathParts':[o(0x1bc),o(0x1b8),b[o(0x1b4)],o(0x1b2)+d[o(0x1a4)]['js']]});this[o(0x1a5)][o(0x1a3)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
1
+ function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a100d(a,b);}const a100m=a100d;(function(a,b){const k=a100d,c=a();while(!![]){try{const d=-parseInt(k(0x1ca))/0x1+parseInt(k(0x1b2))/0x2+parseInt(k(0x1bb))/0x3+-parseInt(k(0x1c5))/0x4*(-parseInt(k(0x1d1))/0x5)+-parseInt(k(0x1b7))/0x6*(-parseInt(k(0x1cc))/0x7)+parseInt(k(0x1c3))/0x8*(parseInt(k(0x1c7))/0x9)+-parseInt(k(0x1ab))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xc7133));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0x1ad)]()[l(0x1d0)]('(((.+)+)+)+$')[l(0x1ad)]()[l(0x1b5)](a100a)['search'](l(0x1c1));});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a100c(){const p=['injectAtEndOfFile','collections','\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','engines','tsx','notice','startup','7710640aORYzP','where','toString','none','col','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','pathFromApp','5366ZMcLjR','test','appPathPrefix','constructor','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','8013456pndrRJ','checkMeteorPackage','.app-tests.','collection/tests.js','279279LVpBQc','maka:check','resourceName','collection/collection.js','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','mongo','(((.+)+)+)+$','maka\x20g:collection\x20todos','8tamfdY','imports','1567496SQFUtC','withValue','9629757NGleVl','collection','installMeteorPackage','1306724SDsDFy','getProjectConfig','7nrfrXo','dir','fsi','template','search','5hCSIPh'];a100c=function(){return p;};return a100c();}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a100m(0x1c8),'aliases':[a100m(0x1af)],'usage':a100m(0x1b6),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a100m(0x1cd),a100m(0x1ac)],'description':a100m(0x1d4),'examples':[a100m(0x1c2)]},async function(a,b){const n=a100m;try{const c=this['fsi']['pathFromApp']({}),d=this[n(0x1ce)][n(0x1cb)]();this[n(0x1ce)][n(0x1c6)](d,async()=>{const o=n,f=paramCase(b[o(0x1bd)]),g={'name':pascalCase(b[o(0x1bd)]),'collectionName':pascalCase(b[o(0x1bd)]),'fileName':f,'where':b[o(0x1ac)],'test':d['engines'][o(0x1b3)],'noRename':!![]};let h='js';d[o(0x1d5)]['js']===o(0x1d6)&&(h='ts');!this[o(0x1ce)][o(0x1b8)](o(0x1c0))&&(Log[o(0x1a9)](o(0x1bf)),await this[o(0x1ce)][o(0x1c9)]('mongo',{'cwd':c}));!this[o(0x1ce)]['checkMeteorPackage']('maka:check')&&(Log[o(0x1a9)](o(0x1b0)),await this['fsi'][o(0x1c9)](o(0x1bc),{'cwd':c}));this['fsi'][o(0x1cf)]({'srcPath':o(0x1be),'destPath':this[o(0x1ce)][o(0x1b1)]({'pathParts':[o(0x1c4),o(0x1aa),b['appPathPrefix'],'collections',b[o(0x1cd)],f+'.'+h]}),'context':g,'config':d});d[o(0x1d5)]['test']!==o(0x1ae)&&this['fsi'][o(0x1cf)]({'srcPath':o(0x1ba),'destPath':this['fsi'][o(0x1b1)]({'pathParts':[o(0x1c4),'startup',b[o(0x1b4)],o(0x1d3),b[o(0x1cd)],f+o(0x1b9)+h]}),'context':g,'config':d});const i=b[o(0x1cd)]?'/'+b[o(0x1cd)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':[o(0x1c4),'startup',b[o(0x1b4)],'index.'+d[o(0x1d5)]['js']]});this[o(0x1ce)][o(0x1d2)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
@@ -1 +1 @@
1
- const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=-parseInt(n(0x13d))/0x1*(parseInt(n(0x148))/0x2)+-parseInt(n(0x177))/0x3*(parseInt(n(0x14c))/0x4)+parseInt(n(0x146))/0x5*(parseInt(n(0x176))/0x6)+parseInt(n(0x173))/0x7+-parseInt(n(0x13c))/0x8+parseInt(n(0x137))/0x9*(parseInt(n(0x14a))/0xa)+-parseInt(n(0x178))/0xb*(-parseInt(n(0x151))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xa6b1b));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x171)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x142)]()[p(0x145)](p(0x15a))[p(0x142)]()[p(0x168)](a98a)[p(0x145)](p(0x15a));});a98a();function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x12f;let f=c[d];return f;},a98d(a,b);}function a98c(){const t=['className','/imports/ui/components','startup','react','components','test','.css','pages','true','.tests.js','component','withTranslations','constructor','export\x20\x27','layouts','fsi','baseDir','theme','root','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','pathFromApp','apply','features','4212810nXunfU','create','imports','715362Twrmrw','3SUGcMC','11ZPZbPv','template','setTemplate','component/component.js','graphql','css','getProjectConfig','injectAtBeginningOfFile','engines','withValue','135KUbKPD','string','relative','test/test.js','ssr','3634728xdWuMw','2LNPBvr','import\x20\x27./','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','dir','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','toString','comp','maka\x20g:comp\x20todos/todos-item','search','25KTmysy','\x20}\x20from\x20\x27','1277410ELsnlS','reflux','839390zBVaCI','templates.js','1160996RMWdBO','ramda','checkNpmPackage','resourceName','rewriteDestinationPathForEngine','2972748EUZHyk','api','\x27;\x0a','error','lib','injectAtEndOfFile','fileName','client','hooks','(((.+)+)+)+$','export\x20{\x20'];a98c=function(){return t;};return a98c();}import a98e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a98q(0x143)];Generator[a98q(0x174)]({'name':a98q(0x166),'aliases':aliases,'usage':a98q(0x16f),'shortDesc':a98q(0x141),'validOpts':[{'name':a98q(0x16c),'values':[a98q(0x159),a98q(0x160),a98q(0x163),a98q(0x16a)]}],'examples':[a98q(0x144)]},async function(a,b){const r=a98q;try{const c=this[r(0x16b)]['findAppDirectory'](),d=b[r(0x16c)]?'/imports/ui/'+b[r(0x16c)]:r(0x15d),f=this[r(0x16b)][r(0x170)]({'pathParts':[d,b[r(0x140)],paramCase(b[r(0x14f)]),paramCase(b[r(0x14f)])]}),g=await this[r(0x16b)][r(0x133)]();this[r(0x16b)][r(0x136)](g,async()=>{const s=r;typeof g[s(0x179)][s(0x161)]===s(0x138)&&(g[s(0x179)]['test']=g[s(0x179)][s(0x161)]===s(0x164)?!![]:![],this[s(0x16b)][s(0x12f)](s(0x161),g[s(0x179)][s(0x161)]));typeof g['template'][s(0x132)]===s(0x138)&&(g['template']['css']=g[s(0x179)][s(0x132)]===s(0x164)?!![]:![],this[s(0x16b)]['setTemplate'](s(0x132),g['template'][s(0x132)]));typeof g[s(0x179)]['js']===s(0x138)&&(g['template']['js']=g[s(0x179)]['js']===s(0x164)?!![]:![],this['fsi'][s(0x12f)]('js',g[s(0x179)]['js']));!g[s(0x172)]&&(g[s(0x172)]={});!b[s(0x16e)]&&!this[s(0x16b)]['checkNpmPackage'](s(0x14d))&&(Log['warn'](s(0x13f)),await this[s(0x16b)]['installNpmPackage']('ramda',{'cwd':c}));if(!b[s(0x16e)]&&!this['fsi'][s(0x14e)]('react')){Log[s(0x154)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b['resourceName']),'myPath':a98e[s(0x139)](this[s(0x16b)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x14f)]),'className':pascalCase(b[s(0x14f)]),'camelCaseName':camelCase(b[s(0x14f)]),'fileName':paramCase(b[s(0x14f)]),'graphql':g['engines'][s(0x131)],'features':g['features'],'client':g[s(0x135)][s(0x158)],'api':g[s(0x135)][s(0x152)],'ssr':g[s(0x135)]['ssr'],'test':g[s(0x135)]['test'],'theme':g[s(0x135)][s(0x16d)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x172)][s(0x167)]};this['fsi']['template']({'srcPath':s(0x130),'destPath':f+'.js','context':h,'framework':s(0x15f),'config':g});g[s(0x135)]['test']!=='none'&&this[s(0x16b)][s(0x179)]({'srcPath':s(0x13a),'destPath':f+s(0x165),'context':h,'framework':s(0x15f),'config':g});g[s(0x179)][s(0x132)]&&(this[s(0x16b)][s(0x179)]({'srcPath':'template/template.css','destPath':f+s(0x162),'context':Object['assign']({},h,{'className':paramCase(b[s(0x14f)])}),'config':g}),this[s(0x16b)][s(0x134)]({'filePath':f+'.'+g['engines']['js'],'content':s(0x13e)+h['cssCaseName']+'.'+g[s(0x135)][s(0x132)]+'\x27;'}));const i=b[s(0x140)]?'/'+b[s(0x140)]+'/':'/',j=''+d+i+h[s(0x157)]+'/'+h[s(0x157)];let k;if(g[s(0x135)][s(0x13b)]===s(0x164)){const l=this[s(0x16b)]['pathFromApp']({'pathParts':[s(0x175),s(0x15e),s(0x155),s(0x14b)]});k=this['fsi'][s(0x150)]({'pathParts':[l],'config':g});}else{const m=this[s(0x16b)][s(0x170)]({'pathParts':[s(0x175),s(0x15e),s(0x158),s(0x14b)]});k=this[s(0x16b)][s(0x150)]({'pathParts':[m],'config':g});}g[s(0x135)][s(0x158)]==='react'||g[s(0x135)][s(0x158)]===s(0x149)?this[s(0x16b)][s(0x156)]({'filePath':k,'content':s(0x15b)+h[s(0x15c)]+s(0x147)+j+'\x27;\x0a'}):this[s(0x16b)][s(0x156)]({'filePath':k,'content':s(0x169)+j+'.'+g[s(0x135)]['js']+s(0x153)});});}catch(h){Log[r(0x154)](h);}});
1
+ const a101q=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=-parseInt(n(0x1d0))/0x1*(parseInt(n(0x1d5))/0x2)+-parseInt(n(0x19e))/0x3+-parseInt(n(0x1bf))/0x4*(parseInt(n(0x1b0))/0x5)+parseInt(n(0x1c6))/0x6*(parseInt(n(0x1a0))/0x7)+parseInt(n(0x1b2))/0x8+-parseInt(n(0x1d2))/0x9*(parseInt(n(0x1bc))/0xa)+parseInt(n(0x1b5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x3f262));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a101d;if(c){const e=c[o(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const p=a101d;return a101a[p(0x1ad)]()[p(0x1b7)]('(((.+)+)+)+$')[p(0x1ad)]()['constructor'](a101a)[p(0x1b7)](p(0x1cd));});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x199;let f=c[d];return f;},a101d(a,b);}function a101c(){const t=['\x27;\x0a','pathFromApp','.tests.js','string','relative','/imports/ui/','component','test/test.js','resourceName','engines','root','toString','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','setTemplate','70hBnwSk','error','2373416aYXOcO','true','rewriteDestinationPathForEngine','7020783PJMaMW','installNpmPackage','search','graphql','hooks','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','test','1900GoHejx','features','api','140108qcWqBO','withTranslations','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fsi','checkNpmPackage','templates.js','reflux','66fBwJcM','template','react','pathFromProject','injectAtEndOfFile','ramda','withValue','(((.+)+)+)+$','injectAtBeginningOfFile','warn','1069PDdmuA','comp','1989WKygJK','dir','\x20}\x20from\x20\x27','362OfYtMU','create','findAppDirectory','lib','css','baseDir','imports','export\x20{\x20','cssCaseName','ssr','fileName','pages','export\x20\x27','client','import\x20\x27./','maka\x20g:comp\x20todos/todos-item','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','541506FgoPQl','startup','146419tNNoBd','apply'];a101c=function(){return t;};return a101c();}import{Log}from'../tools/log/log.class.js';const aliases=[a101q(0x1d1)];Generator[a101q(0x1d6)]({'name':a101q(0x1a8),'aliases':aliases,'usage':a101q(0x1ba),'shortDesc':a101q(0x1ae),'validOpts':[{'name':a101q(0x1da),'values':[a101q(0x1b9),'components',a101q(0x1e0),'layouts']}],'examples':[a101q(0x19c)]},async function(a,b){const r=a101q;try{const c=this[r(0x1c2)][r(0x1d7)](),d=b[r(0x1da)]?r(0x1a7)+b['baseDir']:'/imports/ui/components',f=this[r(0x1c2)]['pathFromApp']({'pathParts':[d,b['dir'],paramCase(b[r(0x1aa)]),paramCase(b[r(0x1aa)])]}),g=await this[r(0x1c2)]['getProjectConfig']();this['fsi'][r(0x1cc)](g,async()=>{const s=r;typeof g[s(0x1c7)][s(0x1bb)]===s(0x1a5)&&(g[s(0x1c7)][s(0x1bb)]=g[s(0x1c7)][s(0x1bb)]===s(0x1b3)?!![]:![],this[s(0x1c2)][s(0x1af)](s(0x1bb),g['template'][s(0x1bb)]));typeof g['template'][s(0x1d9)]==='string'&&(g['template']['css']=g[s(0x1c7)][s(0x1d9)]===s(0x1b3)?!![]:![],this[s(0x1c2)]['setTemplate'](s(0x1d9),g[s(0x1c7)][s(0x1d9)]));typeof g[s(0x1c7)]['js']===s(0x1a5)&&(g[s(0x1c7)]['js']=g[s(0x1c7)]['js']===s(0x1b3)?!![]:![],this[s(0x1c2)]['setTemplate']('js',g[s(0x1c7)]['js']));!g[s(0x1bd)]&&(g[s(0x1bd)]={});!b[s(0x1ac)]&&!this[s(0x1c2)][s(0x1c3)](s(0x1cb))&&(Log[s(0x1cf)](s(0x1c1)),await this['fsi'][s(0x1b6)]('ramda',{'cwd':c}));if(!b[s(0x1ac)]&&!this[s(0x1c2)][s(0x1c3)](s(0x1c8))){Log['error'](s(0x19d));return;}const h={'name':pascalCase(b[s(0x1aa)]),'myPath':a101e[s(0x1a6)](this['fsi'][s(0x1c9)]({}),f),'cssCaseName':paramCase(b[s(0x1aa)]),'className':pascalCase(b[s(0x1aa)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[s(0x1aa)]),'graphql':g[s(0x1ab)][s(0x1b8)],'features':g['features'],'client':g[s(0x1ab)][s(0x19a)],'api':g[s(0x1ab)][s(0x1be)],'ssr':g[s(0x1ab)][s(0x1de)],'test':g[s(0x1ab)][s(0x1bb)],'theme':g[s(0x1ab)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x1bd)][s(0x1c0)]};this['fsi']['template']({'srcPath':'component/component.js','destPath':f+'.js','context':h,'framework':s(0x1c8),'config':g});g[s(0x1ab)][s(0x1bb)]!=='none'&&this[s(0x1c2)][s(0x1c7)]({'srcPath':s(0x1a9),'destPath':f+s(0x1a4),'context':h,'framework':s(0x1c8),'config':g});g[s(0x1c7)][s(0x1d9)]&&(this[s(0x1c2)][s(0x1c7)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object['assign']({},h,{'className':paramCase(b[s(0x1aa)])}),'config':g}),this[s(0x1c2)][s(0x1ce)]({'filePath':f+'.'+g[s(0x1ab)]['js'],'content':s(0x19b)+h[s(0x1dd)]+'.'+g['engines'][s(0x1d9)]+'\x27;'}));const i=b['dir']?'/'+b[s(0x1d3)]+'/':'/',j=''+d+i+h[s(0x1df)]+'/'+h['fileName'];let k;if(g[s(0x1ab)][s(0x1de)]===s(0x1b3)){const l=this[s(0x1c2)]['pathFromApp']({'pathParts':[s(0x1db),s(0x19f),s(0x1d8),s(0x1c4)]});k=this['fsi'][s(0x1b4)]({'pathParts':[l],'config':g});}else{const m=this[s(0x1c2)][s(0x1a3)]({'pathParts':[s(0x1db),s(0x19f),'client',s(0x1c4)]});k=this[s(0x1c2)][s(0x1b4)]({'pathParts':[m],'config':g});}g[s(0x1ab)][s(0x19a)]===s(0x1c8)||g['engines'][s(0x19a)]===s(0x1c5)?this[s(0x1c2)][s(0x1ca)]({'filePath':k,'content':s(0x1dc)+h['className']+s(0x1d4)+j+s(0x1a2)}):this[s(0x1c2)][s(0x1ca)]({'filePath':k,'content':s(0x199)+j+'.'+g[s(0x1ab)]['js']+s(0x1a2)});});}catch(h){Log[r(0x1b1)](h);}});
@@ -1 +1 @@
1
- const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x7b))/0x1*(-parseInt(h(0x8e))/0x2)+parseInt(h(0x7d))/0x3*(-parseInt(h(0x84))/0x4)+parseInt(h(0x9c))/0x5+-parseInt(h(0x7e))/0x6+parseInt(h(0x8a))/0x7*(-parseInt(h(0x90))/0x8)+-parseInt(h(0x95))/0x9+-parseInt(h(0x86))/0xa*(-parseInt(h(0x82))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xaac05));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x7a;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x92)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a[j(0x89)]()['search'](j(0x9b))[j(0x89)]()[j(0x8c)](a99a)[j(0x80)](j(0x9b));});a99a();import{Generator}from'../generator.js';function a99c(){const n=['7uwaHXO','process.env','constructor','resourceName','65644EiLbzu','production','8156984kXnvrg','Generate\x20configuration\x20settings.','apply','template','maka\x20g:config\x20production','4865481WbULJO','config/process.env','isDocker','settings.json','config','config/settings.json','(((.+)+)+)+$','4984855iHsdaC','create','2iPKynu','pathFromProject','110946HbEwgK','6421398ABCllm','appName','search','fsi','30858707HWXOlq','getProjectConfig','44XqoQAY','prod','10pSngmZ','development','ubuntu','toString'];a99c=function(){return n;};return a99c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99k(0x7a)]({'name':a99k(0x99),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a99k(0x91),'validOpts':[a99k(0x97)],'examples':[a99k(0x94)]},function(a,b){const l=a99k,c=this['fsi'][l(0x83)]();this[l(0x81)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0x7f)],'appFileCase':paramCase(c[m(0x7f)]),'name':pascalCase(b[m(0x8d)]),'fileName':paramCase(b[m(0x8d)]),'camelCase':camelCase(b[m(0x8d)]),'userName':m(0x88),'isDocker':b[m(0x97)]};let e=b[m(0x8d)];if(e==='dev')e=m(0x87);else e===m(0x85)&&(e=m(0x8f));const f=this['fsi'][m(0x7c)]({'pathParts':[m(0x99),e,m(0x98)]});this['fsi'][m(0x93)]({'srcPath':m(0x9a),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x81)][m(0x7c)]({'pathParts':[m(0x99),e,m(0x8b)]});this[m(0x81)][m(0x93)]({'srcPath':m(0x96),'destPath':g,'context':d,'config':c});}});});
1
+ function a102c(){const n=['search','apply','pathFromProject','maka\x20g:config\x20production','2830jmlTNK','resourceName','6139CxGVEE','Generate\x20configuration\x20settings.','config','withValue','isDocker','production','10199OnyRIx','getProjectConfig','config/process.env','config/settings.json','create','process.env','template','14152xledNo','(((.+)+)+)+$','maka\x20{generate,\x20g}:{config}\x20<name>','appName','toString','6691236CJwNsw','983170LPtuNy','development','1366152ZKytAg','dev','18MbDoOn','3639820ZphcIM','87579OtyjBe','fsi'];a102c=function(){return n;};return a102c();}const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x75))/0x1+-parseInt(h(0x87))/0x2+-parseInt(h(0x84))/0x3+-parseInt(h(0x81))/0x4+parseInt(h(0x82))/0x5*(parseInt(h(0x86))/0x6)+parseInt(h(0x6f))/0x7*(parseInt(h(0x7c))/0x8)+-parseInt(h(0x88))/0x9*(-parseInt(h(0x8e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xe9b64));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a['toString']()['search'](j(0x7d))[j(0x80)]()['constructor'](a102a)[j(0x8a)](j(0x7d));});function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x6f;let f=c[d];return f;},a102d(a,b);}a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x79)]({'name':a102k(0x71),'usage':a102k(0x7e),'shortDesc':a102k(0x70),'validOpts':[a102k(0x73)],'examples':[a102k(0x8d)]},function(a,b){const l=a102k,c=this[l(0x89)][l(0x76)]();this[l(0x89)][l(0x72)](c,async()=>{const m=l,d={'app':c[m(0x7f)],'appFileCase':paramCase(c[m(0x7f)]),'name':pascalCase(b[m(0x8f)]),'fileName':paramCase(b[m(0x8f)]),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b[m(0x73)]};let e=b[m(0x8f)];if(e===m(0x85))e=m(0x83);else e==='prod'&&(e=m(0x74));const f=this[m(0x89)][m(0x8c)]({'pathParts':[m(0x71),e,'settings.json']});this[m(0x89)][m(0x7b)]({'srcPath':m(0x78),'destPath':f,'context':d,'config':c});if(!b[m(0x73)]){const g=this['fsi'][m(0x8c)]({'pathParts':['config',e,m(0x7a)]});this[m(0x89)][m(0x7b)]({'srcPath':m(0x77),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x65;let f=c[d];return f;},a100d(a,b);}const a100l=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0x89))/0x1+-parseInt(j(0x8a))/0x2+-parseInt(j(0x70))/0x3*(parseInt(j(0x65))/0x4)+-parseInt(j(0x87))/0x5+-parseInt(j(0x81))/0x6+-parseInt(j(0x77))/0x7+parseInt(j(0x7d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xbf99a));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const k=a100d;return a100a[k(0x80)]()[k(0x6c)](k(0x71))['toString']()[k(0x8b)](a100a)[k(0x6c)]('(((.+)+)+)+$');});a100a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100l(0x6d)]({'name':a100l(0x7f),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a100l(0x86),'validOpts':[a100l(0x72)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100l(0x84),'values':[a100l(0x6a),a100l(0x7b),'sqlite']}],'examples':[a100l(0x83),'maka\x20g:dbc\x20azure\x20--type=mssql','maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const m=a100l;try{const c=await this[m(0x78)][m(0x82)](),d=this[m(0x78)][m(0x6e)]({}),f=paramCase(b[m(0x6b)]),g={'name':pascalCase(b[m(0x6b)]),'fileName':paramCase(b[m(0x6b)]),'camelCase':camelCase(b['resourceName']),'type':b[m(0x84)],'engine':c[m(0x74)]['js'],'noRename':!![]};this[m(0x78)][m(0x68)](c,async()=>{const n=m;let h='js';c[n(0x74)]['js']===n(0x90)&&(h='ts');b['type']==='pgsql'&&!this['fsi'][n(0x66)]('pg')&&(Log[n(0x91)](n(0x79)),await this[n(0x78)][n(0x8e)]('pg',{'cwd':d}));b[n(0x84)]==='mssql'&&!this[n(0x78)][n(0x66)]('mssql')&&(Log[n(0x91)](n(0x8d)),await this['fsi'][n(0x8e)](n(0x7b),{'cwd':d}));b[n(0x84)]==='sqlite'&&!this['fsi'][n(0x66)](n(0x69))&&(Log[n(0x91)](n(0x75)),await this['fsi'][n(0x8e)](n(0x69),{'cwd':d}));this['fsi'][n(0x73)]({'srcPath':'dbc/config.js','destPath':this['fsi'][n(0x6e)]({'pathParts':[n(0x8c),'startup',n(0x7c),n(0x7f),b[n(0x72)],f,n(0x7a)+h]}),'context':g,'config':c}),this[n(0x78)]['template']({'srcPath':n(0x6f),'destPath':this[n(0x78)][n(0x6e)]({'pathParts':[n(0x8c),n(0x67),'server',n(0x7f),b['dir'],f,'conn.'+h]}),'context':g,'config':c}),this[n(0x78)][n(0x73)]({'srcPath':n(0x88),'destPath':this[n(0x78)][n(0x6e)]({'pathParts':['imports',n(0x67),n(0x7c),n(0x8f)+f+n(0x85)+h]}),'context':g,'config':c});const i=this['fsi'][n(0x6e)]({'pathParts':[n(0x8c),n(0x67),n(0x7c),'index.'+c['engines']['js']]});this[n(0x78)]['injectAtEndOfFile']({'filePath':i,'content':n(0x7e)+f+'-dbc\x27;'});});}catch(h){Log[m(0x76)](h);}});function a100c(){const o=['1439361PsgdFF','fsi','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','config.','mssql','server','25080760eCZTpL','import\x20\x27./register-','dbc','toString','4339866aXidOv','getProjectConfig','maka\x20g:dbc\x20geoserver\x20--type=pgsql','type','-dbc.','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','3094415oKVTOD','dbc/register-dbc.js','171360jUcCTP','1152170afpEOS','constructor','imports','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','installNpmPackage','register-','tsx','warn','1591036LXcHDU','checkNpmPackage','startup','withValue','better-sqlite3','pgsql','resourceName','search','create','pathFromApp','dbc/conn.js','3OLLuSS','(((.+)+)+)+$','dir','template','engines','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','error'];a100c=function(){return o;};return a100c();}
1
+ const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x147))/0x1+-parseInt(j(0x15a))/0x2*(parseInt(j(0x16a))/0x3)+parseInt(j(0x165))/0x4+-parseInt(j(0x15e))/0x5*(-parseInt(j(0x167))/0x6)+parseInt(j(0x153))/0x7*(parseInt(j(0x162))/0x8)+-parseInt(j(0x161))/0x9*(parseInt(j(0x177))/0xa)+parseInt(j(0x149))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xc6006));function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x146;let f=c[d];return f;},a103d(a,b);}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x16b)]()[l(0x14c)](l(0x150))[l(0x16b)]()['constructor'](a103a)[l(0x14c)](l(0x150));});a103a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a103c(){const p=['21205nGZhIo','fsi','server','3162285fjSKsj','982920qOOweH','checkNpmPackage','maka\x20g:dbc\x20azure\x20--type=mssql','415096AtcytH','template','210dsvLHK','index.','register-','201BHSgWW','toString','conn.','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','-dbc.','dbc/register-dbc.js','startup','better-sqlite3','injectAtEndOfFile','imports','sqlite','warn','maka\x20g:dbc\x20geoserver\x20--type=pgsql','10lHsqeB','-dbc\x27;','1286554dMdHLI','import\x20\x27./register-','20246765GNmAmO','installNpmPackage','engines','search','maka\x20g:dbc\x20todos\x20--type=sqlite','dir','pathFromApp','(((.+)+)+)+$','mssql','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','70QritPl','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','getProjectConfig','type','create','error','apply','26046VAbrLs','resourceName','pgsql','config.'];a103c=function(){return p;};return a103c();}Generator[a103m(0x157)]({'name':'dbc','usage':a103m(0x16d),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a103m(0x14e)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103m(0x156),'values':[a103m(0x15c),a103m(0x151),a103m(0x174)]}],'examples':[a103m(0x176),a103m(0x164),a103m(0x14d)]},async function(a,b){const n=a103m;try{const c=await this['fsi'][n(0x155)](),d=this[n(0x15f)]['pathFromApp']({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[n(0x15b)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[n(0x15b)]),'type':b[n(0x156)],'engine':c['engines']['js'],'noRename':!![]};this[n(0x15f)]['withValue'](c,async()=>{const o=n;let h='js';c['engines']['js']==='tsx'&&(h='ts');b[o(0x156)]==='pgsql'&&!this[o(0x15f)][o(0x163)]('pg')&&(Log[o(0x175)](o(0x154)),await this[o(0x15f)]['installNpmPackage']('pg',{'cwd':d}));b[o(0x156)]===o(0x151)&&!this['fsi']['checkNpmPackage'](o(0x151))&&(Log['warn'](o(0x152)),await this[o(0x15f)][o(0x14a)](o(0x151),{'cwd':d}));b[o(0x156)]==='sqlite'&&!this[o(0x15f)][o(0x163)](o(0x171))&&(Log[o(0x175)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this['fsi']['installNpmPackage'](o(0x171),{'cwd':d}));this[o(0x15f)][o(0x166)]({'srcPath':'dbc/config.js','destPath':this[o(0x15f)]['pathFromApp']({'pathParts':[o(0x173),o(0x170),'server','dbc',b['dir'],f,o(0x15d)+h]}),'context':g,'config':c}),this[o(0x15f)]['template']({'srcPath':'dbc/conn.js','destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x173),o(0x170),'server','dbc',b['dir'],f,o(0x16c)+h]}),'context':g,'config':c}),this[o(0x15f)][o(0x166)]({'srcPath':o(0x16f),'destPath':this['fsi'][o(0x14f)]({'pathParts':[o(0x173),o(0x170),o(0x160),o(0x169)+f+o(0x16e)+h]}),'context':g,'config':c});const i=this[o(0x15f)][o(0x14f)]({'pathParts':[o(0x173),o(0x170),'server',o(0x168)+c[o(0x14b)]['js']]});this[o(0x15f)][o(0x172)]({'filePath':i,'content':o(0x148)+f+o(0x146)});});}catch(h){Log[n(0x158)](h);}});
@@ -1 +1 @@
1
- const a101i=a101d;function a101c(){const l=['(((.+)+)+)+$','184476yuJVTB','app','fsi','app.tar.gz','withValue','getGlobalConfig','maka\x20g:dockerfile','constructor','999153pLmGKG','Generate\x20an\x20updated\x20dockerfile','27xGlwXE','search','8HkICEq','21382maFKob','create','build','maka\x20{generate,\x20g}:dockerfile','toString','1102143qlGDJo','isFile','join','apply','959836wvdBxt','error','cert','dockerfile','10TxguaU','findProjectDirectory','3745KAFjcQ','getProjectConfig','service','206920tdjIkT'];a101c=function(){return l;};return a101c();}(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x9f))/0x1+parseInt(f(0xb1))/0x2*(-parseInt(f(0xae))/0x3)+parseInt(f(0x99))/0x4+parseInt(f(0x9d))/0x5*(parseInt(f(0xa4))/0x6)+-parseInt(f(0x95))/0x7+parseInt(f(0xb0))/0x8*(parseInt(f(0xac))/0x9)+-parseInt(f(0xa2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x22a1d));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x98)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x94)]()[h(0xaf)](h(0xa3))[h(0x94)]()[h(0xab)](a101a)[h(0xaf)](h(0xa3));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x92;let f=c[d];return f;},a101d(a,b);}Generator[a101i(0xb2)]({'name':a101i(0x9c),'usage':a101i(0x93),'shortDesc':a101i(0xad),'validOpts':[],'noResource':!![],'examples':[a101i(0xaa)]},async function(){const j=a101i;try{const a=await this['fsi'][j(0xa0)](),b=await this[j(0xa6)][j(0xa9)](),c=this[j(0xa6)][j(0x9e)]();this[j(0xa6)][j(0xa8)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a101e[k(0x97)](c,k(0xa5)),'bundlePath':a101e[k(0x97)](c,k(0x92),k(0xa7)),'useCert':this[k(0xa6)][k(0x96)](b[k(0x9b)])};this[k(0xa6)]['template']({'srcPath':'docker/Dockerfile','destPath':a101e[k(0x97)](c,'Dockerfile'),'framework':k(0xa1),'context':d,'config':a});});}catch(d){Log[j(0x9a)](d);}});
1
+ function a104c(){const k=['search','create','280368xRJhjA','282370HITUnq','403960RxCyQf','getProjectConfig','app','42BiMTjC','withValue','cert','827488kxhpen','10DNDVdX','constructor','3zmKzzE','1308sfxiDn','(((.+)+)+)+$','Generate\x20an\x20updated\x20dockerfile','error','2505yccWBT','findProjectDirectory','join','46863irMqjz','dockerfile','Dockerfile','maka\x20{generate,\x20g}:dockerfile','app.tar.gz','build','getGlobalConfig','fsi','toString','maka\x20g:dockerfile','3536467fxJmlV'];a104c=function(){return k;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x148;let f=c[d];return f;},a104d(a,b);}const a104h=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x156))/0x1+-parseInt(f(0x157))/0x2+-parseInt(f(0x160))/0x3*(-parseInt(f(0x15d))/0x4)+-parseInt(f(0x165))/0x5*(parseInt(f(0x161))/0x6)+parseInt(f(0x15a))/0x7*(parseInt(f(0x155))/0x8)+parseInt(f(0x148))/0x9*(parseInt(f(0x15e))/0xa)+parseInt(f(0x152))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x24b0c));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const g=a104d;return a104a[g(0x150)]()[g(0x153)]('(((.+)+)+)+$')[g(0x150)]()[g(0x15f)](a104a)[g(0x153)](g(0x162));});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';Generator[a104h(0x154)]({'name':a104h(0x149),'usage':a104h(0x14b),'shortDesc':a104h(0x163),'validOpts':[],'noResource':!![],'examples':[a104h(0x151)]},async function(){const i=a104h;try{const a=await this[i(0x14f)][i(0x158)](),b=await this['fsi'][i(0x14e)](),c=this['fsi'][i(0x166)]();this[i(0x14f)][i(0x15b)](a,async()=>{const j=i,d={'app':b['appName'],'config':a,'appPath':a104e[j(0x167)](c,j(0x159)),'bundlePath':a104e[j(0x167)](c,j(0x14d),j(0x14c)),'useCert':this['fsi']['isFile'](b[j(0x15c)])};this[j(0x14f)]['template']({'srcPath':'docker/Dockerfile','destPath':a104e[j(0x167)](c,j(0x14a)),'framework':'service','context':d,'config':a});});}catch(d){Log[i(0x164)](d);}});
@@ -1 +1 @@
1
- const a102r=a102d;function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x14c;let f=c[d];return f;},a102d(a,b);}(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x17c))/0x1+parseInt(o(0x185))/0x2+-parseInt(o(0x171))/0x3*(parseInt(o(0x181))/0x4)+-parseInt(o(0x16b))/0x5+-parseInt(o(0x15d))/0x6+parseInt(o(0x160))/0x7*(-parseInt(o(0x178))/0x8)+parseInt(o(0x173))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xae028));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a[q(0x152)]()[q(0x161)](q(0x158))[q(0x152)]()[q(0x162)](a102a)[q(0x161)](q(0x158));});a102a();import a102e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';function a102c(){const u=['toString','hooks','pathFromApp','test','startup','apply','(((.+)+)+)+$','features','\x27;\x0a','.app-tests.js','setTemplate','2606652CCiZgY','import\x20\x27./','\x20hook...','679VgGCJe','search','constructor','checkNpmPackage','assign','.js','test/test.js','withValue','pathFromProject','className','pages','884025oGXqPJ','dir','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','maka\x20g:hook\x20cool-hook','graphql','template','108279KRpHuo','components','33972957QburHy','template/template.css','fileName','installNpmPackage','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','89464lPSeHV','lib','rewriteDestinationPathForEngine','fsi','1302167wNnKmg','client','injectAtEndOfFile','string','/imports/ui/','72aylHuM','resourceName','.css','cssCaseName','1171620MAXqQM','/imports/ui/hooks','export\x20{\x20','error','baseDir','export\x20\x27','create','engines','react','apollo','hook/hook.js','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','@apollo/client','css','injectAtBeginningOfFile','relative','imports','@apollo/client\x20isomorphic-fetch','ssr','\x20}\x20from\x20\x27','withTranslations','templates.js','true','getProjectConfig'];a102c=function(){return u;};return a102c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a102r(0x18b)]({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a102r(0x16d),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':a102r(0x189),'values':[a102r(0x153),a102r(0x172),a102r(0x16a),'layouts']}],'examples':[a102r(0x16e)],'description':a102r(0x177)},async function(a,b){const s=a102r;Log['notice']('Creating\x20'+b[s(0x182)]+s(0x15f));try{const c=this[s(0x17b)][s(0x163)](s(0x18d));if(!c){Log[s(0x188)](s(0x190));throw new UsageError();}const d=this['fsi']['pathFromApp'](b),f=b[s(0x189)]?s(0x180)+b[s(0x189)]:s(0x186),g=this[s(0x17b)]['pathFromApp']({'pathParts':[f,b['dir'],paramCase(b['resourceName']),paramCase(b[s(0x182)])]}),h=await this[s(0x17b)][s(0x151)]();this[s(0x17b)][s(0x167)](h,async()=>{const t=s;typeof h[t(0x170)][t(0x192)]===t(0x17f)&&(h[t(0x170)][t(0x192)]=h[t(0x170)][t(0x192)]===t(0x150)?!![]:![],this['fsi'][t(0x15c)]('css',h['template'][t(0x192)]));h['engines'][t(0x16f)]===t(0x18e)&&!this['fsi'][t(0x163)](t(0x191))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x17b)][t(0x176)](t(0x196),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x182)]),'camelCaseName':camelCase(b[t(0x182)]),'className':pascalCase(b[t(0x182)]),'name':pascalCase(b[t(0x182)]),'graphql':h[t(0x18c)]['graphql'],'theme':h[t(0x18c)]['theme'],'features':h[t(0x159)],'myPath':a102e[t(0x194)](this[t(0x17b)][t(0x168)]({}),g),'fileName':paramCase(b[t(0x182)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][t(0x14e)]};this[t(0x17b)][t(0x170)]({'srcPath':t(0x18f),'destPath':g+t(0x165),'context':i,'config':h,'framework':t(0x18d)});h[t(0x170)][t(0x192)]&&(this[t(0x17b)][t(0x170)]({'srcPath':t(0x174),'destPath':g+t(0x183),'context':Object[t(0x164)]({},i,{'className':i[t(0x184)]}),'config':h}),this[t(0x17b)][t(0x193)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x15e)+i[t(0x175)]+'.'+h[t(0x18c)]['css']+'\x27;'}));h['engines'][t(0x155)]!=='none'&&this['fsi'][t(0x170)]({'srcPath':t(0x166),'destPath':g+t(0x15b),'framework':t(0x18d),'context':i,'config':h});const j=b[t(0x16c)]?'/'+b[t(0x16c)]+'/':'/',k=''+f+j+i[t(0x175)]+'/'+i[t(0x175)];let l;if(h[t(0x18c)][t(0x14c)]===t(0x150)){const m=this['fsi'][t(0x154)]({'pathParts':[t(0x195),'startup',t(0x179),t(0x14f)]});l=this[t(0x17b)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x17b)][t(0x154)]({'pathParts':[t(0x195),t(0x156),t(0x17d),t(0x14f)]});l=this['fsi'][t(0x17a)]({'pathParts':[n],'config':h});}h[t(0x18c)][t(0x17d)]==='react'?this[t(0x17b)][t(0x17e)]({'filePath':l,'content':t(0x187)+i[t(0x169)]+t(0x14d)+k+t(0x15a)}):this['fsi'][t(0x17e)]({'filePath':l,'content':t(0x18a)+k+'.'+h['engines']['js']+t(0x15a)});});}catch(i){Log[s(0x188)](i);}});
1
+ const a105r=a105d;(function(a,b){const o=a105d,c=a();while(!![]){try{const d=parseInt(o(0xc9))/0x1+-parseInt(o(0x98))/0x2*(parseInt(o(0xad))/0x3)+-parseInt(o(0x9d))/0x4*(-parseInt(o(0xa6))/0x5)+parseInt(o(0xc5))/0x6+parseInt(o(0xbc))/0x7+parseInt(o(0xb4))/0x8+-parseInt(o(0xa5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x6079a));function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x91;let f=c[d];return f;},a105d(a,b);}const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a[q(0xbb)]()[q(0x99)]('(((.+)+)+)+$')[q(0xbb)]()[q(0xb2)](a105a)[q(0x99)](q(0xae));});function a105c(){const u=['features','template/template.css','getProjectConfig','.app-tests.js','hooks','toString','1945356YUZWqh','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','error','template','react','true','baseDir','\x27;\x0a','/imports/ui/','4729698WqYGvr','lib','string','className','295290JavPeB','\x20hook...','Creating\x20','assign','installNpmPackage','pathFromApp','test','resourceName','apollo','\x20}\x20from\x20\x27','engines','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','notice','import\x20\x27./','warn','none','checkNpmPackage','.js','fsi','895766ttvgus','search','templates.js','export\x20\x27','theme','4dMnIjZ','css','create','imports','hook/hook.js','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','startup','dir','15014511JQHlPg','2408645YfyUwy','layouts','pages','fileName','withValue','client','graphql','3HElqSf','(((.+)+)+)+$','withTranslations','rewriteDestinationPathForEngine','hook','constructor','apply','5344912hPpIqy','injectAtEndOfFile'];a105c=function(){return u;};return a105c();}a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a105r(0x9f)]({'name':a105r(0xb1),'aliases':['h'],'checkWhere':![],'usage':a105r(0xa2),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':a105r(0xc2),'values':[a105r(0xba),'components',a105r(0xa8),a105r(0xa7)]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a105r(0xbd)},async function(a,b){const s=a105r;Log[s(0x91)](s(0xcb)+b[s(0xd0)]+s(0xca));try{const c=this['fsi'][s(0x95)]('react');if(!c){Log[s(0xbe)](s(0xd4));throw new UsageError();}const d=this[s(0x97)][s(0xce)](b),f=b[s(0xc2)]?s(0xc4)+b[s(0xc2)]:'/imports/ui/hooks',g=this['fsi']['pathFromApp']({'pathParts':[f,b[s(0xa4)],paramCase(b[s(0xd0)]),paramCase(b[s(0xd0)])]}),h=await this[s(0x97)][s(0xb8)]();this['fsi'][s(0xaa)](h,async()=>{const t=s;typeof h['template'][t(0x9e)]===t(0xc7)&&(h['template']['css']=h[t(0xbf)][t(0x9e)]===t(0xc1)?!![]:![],this[t(0x97)]['setTemplate']('css',h[t(0xbf)][t(0x9e)]));h['engines'][t(0xac)]===t(0xd1)&&!this[t(0x97)][t(0x95)]('@apollo/client')&&(Log[t(0x93)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x97)][t(0xcd)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xd0)]),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b[t(0xd0)]),'name':pascalCase(b[t(0xd0)]),'graphql':h[t(0xd3)][t(0xac)],'theme':h[t(0xd3)][t(0x9c)],'features':h[t(0xb6)],'myPath':a105e['relative'](this['fsi']['pathFromProject']({}),g),'fileName':paramCase(b[t(0xd0)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xb6)][t(0xaf)]};this[t(0x97)][t(0xbf)]({'srcPath':t(0xa1),'destPath':g+t(0x96),'context':i,'config':h,'framework':t(0xc0)});h[t(0xbf)][t(0x9e)]&&(this[t(0x97)][t(0xbf)]({'srcPath':t(0xb7),'destPath':g+'.css','context':Object[t(0xcc)]({},i,{'className':i['cssCaseName']}),'config':h}),this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0xd3)]['js'],'content':t(0x92)+i[t(0xa9)]+'.'+h[t(0xd3)][t(0x9e)]+'\x27;'}));h[t(0xd3)][t(0xcf)]!==t(0x94)&&this[t(0x97)]['template']({'srcPath':'test/test.js','destPath':g+t(0xb9),'framework':t(0xc0),'context':i,'config':h});const j=b[t(0xa4)]?'/'+b[t(0xa4)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0xa9)];let l;if(h[t(0xd3)]['ssr']===t(0xc1)){const m=this['fsi'][t(0xce)]({'pathParts':[t(0xa0),'startup',t(0xc6),t(0x9a)]});l=this[t(0x97)][t(0xb0)]({'pathParts':[m],'config':h});}else{const n=this[t(0x97)][t(0xce)]({'pathParts':['imports',t(0xa3),t(0xab),t(0x9a)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h[t(0xd3)][t(0xab)]==='react'?this[t(0x97)][t(0xb5)]({'filePath':l,'content':'export\x20{\x20'+i[t(0xc8)]+t(0xd2)+k+'\x27;\x0a'}):this[t(0x97)]['injectAtEndOfFile']({'filePath':l,'content':t(0x9b)+k+'.'+h['engines']['js']+t(0xc3)});});}catch(i){Log['error'](i);}});
@@ -1 +1 @@
1
- const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0x90))/0x1*(parseInt(h(0xa1))/0x2)+-parseInt(h(0x97))/0x3+-parseInt(h(0x94))/0x4*(-parseInt(h(0x93))/0x5)+-parseInt(h(0x9a))/0x6+-parseInt(h(0x8e))/0x7*(parseInt(h(0x99))/0x8)+parseInt(h(0xa3))/0x9*(-parseInt(h(0xa0))/0xa)+parseInt(h(0x88))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x54fcc));function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x86;let f=c[d];return f;},a103d(a,b);}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x86)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a['toString']()[j(0x96)](j(0x9b))[j(0x92)]()['constructor'](a103a)[j(0x96)](j(0x9b));});a103a();function a103c(){const n=['apply','login','22334620EGWQnE',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','NIE','getProjectConfig','kit','type','14xkoHOj','resourceName','3xbVRfC','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','toString','586705CYtDQi','4yCOGQx','indexOf','search','988101AAGRhe','withValue','2670488GAnHDC','706560aPQPGh','(((.+)+)+)+$','engines','fsi','map','error','5791030eqvXDw','70534IhTUJd','create','9feMoKk','maka\x20g:kit\x20--type=map'];a103c=function(){return n;};return a103c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a103k(0xa2)]({'name':a103k(0x8c),'aliases':['k'],'usage':a103k(0x91),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a103k(0x8d)],'examples':[a103k(0xa4),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a103k;try{const c=this[l(0x9d)][l(0x8b)]();this[l(0x9d)][l(0x98)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x8f)]),'fileName':paramCase(b[m(0x8f)]),'camelCase':camelCase(b['resourceName']),'type':b[m(0x8d)],'engine':c[m(0x9c)]['js'],'noRename':!![]},f=['leaflet-map','login'];if(f[m(0x95)](d[m(0x8d)])<0x0){const g=d[m(0x8d)]?d[m(0x8d)]:'(blank)';Log['error']('Invalid\x20type\x20'+g+m(0x89));return;}b[m(0x8d)]===m(0x9e)&&Log['notice'](m(0x8a)),b[m(0x8d)]===m(0x87)&&Log['notice'](m(0x8a));});}catch(d){Log[l(0x9f)](d);}});
1
+ const a106k=a106d;(function(a,b){const h=a106d,c=a();while(!![]){try{const d=parseInt(h(0x18a))/0x1+parseInt(h(0x187))/0x2*(-parseInt(h(0x191))/0x3)+-parseInt(h(0x1a7))/0x4*(-parseInt(h(0x199))/0x5)+parseInt(h(0x196))/0x6+parseInt(h(0x1a6))/0x7+-parseInt(h(0x19b))/0x8+-parseInt(h(0x18c))/0x9*(parseInt(h(0x19a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xa45aa));function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x186;let f=c[d];return f;},a106d(a,b);}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a106d;if(c){const e=c[i(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const j=a106d;return a106a[j(0x195)]()['search']('(((.+)+)+)+$')[j(0x195)]()[j(0x1a4)](a106a)[j(0x19e)]('(((.+)+)+)+$');});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a106k(0x1a5),'aliases':['k'],'usage':a106k(0x1a2),'shortDesc':a106k(0x190),'validOpts':[a106k(0x198)],'examples':['maka\x20g:kit\x20--type=map',a106k(0x18e)]},async function(a,b){const l=a106k;try{const c=this[l(0x1a0)][l(0x186)]();this[l(0x1a0)][l(0x189)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x19d)]),'fileName':paramCase(b[m(0x19d)]),'camelCase':camelCase(b[m(0x19d)]),'type':b[m(0x198)],'engine':c[m(0x197)]['js'],'noRename':!![]},f=[m(0x194),m(0x1a1)];if(f[m(0x193)](d[m(0x198)])<0x0){const g=d['type']?d[m(0x198)]:m(0x18d);Log[m(0x19c)](m(0x1a3)+g+m(0x18f));return;}b[m(0x198)]===m(0x192)&&Log[m(0x188)](m(0x18b)),b[m(0x198)]==='login'&&Log['notice'](m(0x18b));});}catch(d){Log[l(0x19c)](d);}});function a106c(){const n=['error','resourceName','search','apply','fsi','login','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','Invalid\x20type\x20','constructor','kit','2527245ygKEOk','5108252fKnARX','getProjectConfig','4022XLqIla','notice','withValue','733390JlOQQv','NIE','783sFIrIO','(blank)','maka\x20g:k\x20city-map\x20--type=leaflet-map',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','1776SnxWmZ','map','indexOf','leaflet-map','toString','1062234lhDLmU','engines','type','5DqTTDB','54770wPbiRG','1666576zNxBYd'];a106c=function(){return n;};return a106c();}
@@ -1 +1 @@
1
- const a104r=a104d;(function(a,b){const o=a104d,c=a();while(!![]){try{const d=-parseInt(o(0x14c))/0x1*(parseInt(o(0x16a))/0x2)+-parseInt(o(0x158))/0x3*(parseInt(o(0x162))/0x4)+-parseInt(o(0x144))/0x5*(parseInt(o(0x14a))/0x6)+parseInt(o(0x14b))/0x7+parseInt(o(0x14d))/0x8+parseInt(o(0x152))/0x9+-parseInt(o(0x15d))/0xa*(-parseInt(o(0x151))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x225c4));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0x156)]()[q(0x15b)](q(0x166))[q(0x156)]()[q(0x163)](a104a)[q(0x15b)](q(0x166));});a104a();import a104e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a104c(){const u=['layout','withValue','split','setTemplate','ssr','resourceName','create','pathFromApp','dir','string','5yfUVNu','templates.js','withHook','findAppDirectory','hook/hook.js','ramda','820110KAMtiK','1229641zmUTYS','5017jyDskC','1503952hbXzCT','fsi','graphql','test','297qxSdgR','478530xDerkG','rewriteDestinationPathForEngine','maka\x20g:l\x20web/safari','api','toString','imports','3vZmdCo','client','startup','search','getProjectConfig','43370qUmdiL','\x20}\x20from\x20\x27','checkNpmPackage','injectAtBeginningOfFile','engines','363760Amfgxm','constructor','className','template','(((.+)+)+)+$','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','apply','withTranslations','66DJpnfr','.app-tests.js','\x27;\x0a','pathFromProject','assign','maka\x20g:layout\x20mobile/iPhone8','test/test.js','component/component.js','injectAtEndOfFile','template/template.css','fileName','true','warn','installNpmPackage','import\x20\x27./','features','css','react'];a104c=function(){return u;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x132;let f=c[d];return f;},a104d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a104r(0x140)]({'name':a104r(0x13a),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a104r(0x16f),a104r(0x154)]},function(a,b){const s=a104r,c='/imports/ui/layouts',d=this[s(0x14e)][s(0x147)](),e=this[s(0x14e)][s(0x141)]({'pathParts':[c,b['dir'],paramCase(b[s(0x13f)]),paramCase(b[s(0x13f)])]}),f=this['fsi'][s(0x15c)]();this[s(0x14e)][s(0x13b)](f,()=>{const t=s;typeof f[t(0x165)][t(0x150)]===t(0x143)&&(f[t(0x165)][t(0x150)]=f['template']['test']===t(0x133)?!![]:![],this[t(0x14e)][t(0x13d)](t(0x150),f[t(0x165)][t(0x150)]));typeof f[t(0x165)][t(0x138)]===t(0x143)&&(f[t(0x165)]['css']=f[t(0x165)][t(0x138)]==='true'?!![]:![],this[t(0x14e)][t(0x13d)](t(0x138),f[t(0x165)]['css']));typeof f['template']['js']===t(0x143)&&(f[t(0x165)]['js']=f[t(0x165)]['js']==='true'?!![]:![],this['fsi'][t(0x13d)]('js',f['template']['js']));!f[t(0x137)]&&(f[t(0x137)]={});const g=b['_']?b['_'][0x0][t(0x13c)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](t(0x149))&&(Log[t(0x134)](t(0x167)),this['fsi'][t(0x135)](t(0x149),{'cwd':d}));if(h&&!this[t(0x15f)](t(0x139))){Log[t(0x134)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x13f)]),'myPath':a104e['relative'](this['fsi'][t(0x16d)]({}),e),'cssCaseName':paramCase(b[t(0x13f)]),'className':pascalCase(b[t(0x13f)]),'camelCaseName':camelCase(b[t(0x13f)]),'fileName':paramCase(b[t(0x13f)]),'graphql':f[t(0x161)][t(0x14f)],'features':f[t(0x137)],'client':f[t(0x161)][t(0x159)],'api':f[t(0x161)][t(0x155)],'ssr':f[t(0x161)][t(0x13e)],'test':f['engines'][t(0x150)],'theme':f['engines']['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x137)][t(0x169)]};f['features']?.['withHooks']||b[t(0x146)]?this[t(0x14e)][t(0x165)]({'srcPath':t(0x148),'destPath':e+'.js','framework':'react','context':i,'config':f}):this[t(0x14e)][t(0x165)]({'srcPath':t(0x171),'destPath':e+'.js','framework':t(0x139),'context':i,'config':f});f[t(0x161)][t(0x150)]!=='none'&&this[t(0x14e)][t(0x165)]({'srcPath':t(0x170),'destPath':e+t(0x16b),'framework':t(0x139),'context':i,'config':f});f['template'][t(0x138)]&&(this[t(0x14e)][t(0x165)]({'srcPath':t(0x173),'destPath':e+'.css','context':Object[t(0x16e)]({},i,{'className':paramCase(b[t(0x13f)])}),'config':f}),this[t(0x14e)][t(0x160)]({'filePath':e+'.'+f['engines']['js'],'content':t(0x136)+i[t(0x132)]+'.'+f[t(0x161)]['css']+'\x27;'}));const j=b[t(0x142)]?'/'+b[t(0x142)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x132)];let l;if(f[t(0x161)][t(0x13e)]===t(0x133)){const m=this[t(0x14e)][t(0x141)]({'pathParts':[t(0x157),t(0x15a),'lib',t(0x145)]});l=this[t(0x14e)][t(0x153)]({'pathParts':[m],'config':f});}else{const n=this[t(0x14e)][t(0x141)]({'pathParts':[t(0x157),t(0x15a),t(0x159),t(0x145)]});l=this[t(0x14e)][t(0x153)]({'pathParts':[n],'config':f});}f[t(0x161)][t(0x159)]===t(0x139)?this[t(0x14e)][t(0x172)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x164)]+t(0x15e)+k+t(0x16c)}):this[t(0x14e)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20\x27'+k+'.'+f[t(0x161)]['js']+'\x27;\x0a'});});});
1
+ const a107r=a107d;(function(a,b){const o=a107d,c=a();while(!![]){try{const d=parseInt(o(0x208))/0x1+-parseInt(o(0x1ff))/0x2+-parseInt(o(0x1e8))/0x3+parseInt(o(0x1fa))/0x4*(parseInt(o(0x1d5))/0x5)+-parseInt(o(0x1d0))/0x6+parseInt(o(0x20a))/0x7+parseInt(o(0x1ec))/0x8*(parseInt(o(0x204))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xb8afe));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a107d;if(c){const e=c[p(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const q=a107d;return a107a['toString']()[q(0x206)]('(((.+)+)+)+$')[q(0x1dc)]()[q(0x1f5)](a107a)[q(0x206)](q(0x1f1));});function a107c(){const u=['toString','Scaffolding\x20for\x20a\x20React\x20Layout.','css','templates.js','export\x20{\x20','.js','ramda','injectAtEndOfFile','pathFromApp','true','fileName','resourceName','48621NHdQVl','fsi','client','template','2233016RPWUre','maka\x20g:layout\x20mobile/iPhone8','injectAtBeginningOfFile','withTranslations','rewriteDestinationPathForEngine','(((.+)+)+)+$','apply','graphql','installNpmPackage','constructor','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','className','.css','hook/hook.js','52kHtGGf','withHooks','split','setTemplate','test/test.js','2103572HXhiUH','none','maka\x20g:l\x20web/safari','test','string','27CoEtrq','create','search','\x27;\x0a','740838kCJZVV','react','2580424tdAuFY','withValue','theme','ssr','features','withHook','6227118ycgqgX','imports','dir','startup','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','352105ipVDmP','warn','engines','checkNpmPackage','assign','component/component.js','layout'];a107c=function(){return u;};return a107c();}a107a();import a107e from'path';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a107r(0x205)]({'name':a107r(0x1db),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':a107r(0x1dd),'validOpts':[],'examples':[a107r(0x1ed),a107r(0x201)]},function(a,b){const s=a107r,c='/imports/ui/layouts',d=this[s(0x1e9)]['findAppDirectory'](),e=this[s(0x1e9)][s(0x1e4)]({'pathParts':[c,b[s(0x1d2)],paramCase(b[s(0x1e7)]),paramCase(b['resourceName'])]}),f=this['fsi']['getProjectConfig']();this[s(0x1e9)][s(0x1cb)](f,()=>{const t=s;typeof f[t(0x1eb)][t(0x202)]===t(0x203)&&(f[t(0x1eb)][t(0x202)]=f[t(0x1eb)][t(0x202)]===t(0x1e5)?!![]:![],this[t(0x1e9)][t(0x1fd)](t(0x202),f['template']['test']));typeof f[t(0x1eb)][t(0x1de)]===t(0x203)&&(f[t(0x1eb)][t(0x1de)]=f[t(0x1eb)][t(0x1de)]==='true'?!![]:![],this[t(0x1e9)][t(0x1fd)](t(0x1de),f[t(0x1eb)]['css']));typeof f[t(0x1eb)]['js']==='string'&&(f[t(0x1eb)]['js']=f[t(0x1eb)]['js']===t(0x1e5)?!![]:![],this[t(0x1e9)]['setTemplate']('js',f[t(0x1eb)]['js']));!f[t(0x1ce)]&&(f[t(0x1ce)]={});const g=b['_']?b['_'][0x0][t(0x1fc)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x1d8)]('ramda')&&(Log[t(0x1d6)](t(0x1f6)),this[t(0x1e9)][t(0x1f4)](t(0x1e2),{'cwd':d}));if(h&&!this[t(0x1d8)](t(0x209))){Log['warn'](t(0x1d4));return;}const i={'name':pascalCase(b[t(0x1e7)]),'myPath':a107e['relative'](this[t(0x1e9)]['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x1e7)]),'camelCaseName':camelCase(b[t(0x1e7)]),'fileName':paramCase(b[t(0x1e7)]),'graphql':f['engines'][t(0x1f3)],'features':f[t(0x1ce)],'client':f['engines'][t(0x1ea)],'api':f[t(0x1d7)]['api'],'ssr':f[t(0x1d7)][t(0x1cd)],'test':f[t(0x1d7)][t(0x202)],'theme':f[t(0x1d7)][t(0x1cc)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1ce)][t(0x1ef)]};f['features']?.[t(0x1fb)]||b[t(0x1cf)]?this[t(0x1e9)][t(0x1eb)]({'srcPath':t(0x1f9),'destPath':e+t(0x1e1),'framework':t(0x209),'context':i,'config':f}):this[t(0x1e9)][t(0x1eb)]({'srcPath':t(0x1da),'destPath':e+t(0x1e1),'framework':t(0x209),'context':i,'config':f});f[t(0x1d7)][t(0x202)]!==t(0x200)&&this[t(0x1e9)][t(0x1eb)]({'srcPath':t(0x1fe),'destPath':e+'.app-tests.js','framework':t(0x209),'context':i,'config':f});f['template'][t(0x1de)]&&(this[t(0x1e9)][t(0x1eb)]({'srcPath':'template/template.css','destPath':e+t(0x1f8),'context':Object[t(0x1d9)]({},i,{'className':paramCase(b[t(0x1e7)])}),'config':f}),this['fsi'][t(0x1ee)]({'filePath':e+'.'+f[t(0x1d7)]['js'],'content':'import\x20\x27./'+i['fileName']+'.'+f['engines'][t(0x1de)]+'\x27;'}));const j=b[t(0x1d2)]?'/'+b[t(0x1d2)]+'/':'/',k=''+c+j+i[t(0x1e6)]+'/'+i['fileName'];let l;if(f[t(0x1d7)][t(0x1cd)]==='true'){const m=this[t(0x1e9)]['pathFromApp']({'pathParts':[t(0x1d1),t(0x1d3),'lib',t(0x1df)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x1e4)]({'pathParts':[t(0x1d1),t(0x1d3),t(0x1ea),t(0x1df)]});l=this['fsi'][t(0x1f0)]({'pathParts':[n],'config':f});}f[t(0x1d7)][t(0x1ea)]===t(0x209)?this[t(0x1e9)][t(0x1e3)]({'filePath':l,'content':t(0x1e0)+i[t(0x1f7)]+'\x20}\x20from\x20\x27'+k+t(0x207)}):this[t(0x1e9)][t(0x1e3)]({'filePath':l,'content':'export\x20\x27'+k+'.'+f[t(0x1d7)]['js']+t(0x207)});});});
@@ -1 +1 @@
1
- const a105h=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=parseInt(f(0x199))/0x1+parseInt(f(0x1a0))/0x2*(parseInt(f(0x1a9))/0x3)+parseInt(f(0x1a3))/0x4+-parseInt(f(0x19f))/0x5*(parseInt(f(0x19a))/0x6)+-parseInt(f(0x19c))/0x7*(-parseInt(f(0x1a7))/0x8)+parseInt(f(0x1a6))/0x9+-parseInt(f(0x19d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x38526));function a105c(){const i=['777428ZIMRvz','\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','(((.+)+)+)+$','3846168IXLeZO','8HFoMmj','constructor','129423BXiKbv','maka\x20generate:api\x20Trucks','maka\x20g:hook\x20cool-hook','145421iADjGf','36XPIcLv','toString','3047401TsddCu','9646410lJPutB','Maka!','293555YuvzNc','16rcwMbW','search','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]'];a105c=function(){return i;};return a105c();}function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x197;let f=c[d];return f;},a105d(a,b);}const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const g=a105d;return a105a['toString']()[g(0x1a1)](g(0x1a5))[g(0x19b)]()[g(0x1a8)](a105a)[g(0x1a1)]('(((.+)+)+)+$');});a105a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a105h(0x19e),'validOpts':[],'description':a105h(0x1a4),'usage':a105h(0x1a2),'examples':[a105h(0x197),a105h(0x198)]},function(){return null;});export default MakaGen;
1
+ const a108i=a108d;function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x93;let f=c[d];return f;},a108d(a,b);}(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0x9a))/0x1+-parseInt(f(0xa2))/0x2*(parseInt(f(0x9d))/0x3)+parseInt(f(0xa1))/0x4*(parseInt(f(0x9c))/0x5)+parseInt(f(0xa0))/0x6*(-parseInt(f(0xa6))/0x7)+parseInt(f(0x93))/0x8*(parseInt(f(0x99))/0x9)+-parseInt(f(0xa7))/0xa*(-parseInt(f(0x98))/0xb)+parseInt(f(0xa3))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xa1846));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0x96)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0x94)]()['search'](h(0x95))[h(0x94)]()[h(0xa4)](a108a)[h(0x9b)](h(0x95));});a108a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a108i(0x97),'validOpts':[],'description':a108i(0x9e),'usage':a108i(0x9f),'examples':[a108i(0xa5),'maka\x20g:hook\x20cool-hook']},function(){return null;});function a108c(){const j=['6918tMHpFe','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','560034DxzuKB','4AGtDBy','950yGTcLL','19595172YBZTtx','constructor','maka\x20generate:api\x20Trucks','63kiPbTo','10BXqaKv','1040064KOsCwv','toString','(((.+)+)+)+$','apply','Maka!','11895917WRKSKb','18nDHQEv','662078pVyDYK','search','1423295UWUwYn'];a108c=function(){return j;};return a108c();}export default MakaGen;
@@ -1 +1 @@
1
- const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=-parseInt(k(0xf5))/0x1+parseInt(k(0x104))/0x2+parseInt(k(0xfb))/0x3+-parseInt(k(0xf4))/0x4*(parseInt(k(0xf7))/0x5)+-parseInt(k(0x115))/0x6+-parseInt(k(0x111))/0x7*(-parseInt(k(0x107))/0x8)+parseInt(k(0x105))/0x9*(parseInt(k(0x112))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xbc459));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0xfd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a['toString']()[m(0x10a)](m(0x117))['toString']()[m(0x10b)](a106a)[m(0x10a)](m(0x117));});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xef;let f=c[d];return f;},a106d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a106n(0x106),'aliases':['m'],'usage':a106n(0x116),'checkWhere':!![],'shortDesc':a106n(0xfc),'validOpts':[a106n(0xf0)],'examples':[a106n(0x108)]},function(a,b){const o=a106n;try{const c=this['fsi'][o(0xff)]();this[o(0x113)][o(0x101)](c,async()=>{const p=o,d=paramCase(b[p(0xf3)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0xf3)]),'camelCase':camelCase(b[p(0xf3)]),'noRename':!![]};let g='js';c[p(0x114)]['js']==='tsx'&&(g='ts');const h=this[p(0x113)]['pathFromApp']({});(!this[p(0x113)][p(0x109)]('check')||!this[p(0x113)][p(0x109)](p(0xf2))||!this['fsi'][p(0x109)](p(0x102)))&&(Log['warn'](p(0x10c)),this[p(0x113)][p(0x100)](p(0xf1),{'cwd':h}));this[p(0x113)][p(0x10d)]({'srcPath':p(0xef),'destPath':this[p(0x113)][p(0xf6)]({'pathParts':[p(0xf9),p(0x10f),b[p(0x110)],p(0x103),b[p(0xf0)],d+p(0x10e)+g]}),'context':f,'config':c});const i=b[p(0xf0)]?'/'+b['dir']+'/':'/',j=this[p(0x113)]['pathFromApp']({'pathParts':[p(0xf9),p(0x10f),b[p(0x110)],'index.'+c[p(0x114)]['js']]});this[p(0x113)][p(0xfa)]({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0xfe)});});}catch(d){Log[o(0xf8)](d);}});function a106c(){const q=['107455yokihO','error','imports','injectAtEndOfFile','1445475QNANkm','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','apply','-rpc-method\x27;','getProjectConfig','installMeteorPackage','withValue','mdg:validated-method','methods','1076984Gytihn','2709NQsBkK','method','10592BotTsz','maka\x20g:method\x20todos','checkMeteorPackage','search','constructor','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','template','-rpc-method.','startup','appPathPrefix','763CddCGj','57940oIjJdf','fsi','engines','4169550vVGCVl','maka\x20{generate,\x20g}:{method,\x20m}\x20name','(((.+)+)+)+$','method/method.js','dir','check\x20ddp-rate-limiter\x20mdg:validated-method','ddp-rate-limiter','resourceName','152oIUURT','625883UKmfFD','pathFromApp'];a106c=function(){return q;};return a106c();}
1
+ const a109n=a109d;(function(a,b){const k=a109d,c=a();while(!![]){try{const d=-parseInt(k(0x1b2))/0x1+parseInt(k(0x1c6))/0x2+-parseInt(k(0x1b4))/0x3+-parseInt(k(0x1af))/0x4+parseInt(k(0x1aa))/0x5+parseInt(k(0x1ac))/0x6*(parseInt(k(0x1c3))/0x7)+-parseInt(k(0x1bc))/0x8*(parseInt(k(0x1a2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xaf7a3));function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x19e;let f=c[d];return f;},a109d(a,b);}const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a109d;if(c){const e=c[l(0x1a4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const m=a109d;return a109a['toString']()['search']('(((.+)+)+)+$')[m(0x1a0)]()[m(0x1a5)](a109a)[m(0x1c5)]('(((.+)+)+)+$');});a109a();function a109c(){const q=['283005wjdtqV','error','-rpc-method\x27;','fsi','checkMeteorPackage','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','appPathPrefix','maka\x20g:method\x20todos','4184iuYYzi','getProjectConfig','imports','dir','import\x20\x27./methods','method','check','434CdoBSU','tsx','search','287350EVDaAU','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','installMeteorPackage','-rpc-method.','template','toString','index.','13356RjIGTR','check\x20ddp-rate-limiter\x20mdg:validated-method','apply','constructor','startup','warn','method/method.js','injectAtEndOfFile','4621190WznOBF','maka\x20{generate,\x20g}:{method,\x20m}\x20name','119094LbARDw','ddp-rate-limiter','resourceName','1374676EYvSYP','engines','pathFromApp','365660bFdXxG','create'];a109c=function(){return q;};return a109c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a109n(0x1b3)]({'name':a109n(0x1c1),'aliases':['m'],'usage':a109n(0x1ab),'checkWhere':!![],'shortDesc':a109n(0x1b9),'validOpts':[a109n(0x1bf)],'examples':[a109n(0x1bb)]},function(a,b){const o=a109n;try{const c=this[o(0x1b7)][o(0x1bd)]();this[o(0x1b7)]['withValue'](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b[p(0x1ae)],'fileName':d,'className':pascalCase(b[p(0x1ae)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x1b0)]['js']===p(0x1c4)&&(g='ts');const h=this[p(0x1b7)][p(0x1b1)]({});(!this['fsi'][p(0x1b8)](p(0x1c2))||!this['fsi']['checkMeteorPackage'](p(0x1ad))||!this[p(0x1b7)][p(0x1b8)]('mdg:validated-method'))&&(Log[p(0x1a7)](p(0x1c7)),this[p(0x1b7)][p(0x1c8)](p(0x1a3),{'cwd':h}));this[p(0x1b7)][p(0x19f)]({'srcPath':p(0x1a8),'destPath':this[p(0x1b7)]['pathFromApp']({'pathParts':[p(0x1be),p(0x1a6),b[p(0x1ba)],'methods',b['dir'],d+p(0x19e)+g]}),'context':f,'config':c});const i=b[p(0x1bf)]?'/'+b[p(0x1bf)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':[p(0x1be),p(0x1a6),b[p(0x1ba)],p(0x1a1)+c[p(0x1b0)]['js']]});this[p(0x1b7)][p(0x1a9)]({'filePath':j,'content':p(0x1c0)+i+d+p(0x1b6)});});}catch(d){Log[o(0x1b5)](d);}});
@@ -1 +1 @@
1
- const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=-parseInt(l(0xaf))/0x1+-parseInt(l(0x9c))/0x2+parseInt(l(0x9f))/0x3*(parseInt(l(0x9b))/0x4)+-parseInt(l(0xb2))/0x5*(-parseInt(l(0xbe))/0x6)+parseInt(l(0xbc))/0x7*(-parseInt(l(0xb9))/0x8)+parseInt(l(0xb7))/0x9*(-parseInt(l(0xa5))/0xa)+parseInt(l(0xb6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x5284c));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0xb8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a[n(0xb3)]()[n(0xb4)](n(0xa2))[n(0xb3)]()['constructor'](a107a)[n(0xb4)](n(0xa2));});function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x9b;let f=c[d];return f;},a107d(a,b);}a107a();import a107e from'path';function a107c(){const s=['fsi','491108dKfaNw','1312208jGKrDV','packages','create','15CNJSeM','/client/','pathFromProject','(((.+)+)+)+$','template/template.js','package','10sFFkCb','engines','component','hasOwnProperty','pathFromAppWithNoReWrite','template','theme','server','.js','client','339828sqUUnm','lib','layout','6995bCejdY','toString','search','getProjectConfig','15106289TqWLZU','5646474bVgqjr','apply','8vvRfio','dir','withValue','1777349zTFesM','resourceName','978cJIbpg','forEach','maka\x20g:package\x20todos:package','tests/server','store','features','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','pathFromApp','package/package.js'];a107c=function(){return s;};return a107c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a107o(0x9e)]({'name':a107o(0xa4),'aliases':['p'],'usage':a107o(0xc4),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a107o(0xba)],'examples':[a107o(0xc0)]},async function(a,b){const p=a107o,c=paramCase(b[p(0xbd)]),d=this[p(0xc7)][p(0xc5)]({'pathParts':[p(0x9d),b[p(0xba)],c]}),e=this[p(0xc7)][p(0xa9)]({'pathParts':[p(0x9d),b['dir'],c,'package.js']}),f=this[p(0xc7)][p(0xb5)]();this[p(0xc7)][p(0xbb)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xbd)]),'myPath':a107e['relative'](this[q(0xc7)][q(0xa1)]({}),d),'cssCaseName':paramCase(b[q(0xbd)]),'className':pascalCase(b[q(0xbd)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0xa6)][q(0xae)],'graphql':f[q(0xa6)]['graphql'],'ssr':f['engines']['ssr'],'isComponent':b[q(0xa8)](q(0xa7)),'isLayout':b['hasOwnProperty'](q(0xb1)),'isStore':b[q(0xa8)](q(0xc2)),'features':f[q(0xc3)],'noRename':!![],'theme':f[q(0xa6)][q(0xab)]};this['fsi'][q(0xaa)]({'srcPath':q(0xc6),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+q(0xa0)+c+q(0xad);this['fsi'][q(0xaa)]({'srcPath':q(0xa3),'destPath':h,'context':g,'config':f});const i=[q(0xb0),q(0xac),'tests/client',q(0xc1)];i[q(0xbf)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this['fsi'][r(0xaa)]({'srcPath':'package/'+j+'/package.js','destPath':k,'context':g,'config':f});});});});
1
+ function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x19b;let f=c[d];return f;},a110d(a,b);}const a110n=a110d;(function(a,b){const l=a110d,c=a();while(!![]){try{const d=parseInt(l(0x1c3))/0x1+-parseInt(l(0x1b3))/0x2*(-parseInt(l(0x1c2))/0x3)+parseInt(l(0x1bd))/0x4*(parseInt(l(0x19d))/0x5)+-parseInt(l(0x1ba))/0x6+parseInt(l(0x1a1))/0x7*(parseInt(l(0x1ad))/0x8)+parseInt(l(0x1b1))/0x9*(parseInt(l(0x1b5))/0xa)+-parseInt(l(0x1af))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xa9f23));const a110b=(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;};}()),a110a=a110b(this,function(){const m=a110d;return a110a[m(0x1c0)]()['search']('(((.+)+)+)+$')[m(0x1c0)]()[m(0x1ae)](a110a)['search'](m(0x1a0));});a110a();import a110e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a110c(){const r=['template','1704TnIyYf','constructor','31557328ZTVxCw','package/package.js','11961099VGIGws','ssr','2jnTvhL','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','10YVCChJ','resourceName','store','pathFromAppWithNoReWrite','/client/','2857200riSRqM','tests/client','packages','3008MZgHdx','dir','pathFromProject','toString','withValue','3475821yHulmu','813412uJRNmU','layout','create','template/template.js','noRename','365cySmGg','graphql','/package.js','(((.+)+)+)+$','22519qkxqZD','getProjectConfig','forEach','package/','relative','engines','fsi','pathFromApp','package','lib','hasOwnProperty'];a110c=function(){return r;};return a110c();}Generator[a110n(0x1c5)]({'name':a110n(0x1a9),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a110n(0x1b4),'validOpts':[a110n(0x1be)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const o=a110n,c=paramCase(b['resourceName']),d=this[o(0x1a7)][o(0x1a8)]({'pathParts':[o(0x1bc),b['dir'],c]}),e=this[o(0x1a7)][o(0x1b8)]({'pathParts':[o(0x1bc),b[o(0x1be)],c,'package.js']}),f=this[o(0x1a7)][o(0x1a2)]();this['fsi'][o(0x1c1)](f,async()=>{const p=o,g={'name':paramCase(b[p(0x1b6)]),'myPath':a110e[p(0x1a5)](this[p(0x1a7)][p(0x1bf)]({}),d),'cssCaseName':paramCase(b[p(0x1b6)]),'className':pascalCase(b[p(0x1b6)]),'camelCaseName':camelCase(b[p(0x1b6)]),'fileName':c,'client':f[p(0x1a6)]['client'],'graphql':f['engines'][p(0x19e)],'ssr':f[p(0x1a6)][p(0x1b2)],'isComponent':b[p(0x1ab)]('component'),'isLayout':b[p(0x1ab)](p(0x1c4)),'isStore':b[p(0x1ab)](p(0x1b7)),'features':f['features'],'noRename':!![],'theme':f[p(0x1a6)]['theme']};this[p(0x1a7)]['template']({'srcPath':p(0x1b0),'destPath':e,'context':g,'config':f}),g[p(0x19c)]=![];const h=d+p(0x1b9)+c+'.js';this[p(0x1a7)][p(0x1ac)]({'srcPath':p(0x19b),'destPath':h,'context':g,'config':f});const i=[p(0x1aa),'server',p(0x1bb),'tests/server'];i[p(0x1a3)](j=>{const q=p,k=d+'/'+j+'/'+c+'.js';this[q(0x1a7)][q(0x1ac)]({'srcPath':q(0x1a4)+j+q(0x19f),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a108p=a108d;(function(a,b){const m=a108d,c=a();while(!![]){try{const d=-parseInt(m(0x20a))/0x1+parseInt(m(0x201))/0x2*(-parseInt(m(0x208))/0x3)+-parseInt(m(0x1e3))/0x4+parseInt(m(0x1db))/0x5+-parseInt(m(0x210))/0x6+parseInt(m(0x1eb))/0x7*(-parseInt(m(0x1f9))/0x8)+parseInt(m(0x1d5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x3b0e7));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a108d;if(c){const e=c[n(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const o=a108d;return a108a[o(0x20b)]()[o(0x1ed)](o(0x20e))['toString']()[o(0x1e8)](a108a)[o(0x1ed)]('(((.+)+)+)+$');});function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x1ce;let f=c[d];return f;},a108d(a,b);}a108a();function a108c(){const s=['1323988UmDiez','graphql','apply','export\x20{\x20','dir','constructor','vanilla','pathFromProject','966oRqlMB','/imports/ui/','search','template/template.css','Updating\x20npm\x20packages\x20...','template','string','fsi','fileName','engines','client','template/template.html','baseDir','injectAtEndOfFile','1856pMXsBT','warn','\x20}\x20from\x20\x27','className','.app-tests.js','rewriteDestinationPathForEngine','react','getProjectConfig','422938QpEFvH','component/component.js','test','/imports/ui/pages','css','installNpmPackage','ramda','3lUnWxq','templates.js','249772NoJvWe','toString','layouts','hasOwnProperty','(((.+)+)+)+$','withHook','437760fVjBeS','true','test/test.js','.html','component','import\x20\x27./','.js','pages','components','injectAtBeginningOfFile','export\x20\x27','ssr','root','api','create','6016707ZQJXrK','hooks','assign','setTemplate','html','imports','2352930DrOYRo','Generate\x20a\x20page.','\x27;\x0a','relative','hook/hook.js','resourceName','withValue','features'];a108c=function(){return s;};return a108c();}import a108e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a108p(0x1d4)]({'name':'page','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a108p(0x1dc),'validOpts':[{'name':a108p(0x1f7),'values':[a108p(0x1d6),a108p(0x1ce),a108p(0x217),a108p(0x20c)]},{'name':a108p(0x20f),'boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a108p,c=b[q(0x1f7)]?q(0x1ec)+b['baseDir']:q(0x204),d=this['fsi']['pathFromApp'](b),e=this[q(0x1f2)]['pathFromApp']({'pathParts':[c,b[q(0x1e7)],paramCase(b[q(0x1e0)]),paramCase(b[q(0x1e0)])]}),f=this[q(0x1f2)][q(0x200)]();this[q(0x1f2)][q(0x1e1)](f,()=>{const r=q;typeof f['template'][r(0x1d9)]===r(0x1f1)&&(f[r(0x1f0)][r(0x1d9)]=f[r(0x1f0)][r(0x1d9)]==='true'?!![]:![],this[r(0x1f2)][r(0x1d8)](r(0x1d9),f[r(0x1f0)][r(0x1d9)]));typeof f[r(0x1f0)]['test']==='string'&&(f['template']['test']=f[r(0x1f0)][r(0x203)]===r(0x211)?!![]:![],this[r(0x1f2)][r(0x1d8)](r(0x203),f['template'][r(0x203)]));typeof f[r(0x1f0)]['css']===r(0x1f1)&&(f['template'][r(0x205)]=f[r(0x1f0)]['css']===r(0x211)?!![]:![],this[r(0x1f2)][r(0x1d8)](r(0x205),f[r(0x1f0)][r(0x205)]));typeof f[r(0x1f0)]['js']==='string'&&(f[r(0x1f0)]['js']=f[r(0x1f0)]['js']===r(0x211)?!![]:![],this[r(0x1f2)][r(0x1d8)]('js',f[r(0x1f0)]['js']));!f[r(0x1e2)]&&(f[r(0x1e2)]={});!b[r(0x1d2)]&&!this['fsi']['checkNpmPackage'](r(0x207))&&(Log[r(0x1fa)](r(0x1ef)),this['fsi'][r(0x206)](r(0x207),{'cwd':d}));const g={'name':pascalCase(b[r(0x1e0)]),'myPath':a108e[r(0x1de)](this[r(0x1f2)][r(0x1ea)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[r(0x1e0)]),'camelCaseName':camelCase(b[r(0x1e0)]),'fileName':paramCase(b['resourceName']),'graphql':f[r(0x1f4)][r(0x1e4)],'features':f[r(0x1e2)],'client':f[r(0x1f4)]['client'],'api':f[r(0x1f4)][r(0x1d3)],'ssr':f[r(0x1f4)][r(0x1d1)],'isStore':b[r(0x20d)]('store'),'isComponent':b[r(0x20d)](r(0x214)),'isLayout':b[r(0x20d)]('layout'),'withTranslations':f[r(0x1e2)]['withTranslations'],'test':f[r(0x1f4)][r(0x203)],'theme':f[r(0x1f4)]['theme']};f[r(0x1f0)][r(0x1d9)]&&this[r(0x1f2)][r(0x1f0)]({'srcPath':r(0x1f6),'destPath':e+r(0x213),'context':g,'config':f});f[r(0x1e2)]?.['withHooks']||b[r(0x20f)]?this['fsi'][r(0x1f0)]({'srcPath':r(0x1df),'destPath':e+r(0x216),'framework':r(0x1ff),'context':g,'config':f}):this['fsi'][r(0x1f0)]({'srcPath':r(0x202),'destPath':e+r(0x216),'framework':'react','context':g,'config':f});f['engines'][r(0x203)]!=='none'&&this[r(0x1f2)][r(0x1f0)]({'srcPath':r(0x212),'destPath':e+r(0x1fd),'framework':'react','context':g,'config':f});f[r(0x1f0)][r(0x205)]&&this[r(0x1f2)][r(0x1f0)]({'srcPath':r(0x1ee),'destPath':e+'.css','context':Object[r(0x1d7)]({},g,{'className':paramCase(b[r(0x1e0)])}),'config':f});f[r(0x1f4)][r(0x1f5)]!==r(0x1ff)&&f[r(0x1f4)][r(0x1f5)]!==r(0x1e9)?(f[r(0x1f0)]['css']&&this['fsi'][r(0x1cf)]({'filePath':e+'.'+f[r(0x1f4)]['js'],'content':'import\x20\x27./'+g[r(0x1f3)]+'.'+f[r(0x1f4)][r(0x1d9)]+r(0x1dd)+r(0x215)+g[r(0x1f3)]+'.'+f[r(0x1f4)][r(0x205)]+'\x27;'}),!f[r(0x1f0)]['css']&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x1f4)]['js'],'content':r(0x215)+g[r(0x1f3)]+'.'+f[r(0x1f4)][r(0x1d9)]+'\x27;'})):f[r(0x1f0)][r(0x205)]&&this[r(0x1f2)][r(0x1cf)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[r(0x1f4)][r(0x205)]+'\x27;'});const h=b[r(0x1e7)]?'/'+b[r(0x1e7)]+'/':'/',i=''+c+h+g[r(0x1f3)]+'/'+g[r(0x1f3)];let j;if(f['engines']['ssr']===r(0x211)){const k=this[r(0x1f2)]['pathFromApp']({'pathParts':[r(0x1da),'startup','lib',r(0x209)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this[r(0x1f2)]['pathFromApp']({'pathParts':[r(0x1da),'startup',r(0x1f5),r(0x209)]});j=this[r(0x1f2)][r(0x1fe)]({'pathParts':[l],'config':f});}f[r(0x1f4)][r(0x1f5)]==='react'?this[r(0x1f2)][r(0x1f8)]({'filePath':j,'content':r(0x1e6)+g[r(0x1fc)]+r(0x1fb)+i+'\x27;\x0a'}):this[r(0x1f2)][r(0x1f8)]({'filePath':j,'content':r(0x1d0)+i+'.'+f['engines']['js']+'\x27;\x0a'});});});
1
+ const a111p=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d=-parseInt(m(0x22d))/0x1+parseInt(m(0x226))/0x2*(-parseInt(m(0x227))/0x3)+-parseInt(m(0x222))/0x4*(parseInt(m(0x20a))/0x5)+-parseInt(m(0x202))/0x6*(-parseInt(m(0x21a))/0x7)+-parseInt(m(0x1ec))/0x8+-parseInt(m(0x218))/0x9+parseInt(m(0x212))/0xa*(parseInt(m(0x214))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x1b01a));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a111d;if(c){const e=c[n(0x201)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const o=a111d;return a111a['toString']()['search'](o(0x20e))['toString']()[o(0x206)](a111a)['search'](o(0x20e));});a111a();import a111e from'path';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1e6;let f=c[d];return f;},a111d(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'];function a111c(){const s=['Updating\x20npm\x20packages\x20...','create','5gKxCKn','setTemplate','import\x20\x27./','checkNpmPackage','(((.+)+)+)+$','startup','hooks','engines','10PJCYhc','layouts','4659688eFNBHC','client','withHook','pathFromApp','41598ytWqph','hasOwnProperty','749WAhYxg','pathFromProject','lib','test','api','templates.js','/imports/ui/pages','.js','69596schBOC','injectAtEndOfFile','root','ssr','4BIVcqw','222753cvTNGk','resourceName','react','fsi','dir','hook/hook.js','149796ABperi','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','ramda','fileName','assign','/imports/ui/','css','1000240vtAITf','features','baseDir','string','test/test.js','maka\x20g:page\x20todos/todos-item','template','.html','withHooks','getProjectConfig','rewriteDestinationPathForEngine','template/template.html','relative','html','\x20}\x20from\x20\x27','withValue','injectAtBeginningOfFile','withTranslations','true','\x27;\x0a','export\x20\x27','apply','7422YQaGlW','component','imports','installNpmPackage','constructor','page'];a111c=function(){return s;};return a111c();}Generator[a111p(0x209)]({'name':a111p(0x207),'aliases':aliases,'usage':a111p(0x1e6),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':'baseDir','values':[a111p(0x210),'components','pages',a111p(0x213)]},{'name':a111p(0x216),'boolFlag':!![]}],'examples':[a111p(0x1f1)]},function(a,b){const q=a111p,c=b[q(0x1ee)]?q(0x1ea)+b['baseDir']:q(0x220),d=this['fsi'][q(0x217)](b),e=this[q(0x22a)]['pathFromApp']({'pathParts':[c,b[q(0x22b)],paramCase(b[q(0x228)]),paramCase(b[q(0x228)])]}),f=this['fsi'][q(0x1f5)]();this[q(0x22a)][q(0x1fb)](f,()=>{const r=q;typeof f[r(0x1f2)]['html']===r(0x1ef)&&(f[r(0x1f2)][r(0x1f9)]=f[r(0x1f2)][r(0x1f9)]==='true'?!![]:![],this[r(0x22a)][r(0x20b)](r(0x1f9),f[r(0x1f2)][r(0x1f9)]));typeof f[r(0x1f2)][r(0x21d)]===r(0x1ef)&&(f[r(0x1f2)][r(0x21d)]=f[r(0x1f2)][r(0x21d)]===r(0x1fe)?!![]:![],this[r(0x22a)][r(0x20b)]('test',f[r(0x1f2)][r(0x21d)]));typeof f[r(0x1f2)][r(0x1eb)]===r(0x1ef)&&(f[r(0x1f2)]['css']=f[r(0x1f2)][r(0x1eb)]===r(0x1fe)?!![]:![],this['fsi'][r(0x20b)](r(0x1eb),f[r(0x1f2)]['css']));typeof f[r(0x1f2)]['js']===r(0x1ef)&&(f[r(0x1f2)]['js']=f[r(0x1f2)]['js']===r(0x1fe)?!![]:![],this['fsi'][r(0x20b)]('js',f['template']['js']));!f['features']&&(f[r(0x1ed)]={});!b[r(0x224)]&&!this['fsi'][r(0x20d)](r(0x1e7))&&(Log['warn'](r(0x208)),this[r(0x22a)][r(0x205)](r(0x1e7),{'cwd':d}));const g={'name':pascalCase(b[r(0x228)]),'myPath':a111e[r(0x1f8)](this[r(0x22a)][r(0x21b)]({}),e),'cssCaseName':paramCase(b[r(0x228)]),'className':pascalCase(b[r(0x228)]),'camelCaseName':camelCase(b[r(0x228)]),'fileName':paramCase(b['resourceName']),'graphql':f[r(0x211)]['graphql'],'features':f[r(0x1ed)],'client':f[r(0x211)][r(0x215)],'api':f['engines'][r(0x21e)],'ssr':f[r(0x211)][r(0x225)],'isStore':b['hasOwnProperty']('store'),'isComponent':b['hasOwnProperty'](r(0x203)),'isLayout':b[r(0x219)]('layout'),'withTranslations':f[r(0x1ed)][r(0x1fd)],'test':f[r(0x211)]['test'],'theme':f[r(0x211)]['theme']};f[r(0x1f2)]['html']&&this['fsi']['template']({'srcPath':r(0x1f7),'destPath':e+r(0x1f3),'context':g,'config':f});f[r(0x1ed)]?.[r(0x1f4)]||b[r(0x216)]?this['fsi']['template']({'srcPath':r(0x22c),'destPath':e+r(0x221),'framework':'react','context':g,'config':f}):this['fsi'][r(0x1f2)]({'srcPath':'component/component.js','destPath':e+r(0x221),'framework':'react','context':g,'config':f});f[r(0x211)]['test']!=='none'&&this['fsi'][r(0x1f2)]({'srcPath':r(0x1f0),'destPath':e+'.app-tests.js','framework':r(0x229),'context':g,'config':f});f['template'][r(0x1eb)]&&this[r(0x22a)][r(0x1f2)]({'srcPath':'template/template.css','destPath':e+'.css','context':Object[r(0x1e9)]({},g,{'className':paramCase(b[r(0x228)])}),'config':f});f[r(0x211)][r(0x215)]!==r(0x229)&&f[r(0x211)][r(0x215)]!=='vanilla'?(f[r(0x1f2)][r(0x1eb)]&&this[r(0x22a)][r(0x1fc)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x20c)+g[r(0x1e8)]+'.'+f[r(0x211)][r(0x1f9)]+r(0x1ff)+r(0x20c)+g[r(0x1e8)]+'.'+f['engines']['css']+'\x27;'}),!f[r(0x1f2)][r(0x1eb)]&&this[r(0x22a)][r(0x1fc)]({'filePath':e+'.'+f[r(0x211)]['js'],'content':r(0x20c)+g[r(0x1e8)]+'.'+f['engines'][r(0x1f9)]+'\x27;'})):f[r(0x1f2)]['css']&&this[r(0x22a)][r(0x1fc)]({'filePath':e+'.'+f[r(0x211)]['js'],'content':r(0x20c)+g[r(0x1e8)]+'.'+f[r(0x211)][r(0x1eb)]+'\x27;'});const h=b[r(0x22b)]?'/'+b['dir']+'/':'/',i=''+c+h+g[r(0x1e8)]+'/'+g[r(0x1e8)];let j;if(f[r(0x211)][r(0x225)]===r(0x1fe)){const k=this['fsi'][r(0x217)]({'pathParts':[r(0x204),'startup',r(0x21c),r(0x21f)]});j=this[r(0x22a)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this['fsi'][r(0x217)]({'pathParts':['imports',r(0x20f),'client',r(0x21f)]});j=this[r(0x22a)][r(0x1f6)]({'pathParts':[l],'config':f});}f['engines'][r(0x215)]===r(0x229)?this[r(0x22a)][r(0x223)]({'filePath':j,'content':'export\x20{\x20'+g['className']+r(0x1fa)+i+r(0x1ff)}):this[r(0x22a)][r(0x223)]({'filePath':j,'content':r(0x200)+i+'.'+f[r(0x211)]['js']+r(0x1ff)});});});
@@ -1 +1 @@
1
- const a109k=a109d;function a109c(){const n=['apply','28715ETCTmU','tsx','publish','521980NasJDO','rewriteDestinationPathForEngine','withValue','engines','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','fsi','11200608CBSkxm','21713MSDdrp','toString','528eOmoiL','1246698GWwVVe','injectAtEndOfFile','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','80WGGMZP','9751294qgTpTu','3958977WYiXLM','resourceName','(((.+)+)+)+$','getProjectConfig','create','62TEPgUO','server/publish.','constructor','templateContent','search','9lBlqVV'];a109c=function(){return n;};return a109c();}function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x8b;let f=c[d];return f;},a109d(a,b);}(function(a,b){const h=a109d,c=a();while(!![]){try{const d=-parseInt(h(0x9c))/0x1*(parseInt(h(0x8b))/0x2)+parseInt(h(0x90))/0x3*(parseInt(h(0x95))/0x4)+parseInt(h(0x92))/0x5*(parseInt(h(0x9e))/0x6)+parseInt(h(0xa3))/0x7+-parseInt(h(0x9b))/0x8+parseInt(h(0x9f))/0x9*(parseInt(h(0xa2))/0xa)+-parseInt(h(0xa4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xeb989));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0x9d)]()[j(0x8f)](j(0xa6))[j(0x9d)]()[j(0x8d)](a109a)['search'](j(0xa6));});a109a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a109k(0xa8)]({'name':a109k(0x94),'aliases':['p'],'usage':a109k(0x99),'shortDesc':a109k(0xa1),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a109k,c=this['fsi'][l(0xa7)]();this[l(0x9a)][l(0x97)](c,async()=>{const m=l,d={'name':b[m(0xa5)],'collection':paramCase(b[m(0xa5)]),'noRename':!![]};let e='js';c[m(0x98)]['js']===m(0x93)&&(e='ts');const f=this['fsi'][m(0x96)]({'pathParts':[m(0x8c)+c[m(0x98)]['js']]}),g=this[m(0x9a)][m(0x8e)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this['fsi'][m(0xa0)]({'filePath':f,'content':'\x0a'+g});});});
1
+ const a112k=a112d;(function(a,b){const h=a112d,c=a();while(!![]){try{const d=-parseInt(h(0x139))/0x1+-parseInt(h(0x130))/0x2+parseInt(h(0x12e))/0x3+-parseInt(h(0x126))/0x4+-parseInt(h(0x133))/0x5*(parseInt(h(0x12c))/0x6)+-parseInt(h(0x132))/0x7+parseInt(h(0x125))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xc76a9));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a112d;if(c){const e=c[i(0x12a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const j=a112d;return a112a[j(0x124)]()[j(0x129)](j(0x12b))[j(0x124)]()[j(0x134)](a112a)[j(0x129)]('(((.+)+)+)+$');});a112a();import{paramCase}from'change-case';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x124;let f=c[d];return f;},a112d(a,b);}import{Generator}from'../generator.js';Generator[a112k(0x12d)]({'name':'publish','aliases':['p'],'usage':a112k(0x135),'shortDesc':a112k(0x137),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a112k,c=this[l(0x136)][l(0x12f)]();this['fsi']['withValue'](c,async()=>{const m=l,d={'name':b[m(0x128)],'collection':paramCase(b[m(0x128)]),'noRename':!![]};let e='js';c['engines']['js']==='tsx'&&(e='ts');const f=this['fsi'][m(0x131)]({'pathParts':[m(0x127)+c[m(0x138)]['js']]}),g=this[m(0x136)]['templateContent']({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x136)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});function a112c(){const n=['resourceName','search','apply','(((.+)+)+)+$','17772DeyJey','create','1412718zhjdMM','getProjectConfig','713650uFEoXn','rewriteDestinationPathForEngine','4523281apMOQh','1810PPzOzN','constructor','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','fsi','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','engines','297504gpvtPd','toString','28308872DibNMt','3279800AsdwNe','server/publish.'];a112c=function(){return n;};return a112c();}