@maka/maka-cli 4.3.31 → 4.4.1

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 (99) hide show
  1. package/README.md +1 -1
  2. package/bundle/obf/package.json +1 -1
  3. package/bundle/obf/src/README.md +1 -1
  4. package/bundle/obf/src/command.js +1 -1
  5. package/bundle/obf/src/commands/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/_index.js +1 -1
  7. package/bundle/obf/src/commands/aws/aws.command.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/rkp.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/build/_index.js +1 -1
  19. package/bundle/obf/src/commands/build/build.js +1 -1
  20. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/create.js +1 -1
  22. package/bundle/obf/src/commands/debug.js +1 -1
  23. package/bundle/obf/src/commands/deploy.js +1 -1
  24. package/bundle/obf/src/commands/game/_index.js +1 -1
  25. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/play.command.js +1 -1
  27. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/generate.js +1 -1
  31. package/bundle/obf/src/commands/get/_index.js +1 -1
  32. package/bundle/obf/src/commands/get/get.command.js +1 -1
  33. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  36. package/bundle/obf/src/commands/help.js +1 -1
  37. package/bundle/obf/src/commands/install.js +1 -1
  38. package/bundle/obf/src/commands/jsdoc.js +1 -1
  39. package/bundle/obf/src/commands/lint.js +1 -1
  40. package/bundle/obf/src/commands/login.js +1 -1
  41. package/bundle/obf/src/commands/logout.js +1 -1
  42. package/bundle/obf/src/commands/logs.js +1 -1
  43. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  44. package/bundle/obf/src/commands/murder.js +1 -1
  45. package/bundle/obf/src/commands/proxy.js +1 -1
  46. package/bundle/obf/src/commands/reconfig.js +1 -1
  47. package/bundle/obf/src/commands/run/_index.js +1 -1
  48. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  49. package/bundle/obf/src/commands/run/run.command.js +1 -1
  50. package/bundle/obf/src/commands/set/_index.js +1 -1
  51. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  52. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  53. package/bundle/obf/src/commands/set/set.command.js +1 -1
  54. package/bundle/obf/src/commands/ssh.js +1 -1
  55. package/bundle/obf/src/commands/ssl.js +1 -1
  56. package/bundle/obf/src/commands/test.js +1 -1
  57. package/bundle/obf/src/commands/version.js +1 -1
  58. package/bundle/obf/src/error.js +1 -1
  59. package/bundle/obf/src/generator.js +1 -1
  60. package/bundle/obf/src/generators/_index.js +1 -1
  61. package/bundle/obf/src/generators/api.js +1 -1
  62. package/bundle/obf/src/generators/collection.js +1 -1
  63. package/bundle/obf/src/generators/component.js +1 -1
  64. package/bundle/obf/src/generators/config.js +1 -1
  65. package/bundle/obf/src/generators/dbc.js +1 -1
  66. package/bundle/obf/src/generators/dockerfile.js +1 -1
  67. package/bundle/obf/src/generators/hook.js +1 -1
  68. package/bundle/obf/src/generators/kit.js +1 -1
  69. package/bundle/obf/src/generators/layout.js +1 -1
  70. package/bundle/obf/src/generators/maka.gen.js +1 -1
  71. package/bundle/obf/src/generators/methods.js +1 -1
  72. package/bundle/obf/src/generators/package.js +1 -1
  73. package/bundle/obf/src/generators/page.js +1 -1
  74. package/bundle/obf/src/generators/publish.js +1 -1
  75. package/bundle/obf/src/generators/route.js +1 -1
  76. package/bundle/obf/src/generators/service.js +1 -1
  77. package/bundle/obf/src/generators/services/_index.js +1 -1
  78. package/bundle/obf/src/generators/services/openssl.js +1 -1
  79. package/bundle/obf/src/generators/services/translation.js +1 -1
  80. package/bundle/obf/src/maka.js +1 -1
  81. package/bundle/obf/src/tool.js +1 -1
  82. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  83. package/bundle/obf/src/tools/actions/actions.test.js +1 -1
  84. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  85. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  86. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  87. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  88. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  89. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  90. package/bundle/obf/src/tools/https/https.class.js +1 -1
  91. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  92. package/bundle/obf/src/tools/log/log.class.js +1 -1
  93. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  94. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  95. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  96. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  97. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  98. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  99. package/package.json +1 -1
@@ -1 +1 @@
1
- const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=-parseInt(w(0x18d))/0x1*(parseInt(w(0x176))/0x2)+parseInt(w(0x14c))/0x3+parseInt(w(0x196))/0x4+parseInt(w(0x191))/0x5+parseInt(w(0x164))/0x6+-parseInt(w(0x17c))/0x7*(-parseInt(w(0x189))/0x8)+-parseInt(w(0x14e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xf0162));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a[y(0x148)]()[y(0x155)](y(0x162))[y(0x148)]()[y(0x192)](a57a)[y(0x155)](y(0x162));});a57a();import{Generator}from'../generator.js';function a57c(){const C=['mdg:validated-method','TypeDefs);\x0a','Resolvers);\x0a\x0a','1099WEDPAY','API\x20boundaries\x20to\x20create','Publications','invoke','maka:check','installMeteorPackage','injectAtEndOfFile','error','apply','Verifying\x20meteor\x20package\x20requirements\x20...','includes','test','/graphql/resolvers','43640uAJmCA','api/publications.js','collection','apollo','52484BfBXrD','checkMeteorPackage','exit','REST\x20API','6745755IqtJfy','constructor','template','options','tsx','1820600IAmFCA','withRest','RPC\x20(Methods)','imports','api/api.js','ddp-rate-limiter','withValue','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','api/register-api.js','mongo','maka\x20{generate,\x20g}:{api}\x20<resource-name>','toString','injectIntoFile','maka\x20g:api\x20todos','resolverList.push(','752454riVixO','api/resolvers.js','15947883ixyVGF','Fixtures','import\x20{\x20typeDefs\x20as\x20','register-','rest-api.','api/typeDefs.js','api/tests.js','search','startup','const','notice','/graphql/typeDefs','maka:rest','\x27;\x0a','typeDefs.','api','withGql','TypeDefs\x20}\x20from\x20\x27','.app-tests.','/imports/api','(((.+)+)+)+$','getProjectConfig','5990850PvGTiO','injectAtBeginningOfFile','withFixtures','fsi','log','server','dir','index.','pathFromApp','\x0aimport\x20{\x20resolvers\x20as\x20','rest','-api\x27;','findGenerator','resolvers.','graphql','engines','withPubs','Resolvers\x20}\x20from\x20\x27','44NVLOZB','rpc-methods.','push'];a57c=function(){return C;};return a57c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x147;let f=c[d];return f;},a57d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a57z(0x15d),'aliases':['a'],'usage':a57z(0x147),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a57z(0x16a)],'examples':[a57z(0x14a)]},async function(a,b){const A=a57z;try{const c=this['fsi'][A(0x163)](),d=[{'name':A(0x198),'value':'withMethods'},{'name':A(0x14f),'value':A(0x166)},{'name':A(0x17e),'value':A(0x174)}];c[A(0x173)][A(0x15d)]===A(0x16e)&&d[A(0x178)]({'name':A(0x190),'value':A(0x197)});c[A(0x173)][A(0x172)]===A(0x18c)&&d[A(0x178)]({'name':'GraphQL','value':A(0x15e)});const f={'type':'checkbox','name':'apiAnswers','message':A(0x17d),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x194)](f);g['length']===0x0&&(Log[A(0x183)]('No\x20API\x20boundaries\x20selected'),process[A(0x18f)](0x1)),this[A(0x167)][A(0x19c)](c,async()=>{const B=A,h=this[B(0x167)][B(0x16c)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x16a)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x173)][B(0x15d)],'graphql':c[B(0x173)][B(0x172)],'test':c[B(0x173)][B(0x187)],'noRename':!![],'withPubs':g[B(0x186)](B(0x174)),'withFixtures':g[B(0x186)](B(0x166)),'withMethods':g['includes']('withMethods'),'withRest':g[B(0x186)](B(0x197))};let n='js';c[B(0x173)]['js']===B(0x195)&&(n='ts');(!this[B(0x167)][B(0x18e)](B(0x15a))||!this['fsi'][B(0x18e)](B(0x180))||!this[B(0x167)][B(0x18e)](B(0x19b))||!this[B(0x167)][B(0x18e)](B(0x179))||!this[B(0x167)][B(0x18e)](B(0x19f)))&&(Log[B(0x158)](B(0x185)),await this['fsi'][B(0x181)](B(0x19d),{'cwd':h}));const o=a57e[B(0x170)](B(0x18b));o&&await o[B(0x17f)]([j],{'config':c,'where':B(0x169)});c['engines'][B(0x15d)]===B(0x16e)&&(m['withRest']&&this[B(0x167)][B(0x193)]({'srcPath':B(0x19a),'destPath':this['fsi'][B(0x16c)]({'pathParts':[B(0x199),'api',b[B(0x16a)],j,B(0x152)+n]}),'context':m,'config':c}));m['withMethods']&&this[B(0x167)][B(0x193)]({'srcPath':'api/methods.js','destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x199),B(0x15d),b[B(0x16a)],j,B(0x177)+n]}),'context':m,'config':c});m[B(0x166)]&&this[B(0x167)][B(0x193)]({'srcPath':'api/fixtures.js','destPath':this[B(0x167)][B(0x16c)]({'pathParts':['imports',B(0x15d),b['dir'],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x173)][B(0x187)]!=='none'&&this[B(0x167)][B(0x193)]({'srcPath':B(0x154),'destPath':this['fsi'][B(0x16c)]({'pathParts':['imports',B(0x15d),b['dir'],j,j+B(0x160)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x167)][B(0x193)]({'srcPath':B(0x18a),'destPath':this[B(0x167)][B(0x16c)]({'pathParts':[B(0x199),'api',b['dir'],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][B(0x172)]==='apollo'){if(g[B(0x186)](B(0x15e))){const q=this['fsi'][B(0x16c)]({'pathParts':[B(0x199),B(0x156),B(0x169),B(0x16b)+c['engines']['js']]}),r=this[B(0x167)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[B(0x167)][B(0x16c)]({'pathParts':['imports',B(0x15d),b[B(0x16a)],j,B(0x172),B(0x15c)+n]}),t='/imports/api'+l+j+B(0x159);this[B(0x167)][B(0x193)]({'srcPath':B(0x153),'destPath':s,'context':m,'config':c}),this[B(0x167)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0x150)+k+B(0x15f)+t+B(0x15b)}),this[B(0x167)][B(0x149)]({'filePath':r,'content':'typeList.push('+k+B(0x17a),'begin':B(0x157),'end':'if\x20\x5c('});const u=this[B(0x167)][B(0x16c)]({'pathParts':[B(0x199),B(0x15d),b['dir'],j,B(0x172),B(0x171)+n]}),v=B(0x161)+l+j+B(0x188);this['fsi'][B(0x193)]({'srcPath':B(0x14d),'destPath':u,'context':m,'config':c}),this[B(0x167)][B(0x165)]({'filePath':r,'content':B(0x16d)+k+B(0x175)+v+'\x27;'}),this[B(0x167)]['injectIntoFile']({'filePath':r,'content':B(0x14b)+k+B(0x17b),'begin':B(0x157),'end':'if\x20\x5c('});}}this[B(0x167)]['template']({'srcPath':B(0x19e),'destPath':this[B(0x167)][B(0x16c)]({'pathParts':[B(0x199),B(0x156),B(0x169),B(0x151)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x167)][B(0x16c)]({'pathParts':['imports','startup',B(0x169),B(0x16b)+c['engines']['js']]});this['fsi'][B(0x182)]({'filePath':p,'content':'import\x20\x27./register-'+j+B(0x16f)});});}catch(h){console[A(0x168)](h),process[A(0x18f)](0x0);}});
1
+ const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=-parseInt(w(0x1f5))/0x1*(-parseInt(w(0x1ea))/0x2)+parseInt(w(0x1f6))/0x3+parseInt(w(0x1db))/0x4+-parseInt(w(0x1c6))/0x5*(-parseInt(w(0x1ee))/0x6)+-parseInt(w(0x1f3))/0x7+parseInt(w(0x1d2))/0x8+-parseInt(w(0x1bb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xa6972));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x1c4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a[y(0x20b)]()[y(0x1fb)](y(0x1c3))[y(0x20b)]()[y(0x1d4)](a57a)['search']('(((.+)+)+)+$');});function a57c(){const C=['maka\x20g:api\x20todos','TypeDefs\x20}\x20from\x20\x27','typeList.push(','TypeDefs);\x0a','injectIntoFile','publications.','push','fixtures.','RPC\x20(Methods)','invoke','13226796JfQjRD','if\x20\x5c(','injectAtBeginningOfFile','-api.','/graphql/resolvers','Publications','checkMeteorPackage','api/methods.js','(((.+)+)+)+$','apply','api/typeDefs.js','35lktdnI','rewriteDestinationPathForEngine','.app-tests.','engines','length','import\x20{\x20typeDefs\x20as\x20','mongo','withFixtures','includes','injectAtEndOfFile','api/api.js','api/publications.js','8397488ugnmNo','withPubs','constructor','api/fixtures.js','withRest','mdg:validated-method','collection','pathFromApp','API\x20boundaries\x20to\x20create','132236ySQLvW','apollo','api/register-api.js','Resolvers\x20}\x20from\x20\x27','template','imports','checkbox','Verifying\x20meteor\x20package\x20requirements\x20...','No\x20API\x20boundaries\x20selected','dir','installMeteorPackage','withMethods','maka:rest','register-','index.','2KqERVm','api/tests.js','test','notice','592638bMttwY','rest-api.','ddp-rate-limiter','none','const','2349872VanBTP','error','60895Ejpujg','1957929rzUesN','server','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','rest','tsx','search','startup','Fixtures','/imports/api','rpc-methods.','\x27;\x0a','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','withGql','resolverList.push(','exit','log','graphql','resolvers.','api','create','fsi','toString'];a57c=function(){return C;};return a57c();}a57a();import{Generator}from'../generator.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1b3;let f=c[d];return f;},a57d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a57z(0x209)]({'name':'api','aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a57z(0x201),'validOpts':['dir'],'examples':[a57z(0x20c)]},async function(a,b){const A=a57z;try{const c=this['fsi']['getProjectConfig'](),d=[{'name':A(0x1b9),'value':A(0x1e6)},{'name':A(0x1fd),'value':A(0x1cd)},{'name':A(0x1c0),'value':A(0x1d3)}];c['engines']['api']===A(0x1f9)&&d[A(0x1b7)]({'name':'REST\x20API','value':A(0x1d6)});c[A(0x1c9)]['graphql']===A(0x1dc)&&d['push']({'name':'GraphQL','value':A(0x202)});const f={'type':A(0x1e1),'name':'apiAnswers','message':A(0x1da),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[A(0x1ca)]===0x0&&(Log[A(0x1f4)](A(0x1e3)),process[A(0x204)](0x1)),this[A(0x20a)]['withValue'](c,async()=>{const B=A,h=this[B(0x20a)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x1e4)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1c9)][B(0x208)],'graphql':c[B(0x1c9)][B(0x206)],'test':c[B(0x1c9)][B(0x1ec)],'noRename':!![],'withPubs':g[B(0x1ce)](B(0x1d3)),'withFixtures':g[B(0x1ce)](B(0x1cd)),'withMethods':g[B(0x1ce)](B(0x1e6)),'withRest':g[B(0x1ce)](B(0x1d6))};let n='js';c[B(0x1c9)]['js']===B(0x1fa)&&(n='ts');(!this['fsi'][B(0x1c1)](B(0x1e7))||!this[B(0x20a)][B(0x1c1)]('maka:check')||!this[B(0x20a)][B(0x1c1)](B(0x1f0))||!this[B(0x20a)][B(0x1c1)](B(0x1d7))||!this[B(0x20a)][B(0x1c1)](B(0x1cc)))&&(Log[B(0x1ed)](B(0x1e2)),await this['fsi'][B(0x1e5)](B(0x1f8),{'cwd':h}));const o=a57e['findGenerator'](B(0x1d8));o&&await o[B(0x1ba)]([j],{'config':c,'where':B(0x1f7)});c[B(0x1c9)]['api']===B(0x1f9)&&(m[B(0x1d6)]&&this['fsi'][B(0x1df)]({'srcPath':B(0x1d0),'destPath':this[B(0x20a)][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x208),b[B(0x1e4)],j,B(0x1ef)+n]}),'context':m,'config':c}));m[B(0x1e6)]&&this[B(0x20a)][B(0x1df)]({'srcPath':B(0x1c2),'destPath':this['fsi'][B(0x1d9)]({'pathParts':[B(0x1e0),'api',b[B(0x1e4)],j,B(0x1ff)+n]}),'context':m,'config':c});m[B(0x1cd)]&&this[B(0x20a)]['template']({'srcPath':B(0x1d5),'destPath':this[B(0x20a)][B(0x1d9)]({'pathParts':['imports',B(0x208),b['dir'],j,B(0x1b8)+n]}),'context':m,'config':c});c[B(0x1c9)]['test']!==B(0x1f1)&&this['fsi'][B(0x1df)]({'srcPath':B(0x1eb),'destPath':this[B(0x20a)][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x208),b['dir'],j,j+B(0x1c8)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x20a)][B(0x1df)]({'srcPath':B(0x1d1),'destPath':this[B(0x20a)][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x208),b[B(0x1e4)],j,B(0x1b6)+n]}),'context':m,'config':c});if(c[B(0x1c9)][B(0x206)]===B(0x1dc)){if(g[B(0x1ce)](B(0x202))){const q=this['fsi'][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x1fc),'server',B(0x1e9)+c[B(0x1c9)]['js']]}),r=this['fsi'][B(0x1c7)]({'pathParts':[q],'config':c}),s=this[B(0x20a)][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x208),b[B(0x1e4)],j,B(0x206),'typeDefs.'+n]}),t=B(0x1fe)+l+j+'/graphql/typeDefs';this[B(0x20a)][B(0x1df)]({'srcPath':B(0x1c5),'destPath':s,'context':m,'config':c}),this[B(0x20a)][B(0x1bd)]({'filePath':r,'content':B(0x1cb)+k+B(0x20d)+t+B(0x200)}),this[B(0x20a)][B(0x1b5)]({'filePath':r,'content':B(0x1b3)+k+B(0x1b4),'begin':B(0x1f2),'end':'if\x20\x5c('});const u=this[B(0x20a)]['pathFromApp']({'pathParts':['imports',B(0x208),b['dir'],j,B(0x206),B(0x207)+n]}),v=B(0x1fe)+l+j+B(0x1bf);this[B(0x20a)][B(0x1df)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x20a)][B(0x1bd)]({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+B(0x1de)+v+'\x27;'}),this[B(0x20a)][B(0x1b5)]({'filePath':r,'content':B(0x203)+k+'Resolvers);\x0a\x0a','begin':'const','end':B(0x1bc)});}}this[B(0x20a)]['template']({'srcPath':B(0x1dd),'destPath':this[B(0x20a)]['pathFromApp']({'pathParts':['imports',B(0x1fc),'server',B(0x1e8)+j+B(0x1be)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x20a)][B(0x1d9)]({'pathParts':[B(0x1e0),B(0x1fc),'server',B(0x1e9)+c[B(0x1c9)]['js']]});this[B(0x20a)][B(0x1cf)]({'filePath':p,'content':'import\x20\x27./register-'+j+'-api\x27;'});});}catch(h){console[A(0x205)](h),process[A(0x204)](0x0);}});
@@ -1 +1 @@
1
- const a58m=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0xf3))/0x1+-parseInt(k(0xf5))/0x2*(parseInt(k(0xed))/0x3)+-parseInt(k(0x108))/0x4+-parseInt(k(0xe6))/0x5*(-parseInt(k(0xf4))/0x6)+parseInt(k(0x109))/0x7*(-parseInt(k(0xe2))/0x8)+parseInt(k(0xe8))/0x9*(-parseInt(k(0x10e))/0xa)+parseInt(k(0xee))/0xb*(parseInt(k(0xe3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x88d00));const a58b=(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;};}()),a58a=a58b(this,function(){const l=a58d;return a58a['toString']()[l(0x10d)](l(0x10c))[l(0xf9)]()[l(0xf0)](a58a)['search']('(((.+)+)+)+$');});function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0xe2;let f=c[d];return f;},a58d(a,b);}a58a();import{paramCase,pascalCase}from'change-case';function a58c(){const p=['Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','dir','fsi','resourceName','maka\x20g:collection\x20todos','tsx','collection','collection/collection.js','.app-tests.','template','366532XaLZde','31451DuzCDo','import\x20\x27./collections','appPathPrefix','(((.+)+)+)+$','search','3400330LmtEWb','528plOCTZ','113580VNiJrc','imports','engines','5194705UQmJjh','create','18ofVQQZ','injectAtEndOfFile','checkMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','getProjectConfig','88119ETAVSU','2442JmGMBf','mongo','constructor','installMeteorPackage','maka:check','689106AQYEim','6xLFaLZ','56naMRwi','test','notice','pathFromApp','toString','index.','startup','where','collections'];a58c=function(){return p;};return a58c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58m(0xe7)]({'name':a58m(0x104),'aliases':['col'],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>\x20[--where]','checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a58m(0xff),a58m(0xfc)],'description':'\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','examples':[a58m(0x102)]},async function(a,b){const n=a58m;try{const c=this['fsi'][n(0xf8)]({}),d=this[n(0x100)][n(0xec)]();this[n(0x100)]['withValue'](d,async()=>{const o=n,f=paramCase(b[o(0x101)]),g={'name':pascalCase(b[o(0x101)]),'collectionName':pascalCase(b[o(0x101)]),'fileName':f,'where':b[o(0xfc)],'test':d[o(0xe5)][o(0xf6)],'noRename':!![]};let h='js';d[o(0xe5)]['js']===o(0x103)&&(h='ts');!this[o(0x100)][o(0xea)](o(0xef))&&(Log[o(0xf7)](o(0xfe)),await this['fsi']['installMeteorPackage'](o(0xef),{'cwd':c}));!this[o(0x100)]['checkMeteorPackage'](o(0xf2))&&(Log['notice'](o(0xeb)),await this[o(0x100)][o(0xf1)](o(0xf2),{'cwd':c}));this['fsi'][o(0x107)]({'srcPath':o(0x105),'destPath':this[o(0x100)][o(0xf8)]({'pathParts':[o(0xe4),o(0xfb),b[o(0x10b)],o(0xfd),b[o(0xff)],f+'.'+h]}),'context':g,'config':d});d[o(0xe5)][o(0xf6)]!=='none'&&this[o(0x100)]['template']({'srcPath':'collection/tests.js','destPath':this[o(0x100)]['pathFromApp']({'pathParts':['imports','startup',b[o(0x10b)],'collections',b[o(0xff)],f+o(0x106)+h]}),'context':g,'config':d});const i=b[o(0xff)]?'/'+b['dir']+'/':'/',j=this[o(0x100)]['pathFromApp']({'pathParts':[o(0xe4),o(0xfb),b[o(0x10b)],o(0xfa)+d[o(0xe5)]['js']]});this[o(0x100)][o(0xe9)]({'filePath':j,'content':o(0x10a)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
1
+ const a58n=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0x12f))/0x1+parseInt(k(0x111))/0x2*(-parseInt(k(0x12b))/0x3)+-parseInt(k(0x126))/0x4*(-parseInt(k(0x124))/0x5)+parseInt(k(0x109))/0x6*(-parseInt(k(0x11f))/0x7)+parseInt(k(0x11c))/0x8*(-parseInt(k(0x10b))/0x9)+parseInt(k(0x121))/0xa*(parseInt(k(0x116))/0xb)+parseInt(k(0x10c))/0xc*(parseInt(k(0x11d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x437ee));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a58d;if(c){const e=c[l(0x107)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const m=a58d;return a58a[m(0x137)]()[m(0x117)](m(0x110))[m(0x137)]()[m(0x115)](a58a)[m(0x117)](m(0x110));});a58a();function a58c(){const q=['where','toString','engines','apply','resourceName','12JpTRoD','injectAtEndOfFile','3695247llfmNu','360VvfChM','imports','withValue','installMeteorPackage','(((.+)+)+)+$','30SOktTF','test','fsi','create','constructor','22XWZHAb','search','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>\x20[--where]','dir','collections','collection','8aQjHNc','406250uAXqJj','import\x20\x27./collections','1639960rQArKZ','\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','2403740HJIObZ','startup','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','62110HOdrih','index.','56YDYBmf','checkMeteorPackage','mongo','.app-tests.','col','86124tRRVNK','maka:check','template','none','5931pZMFzh','error','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','maka\x20g:collection\x20todos','pathFromApp','collection/tests.js','notice'];a58c=function(){return q;};return a58c();}import{paramCase,pascalCase}from'change-case';function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x106;let f=c[d];return f;},a58d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58n(0x114)]({'name':a58n(0x11b),'aliases':[a58n(0x12a)],'usage':a58n(0x118),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a58n(0x119),a58n(0x136)],'description':a58n(0x120),'examples':[a58n(0x132)]},async function(a,b){const o=a58n;try{const c=this[o(0x113)][o(0x133)]({}),d=this[o(0x113)]['getProjectConfig']();this[o(0x113)][o(0x10e)](d,async()=>{const p=o,f=paramCase(b[p(0x108)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x136)],'test':d['engines'][p(0x112)],'noRename':!![]};let h='js';d[p(0x106)]['js']==='tsx'&&(h='ts');!this['fsi'][p(0x127)](p(0x128))&&(Log[p(0x135)](p(0x131)),await this[p(0x113)][p(0x10f)](p(0x128),{'cwd':c}));!this[p(0x113)][p(0x127)](p(0x12c))&&(Log[p(0x135)](p(0x123)),await this[p(0x113)][p(0x10f)]('maka:check',{'cwd':c}));this[p(0x113)]['template']({'srcPath':'collection/collection.js','destPath':this[p(0x113)][p(0x133)]({'pathParts':[p(0x10d),p(0x122),b['appPathPrefix'],p(0x11a),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x106)][p(0x112)]!==p(0x12e)&&this[p(0x113)][p(0x12d)]({'srcPath':p(0x134),'destPath':this['fsi'][p(0x133)]({'pathParts':[p(0x10d),p(0x122),b['appPathPrefix'],p(0x11a),b[p(0x119)],f+p(0x129)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x119)]+'/':'/',j=this[p(0x113)]['pathFromApp']({'pathParts':[p(0x10d),p(0x122),b['appPathPrefix'],p(0x125)+d[p(0x106)]['js']]});this[p(0x113)][p(0x10a)]({'filePath':j,'content':p(0x11e)+i+f+'\x27;'});});}catch(f){Log[o(0x130)](f);}});
@@ -1 +1 @@
1
- const a59q=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=parseInt(n(0x174))/0x1+-parseInt(n(0x17b))/0x2+-parseInt(n(0x175))/0x3*(-parseInt(n(0x19b))/0x4)+parseInt(n(0x170))/0x5+-parseInt(n(0x16a))/0x6*(parseInt(n(0x17c))/0x7)+-parseInt(n(0x177))/0x8*(-parseInt(n(0x18f))/0x9)+-parseInt(n(0x157))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xc068a));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a59d;if(c){const e=c[o(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const p=a59d;return a59a[p(0x188)]()[p(0x167)](p(0x16b))['toString']()[p(0x195)](a59a)[p(0x167)]('(((.+)+)+)+$');});a59a();function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x155;let f=c[d];return f;},a59d(a,b);}import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a59q(0x15f)];function a59c(){const t=['pathFromProject','startup','injectAtBeginningOfFile','96498ClmXxS','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','api','graphql','ramda','templates.js','constructor','true','template','lib','getProjectConfig','tsx','5284wkkePh','string','error','import\x20\x27./','15885880wOuIHl','className','import\x20\x27','features','rewriteDestinationPathForEngine','warn','fileName','client','comp','react','\x20}\x20from\x20\x27','theme','imports','injectAtEndOfFile','dir','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','search','relative','maka\x20g:comp\x20todos/todos-item','738maBUyM','(((.+)+)+)+$','reflux','test','.css','fsi','3048875teJgxZ','ssr','assign','apply','790934bIWryk','2424LNrjTq','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','1048qzgyyb','findAppDirectory','checkNpmPackage','engines','2870406zbiCNg','3458ecLMRJ','component','export\x20{\x20','withValue','none','setTemplate','/imports/ui/components','test/test.js','import\x20{\x20','root','resourceName','pathFromApp','toString','installNpmPackage','component/component.js','css'];a59c=function(){return t;};return a59c();}Generator['create']({'name':a59q(0x17d),'aliases':aliases,'usage':a59q(0x176),'shortDesc':a59q(0x190),'validOpts':['dir'],'examples':[a59q(0x169)]},async function(a,b){const r=a59q;try{const c=this['fsi'][r(0x178)](),d=r(0x182),f=this[r(0x16f)][r(0x187)]({'pathParts':[d,b[r(0x165)],paramCase(b[r(0x186)]),paramCase(b['resourceName'])]}),g=await this[r(0x16f)][r(0x199)]();this[r(0x16f)][r(0x17f)](g,async()=>{const s=r;typeof g[s(0x197)][s(0x16d)]===s(0x19c)&&(g[s(0x197)][s(0x16d)]=g[s(0x197)][s(0x16d)]==='true'?!![]:![],this[s(0x16f)][s(0x181)]('test',g['template'][s(0x16d)]));typeof g[s(0x197)][s(0x18b)]===s(0x19c)&&(g[s(0x197)]['css']=g[s(0x197)][s(0x18b)]===s(0x196)?!![]:![],this[s(0x16f)][s(0x181)](s(0x18b),g[s(0x197)][s(0x18b)]));typeof g[s(0x197)]['js']===s(0x19c)&&(g[s(0x197)]['js']=g[s(0x197)]['js']===s(0x196)?!![]:![],this[s(0x16f)][s(0x181)]('js',g[s(0x197)]['js']));!g[s(0x15a)]&&(g[s(0x15a)]={});!b['root']&&!this[s(0x16f)][s(0x179)](s(0x193))&&(Log[s(0x15c)](s(0x166)),await this[s(0x16f)][s(0x189)](s(0x193),{'cwd':c}));if(!b[s(0x185)]&&!this['fsi'][s(0x179)](s(0x160))){Log[s(0x155)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[s(0x186)]),'myPath':a59e[s(0x168)](this[s(0x16f)][s(0x18c)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x186)]),'fileName':paramCase(b[s(0x186)]),'graphql':g[s(0x17a)][s(0x192)],'features':g[s(0x15a)],'client':g['engines'][s(0x15e)],'api':g[s(0x17a)][s(0x191)],'ssr':g[s(0x17a)][s(0x171)],'test':g['engines'][s(0x16d)],'theme':g['engines'][s(0x162)],'isLayout':![],'isComponent':!![],'withTranslations':g['features']['withTranslations']};this[s(0x16f)][s(0x197)]({'srcPath':s(0x18a),'destPath':f+'.js','context':h,'framework':'react','config':g});g[s(0x17a)][s(0x16d)]!==s(0x180)&&this['fsi'][s(0x197)]({'srcPath':s(0x183),'destPath':f+'.tests.js','context':h,'framework':s(0x160),'config':g});g[s(0x197)][s(0x18b)]&&(this[s(0x16f)][s(0x197)]({'srcPath':'template/template.css','destPath':f+s(0x16e),'context':Object[s(0x172)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[s(0x16f)][s(0x18e)]({'filePath':f+'.'+g[s(0x17a)]['js'],'content':s(0x156)+h['cssCaseName']+'.'+g['engines'][s(0x18b)]+'\x27;'}));const i=b[s(0x165)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x15d)]+'/'+h[s(0x15d)];let k;if(g[s(0x17a)]['ssr']===s(0x196)){const l=this[s(0x16f)]['pathFromApp']({'pathParts':[s(0x163),s(0x18d),s(0x198),'templates.js']});k=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x16f)][s(0x187)]({'pathParts':[s(0x163),s(0x18d),s(0x15e),s(0x194)]});k=this['fsi'][s(0x15b)]({'pathParts':[m],'config':g});}g['engines'][s(0x15e)]===s(0x160)||g[s(0x17a)][s(0x15e)]===s(0x16c)?(g[s(0x17a)]['js']===s(0x19a)?this[s(0x16f)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x184)+h[s(0x158)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this[s(0x16f)][s(0x18e)]({'filePath':k,'content':s(0x184)+h[s(0x158)]+s(0x161)+j+'.'+g['engines']['js']+'\x27;\x0a'}),this[s(0x16f)][s(0x164)]({'filePath':k,'content':s(0x17e)+h['className']+'\x20};\x0a'})):this[s(0x16f)]['injectAtEndOfFile']({'filePath':k,'content':s(0x159)+j+'.'+g['engines']['js']+'\x27;\x0a'});});}catch(h){Log[r(0x155)](h);}});
1
+ const a59q=a59d;function a59c(){const t=['fsi','6KpNaWc','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','4MZtDll','true','resourceName','imports','create','cssCaseName','import\x20\x27','template/template.css','templates.js','tsx','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','startup','lib','withValue','className','comp','719208pYbkwG','root','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','constructor','react','import\x20\x27./','14217907zpMlyD','theme','(((.+)+)+)+$','2605698TxxBZt','\x27;\x0a','error','search','fileName','engines','1801020bKNDMF','rewriteDestinationPathForEngine','ssr','checkNpmPackage','import\x20{\x20','client','export\x20{\x20','relative','string','44922oiKNHu','injectAtBeginningOfFile','setTemplate','toString','findAppDirectory','\x20}\x20from\x20\x27','warn','reflux','withTranslations','maka\x20g:comp\x20todos/todos-item','injectAtEndOfFile','/imports/ui/components','dir','css','pathFromApp','apply','assign','\x20};\x0a','10uNvTXi','5FCMHgj','330663nnAsHR','features','test','2561321ejGzEH','ramda','none','template'];a59c=function(){return t;};return a59c();}(function(a,b){const n=a59d,c=a();while(!![]){try{const d=parseInt(n(0x171))/0x1*(parseInt(n(0x15e))/0x2)+parseInt(n(0x172))/0x3*(-parseInt(n(0x17d))/0x4)+-parseInt(n(0x155))/0x5+-parseInt(n(0x17a))/0x6*(parseInt(n(0x175))/0x7)+-parseInt(n(0x146))/0x8+-parseInt(n(0x14f))/0x9+parseInt(n(0x170))/0xa*(parseInt(n(0x14c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0x2e2a3));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a59d;if(c){const e=c[o(0x16d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const p=a59d;return a59a[p(0x161)]()['search'](p(0x14e))[p(0x161)]()[p(0x149)](a59a)[p(0x152)]('(((.+)+)+)+$');});function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x142;let f=c[d];return f;},a59d(a,b);}a59a();import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a59q(0x145)];Generator[a59q(0x181)]({'name':'component','aliases':aliases,'usage':a59q(0x187),'shortDesc':a59q(0x148),'validOpts':[a59q(0x16a)],'examples':[a59q(0x167)]},async function(a,b){const r=a59q;try{const c=this[r(0x179)][r(0x162)](),d=r(0x169),f=this[r(0x179)][r(0x16c)]({'pathParts':[d,b[r(0x16a)],paramCase(b['resourceName']),paramCase(b[r(0x17f)])]}),g=await this[r(0x179)]['getProjectConfig']();this['fsi'][r(0x143)](g,async()=>{const s=r;typeof g[s(0x178)][s(0x174)]==='string'&&(g[s(0x178)][s(0x174)]=g['template']['test']===s(0x17e)?!![]:![],this[s(0x179)][s(0x160)]('test',g[s(0x178)][s(0x174)]));typeof g[s(0x178)][s(0x16b)]===s(0x15d)&&(g[s(0x178)][s(0x16b)]=g[s(0x178)][s(0x16b)]===s(0x17e)?!![]:![],this[s(0x179)]['setTemplate'](s(0x16b),g[s(0x178)][s(0x16b)]));typeof g[s(0x178)]['js']==='string'&&(g[s(0x178)]['js']=g[s(0x178)]['js']===s(0x17e)?!![]:![],this[s(0x179)][s(0x160)]('js',g['template']['js']));!g[s(0x173)]&&(g[s(0x173)]={});!b['root']&&!this['fsi']['checkNpmPackage']('ramda')&&(Log[s(0x164)](s(0x17b)),await this[s(0x179)]['installNpmPackage'](s(0x176),{'cwd':c}));if(!b[s(0x147)]&&!this['fsi'][s(0x158)]('react')){Log[s(0x151)](s(0x17c));return;}const h={'name':pascalCase(b[s(0x17f)]),'myPath':a59e[s(0x15c)](this[s(0x179)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x17f)]),'className':pascalCase(b[s(0x17f)]),'camelCaseName':camelCase(b[s(0x17f)]),'fileName':paramCase(b[s(0x17f)]),'graphql':g[s(0x154)]['graphql'],'features':g[s(0x173)],'client':g[s(0x154)]['client'],'api':g[s(0x154)]['api'],'ssr':g['engines'][s(0x157)],'test':g[s(0x154)][s(0x174)],'theme':g[s(0x154)][s(0x14d)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x173)][s(0x166)]};this[s(0x179)][s(0x178)]({'srcPath':'component/component.js','destPath':f+'.js','context':h,'framework':'react','config':g});g[s(0x154)]['test']!==s(0x177)&&this['fsi'][s(0x178)]({'srcPath':'test/test.js','destPath':f+'.tests.js','context':h,'framework':'react','config':g});g['template']['css']&&(this['fsi'][s(0x178)]({'srcPath':s(0x184),'destPath':f+'.css','context':Object[s(0x16e)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[s(0x179)][s(0x15f)]({'filePath':f+'.'+g['engines']['js'],'content':s(0x14b)+h[s(0x182)]+'.'+g[s(0x154)][s(0x16b)]+'\x27;'}));const i=b[s(0x16a)]?'/'+b[s(0x16a)]+'/':'/',j=''+d+i+h[s(0x153)]+'/'+h[s(0x153)];let k;if(g[s(0x154)]['ssr']===s(0x17e)){const l=this['fsi']['pathFromApp']({'pathParts':[s(0x180),s(0x188),s(0x142),s(0x185)]});k=this[s(0x179)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this['fsi']['pathFromApp']({'pathParts':[s(0x180),s(0x188),'client','templates.js']});k=this[s(0x179)][s(0x156)]({'pathParts':[m],'config':g});}g[s(0x154)]['client']===s(0x14a)||g[s(0x154)][s(0x15a)]===s(0x165)?(g['engines']['js']===s(0x186)?this[s(0x179)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[s(0x144)]+s(0x163)+j+s(0x150)}):this[s(0x179)][s(0x15f)]({'filePath':k,'content':s(0x159)+h[s(0x144)]+s(0x163)+j+'.'+g[s(0x154)]['js']+s(0x150)}),this[s(0x179)][s(0x168)]({'filePath':k,'content':s(0x15b)+h[s(0x144)]+s(0x16f)})):this[s(0x179)][s(0x168)]({'filePath':k,'content':s(0x183)+j+'.'+g['engines']['js']+'\x27;\x0a'});});}catch(h){Log[r(0x151)](h);}});
@@ -1 +1 @@
1
- const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=-parseInt(h(0x13c))/0x1+-parseInt(h(0x140))/0x2+-parseInt(h(0x13a))/0x3+-parseInt(h(0x14f))/0x4+-parseInt(h(0x152))/0x5+parseInt(h(0x14e))/0x6+parseInt(h(0x156))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x8ec3c));function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x139;let f=c[d];return f;},a60d(a,b);}const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a[j(0x155)]()[j(0x13f)](j(0x14b))[j(0x155)]()[j(0x149)](a60a)[j(0x13f)]('(((.+)+)+)+$');});a60a();function a60c(){const n=['maka\x20g:config\x20production','search','675366rcUEgP','pathFromProject','prod','production','apply','template','settings.json','config/process.env','Generate\x20configuration\x20settings.','constructor','maka\x20{generate,\x20g}:{config}\x20<name>','(((.+)+)+)+$','config/settings.json','isDocker','132804OKvDqc','1110100XsXJMR','getProjectConfig','process.env','2389750iByQBD','appName','config','toString','21041314oEfJzY','resourceName','fsi','1740450emVVLg','create','769964SptgIF','ubuntu'];a60c=function(){return n;};return a60c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a60k(0x13b)]({'name':a60k(0x154),'usage':a60k(0x14a),'shortDesc':a60k(0x148),'validOpts':[a60k(0x14d)],'examples':[a60k(0x13e)]},function(a,b){const l=a60k,c=this[l(0x139)][l(0x150)]();this[l(0x139)]['withValue'](c,()=>{const m=l,d={'app':c[m(0x153)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x157)]),'camelCase':camelCase(b[m(0x157)]),'userName':m(0x13d),'isDocker':b[m(0x14d)]};let e=a[0x0];if(e==='dev')e='development';else e===m(0x142)&&(e=m(0x143));const f=this[m(0x139)]['pathFromProject']({'pathParts':[m(0x154),e,m(0x146)]});this[m(0x139)][m(0x145)]({'srcPath':m(0x14c),'destPath':f,'context':d,'config':c});if(!b[m(0x14d)]){const g=this[m(0x139)][m(0x141)]({'pathParts':[m(0x154),e,m(0x151)]});this[m(0x139)][m(0x145)]({'srcPath':m(0x147),'destPath':g,'context':d,'config':c});}});});
1
+ const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=parseInt(h(0x107))/0x1+-parseInt(h(0xed))/0x2*(parseInt(h(0x103))/0x3)+-parseInt(h(0xf3))/0x4+parseInt(h(0xfb))/0x5+parseInt(h(0xf6))/0x6*(-parseInt(h(0x100))/0x7)+parseInt(h(0xfe))/0x8*(parseInt(h(0xef))/0x9)+parseInt(h(0x104))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x7da21));const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x102)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a[j(0x105)]()[j(0xfa)]('(((.+)+)+)+$')[j(0x105)]()[j(0xf4)](a60a)[j(0xfa)](j(0xfd));});function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0xec;let f=c[d];return f;},a60d(a,b);}a60a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a60c(){const n=['ubuntu','441027ObOIzk','development','production','Generate\x20configuration\x20settings.','2901248HpaDZs','constructor','prod','6CJjTNJ','resourceName','isDocker','process.env','search','875370XMuSOf','config','(((.+)+)+)+$','136CFFeOM','maka\x20{generate,\x20g}:{config}\x20<name>','4916506gzHJwC','getProjectConfig','apply','1781223ikaphM','10338300IopNyq','toString','withValue','494049CTXPUz','fsi','appName','2FAbSXu'];a60c=function(){return n;};return a60c();}Generator['create']({'name':a60k(0xfc),'usage':a60k(0xff),'shortDesc':a60k(0xf2),'validOpts':[a60k(0xf8)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a60k,c=this[l(0x108)][l(0x101)]();this[l(0x108)][l(0x106)](c,()=>{const m=l,d={'app':c[m(0xec)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0xf7)]),'fileName':paramCase(b[m(0xf7)]),'camelCase':camelCase(b[m(0xf7)]),'userName':m(0xee),'isDocker':b[m(0xf8)]};let e=a[0x0];if(e==='dev')e=m(0xf0);else e===m(0xf5)&&(e=m(0xf1));const f=this[m(0x108)]['pathFromProject']({'pathParts':[m(0xfc),e,'settings.json']});this['fsi']['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0xf8)]){const g=this['fsi']['pathFromProject']({'pathParts':[m(0xfc),e,m(0xf9)]});this[m(0x108)]['template']({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- function a61c(){const t=['list','startup','pathFromApp','446935VtOsjS','78Qnfqph','constructor','create','tsx','indexOf','46903747DCeEJH','14552694UvUgUL','pgsql','4509284DbAJNE','PostgreSQL','conn.','index.','(((.+)+)+)+$','10JuvVsj','dir','3LVqVjT','type','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','installNpmPackage','sqlite','DB\x20Driver','mssql','injectAtEndOfFile','server','engines','error','8YpdDOq',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','Invalid\x20type\x20','dbc','fsi','withValue','search','1322802PqSjMO','template','-dbc.','checkNpmPackage','12UzTSmN','imports','getProjectConfig','(blank)','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','12293365nOgzxZ','warn','import\x20\x27./register-','config.','dbc/config.js','better-sqlite3','toString','apply','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','2575884aiPQLz','resourceName','dbc/register-dbc.js','dbc/conn.js','maka\x20g:dbc\x20geoserver\x20--type=pgsql'];a61c=function(){return t;};return a61c();}function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0xa5;let f=c[d];return f;},a61d(a,b);}const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=-parseInt(n(0xc3))/0x1+-parseInt(n(0xd5))/0x2*(-parseInt(n(0xb1))/0x3)+-parseInt(n(0xaa))/0x4+parseInt(n(0xdd))/0x5*(parseInt(n(0xde))/0x6)+parseInt(n(0xcc))/0x7*(-parseInt(n(0xbc))/0x8)+parseInt(n(0xa8))/0x9*(-parseInt(n(0xaf))/0xa)+-parseInt(n(0xa7))/0xb*(-parseInt(n(0xc7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0xd972a));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0xd2)]()[p(0xc2)](p(0xae))[p(0xd2)]()[p(0xdf)](a61a)[p(0xc2)](p(0xae));});a61a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a61q(0xe0)]({'name':a61q(0xbf),'usage':a61q(0xcb),'shortDesc':a61q(0xd4),'validOpts':['type',a61q(0xb0)],'examples':[a61q(0xd9)]},async function(a,b){const r=a61q;try{const c=await this[r(0xc0)][r(0xc9)](),d=this[r(0xc0)][r(0xdc)]({}),f=paramCase(b[r(0xd6)]);if(!b['type']){const h={'type':r(0xda),'name':'dbAnswer','message':r(0xb6),'choices':[{'name':r(0xab),'value':r(0xa9)},{'name':'MS\x20SQL','value':'mssql'}]},{dbAnswer:i}=await Actions['options'](h);i&&(b['type']=i);}const g={'name':pascalCase(b[r(0xd6)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[r(0xd6)]),'type':b[r(0xb2)],'engine':c[r(0xba)]['js'],'noRename':!![]};this['fsi'][r(0xc1)](c,async()=>{const s=r;let j='js';c[s(0xba)]['js']===s(0xa5)&&(j='ts');const k=['mssql',s(0xa9)];if(k[s(0xa6)](g[s(0xb2)])<0x0){const m=g[s(0xb2)]?g[s(0xb2)]:s(0xca);Log[s(0xbb)](s(0xbe)+m+s(0xbd));return;}b[s(0xb2)]===s(0xa9)&&!this[s(0xc0)][s(0xc6)]('pg')&&(Log[s(0xcd)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[s(0xc0)][s(0xb4)]('pg',{'cwd':d}));b[s(0xb2)]===s(0xb7)&&!this['fsi']['checkNpmPackage'](s(0xb7))&&(Log[s(0xcd)](s(0xb3)),await this['fsi']['installNpmPackage'](s(0xb7),{'cwd':d}));b['type']===s(0xb5)&&!this['fsi'][s(0xc6)](s(0xd1))&&(Log[s(0xcd)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0xc0)]['installNpmPackage'](s(0xd1),{'cwd':d}));this[s(0xc0)]['template']({'srcPath':s(0xd0),'destPath':this[s(0xc0)][s(0xdc)]({'pathParts':['imports',s(0xdb),s(0xb9),s(0xbf),b[s(0xb0)],f,s(0xcf)+j]}),'context':g,'config':c}),this[s(0xc0)][s(0xc4)]({'srcPath':s(0xd8),'destPath':this[s(0xc0)][s(0xdc)]({'pathParts':[s(0xc8),'startup','server',s(0xbf),b[s(0xb0)],f,s(0xac)+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0xd7),'destPath':this['fsi'][s(0xdc)]({'pathParts':[s(0xc8),s(0xdb),s(0xb9),'register-'+f+s(0xc5)+j]}),'context':g,'config':c});const l=this['fsi'][s(0xdc)]({'pathParts':[s(0xc8),s(0xdb),s(0xb9),s(0xad)+c[s(0xba)]['js']]});this['fsi'][s(0xb8)]({'filePath':l,'content':s(0xce)+f+'-dbc\x27;'});});}catch(j){Log['error'](j);}});
1
+ const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=parseInt(n(0x1ea))/0x1*(parseInt(n(0x1e6))/0x2)+-parseInt(n(0x1d0))/0x3+parseInt(n(0x1f8))/0x4+parseInt(n(0x1e2))/0x5+-parseInt(n(0x1f4))/0x6*(-parseInt(n(0x1fb))/0x7)+-parseInt(n(0x1e8))/0x8+parseInt(n(0x1dc))/0x9*(-parseInt(n(0x201))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0xc746b));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0x1db)]()[p(0x1f1)]('(((.+)+)+)+$')[p(0x1db)]()[p(0x1e0)](a61a)[p(0x1f1)](p(0x1eb));});a61a();import{camelCase,paramCase,pascalCase}from'change-case';function a61c(){const t=['engines','better-sqlite3','template','constructor','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','4701565AhNrun','list','withValue','startup','9970kAFFPE','tsx','7760144gpJtWb','-dbc.','257RdrgCN','(((.+)+)+)+$','dbc/conn.js','dbc','conn.','checkNpmPackage','resourceName','search','error','indexOf','333618SSeLhH',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','dir','imports','3342728PILpuM','fsi','mssql','175nlzGAJ','getProjectConfig','type','create','pathFromApp','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','550whktHb','pgsql','2441031snhyih','installNpmPackage','dbc/register-dbc.js','index.','warn','options','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','server','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','dbAnswer','apply','toString','302283IuYgdE'];a61c=function(){return t;};return a61c();}function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x1cf;let f=c[d];return f;},a61d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a61q(0x1fe)]({'name':'dbc','usage':a61q(0x1e1),'shortDesc':a61q(0x1d6),'validOpts':['type',a61q(0x1f6)],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql']},async function(a,b){const r=a61q;try{const c=await this[r(0x1f9)][r(0x1fc)](),d=this[r(0x1f9)]['pathFromApp']({}),f=paramCase(b[r(0x1f0)]);if(!b[r(0x1fd)]){const h={'type':r(0x1e3),'name':r(0x1d9),'message':'DB\x20Driver','choices':[{'name':'PostgreSQL','value':r(0x1cf)},{'name':'MS\x20SQL','value':r(0x1fa)}]},{dbAnswer:i}=await Actions[r(0x1d5)](h);i&&(b[r(0x1fd)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[r(0x1f0)]),'camelCase':camelCase(b[r(0x1f0)]),'type':b['type'],'engine':c[r(0x1dd)]['js'],'noRename':!![]};this['fsi'][r(0x1e4)](c,async()=>{const s=r;let j='js';c[s(0x1dd)]['js']===s(0x1e7)&&(j='ts');const k=[s(0x1fa),s(0x1cf)];if(k[s(0x1f3)](g[s(0x1fd)])<0x0){const m=g[s(0x1fd)]?g[s(0x1fd)]:'(blank)';Log[s(0x1f2)]('Invalid\x20type\x20'+m+s(0x1f5));return;}b[s(0x1fd)]==='pgsql'&&!this[s(0x1f9)][s(0x1ef)]('pg')&&(Log[s(0x1d4)](s(0x1d8)),await this[s(0x1f9)][s(0x1d1)]('pg',{'cwd':d}));b[s(0x1fd)]==='mssql'&&!this[s(0x1f9)]['checkNpmPackage'](s(0x1fa))&&(Log[s(0x1d4)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[s(0x1f9)][s(0x1d1)](s(0x1fa),{'cwd':d}));b[s(0x1fd)]==='sqlite'&&!this['fsi']['checkNpmPackage'](s(0x1de))&&(Log[s(0x1d4)](s(0x200)),await this[s(0x1f9)]['installNpmPackage'](s(0x1de),{'cwd':d}));this[s(0x1f9)][s(0x1df)]({'srcPath':'dbc/config.js','destPath':this[s(0x1f9)][s(0x1ff)]({'pathParts':['imports',s(0x1e5),s(0x1d7),s(0x1ed),b[s(0x1f6)],f,'config.'+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0x1ec),'destPath':this[s(0x1f9)][s(0x1ff)]({'pathParts':[s(0x1f7),s(0x1e5),s(0x1d7),'dbc',b['dir'],f,s(0x1ee)+j]}),'context':g,'config':c}),this['fsi'][s(0x1df)]({'srcPath':s(0x1d2),'destPath':this[s(0x1f9)]['pathFromApp']({'pathParts':[s(0x1f7),'startup',s(0x1d7),'register-'+f+s(0x1e9)+j]}),'context':g,'config':c});const l=this['fsi'][s(0x1ff)]({'pathParts':[s(0x1f7),s(0x1e5),'server',s(0x1d3)+c[s(0x1dd)]['js']]});this[s(0x1f9)]['injectAtEndOfFile']({'filePath':l,'content':'import\x20\x27./register-'+f+'-dbc\x27;'});});}catch(j){Log[r(0x1f2)](j);}});
@@ -1 +1 @@
1
- const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=parseInt(f(0x134))/0x1*(parseInt(f(0x135))/0x2)+parseInt(f(0x12f))/0x3+parseInt(f(0x143))/0x4*(parseInt(f(0x132))/0x5)+-parseInt(f(0x13f))/0x6*(-parseInt(f(0x144))/0x7)+parseInt(f(0x146))/0x8*(parseInt(f(0x13e))/0x9)+parseInt(f(0x142))/0xa*(parseInt(f(0x130))/0xb)+-parseInt(f(0x136))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x7795d));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x14a)]()[h(0x141)](h(0x13a))[h(0x14a)]()['constructor'](a62a)[h(0x141)]('(((.+)+)+)+$');});function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x12a;let f=c[d];return f;},a62d(a,b);}a62a();function a62c(){const l=['(((.+)+)+)+$','app.tar.gz','getGlobalConfig','join','9Sjvjup','6DLTyiP','maka\x20g:dockerfile','search','2795570WTexFQ','542944mQLNEp','4181359LTpybR','withValue','2559520aGDHXg','appName','apply','dockerfile','toString','fsi','Generate\x20an\x20updated\x20dockerfile','cert','findProjectDirectory','docker/Dockerfile','isFile','2883708GkzqwZ','11kWdqud','create','25LrVhyo','maka\x20{generate,\x20g}:dockerfile','202613HpAnbb','2FFTqdx','30594504ZxuTNG','service','error','app'];a62c=function(){return l;};return a62c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a62e from'path';Generator[a62i(0x131)]({'name':a62i(0x149),'usage':a62i(0x133),'shortDesc':a62i(0x12a),'validOpts':[],'noResource':!![],'examples':[a62i(0x140)]},async function(){const j=a62i;try{const a=await this['fsi']['getProjectConfig'](),b=await this[j(0x14b)][j(0x13c)](),c=this[j(0x14b)][j(0x12c)]();this[j(0x14b)][j(0x145)](a,async()=>{const k=j,d={'app':b[k(0x147)],'config':a,'appPath':a62e[k(0x13d)](c,k(0x139)),'bundlePath':a62e[k(0x13d)](c,'build',k(0x13b)),'useCert':this[k(0x14b)][k(0x12e)](b[k(0x12b)])};this[k(0x14b)]['template']({'srcPath':k(0x12d),'destPath':a62e['join'](c,'Dockerfile'),'framework':k(0x137),'context':d,'config':a});});}catch(d){Log[j(0x138)](d);}});
1
+ const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=-parseInt(f(0x186))/0x1*(-parseInt(f(0x180))/0x2)+-parseInt(f(0x18d))/0x3+parseInt(f(0x195))/0x4*(parseInt(f(0x19d))/0x5)+parseInt(f(0x18e))/0x6*(-parseInt(f(0x193))/0x7)+parseInt(f(0x189))/0x8*(-parseInt(f(0x19e))/0x9)+parseInt(f(0x188))/0xa+parseInt(f(0x18a))/0xb*(parseInt(f(0x19f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0xb08f7));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x19c)]()[h(0x18f)](h(0x184))[h(0x19c)]()[h(0x198)](a62a)['search'](h(0x184));});a62a();import{Generator}from'../generator.js';function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x180;let f=c[d];return f;},a62d(a,b);}import{Log}from'../tools/log/log.class.js';import a62e from'path';function a62c(){const l=['isFile','772870ltFDqo','8NuMaif','88txBXzm','app.tar.gz','findProjectDirectory','3905865LRTErk','369294sqayCF','search','withValue','appName','cert','56ZhQmag','fsi','8pNqPSf','maka\x20g:dockerfile','apply','constructor','getGlobalConfig','Dockerfile','join','toString','2340070jPKEqL','5156433NHyjha','2507484eoMNYJ','3072UZmxDw','create','docker/Dockerfile','getProjectConfig','(((.+)+)+)+$','error','264cpagMo'];a62c=function(){return l;};return a62c();}Generator[a62i(0x181)]({'name':'dockerfile','usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a62i(0x196)]},async function(){const j=a62i;try{const a=await this[j(0x194)][j(0x183)](),b=await this[j(0x194)][j(0x199)](),c=this[j(0x194)][j(0x18c)]();this[j(0x194)][j(0x190)](a,async()=>{const k=j,d={'app':b[k(0x191)],'config':a,'appPath':a62e[k(0x19b)](c,'app'),'bundlePath':a62e['join'](c,'build',k(0x18b)),'useCert':this[k(0x194)][k(0x187)](b[k(0x192)])};this['fsi']['template']({'srcPath':k(0x182),'destPath':a62e['join'](c,k(0x19a)),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x185)](d);}});
@@ -1 +1 @@
1
- const a63r=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=-parseInt(o(0x1cf))/0x1*(-parseInt(o(0x1aa))/0x2)+-parseInt(o(0x1bd))/0x3+-parseInt(o(0x1c4))/0x4*(parseInt(o(0x1cc))/0x5)+-parseInt(o(0x1be))/0x6*(parseInt(o(0x1ae))/0x7)+parseInt(o(0x1c6))/0x8*(parseInt(o(0x1ca))/0x9)+-parseInt(o(0x1a7))/0xa*(-parseInt(o(0x1b0))/0xb)+parseInt(o(0x1d0))/0xc*(parseInt(o(0x1c9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x3bcdb));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a['toString']()[q(0x1ba)](q(0x1af))[q(0x1b4)]()[q(0x1df)](a63a)[q(0x1ba)](q(0x1af));});function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x19a;let f=c[d];return f;},a63d(a,b);}a63a();import a63e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a63r(0x1a8)]({'name':a63r(0x1bf),'aliases':['h'],'checkWhere':![],'usage':a63r(0x19e),'shortDesc':a63r(0x1a1),'validOpts':[a63r(0x1a9)],'examples':[a63r(0x1b9)]},async function(a,b){const s=a63r;try{const c=this['fsi']['checkNpmPackage'](s(0x1b2));if(!c){Log[s(0x1ce)](s(0x1d7));throw new UsageError();}const d=this[s(0x1ac)]['pathFromApp'](b),f=s(0x1b3),g=this[s(0x1ac)][s(0x1db)]({'pathParts':[f,b['dir'],paramCase(b[s(0x1b8)]),paramCase(b['resourceName'])]}),h=await this['fsi'][s(0x1c2)]();this[s(0x1ac)]['withValue'](h,async()=>{const t=s;typeof h[t(0x1d4)][t(0x1a3)]===t(0x1d2)&&(h['template'][t(0x1a3)]=h[t(0x1d4)][t(0x1a3)]===t(0x1c5)?!![]:![],this['fsi'][t(0x1b5)](t(0x1a3),h[t(0x1d4)][t(0x1a3)]));h[t(0x1cd)]['graphql']==='apollo'&&!this[t(0x19b)]('@apollo/client')&&(Log[t(0x19d)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x1ac)][t(0x1d3)](t(0x1d5),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1b8)]),'className':pascalCase(b[t(0x1b8)]),'name':pascalCase(b['resourceName']),'graphql':h['engines'][t(0x1c3)],'theme':h['engines'][t(0x19f)],'features':h[t(0x1dd)],'myPath':a63e[t(0x1bb)](this[t(0x1ac)][t(0x19c)]({}),g),'fileName':paramCase(b[t(0x1b8)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x1dd)][t(0x1ab)]};this[t(0x1ac)]['template']({'srcPath':t(0x1bc),'destPath':g+'.js','context':i,'config':h,'framework':'react'});h['template'][t(0x1a3)]&&(this[t(0x1ac)][t(0x1d4)]({'srcPath':t(0x1d6),'destPath':g+t(0x1c8),'context':Object['assign']({},i,{'className':i[t(0x1c1)]}),'config':h}),this['fsi'][t(0x1a0)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x1b6)+i[t(0x1cb)]+'.'+h[t(0x1cd)][t(0x1a3)]+'\x27;'}));h[t(0x1cd)]['test']!==t(0x1dc)&&this['fsi'][t(0x1d4)]({'srcPath':t(0x1c0),'destPath':g+t(0x19a),'framework':t(0x1b2),'context':i,'config':h});const j=b[t(0x1a9)]?'/'+b['dir']+'/':'/',k=''+f+j+i[t(0x1cb)]+'/'+i[t(0x1cb)];let l;if(h['engines']['ssr']===t(0x1c5)){const m=this[t(0x1ac)][t(0x1db)]({'pathParts':[t(0x1d9),'startup',t(0x1a2),t(0x1a5)]});l=this[t(0x1ac)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x1db)]({'pathParts':[t(0x1d9),t(0x1ad),t(0x1c7),t(0x1a5)]});l=this[t(0x1ac)][t(0x1da)]({'pathParts':[n],'config':h});}h[t(0x1cd)][t(0x1c7)]===t(0x1b2)?(h[t(0x1cd)]['js']===t(0x1b7)?this[t(0x1ac)][t(0x1a0)]({'filePath':l,'content':t(0x1a4)+i[t(0x1de)]+t(0x1d8)+k+t(0x1a6)}):this[t(0x1ac)][t(0x1a0)]({'filePath':l,'content':t(0x1a4)+i[t(0x1de)]+t(0x1d8)+k+'.'+h[t(0x1cd)]['js']+t(0x1a6)}),this[t(0x1ac)][t(0x1b1)]({'filePath':l,'content':'export\x20{\x20'+i['className']+'\x20};\x0a'})):this[t(0x1ac)][t(0x1b1)]({'filePath':l,'content':'import\x20\x27'+k+'.'+h['engines']['js']+t(0x1a6)});});}catch(i){Log[s(0x1ce)](i);}});function a63c(){const u=['graphql','1397024CNfwOw','true','2131872FYYYdc','client','.css','5821192enrQuQ','9Kmgbqp','fileName','5gQkwFv','engines','error','158941RAJuHl','12GmKICr','apply','string','installNpmPackage','template','@apollo/client\x20isomorphic-fetch','template/template.css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','\x20}\x20from\x20\x27','imports','rewriteDestinationPathForEngine','pathFromApp','none','features','className','constructor','.app-tests.js','checkNpmPackage','pathFromProject','warn','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','theme','injectAtBeginningOfFile','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','lib','css','import\x20{\x20','templates.js','\x27;\x0a','10VrlNsH','create','dir','4gqMuFD','withTranslations','fsi','startup','12761IfORlp','(((.+)+)+)+$','2813635bydgaU','injectAtEndOfFile','react','/imports/ui/hooks','toString','setTemplate','import\x20\x27./','tsx','resourceName','maka\x20g:hook\x20cool-hook','search','relative','hook/hook.js','1003779sutZkb','1182PtCVyT','hook','test/test.js','cssCaseName','getProjectConfig'];a63c=function(){return u;};return a63c();}
1
+ function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a63d(a,b);}const a63r=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=parseInt(o(0x202))/0x1+-parseInt(o(0x1c7))/0x2*(-parseInt(o(0x204))/0x3)+parseInt(o(0x1dd))/0x4*(parseInt(o(0x1d6))/0x5)+-parseInt(o(0x1ed))/0x6+parseInt(o(0x206))/0x7*(parseInt(o(0x1d0))/0x8)+-parseInt(o(0x1cc))/0x9+-parseInt(o(0x205))/0xa*(parseInt(o(0x1de))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x670f1));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a[q(0x1ea)]()[q(0x1f3)](q(0x1e8))['toString']()[q(0x200)](a63a)['search']('(((.+)+)+)+$');});a63a();function a63c(){const u=['imports','.app-tests.js','installNpmPackage','true','/imports/ui/hooks','startup','injectAtBeginningOfFile','react','\x20}\x20from\x20\x27','constructor','client','355774uYalcO','\x27;\x0a','15hxKbUj','414340ITpHGe','24066CUataH','dir','resourceName','fileName','fsi','270366DMsVGh','theme','hook/hook.js','lib','apply','4541787GDnaqB','warn','error','injectAtEndOfFile','376mRgKkN','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','test','.js','@apollo/client\x20isomorphic-fetch','graphql','170wGFkMe','checkNpmPackage','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','cssCaseName','create','none','ssr','33844kXFaNj','66VnJiAL','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','hook','relative','templates.js','withValue','withTranslations','template','import\x20{\x20','pathFromProject','(((.+)+)+)+$','import\x20\x27','toString','className','string','1833438AmrQuv','.css','pathFromApp','assign','maka\x20g:hook\x20cool-hook','css','search','apollo','rewriteDestinationPathForEngine','engines'];a63c=function(){return u;};return a63c();}import a63e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a63r(0x1da)]({'name':a63r(0x1e0),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a63r(0x1df),'validOpts':[a63r(0x207)],'examples':[a63r(0x1f1)]},async function(a,b){const s=a63r;try{const c=this[s(0x1c6)]['checkNpmPackage'](s(0x1fe));if(!c){Log[s(0x1ce)](s(0x1d1));throw new UsageError();}const d=this[s(0x1c6)][s(0x1ef)](b),f=s(0x1fb),g=this[s(0x1c6)][s(0x1ef)]({'pathParts':[f,b['dir'],paramCase(b[s(0x208)]),paramCase(b[s(0x208)])]}),h=await this[s(0x1c6)]['getProjectConfig']();this['fsi'][s(0x1e3)](h,async()=>{const t=s;typeof h['template'][t(0x1f2)]===t(0x1ec)&&(h['template'][t(0x1f2)]=h[t(0x1e5)][t(0x1f2)]===t(0x1fa)?!![]:![],this[t(0x1c6)]['setTemplate'](t(0x1f2),h[t(0x1e5)][t(0x1f2)]));h[t(0x1f6)][t(0x1d5)]===t(0x1f4)&&!this[t(0x1d7)]('@apollo/client')&&(Log[t(0x1cd)](t(0x1d8)),await this['fsi'][t(0x1f9)](t(0x1d4),{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0x208)]),'name':pascalCase(b[t(0x208)]),'graphql':h[t(0x1f6)]['graphql'],'theme':h[t(0x1f6)][t(0x1c8)],'features':h['features'],'myPath':a63e[t(0x1e1)](this['fsi'][t(0x1e7)]({}),g),'fileName':paramCase(b[t(0x208)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][t(0x1e4)]};this[t(0x1c6)][t(0x1e5)]({'srcPath':t(0x1c9),'destPath':g+t(0x1d3),'context':i,'config':h,'framework':t(0x1fe)});h[t(0x1e5)][t(0x1f2)]&&(this[t(0x1c6)]['template']({'srcPath':'template/template.css','destPath':g+t(0x1ee),'context':Object[t(0x1f0)]({},i,{'className':i[t(0x1d9)]}),'config':h}),this['fsi'][t(0x1fd)]({'filePath':g+'.'+h[t(0x1f6)]['js'],'content':'import\x20\x27./'+i[t(0x1c5)]+'.'+h[t(0x1f6)][t(0x1f2)]+'\x27;'}));h[t(0x1f6)][t(0x1d2)]!==t(0x1db)&&this[t(0x1c6)][t(0x1e5)]({'srcPath':'test/test.js','destPath':g+t(0x1f8),'framework':t(0x1fe),'context':i,'config':h});const j=b[t(0x207)]?'/'+b['dir']+'/':'/',k=''+f+j+i[t(0x1c5)]+'/'+i[t(0x1c5)];let l;if(h[t(0x1f6)][t(0x1dc)]===t(0x1fa)){const m=this['fsi'][t(0x1ef)]({'pathParts':[t(0x1f7),'startup',t(0x1ca),t(0x1e2)]});l=this['fsi'][t(0x1f5)]({'pathParts':[m],'config':h});}else{const n=this[t(0x1c6)][t(0x1ef)]({'pathParts':[t(0x1f7),t(0x1fc),t(0x201),t(0x1e2)]});l=this[t(0x1c6)][t(0x1f5)]({'pathParts':[n],'config':h});}h[t(0x1f6)][t(0x201)]==='react'?(h[t(0x1f6)]['js']==='tsx'?this['fsi']['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i[t(0x1eb)]+t(0x1ff)+k+t(0x203)}):this['fsi'][t(0x1fd)]({'filePath':l,'content':t(0x1e6)+i['className']+t(0x1ff)+k+'.'+h[t(0x1f6)]['js']+t(0x203)}),this[t(0x1c6)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i[t(0x1eb)]+'\x20};\x0a'})):this['fsi'][t(0x1cf)]({'filePath':l,'content':t(0x1e9)+k+'.'+h[t(0x1f6)]['js']+t(0x203)});});}catch(i){Log[s(0x1ce)](i);}});
@@ -1 +1 @@
1
- function a64c(){const n=['type','error','1165068ZJaWoP','4361730nvljdz','(blank)','engines','1967192svRbtT','toString','map','resourceName','20UkEYEa','Invalid\x20type\x20','maka\x20{generate,\x20g}:{kit}\x20<kit-name>\x20--type=map','16IXhhld','13341vrqFwB','1768842VJeKdI','apply','notice','search','2701098nKGYvh','90yBpTTi','maka\x20g:k\x20city-map\x20--type=leaflet-map','(((.+)+)+)+$','withValue','login','getProjectConfig','NIE','1817942LxqGba','fsi'];a64c=function(){return n;};return a64c();}const a64k=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0xc8))/0x1+parseInt(h(0xbd))/0x2*(parseInt(h(0xd4))/0x3)+parseInt(h(0xcc))/0x4+parseInt(h(0xc9))/0x5+parseInt(h(0xb8))/0x6+-parseInt(h(0xc4))/0x7*(-parseInt(h(0xd3))/0x8)+-parseInt(h(0xbc))/0x9*(parseInt(h(0xd0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x95b2e));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a64d;if(c){const e=c[i(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const j=a64d;return a64a[j(0xcd)]()[j(0xbb)]('(((.+)+)+)+$')[j(0xcd)]()['constructor'](a64a)[j(0xbb)](j(0xbf));});a64a();function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0xb8;let f=c[d];return f;},a64d(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':'kit','aliases':['k'],'usage':a64k(0xd2),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a64k(0xc6)],'examples':['maka\x20g:kit\x20--type=map',a64k(0xbe)]},async function(a,b){const l=a64k;try{const c=this['fsi'][l(0xc2)]();this[l(0xc5)][l(0xc0)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xcf)]),'fileName':paramCase(b[m(0xcf)]),'camelCase':camelCase(b[m(0xcf)]),'type':b['type'],'engine':c[m(0xcb)]['js'],'noRename':!![]},f=['leaflet-map',m(0xc1)];if(f['indexOf'](d[m(0xc6)])<0x0){const g=d[m(0xc6)]?d[m(0xc6)]:m(0xca);Log[m(0xc7)](m(0xd1)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xc6)]===m(0xce)&&Log[m(0xba)](m(0xc3)),b[m(0xc6)]===m(0xc1)&&Log['notice'](m(0xc3));});}catch(d){Log[l(0xc7)](d);}});
1
+ const a64k=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0x117))/0x1*(-parseInt(h(0x10e))/0x2)+parseInt(h(0xf8))/0x3+parseInt(h(0x107))/0x4*(-parseInt(h(0xfa))/0x5)+-parseInt(h(0x111))/0x6+-parseInt(h(0x106))/0x7+-parseInt(h(0x116))/0x8*(-parseInt(h(0xfc))/0x9)+parseInt(h(0xff))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x5a3b0));function a64c(){const n=['(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','NIE','error','(((.+)+)+)+$','resourceName','45842pHHaua','(blank)','type','2201580GPfIvS','map','maka\x20g:k\x20city-map\x20--type=leaflet-map','apply','Invalid\x20type\x20','63080mKxGSi','5BPuIyE','881355OONprM','kit','1115DVacxN','notice','405yjCPNH','login','engines','8367010rxHWWC','leaflet-map','fsi','create','search','withValue','toString','2089801luDqsl','10132PKDSAg','maka\x20{generate,\x20g}:{kit}\x20<kit-name>\x20--type=map'];a64c=function(){return n;};return a64c();}const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a64d;if(c){const e=c[i(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const j=a64d;return a64a[j(0x105)]()['search'](j(0x10c))[j(0x105)]()['constructor'](a64a)[j(0x103)]('(((.+)+)+)+$');});a64a();function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0xf8;let f=c[d];return f;},a64d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a64k(0x102)]({'name':a64k(0xf9),'aliases':['k'],'usage':a64k(0x108),'shortDesc':a64k(0x109),'validOpts':[a64k(0x110)],'examples':['maka\x20g:kit\x20--type=map',a64k(0x113)]},async function(a,b){const l=a64k;try{const c=this['fsi']['getProjectConfig']();this[l(0x101)][l(0x104)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x10d)]),'fileName':paramCase(b[m(0x10d)]),'camelCase':camelCase(b[m(0x10d)]),'type':b[m(0x110)],'engine':c[m(0xfe)]['js'],'noRename':!![]},f=[m(0x100),m(0xfd)];if(f['indexOf'](d['type'])<0x0){const g=d[m(0x110)]?d['type']:m(0x10f);Log[m(0x10b)](m(0x115)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b['type']===m(0x112)&&Log[m(0xfb)](m(0x10a)),b[m(0x110)]===m(0xfd)&&Log[m(0xfb)]('NIE');});}catch(d){Log[l(0x10b)](d);}});
@@ -1 +1 @@
1
- const a65r=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d=-parseInt(o(0x1fd))/0x1+parseInt(o(0x1fc))/0x2+parseInt(o(0x1c8))/0x3*(parseInt(o(0x1f7))/0x4)+-parseInt(o(0x1e8))/0x5+-parseInt(o(0x1d4))/0x6*(parseInt(o(0x205))/0x7)+-parseInt(o(0x1d2))/0x8+parseInt(o(0x1d3))/0x9*(parseInt(o(0x1ea))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x8342b));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x1e0)]()[q(0x1d6)]('(((.+)+)+)+$')[q(0x1e0)]()[q(0x1f9)](a65a)[q(0x1d6)](q(0x207));});a65a();import a65e from'path';import{Generator}from'../generator.js';function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a65d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a65c(){const u=['create','rewriteDestinationPathForEngine','apply','resourceName','string','/imports/ui/layouts','2874945BxWleD','withValue','5834540JzlnhR','test/test.js','features','className','ramda','checkNpmPackage','relative','react','template','export\x20{\x20','Scaffolding\x20for\x20a\x20React\x20Layout.','import\x20\x27','test','260veCiyT','dir','constructor','.js','fileName','1218862kGtPSn','863182GuwceZ','imports','warn','true','assign','.css','\x27;\x0a','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','14TJPJZd','getProjectConfig','(((.+)+)+)+$','withTranslations','import\x20{\x20','maka\x20g:layout\x20mobile/iPhone8','startup','layout','lib','injectAtBeginningOfFile','css','3855FNFLnF','withHook','templates.js','client','installNpmPackage','pathFromProject','import\x20\x27./','injectAtEndOfFile','template/template.css','graphql','2296896dVgvYO','36DtlkDw','2291538VBFlEb','engines','search','hook/hook.js','fsi','withHooks','theme','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','\x20}\x20from\x20\x27','ssr','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','pathFromApp','toString','setTemplate'];a65c=function(){return u;};return a65c();}const aliases=['l'];Generator[a65r(0x1e2)]({'name':a65r(0x20c),'aliases':aliases,'usage':a65r(0x204),'shortDesc':a65r(0x1f4),'validOpts':[],'examples':[a65r(0x20a),'maka\x20g:l\x20web/safari']},function(a,b){const s=a65r,c=s(0x1e7),d=this[s(0x1d8)]['findAppDirectory'](),e=this[s(0x1d8)][s(0x1df)]({'pathParts':[c,b[s(0x1f8)],paramCase(b[s(0x1e5)]),paramCase(b[s(0x1e5)])]}),f=this[s(0x1d8)][s(0x206)]();this[s(0x1d8)][s(0x1e9)](f,()=>{const t=s;typeof f[t(0x1f2)][t(0x1f6)]===t(0x1e6)&&(f[t(0x1f2)][t(0x1f6)]=f[t(0x1f2)]['test']==='true'?!![]:![],this[t(0x1d8)][t(0x1e1)](t(0x1f6),f[t(0x1f2)][t(0x1f6)]));typeof f[t(0x1f2)][t(0x1c7)]===t(0x1e6)&&(f[t(0x1f2)]['css']=f[t(0x1f2)][t(0x1c7)]==='true'?!![]:![],this[t(0x1d8)][t(0x1e1)](t(0x1c7),f['template'][t(0x1c7)]));typeof f[t(0x1f2)]['js']===t(0x1e6)&&(f['template']['js']=f[t(0x1f2)]['js']==='true'?!![]:![],this[t(0x1d8)][t(0x1e1)]('js',f['template']['js']));!f[t(0x1ec)]&&(f[t(0x1ec)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](t(0x1ee))&&(Log[t(0x1ff)](t(0x1db)),this[t(0x1d8)][t(0x1cc)](t(0x1ee),{'cwd':d}));if(h&&!this[t(0x1ef)](t(0x1f1))){Log[t(0x1ff)](t(0x1de));return;}const i={'name':pascalCase(b[t(0x1e5)]),'myPath':a65e[t(0x1f0)](this['fsi'][t(0x1cd)]({}),e),'cssCaseName':paramCase(b[t(0x1e5)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1e5)]),'fileName':paramCase(b[t(0x1e5)]),'graphql':f[t(0x1d5)][t(0x1d1)],'features':f['features'],'client':f[t(0x1d5)]['client'],'api':f[t(0x1d5)]['api'],'ssr':f[t(0x1d5)][t(0x1dd)],'test':f[t(0x1d5)][t(0x1f6)],'theme':f[t(0x1d5)][t(0x1da)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1ec)][t(0x208)]};f[t(0x1ec)]?.[t(0x1d9)]||b[t(0x1c9)]?this[t(0x1d8)][t(0x1f2)]({'srcPath':t(0x1d7),'destPath':e+t(0x1fa),'framework':t(0x1f1),'context':i,'config':f}):this['fsi']['template']({'srcPath':'component/component.js','destPath':e+t(0x1fa),'framework':t(0x1f1),'context':i,'config':f});f['engines']['test']!=='none'&&this['fsi'][t(0x1f2)]({'srcPath':t(0x1eb),'destPath':e+'.app-tests.js','framework':t(0x1f1),'context':i,'config':f});f['template'][t(0x1c7)]&&(this['fsi'][t(0x1f2)]({'srcPath':t(0x1d0),'destPath':e+t(0x202),'context':Object[t(0x201)]({},i,{'className':paramCase(b[t(0x1e5)])}),'config':f}),this[t(0x1d8)][t(0x20e)]({'filePath':e+'.'+f[t(0x1d5)]['js'],'content':t(0x1ce)+i[t(0x1fb)]+'.'+f['engines'][t(0x1c7)]+'\x27;'}));const j=b[t(0x1f8)]?'/'+b[t(0x1f8)]+'/':'/',k=''+c+j+i[t(0x1fb)]+'/'+i[t(0x1fb)];let l;if(f[t(0x1d5)]['ssr']===t(0x200)){const m=this[t(0x1d8)]['pathFromApp']({'pathParts':['imports',t(0x20b),t(0x20d),t(0x1ca)]});l=this[t(0x1d8)][t(0x1e3)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1d8)]['pathFromApp']({'pathParts':[t(0x1fe),t(0x20b),t(0x1cb),'templates.js']});l=this['fsi'][t(0x1e3)]({'pathParts':[n],'config':f});}f[t(0x1d5)][t(0x1cb)]===t(0x1f1)?(f['engines']['js']==='tsx'?this[t(0x1d8)][t(0x20e)]({'filePath':l,'content':t(0x209)+i['className']+t(0x1dc)+k+'\x27;\x0a'}):this[t(0x1d8)][t(0x20e)]({'filePath':l,'content':t(0x209)+i[t(0x1ed)]+t(0x1dc)+k+'.'+f[t(0x1d5)]['js']+t(0x203)}),this['fsi'][t(0x1cf)]({'filePath':l,'content':t(0x1f3)+i[t(0x1ed)]+'\x20};\x0a'})):this[t(0x1d8)][t(0x1cf)]({'filePath':l,'content':t(0x1f5)+k+'.'+f['engines']['js']+'\x27;\x0a'});});});
1
+ const a65r=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d=parseInt(o(0x1ed))/0x1+parseInt(o(0x21e))/0x2+-parseInt(o(0x20d))/0x3+-parseInt(o(0x1fa))/0x4+-parseInt(o(0x20f))/0x5+parseInt(o(0x1ef))/0x6*(-parseInt(o(0x1e5))/0x7)+parseInt(o(0x209))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0xdf4f8));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x20c)]()[q(0x213)](q(0x204))[q(0x20c)]()[q(0x21a)](a65a)[q(0x213)](q(0x204));});a65a();import a65e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a65c(){const u=['injectAtBeginningOfFile','create','ssr','installNpmPackage','react','5209892bCLMMh','dir','split','.app-tests.js','Scaffolding\x20for\x20a\x20React\x20Layout.','lib','.js','getProjectConfig','engines','ramda','(((.+)+)+)+$','rewriteDestinationPathForEngine','withValue','import\x20\x27','fileName','37693656OolgQM','import\x20\x27./','template','toString','2868372tKFubl','\x27;\x0a','8782305ugkOfM','css','true','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','search','injectAtEndOfFile','tsx','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','template/template.css','withHooks','none','constructor','maka\x20g:l\x20web/safari','withHook','assign','503486oqQYyF','warn','features','hook/hook.js','export\x20{\x20','import\x20{\x20','test','api','fsi','imports','string','startup','apply','2795247RRrqMd','\x20}\x20from\x20\x27','className','maka\x20g:layout\x20mobile/iPhone8','resourceName','relative','templates.js','pathFromApp','365609DuPuEq','layout','6xLNPID','test/test.js','setTemplate','pathFromProject','checkNpmPackage','client'];a65c=function(){return u;};return a65c();}import{camelCase,paramCase,pascalCase}from'change-case';function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a65d(a,b);}const aliases=['l'];Generator[a65r(0x1f6)]({'name':a65r(0x1ee),'aliases':aliases,'usage':a65r(0x212),'shortDesc':a65r(0x1fe),'validOpts':[],'examples':[a65r(0x1e8),a65r(0x21b)]},function(a,b){const s=a65r,c='/imports/ui/layouts',d=this[s(0x1e0)]['findAppDirectory'](),e=this[s(0x1e0)][s(0x1ec)]({'pathParts':[c,b[s(0x1fb)],paramCase(b[s(0x1e9)]),paramCase(b[s(0x1e9)])]}),f=this['fsi'][s(0x201)]();this[s(0x1e0)][s(0x206)](f,()=>{const t=s;typeof f[t(0x20b)][t(0x1de)]===t(0x1e2)&&(f[t(0x20b)][t(0x1de)]=f[t(0x20b)][t(0x1de)]===t(0x211)?!![]:![],this[t(0x1e0)]['setTemplate'](t(0x1de),f[t(0x20b)]['test']));typeof f[t(0x20b)][t(0x210)]===t(0x1e2)&&(f['template'][t(0x210)]=f['template'][t(0x210)]===t(0x211)?!![]:![],this[t(0x1e0)][t(0x1f1)](t(0x210),f[t(0x20b)][t(0x210)]));typeof f['template']['js']===t(0x1e2)&&(f[t(0x20b)]['js']=f[t(0x20b)]['js']===t(0x211)?!![]:![],this[t(0x1e0)][t(0x1f1)]('js',f[t(0x20b)]['js']));!f[t(0x220)]&&(f[t(0x220)]={});const g=b['_']?b['_'][0x0][t(0x1fc)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x1f3)](t(0x203))&&(Log[t(0x21f)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x1e0)][t(0x1f8)]('ramda',{'cwd':d}));if(h&&!this[t(0x1f3)]('react')){Log[t(0x21f)](t(0x216));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a65e[t(0x1ea)](this[t(0x1e0)][t(0x1f2)]({}),e),'cssCaseName':paramCase(b[t(0x1e9)]),'className':pascalCase(b[t(0x1e9)]),'camelCaseName':camelCase(b[t(0x1e9)]),'fileName':paramCase(b[t(0x1e9)]),'graphql':f[t(0x202)]['graphql'],'features':f['features'],'client':f[t(0x202)][t(0x1f4)],'api':f[t(0x202)][t(0x1df)],'ssr':f[t(0x202)][t(0x1f7)],'test':f[t(0x202)][t(0x1de)],'theme':f[t(0x202)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x220)]['withTranslations']};f[t(0x220)]?.[t(0x218)]||b[t(0x21c)]?this[t(0x1e0)]['template']({'srcPath':t(0x221),'destPath':e+t(0x200),'framework':t(0x1f9),'context':i,'config':f}):this[t(0x1e0)]['template']({'srcPath':'component/component.js','destPath':e+t(0x200),'framework':t(0x1f9),'context':i,'config':f});f['engines'][t(0x1de)]!==t(0x219)&&this[t(0x1e0)][t(0x20b)]({'srcPath':t(0x1f0),'destPath':e+t(0x1fd),'framework':t(0x1f9),'context':i,'config':f});f['template'][t(0x210)]&&(this[t(0x1e0)][t(0x20b)]({'srcPath':t(0x217),'destPath':e+'.css','context':Object[t(0x21d)]({},i,{'className':paramCase(b[t(0x1e9)])}),'config':f}),this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x202)]['js'],'content':t(0x20a)+i[t(0x208)]+'.'+f[t(0x202)]['css']+'\x27;'}));const j=b[t(0x1fb)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x208)]+'/'+i[t(0x208)];let l;if(f[t(0x202)][t(0x1f7)]===t(0x211)){const m=this[t(0x1e0)][t(0x1ec)]({'pathParts':[t(0x1e1),t(0x1e3),t(0x1ff),t(0x1eb)]});l=this[t(0x1e0)][t(0x205)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1e0)][t(0x1ec)]({'pathParts':['imports','startup','client','templates.js']});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f['engines'][t(0x1f4)]===t(0x1f9)?(f[t(0x202)]['js']===t(0x215)?this[t(0x1e0)][t(0x1f5)]({'filePath':l,'content':t(0x1dd)+i[t(0x1e7)]+t(0x1e6)+k+t(0x20e)}):this[t(0x1e0)][t(0x1f5)]({'filePath':l,'content':t(0x1dd)+i[t(0x1e7)]+t(0x1e6)+k+'.'+f[t(0x202)]['js']+t(0x20e)}),this[t(0x1e0)][t(0x214)]({'filePath':l,'content':t(0x222)+i[t(0x1e7)]+'\x20};\x0a'})):this[t(0x1e0)]['injectAtEndOfFile']({'filePath':l,'content':t(0x207)+k+'.'+f['engines']['js']+t(0x20e)});});});
@@ -1 +1 @@
1
- const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=-parseInt(f(0xc2))/0x1+parseInt(f(0xbe))/0x2+-parseInt(f(0xbb))/0x3+-parseInt(f(0xb9))/0x4+parseInt(f(0xbc))/0x5*(parseInt(f(0xc7))/0x6)+-parseInt(f(0xba))/0x7*(parseInt(f(0xbd))/0x8)+parseInt(f(0xb7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x1d5d0));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0xb8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0xc4)]()['search'](h(0xc0))[h(0xc4)]()[h(0xc8)](a66a)[h(0xc3)](h(0xc0));});a66a();function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0xb6;let f=c[d];return f;},a66d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a66i(0xbf),'shortDesc':a66i(0xc5),'validOpts':[],'description':a66i(0xb6),'usage':a66i(0xc6),'examples':['maka\x20generate:api\x20Trucks',a66i(0xc1)]},function(){return null;});function a66c(){const j=['141417pmXoDO','search','toString','Maka!','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','21786CCRhaN','constructor','\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','4933395voUFaL','apply','104736XiwoGY','36491uMJTua','423336ykBqvt','5XKdQGZ','192kCLmNx','4622HBOIFa','maka','(((.+)+)+)+$','maka\x20g:hook\x20cool-hook'];a66c=function(){return j;};return a66c();}export default MakaGen;
1
+ const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=parseInt(f(0x16f))/0x1+parseInt(f(0x168))/0x2*(-parseInt(f(0x16b))/0x3)+parseInt(f(0x173))/0x4*(-parseInt(f(0x175))/0x5)+parseInt(f(0x16e))/0x6*(-parseInt(f(0x170))/0x7)+parseInt(f(0x171))/0x8*(parseInt(f(0x169))/0x9)+-parseInt(f(0x16c))/0xa+-parseInt(f(0x16a))/0xb*(-parseInt(f(0x177))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0xb220e));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0x164)]()[h(0x165)](h(0x176))[h(0x164)]()['constructor'](a66a)[h(0x165)](h(0x176));});function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x164;let f=c[d];return f;},a66d(a,b);}a66a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a66i(0x16d),'shortDesc':a66i(0x167),'validOpts':[],'description':a66i(0x172),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':[a66i(0x166),a66i(0x178)]},function(){return null;});function a66c(){const j=['toString','search','maka\x20generate:api\x20Trucks','Maka!','2458TyVuHh','6817743ZTJOKo','34199BWVats','1998tdtEmA','1526870XESpIK','maka','8766BLUaxy','1077523lYPLnl','3325hGiUoB','8zteAVz','\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','524RRznbh','apply','50665XRGlgP','(((.+)+)+)+$','7284TeOGNx','maka\x20g:hook\x20cool-hook'];a66c=function(){return j;};return a66c();}export default MakaGen;
@@ -1 +1 @@
1
- const a67m=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0x8a))/0x1+-parseInt(k(0x76))/0x2*(-parseInt(k(0x8d))/0x3)+-parseInt(k(0x7e))/0x4+-parseInt(k(0x7f))/0x5+parseInt(k(0x94))/0x6+parseInt(k(0x82))/0x7*(parseInt(k(0x72))/0x8)+-parseInt(k(0x89))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xd2b35));const a67b=(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;};}()),a67a=a67b(this,function(){const l=a67d;return a67a[l(0x77)]()['search'](l(0x87))['toString']()[l(0x70)](a67a)[l(0x78)](l(0x87));});a67a();import{Generator}from'../generator.js';function a67c(){const p=['toString','search','imports','check','method/method.js','maka\x20g:method\x20todos','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','4081512lPWHIg','106780ctGgip','getProjectConfig','methods','17857GMXJOL','tsx','pathFromApp','check\x20ddp-rate-limiter\x20mdg:validated-method','import\x20\x27./methods','(((.+)+)+)+$','fsi','3345093XaHkFV','31067oDQxSo','create','dir','1572FhJwFU','ddp-rate-limiter','-rpc-method\x27;','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','template','index.','appPathPrefix','5765844DtHZrg','checkMeteorPackage','installMeteorPackage','resourceName','startup','maka\x20{generate,\x20g}:{method,\x20m}\x20name','engines','constructor','warn','3272BPccam','injectAtEndOfFile','mdg:validated-method','withValue','920vrmDSL'];a67c=function(){return p;};return a67c();}function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x6a;let f=c[d];return f;},a67d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67m(0x8b)]({'name':'method','aliases':['m'],'usage':a67m(0x6e),'checkWhere':!![],'shortDesc':a67m(0x90),'validOpts':[a67m(0x8c)],'examples':[a67m(0x7c)]},function(a,b){const n=a67m;try{const c=this[n(0x88)][n(0x80)]();this[n(0x88)][n(0x75)](c,async()=>{const o=n,d=paramCase(b[o(0x6c)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x6c)]),'noRename':!![]};let g='js';c[o(0x6f)]['js']===o(0x83)&&(g='ts');const h=this[o(0x88)]['pathFromApp']({});(!this[o(0x88)]['checkMeteorPackage'](o(0x7a))||!this[o(0x88)]['checkMeteorPackage'](o(0x8e))||!this[o(0x88)][o(0x6a)](o(0x74)))&&(Log[o(0x71)](o(0x7d)),this[o(0x88)][o(0x6b)](o(0x85),{'cwd':h}));this[o(0x88)][o(0x91)]({'srcPath':o(0x7b),'destPath':this[o(0x88)][o(0x84)]({'pathParts':[o(0x79),o(0x6d),b['appPathPrefix'],o(0x81),b['dir'],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[o(0x8c)]?'/'+b[o(0x8c)]+'/':'/',j=this[o(0x88)]['pathFromApp']({'pathParts':['imports',o(0x6d),b[o(0x93)],o(0x92)+c[o(0x6f)]['js']]});this[o(0x88)][o(0x73)]({'filePath':j,'content':o(0x86)+i+d+o(0x8f)});});}catch(d){Log['error'](d);}});
1
+ function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x193;let f=c[d];return f;},a67d(a,b);}const a67n=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0x1a3))/0x1*(parseInt(k(0x1af))/0x2)+-parseInt(k(0x1ac))/0x3*(parseInt(k(0x193))/0x4)+-parseInt(k(0x1b0))/0x5+-parseInt(k(0x1b7))/0x6*(-parseInt(k(0x19a))/0x7)+parseInt(k(0x1a0))/0x8*(-parseInt(k(0x1aa))/0x9)+-parseInt(k(0x1a2))/0xa*(-parseInt(k(0x19c))/0xb)+-parseInt(k(0x195))/0xc*(-parseInt(k(0x1b9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x79f55));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a67d;if(c){const e=c[l(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const m=a67d;return a67a[m(0x199)]()['search'](m(0x1b5))['toString']()[m(0x19b)](a67a)[m(0x196)]('(((.+)+)+)+$');});a67a();import{Generator}from'../generator.js';function a67c(){const q=['engines','99dvvMWL','installMeteorPackage','4248iBzuUD','fsi','checkMeteorPackage','357764XLqpOO','1904245iHywgv','template','imports','check\x20ddp-rate-limiter\x20mdg:validated-method','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','(((.+)+)+)+$','create','1290036bOnUPL','check','26pJBxWs','maka\x20g:method\x20todos','dir','method/method.js','maka\x20{generate,\x20g}:{method,\x20m}\x20name','988dRauoX','appPathPrefix','237180CibxJb','search','resourceName','index.','toString','28StKwPG','constructor','11kNhaar','apply','-rpc-method.','ddp-rate-limiter','231032oiRtiR','pathFromApp','4693750dxKPsk','1IBVulp','import\x20\x27./methods','tsx','startup','getProjectConfig','withValue'];a67c=function(){return q;};return a67c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0x1b6)]({'name':'method','aliases':['m'],'usage':a67n(0x1bd),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':['dir'],'examples':[a67n(0x1ba)]},function(a,b){const o=a67n;try{const c=this[o(0x1ad)][o(0x1a7)]();this[o(0x1ad)][o(0x1a8)](c,async()=>{const p=o,d=paramCase(b[p(0x197)]),f={'name':b[p(0x197)],'fileName':d,'className':pascalCase(b[p(0x197)]),'camelCase':camelCase(b[p(0x197)]),'noRename':!![]};let g='js';c[p(0x1a9)]['js']===p(0x1a5)&&(g='ts');const h=this['fsi'][p(0x1a1)]({});(!this[p(0x1ad)][p(0x1ae)](p(0x1b8))||!this['fsi'][p(0x1ae)](p(0x19f))||!this['fsi']['checkMeteorPackage']('mdg:validated-method'))&&(Log['warn'](p(0x1b4)),this['fsi'][p(0x1ab)](p(0x1b3),{'cwd':h}));this[p(0x1ad)][p(0x1b1)]({'srcPath':p(0x1bc),'destPath':this[p(0x1ad)][p(0x1a1)]({'pathParts':[p(0x1b2),p(0x1a6),b[p(0x194)],'methods',b[p(0x1bb)],d+p(0x19e)+g]}),'context':f,'config':c});const i=b[p(0x1bb)]?'/'+b['dir']+'/':'/',j=this[p(0x1ad)][p(0x1a1)]({'pathParts':['imports',p(0x1a6),b[p(0x194)],p(0x198)+c['engines']['js']]});this[p(0x1ad)]['injectAtEndOfFile']({'filePath':j,'content':p(0x1a4)+i+d+'-rpc-method\x27;'});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a68o=a68d;function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0xd0;let f=c[d];return f;},a68d(a,b);}(function(a,b){const l=a68d,c=a();while(!![]){try{const d=-parseInt(l(0xf0))/0x1+parseInt(l(0xe3))/0x2+-parseInt(l(0xed))/0x3*(parseInt(l(0xef))/0x4)+-parseInt(l(0xe0))/0x5*(-parseInt(l(0xde))/0x6)+-parseInt(l(0xf2))/0x7*(parseInt(l(0xd3))/0x8)+-parseInt(l(0xe7))/0x9+parseInt(l(0xe4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x4a304));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a[n(0xf7)]()[n(0xd1)](n(0xfc))[n(0xf7)]()[n(0xe5)](a68a)['search']('(((.+)+)+)+$');});a68a();import a68e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68o(0xf1)]({'name':a68o(0xea),'aliases':['p'],'usage':a68o(0xdf),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':[a68o(0xd0)]},async function(a,b){const p=a68o,c=paramCase(b[p(0xe2)]),d=this[p(0xdd)][p(0xee)]({'pathParts':['packages',b[p(0xfb)],c]}),e=this['fsi']['pathFromAppWithNoReWrite']({'pathParts':[p(0xf4),b[p(0xfb)],c,p(0xf6)]}),f=this[p(0xdd)][p(0xe9)]();this[p(0xdd)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0xe2)]),'myPath':a68e[q(0xda)](this[q(0xdd)][q(0xf5)]({}),d),'cssCaseName':paramCase(b[q(0xe2)]),'className':pascalCase(b[q(0xe2)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0xf8)][q(0xfa)],'graphql':f[q(0xf8)][q(0xf9)],'ssr':f[q(0xf8)][q(0xdc)],'isComponent':b[q(0xd2)](q(0xd5)),'isLayout':b['hasOwnProperty'](q(0xd4)),'isStore':b['hasOwnProperty'](q(0xdb)),'features':f[q(0xd8)],'noRename':!![],'theme':f['engines']['theme']};this[q(0xdd)][q(0xd7)]({'srcPath':q(0xf3),'destPath':e,'context':g,'config':f}),g[q(0xe1)]=![];const h=d+q(0xd6)+c+q(0xe6);this[q(0xdd)][q(0xd7)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0xe8),'server','tests/client',q(0xd9)];i[q(0xeb)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xe6);this[r(0xdd)][r(0xd7)]({'srcPath':'package/'+j+'/package.js','destPath':k,'context':g,'config':f});});});});function a68c(){const s=['ssr','fsi','6hdmPFP','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','422945YlGAfO','noRename','resourceName','795264PEdAKQ','15651920KTKzpG','constructor','.js','5321583lIvVDA','lib','getProjectConfig','package','forEach','apply','3dfOyJn','pathFromApp','1747964ttnYUZ','528493VdRRLH','create','653681RCEIda','package/package.js','packages','pathFromProject','package.js','toString','engines','graphql','client','dir','(((.+)+)+)+$','maka\x20g:package\x20todos:package','search','hasOwnProperty','16NhdDdB','layout','component','/client/','template','features','tests/server','relative','store'];a68c=function(){return s;};return a68c();}
1
+ const a68o=a68d;function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x10e;let f=c[d];return f;},a68d(a,b);}(function(a,b){const l=a68d,c=a();while(!![]){try{const d=-parseInt(l(0x133))/0x1*(-parseInt(l(0x129))/0x2)+-parseInt(l(0x122))/0x3+parseInt(l(0x12d))/0x4*(-parseInt(l(0x13e))/0x5)+parseInt(l(0x13a))/0x6*(-parseInt(l(0x11a))/0x7)+parseInt(l(0x10e))/0x8*(-parseInt(l(0x135))/0x9)+parseInt(l(0x115))/0xa*(parseInt(l(0x13d))/0xb)+parseInt(l(0x11c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x95785));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a[n(0x114)]()[n(0x119)](n(0x127))[n(0x114)]()[n(0x139)](a68a)[n(0x119)](n(0x127));});a68a();function a68c(){const s=['engines','constructor','4974qDtGFZ','hasOwnProperty','apply','11jMjEAK','5XMcZEn','472PUEBiq','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','resourceName','store','.js','relative','toString','4803790qRXIlH','layout','package/','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','search','2366hwFYQs','package.js','13995168UwpQRg','graphql','theme','maka\x20g:package\x20todos:package','create','noRename','2429607STYJgV','client','dir','/client/','fsi','(((.+)+)+)+$','package','2dEFxIi','package/package.js','getProjectConfig','template','539980RaHGnV','forEach','component','packages','ssr','lib','812453xcjxIJ','server','94851ehXgtx','template/template.js','pathFromApp'];a68c=function(){return s;};return a68c();}import a68e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68o(0x120)]({'name':a68o(0x128),'aliases':['p'],'usage':a68o(0x10f),'shortDesc':a68o(0x118),'validOpts':[a68o(0x124)],'examples':[a68o(0x11f)]},async function(a,b){const p=a68o,c=paramCase(b[p(0x110)]),d=this[p(0x126)][p(0x137)]({'pathParts':[p(0x130),b[p(0x124)],c]}),e=this[p(0x126)]['pathFromAppWithNoReWrite']({'pathParts':['packages',b[p(0x124)],c,p(0x11b)]}),f=this['fsi'][p(0x12b)]();this['fsi']['withValue'](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a68e[q(0x113)](this[q(0x126)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x110)]),'className':pascalCase(b[q(0x110)]),'camelCaseName':camelCase(b[q(0x110)]),'fileName':c,'client':f[q(0x138)][q(0x123)],'graphql':f['engines'][q(0x11d)],'ssr':f[q(0x138)][q(0x131)],'isComponent':b[q(0x13b)](q(0x12f)),'isLayout':b['hasOwnProperty'](q(0x116)),'isStore':b[q(0x13b)](q(0x111)),'features':f['features'],'noRename':!![],'theme':f[q(0x138)][q(0x11e)]};this[q(0x126)][q(0x12c)]({'srcPath':q(0x12a),'destPath':e,'context':g,'config':f}),g[q(0x121)]=![];const h=d+q(0x125)+c+q(0x112);this[q(0x126)][q(0x12c)]({'srcPath':q(0x136),'destPath':h,'context':g,'config':f});const i=[q(0x132),q(0x134),'tests/client','tests/server'];i[q(0x12e)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this['fsi'][r(0x12c)]({'srcPath':r(0x117)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a69p=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=-parseInt(m(0x18b))/0x1+-parseInt(m(0x18a))/0x2*(parseInt(m(0x178))/0x3)+-parseInt(m(0x168))/0x4*(parseInt(m(0x177))/0x5)+-parseInt(m(0x172))/0x6+parseInt(m(0x151))/0x7*(parseInt(m(0x17b))/0x8)+parseInt(m(0x154))/0x9+parseInt(m(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x39fd0));function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x14b;let f=c[d];return f;},a69d(a,b);}const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a69d;if(c){const e=c[n(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const o=a69d;return a69a['toString']()[o(0x152)]('(((.+)+)+)+$')[o(0x173)]()[o(0x198)](a69a)[o(0x152)](o(0x167));});a69a();import a69e from'path';import{Generator}from'../generator.js';function a69c(){const s=['graphql','1678074IOophd','toString','withHook','test/test.js','hook/hook.js','5onSNwA','48DZTgKb','page','installNpmPackage','24zlskCa','component/component.js','maka\x20g:page\x20todos/todos-item','create','template','injectAtBeginningOfFile','engines','rewriteDestinationPathForEngine','css','Updating\x20npm\x20packages\x20...','fileName','lib','templates.js','react','.js','27406pJgvOy','133582KnsAbl','component','\x27;\x0a','theme','vanilla','import\x20\x27./','getProjectConfig','Generate\x20a\x20page.','store','withValue','import\x20{\x20','startup','setTemplate','constructor','client','assign','import\x20\x27','\x20}\x20from\x20\x27','export\x20{\x20','withHooks','811118ERwTUt','search','test','1119375BCogNP','true','warn','\x20};\x0a','/imports/ui/pages','tsx','resourceName','.app-tests.js','layout','none','imports','fsi','ramda','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','pathFromApp','apply','features','hasOwnProperty','relative','(((.+)+)+)+$','1004140jcsoBo','injectAtEndOfFile','className','ssr','string','html','dir','template/template.css','6490670QBEfTD'];a69c=function(){return s;};return a69c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a69p(0x17e)]({'name':a69p(0x179),'aliases':aliases,'usage':a69p(0x161),'shortDesc':a69p(0x192),'validOpts':[a69p(0x16e),a69p(0x174)],'examples':[a69p(0x17d)]},function(a,b){const q=a69p,c=q(0x158),d=this['fsi']['pathFromApp'](b),e=this[q(0x15f)]['pathFromApp']({'pathParts':[c,b[q(0x16e)],paramCase(b[q(0x15a)]),paramCase(b[q(0x15a)])]}),f=this[q(0x15f)][q(0x191)]();this[q(0x15f)][q(0x194)](f,()=>{const r=q;typeof f[r(0x17f)]['html']===r(0x16c)&&(f['template'][r(0x16d)]=f[r(0x17f)][r(0x16d)]===r(0x155)?!![]:![],this[r(0x15f)][r(0x197)]('html',f[r(0x17f)][r(0x16d)]));typeof f[r(0x17f)][r(0x153)]==='string'&&(f[r(0x17f)][r(0x153)]=f['template'][r(0x153)]===r(0x155)?!![]:![],this[r(0x15f)][r(0x197)](r(0x153),f[r(0x17f)]['test']));typeof f[r(0x17f)][r(0x183)]==='string'&&(f[r(0x17f)][r(0x183)]=f['template']['css']===r(0x155)?!![]:![],this['fsi']['setTemplate'](r(0x183),f['template']['css']));typeof f[r(0x17f)]['js']===r(0x16c)&&(f['template']['js']=f[r(0x17f)]['js']===r(0x155)?!![]:![],this[r(0x15f)][r(0x197)]('js',f[r(0x17f)]['js']));!f[r(0x164)]&&(f['features']={});!b['root']&&!this[r(0x15f)]['checkNpmPackage'](r(0x160))&&(Log[r(0x156)](r(0x184)),this[r(0x15f)][r(0x17a)](r(0x160),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a69e[r(0x166)](this[r(0x15f)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[r(0x15a)]),'className':pascalCase(b[r(0x15a)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x15a)]),'graphql':f['engines'][r(0x171)],'features':f[r(0x164)],'client':f[r(0x181)]['client'],'api':f[r(0x181)]['api'],'ssr':f[r(0x181)][r(0x16b)],'isStore':b[r(0x165)](r(0x193)),'isComponent':b[r(0x165)](r(0x18c)),'isLayout':b['hasOwnProperty'](r(0x15c)),'withTranslations':f['features']['withTranslations'],'test':f[r(0x181)]['test'],'theme':f[r(0x181)][r(0x18e)]};f[r(0x17f)][r(0x16d)]&&this[r(0x15f)][r(0x17f)]({'srcPath':'template/template.html','destPath':e+'.html','context':g,'config':f});f[r(0x164)]?.[r(0x150)]||b[r(0x174)]?this[r(0x15f)][r(0x17f)]({'srcPath':r(0x176),'destPath':e+r(0x189),'framework':'react','context':g,'config':f}):this[r(0x15f)][r(0x17f)]({'srcPath':r(0x17c),'destPath':e+'.js','framework':r(0x188),'context':g,'config':f});f[r(0x181)]['test']!==r(0x15d)&&this[r(0x15f)][r(0x17f)]({'srcPath':r(0x175),'destPath':e+r(0x15b),'framework':'react','context':g,'config':f});f[r(0x17f)][r(0x183)]&&this[r(0x15f)][r(0x17f)]({'srcPath':r(0x16f),'destPath':e+'.css','context':Object[r(0x14c)]({},g,{'className':paramCase(b[r(0x15a)])}),'config':f});f['engines'][r(0x14b)]!=='react'&&f['engines'][r(0x14b)]!==r(0x18f)?(f[r(0x17f)][r(0x183)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x181)]['js'],'content':r(0x190)+g[r(0x185)]+'.'+f[r(0x181)][r(0x16d)]+r(0x18d)+r(0x190)+g[r(0x185)]+'.'+f[r(0x181)][r(0x183)]+'\x27;'}),!f[r(0x17f)]['css']&&this[r(0x15f)][r(0x180)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x190)+g[r(0x185)]+'.'+f['engines'][r(0x16d)]+'\x27;'})):f[r(0x17f)]['css']&&this[r(0x15f)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x181)]['js'],'content':r(0x190)+g[r(0x185)]+'.'+f['engines'][r(0x183)]+'\x27;'});const h=b['dir']?'/'+b['dir']+'/':'/',i=''+c+h+g[r(0x185)]+'/'+g['fileName'];let j;if(f[r(0x181)][r(0x16b)]===r(0x155)){const k=this[r(0x15f)][r(0x162)]({'pathParts':[r(0x15e),r(0x196),r(0x186),r(0x187)]});j=this[r(0x15f)][r(0x182)]({'pathParts':[k],'config':f});}else{const l=this[r(0x15f)][r(0x162)]({'pathParts':[r(0x15e),r(0x196),'client',r(0x187)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x181)]['client']===r(0x188)?(f[r(0x181)]['js']===r(0x159)?this[r(0x15f)][r(0x180)]({'filePath':j,'content':r(0x195)+g['className']+r(0x14e)+i+r(0x18d)}):this[r(0x15f)][r(0x180)]({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x14e)+i+'.'+f['engines']['js']+'\x27;\x0a'}),this[r(0x15f)][r(0x169)]({'filePath':j,'content':r(0x14f)+g[r(0x16a)]+r(0x157)})):this[r(0x15f)][r(0x169)]({'filePath':j,'content':r(0x14d)+i+'.'+f[r(0x181)]['js']+r(0x18d)});});});
1
+ function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x11b;let f=c[d];return f;},a69d(a,b);}const a69o=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=parseInt(m(0x146))/0x1*(parseInt(m(0x14c))/0x2)+parseInt(m(0x16b))/0x3*(parseInt(m(0x138))/0x4)+parseInt(m(0x121))/0x5+-parseInt(m(0x14b))/0x6*(parseInt(m(0x168))/0x7)+parseInt(m(0x12b))/0x8*(parseInt(m(0x169))/0x9)+parseInt(m(0x165))/0xa+-parseInt(m(0x159))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x1a340));function a69c(){const r=['import\x20\x27./','10146yDwfha','pathFromApp','lib','store','withTranslations','startup','test','675900iXiQYG','test/test.js','string','hook/hook.js','client','/imports/ui/pages','\x27;\x0a','component','maka\x20g:page\x20todos/todos-item','templates.js','38168fGjBST','Updating\x20npm\x20packages\x20...','imports','setTemplate','getProjectConfig','withHooks','tsx','fsi','template/template.css','toString','installNpmPackage','dir','vanilla','16BCXkjb','constructor','template','component/component.js','css','react','import\x20{\x20','search','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','ssr','hasOwnProperty','.html','engines','create','82728ddoRLh','injectAtBeginningOfFile','resourceName','checkNpmPackage','className','18RMJRAI','2LEFHbO','pathFromProject','withValue','ramda','.js','Generate\x20a\x20page.','theme','\x20}\x20from\x20\x27','injectAtEndOfFile','.app-tests.js','withHook','graphql','.css','1341197aWMPrE','features','fileName','relative','rewriteDestinationPathForEngine','assign','warn','template/template.html','html','export\x20{\x20','true','api','301340stgnXO','\x20};\x0a','page','286916uIjiSR','171zFsPqb'];a69c=function(){return r;};return a69c();}const a69b=(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;};}()),a69a=a69b(this,function(){const n=a69d;return a69a['toString']()['search']('(((.+)+)+)+$')[n(0x134)]()[n(0x139)](a69a)[n(0x13f)]('(((.+)+)+)+$');});a69a();import a69e 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[a69o(0x145)]({'name':a69o(0x167),'aliases':aliases,'usage':a69o(0x140),'shortDesc':a69o(0x151),'validOpts':[a69o(0x136),'withHook'],'examples':[a69o(0x129)]},function(a,b){const p=a69o,c=p(0x126),d=this[p(0x132)][p(0x11b)](b),e=this['fsi']['pathFromApp']({'pathParts':[c,b[p(0x136)],paramCase(b[p(0x148)]),paramCase(b[p(0x148)])]}),f=this['fsi'][p(0x12f)]();this[p(0x132)][p(0x14e)](f,()=>{const q=p;typeof f[q(0x13a)][q(0x161)]==='string'&&(f[q(0x13a)][q(0x161)]=f['template']['html']===q(0x163)?!![]:![],this[q(0x132)][q(0x12e)](q(0x161),f[q(0x13a)][q(0x161)]));typeof f[q(0x13a)][q(0x120)]===q(0x123)&&(f['template']['test']=f[q(0x13a)][q(0x120)]===q(0x163)?!![]:![],this['fsi']['setTemplate']('test',f['template'][q(0x120)]));typeof f[q(0x13a)]['css']==='string'&&(f['template'][q(0x13c)]=f[q(0x13a)][q(0x13c)]===q(0x163)?!![]:![],this[q(0x132)]['setTemplate']('css',f[q(0x13a)][q(0x13c)]));typeof f[q(0x13a)]['js']===q(0x123)&&(f['template']['js']=f[q(0x13a)]['js']===q(0x163)?!![]:![],this[q(0x132)][q(0x12e)]('js',f[q(0x13a)]['js']));!f['features']&&(f[q(0x15a)]={});!b['root']&&!this[q(0x132)][q(0x149)](q(0x14f))&&(Log[q(0x15f)](q(0x12c)),this[q(0x132)][q(0x135)](q(0x14f),{'cwd':d}));const g={'name':pascalCase(b[q(0x148)]),'myPath':a69e[q(0x15c)](this['fsi'][q(0x14d)]({}),e),'cssCaseName':paramCase(b[q(0x148)]),'className':pascalCase(b[q(0x148)]),'camelCaseName':camelCase(b[q(0x148)]),'fileName':paramCase(b['resourceName']),'graphql':f[q(0x144)][q(0x157)],'features':f['features'],'client':f[q(0x144)]['client'],'api':f[q(0x144)][q(0x164)],'ssr':f[q(0x144)][q(0x141)],'isStore':b['hasOwnProperty'](q(0x11d)),'isComponent':b[q(0x142)](q(0x128)),'isLayout':b['hasOwnProperty']('layout'),'withTranslations':f['features'][q(0x11e)],'test':f[q(0x144)][q(0x120)],'theme':f[q(0x144)][q(0x152)]};f[q(0x13a)]['html']&&this[q(0x132)]['template']({'srcPath':q(0x160),'destPath':e+q(0x143),'context':g,'config':f});f[q(0x15a)]?.[q(0x130)]||b[q(0x156)]?this[q(0x132)][q(0x13a)]({'srcPath':q(0x124),'destPath':e+q(0x150),'framework':'react','context':g,'config':f}):this[q(0x132)][q(0x13a)]({'srcPath':q(0x13b),'destPath':e+q(0x150),'framework':q(0x13d),'context':g,'config':f});f['engines'][q(0x120)]!=='none'&&this[q(0x132)]['template']({'srcPath':q(0x122),'destPath':e+q(0x155),'framework':q(0x13d),'context':g,'config':f});f[q(0x13a)][q(0x13c)]&&this[q(0x132)]['template']({'srcPath':q(0x133),'destPath':e+q(0x158),'context':Object[q(0x15e)]({},g,{'className':paramCase(b[q(0x148)])}),'config':f});f['engines'][q(0x125)]!==q(0x13d)&&f[q(0x144)][q(0x125)]!==q(0x137)?(f[q(0x13a)][q(0x13c)]&&this[q(0x132)][q(0x147)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[q(0x15b)]+'.'+f[q(0x144)][q(0x161)]+'\x27;\x0a'+'import\x20\x27./'+g[q(0x15b)]+'.'+f[q(0x144)][q(0x13c)]+'\x27;'}),!f[q(0x13a)][q(0x13c)]&&this[q(0x132)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x144)]['js'],'content':q(0x16a)+g[q(0x15b)]+'.'+f[q(0x144)][q(0x161)]+'\x27;'})):f[q(0x13a)][q(0x13c)]&&this[q(0x132)]['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':q(0x16a)+g[q(0x15b)]+'.'+f['engines'][q(0x13c)]+'\x27;'});const h=b[q(0x136)]?'/'+b['dir']+'/':'/',i=''+c+h+g[q(0x15b)]+'/'+g[q(0x15b)];let j;if(f[q(0x144)][q(0x141)]===q(0x163)){const k=this[q(0x132)][q(0x11b)]({'pathParts':[q(0x12d),q(0x11f),q(0x11c),q(0x12a)]});j=this[q(0x132)][q(0x15d)]({'pathParts':[k],'config':f});}else{const l=this[q(0x132)]['pathFromApp']({'pathParts':[q(0x12d),'startup',q(0x125),'templates.js']});j=this[q(0x132)][q(0x15d)]({'pathParts':[l],'config':f});}f[q(0x144)]['client']===q(0x13d)?(f[q(0x144)]['js']===q(0x131)?this[q(0x132)][q(0x147)]({'filePath':j,'content':q(0x13e)+g[q(0x14a)]+q(0x153)+i+q(0x127)}):this[q(0x132)][q(0x147)]({'filePath':j,'content':'import\x20{\x20'+g[q(0x14a)]+q(0x153)+i+'.'+f[q(0x144)]['js']+q(0x127)}),this['fsi'][q(0x154)]({'filePath':j,'content':q(0x162)+g[q(0x14a)]+q(0x166)})):this['fsi'][q(0x154)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f['engines']['js']+q(0x127)});});});
@@ -1 +1 @@
1
- const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=parseInt(h(0x1ea))/0x1+parseInt(h(0x1d6))/0x2*(-parseInt(h(0x1ec))/0x3)+parseInt(h(0x1db))/0x4+-parseInt(h(0x1df))/0x5+-parseInt(h(0x1e9))/0x6*(-parseInt(h(0x1e2))/0x7)+parseInt(h(0x1ed))/0x8*(-parseInt(h(0x1e8))/0x9)+parseInt(h(0x1e0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x48d13));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x1e3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a['toString']()[j(0x1e5)]('(((.+)+)+)+$')['toString']()[j(0x1d8)](a70a)['search'](j(0x1e1));});function a70c(){const n=['fsi','constructor','engines','withValue','1976548HMGlDW','publish/publish.','publish','templateContent','2610160rKVxJf','3700510UYjosF','(((.+)+)+)+$','35YpjNBu','apply','server/publish.','search','resourceName','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','4189347BEyEZF','359574ncQpWk','269780VTrWkP','injectAtEndOfFile','1767iTemUJ','8HqwIiK','502rfuGEl'];a70c=function(){return n;};return a70c();}a70a();import{paramCase}from'change-case';function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a70d(a,b);}import{Generator}from'../generator.js';Generator['create']({'name':a70k(0x1dd),'aliases':['p'],'usage':a70k(0x1e7),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a70k,c=this['fsi']['getProjectConfig']();this[l(0x1d7)][l(0x1da)](c,async()=>{const m=l,d={'name':b[m(0x1e6)],'collection':paramCase(b[m(0x1e6)]),'noRename':!![]};let e='js';c[m(0x1d9)]['js']==='tsx'&&(e='ts');const f=this[m(0x1d7)]['rewriteDestinationPathForEngine']({'pathParts':[m(0x1e4)+c[m(0x1d9)]['js']]}),g=this[m(0x1d7)][m(0x1de)]({'srcPath':m(0x1dc)+e,'context':d,'config':c});this[m(0x1d7)][m(0x1eb)]({'filePath':f,'content':'\x0a'+g});});});
1
+ const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=-parseInt(h(0x192))/0x1+parseInt(h(0x182))/0x2+-parseInt(h(0x189))/0x3+-parseInt(h(0x184))/0x4*(-parseInt(h(0x17d))/0x5)+parseInt(h(0x18f))/0x6+parseInt(h(0x186))/0x7*(parseInt(h(0x188))/0x8)+parseInt(h(0x190))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xb0cbd));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a[j(0x18e)]()['search'](j(0x193))[j(0x18e)]()[j(0x18b)](a70a)[j(0x191)]('(((.+)+)+)+$');});a70a();function a70c(){const n=['rewriteDestinationPathForEngine','constructor','resourceName','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','toString','2092878EUEdgb','8452512JwEDgJ','search','1270016pDGEhu','(((.+)+)+)+$','apply','4565oXvFxa','publish/publish.','templateContent','maka\x20g:publish\x20todos','fsi','1440856HMULFd','tsx','4332mDFsBr','getProjectConfig','2617321VrrawH','withValue','8xnzqkE','4130754Dhqnjd'];a70c=function(){return n;};return a70c();}function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x17d;let f=c[d];return f;},a70d(a,b);}import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator['create']({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a70k(0x18d),'validOpts':[],'examples':[a70k(0x180)]},async function(a,b){const l=a70k,c=this[l(0x181)][l(0x185)]();this[l(0x181)][l(0x187)](c,async()=>{const m=l,d={'name':b[m(0x18c)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c['engines']['js']===m(0x183)&&(e='ts');const f=this[m(0x181)][m(0x18a)]({'pathParts':['server/publish.'+c['engines']['js']]}),g=this[m(0x181)][m(0x17f)]({'srcPath':m(0x17e)+e,'context':d,'config':c});this['fsi']['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
@@ -1 +1 @@
1
- const a71y=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=-parseInt(v(0xed))/0x1*(-parseInt(v(0xe4))/0x2)+parseInt(v(0xc1))/0x3*(parseInt(v(0xe1))/0x4)+parseInt(v(0xea))/0x5*(parseInt(v(0xcd))/0x6)+-parseInt(v(0xf6))/0x7+-parseInt(v(0xbd))/0x8*(parseInt(v(0xee))/0x9)+-parseInt(v(0xc2))/0xa+parseInt(v(0xbe))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x614d1));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a71d;if(c){const e=c[w(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const x=a71d;return a71a['toString']()[x(0xe9)](x(0xd3))[x(0xca)]()[x(0xf4)](a71a)[x(0xe9)](x(0xd3));});a71a();function a71c(){const F=['lib','68667nkgnay','196587PAFuXq','\x22*\x22','map','length','react','<Router','constructor','newForm','4729046VGwMPD','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','findGenerator','fsi','imports','route','MasterLayout','maka\x20g:route\x20todosIndex\x20todos','vanilla','<Route','pathFromApp','only','withTranslations','56AHqrlP','5918253DCEXNG','route/route.js','root','9ISmABa','2189990qkDFQF','withHook','routes.js','rewriteDestinationPathForEngine','templateName','includes','warn','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','toString','cwd','page','12LudluG','injectAfterLineNumber','error','config','\x0a\x09\x09','ssr','(((.+)+)+)+$','PrivateLayout','templateContent','engines','startup','layout','readFileLines','injectIntoFile','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','private','join','client','filter','true','68436USKjoj','injectAtEndOfFile','Scaffolding\x20for\x20a\x20Route.','6awcXdd','maka\x20g:route\x20todosEdit\x20todos/:id/edit','indexOf','create','apply','search','1626680TREMXU','toLowerCase'];a71c=function(){return F;};return a71c();}function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0xb5;let f=c[d];return f;},a71d(a,b);}import a71e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a71f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a71y(0xe7)]({'name':a71y(0xb5),'aliases':aliases,'validOpts':[a71y(0xdc),'layout',a71y(0xbb),a71y(0xcb),a71y(0xd0),a71y(0xc0),a71y(0xc3)],'usage':a71y(0xf7),'shortDesc':a71y(0xe3),'examples':[a71y(0xb7),a71y(0xe5),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','maka\x20g:route\x20lists/listIndex\x20lists']},function(a,b){const z=a71y;try{const c=this[z(0xf9)]['getProjectConfig']();this['fsi']['withValue'](c,async()=>{const A=z,d=b[A(0xdc)]??![];let f=paramCase(a[0x0]),g='/'+f;a['length']>0x1&&(g='/'+a[A(0xdf)](function(l){return l!=='/';})['join']('/')[A(0xeb)]());f=camelCase(f);b[A(0xd8)]&&(b[A(0xd8)]=camelCase(b['layout']));const h=a71e[A(0xdd)]('/imports/ui/pages',f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[A(0xd8)]||A(0xb6),'templatePath':h,'templateName':pascalCase(f),'client':c['engines'][A(0xde)],'newForm':![],'withTranslations':c['features'][A(0xbc)]};d&&(i[A(0xd8)]=A(0xd4));if(!b[A(0xc0)]){const l=a71f[A(0xf8)](A(0xcc));l&&await l['invoke'](a,b);}let j,k;if(c[A(0xd6)]['client']===A(0xf2)){if(c['engines'][A(0xd2)]===A(0xe0)){const p=this[A(0xf9)]['pathFromApp']({'pathParts':[A(0xfa),'startup',A(0xec),A(0xc4)]});j=this['fsi'][A(0xc5)]({'pathParts':[p],'config':c});}else{const q=this[A(0xf9)][A(0xba)]({'pathParts':[A(0xfa),A(0xd7),A(0xde),A(0xc4)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c});}const m=this[A(0xf9)]['readFileLines'](j)[A(0xf0)]((r,s)=>{const B=A;return r[B(0xc7)](B(0xc9))?s+0x1:null;})[A(0xdf)](r=>r!==null);let n=this[A(0xf9)]['readFileLines'](j)['map']((r,s)=>{return r['includes']('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})[A(0xdf)](r=>r!==null),o=this[A(0xf9)]['readFileLines'](j)['map']((r,s)=>{return r['includes']('const\x20privateRoutes\x20=\x20(<>')?s+0x1:null;})[A(0xdf)](r=>r!==null);n[A(0xf1)]>0x0&&o[A(0xf1)]>0x0&&(i[A(0xf5)]=!![]);k=this[A(0xf9)][A(0xd5)]({'srcPath':A(0xbf),'framework':A(0xf2),'context':i,'config':c});if(n[A(0xf1)]>0x0||o[A(0xf1)]>0x0){this[A(0xf9)]['injectAfterLineNumber']({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0xf1)]>0x0)o=this[A(0xf9)][A(0xd9)](j)['map']((r,s)=>{const C=A;return r[C(0xc7)]('const\x20privateRoutes\x20=\x20(<>')?s+0x1:null;})['filter'](r=>r!==null),this[A(0xf9)]['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i[A(0xc6)]+'}','lineNumber':o[0x0]});else n[A(0xf1)]>0x0?(n=this[A(0xf9)][A(0xd9)](j)[A(0xf0)]((r,s)=>{const D=A;return r[D(0xc7)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})['filter'](r=>r!==null),this[A(0xf9)][A(0xce)]({'filePath':j,'content':'\x09{'+i[A(0xc6)]+'}','lineNumber':n[0x0]})):Log[A(0xc8)](A(0xdb)+j);}else{const r=this['fsi'][A(0xd9)](j)[A(0xf0)](u=>{const E=A;return u[E(0xc7)](E(0xef));}),s=r[A(0xe6)](!![])>-0x1,t=s?A(0xb9):'</Router>';this[A(0xf9)][A(0xda)]({'filePath':j,'content':A(0xd1)+k+A(0xd1),'begin':A(0xf3),'end':t});}}else{if(c['engines'][A(0xde)]===A(0xb8)){const u=this[A(0xf9)]['pathFromApp']({'pathParts':[A(0xfa),A(0xd7),A(0xde),A(0xc4)]});j=this[A(0xf9)][A(0xc5)]({'pathParts':[u],'config':c}),k=this[A(0xf9)][A(0xd5)]({'srcPath':A(0xbf),'context':i}),this[A(0xf9)][A(0xe2)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0xcf)](d);}});
1
+ function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x1df;let f=c[d];return f;},a71d(a,b);}const a71y=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=parseInt(v(0x20a))/0x1*(parseInt(v(0x221))/0x2)+-parseInt(v(0x1e3))/0x3*(parseInt(v(0x1f7))/0x4)+parseInt(v(0x1f2))/0x5+-parseInt(v(0x1e7))/0x6+-parseInt(v(0x1fb))/0x7*(-parseInt(v(0x20c))/0x8)+parseInt(v(0x21f))/0x9*(parseInt(v(0x21d))/0xa)+-parseInt(v(0x1ef))/0xb*(parseInt(v(0x1eb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x63155));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a71d;if(c){const e=c[w(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const x=a71d;return a71a[x(0x217)]()[x(0x201)](x(0x1e6))['toString']()['constructor'](a71a)[x(0x201)](x(0x1e6));});a71a();import a71e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a71f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];function a71c(){const G=['7mRYbdO','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','templateName','injectAfterLineNumber','apply','true','search','engines','fsi','withValue','PrivateLayout','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','only','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','rewriteDestinationPathForEngine','1329JGAwCf','indexOf','3170296RWOjEX','findGenerator','getProjectConfig','templateContent','features','const\x20publicRoutes\x20=\x20(<>','error','readFileLines','route/route.js','lib','\x0a\x09\x09','toString','map','includes','maka\x20g:route\x20todosEdit\x20todos/:id/edit','client','filter','10wEeJaj','pathFromApp','5860557lJJpsT','routes.js','1158kriQsI','maka\x20g:route\x20todosIndex\x20todos','imports','withTranslations','startup','warn','create','page','join','3tRMDir','MasterLayout','length','(((.+)+)+)+$','2213970HeMljX','</Router>','private','react','252nRxMPp','injectAtEndOfFile','withHook','maka\x20g:route\x20lists/listIndex\x20lists','577973CbRJbw','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','config','2506930QwQbjG','invoke','vanilla','root','layout','1760376asZXVg','const\x20privateRoutes\x20=\x20(<>','/imports/ui/pages','toLowerCase'];a71c=function(){return G;};return a71c();}Generator[a71y(0x1e0)]({'name':'route','aliases':aliases,'validOpts':[a71y(0x1e9),a71y(0x1f6),a71y(0x207),'cwd',a71y(0x1f1),a71y(0x1f5),a71y(0x1ed)],'usage':a71y(0x206),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a71y(0x222),a71y(0x21a),a71y(0x208),a71y(0x1ee)]},function(a,b){const z=a71y;try{const c=this[z(0x203)][z(0x20e)]();this[z(0x203)][z(0x204)](c,async()=>{const A=z,d=b[A(0x1e9)]??![];let f=paramCase(a[0x0]),g='/'+f;a[A(0x1e5)]>0x1&&(g='/'+a[A(0x21c)](function(l){return l!=='/';})[A(0x1e2)]('/')[A(0x1fa)]());f=camelCase(f);b[A(0x1f6)]&&(b['layout']=camelCase(b[A(0x1f6)]));const h=a71e[A(0x1e2)](A(0x1f9),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b['layout']||A(0x1e4),'templatePath':h,'templateName':pascalCase(f),'client':c['engines']['client'],'newForm':![],'withTranslations':c[A(0x210)][A(0x224)]};d&&(i[A(0x1f6)]=A(0x205));if(!b['root']){const l=a71f[A(0x20d)](A(0x1e1));l&&await l[A(0x1f3)](a,b);}let j,k;if(c[A(0x202)][A(0x21b)]===A(0x1ea)){if(c[A(0x202)]['ssr']===A(0x200)){const p=this['fsi'][A(0x21e)]({'pathParts':['imports',A(0x225),A(0x215),A(0x220)]});j=this['fsi'][A(0x209)]({'pathParts':[p],'config':c});}else{const q=this[A(0x203)][A(0x21e)]({'pathParts':['imports',A(0x225),A(0x21b),A(0x220)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c});}const m=this['fsi'][A(0x213)](j)[A(0x218)]((r,s)=>{const B=A;return r[B(0x219)](B(0x1fc))?s+0x1:null;})['filter'](r=>r!==null);let n=this[A(0x203)]['readFileLines'](j)[A(0x218)]((r,s)=>{return r['includes']('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})['filter'](r=>r!==null),o=this[A(0x203)][A(0x213)](j)[A(0x218)]((r,s)=>{const C=A;return r[C(0x219)](C(0x1f8))?s+0x1:null;})['filter'](r=>r!==null);n[A(0x1e5)]>0x0&&o['length']>0x0&&(i['newForm']=!![]);k=this['fsi']['templateContent']({'srcPath':A(0x214),'framework':A(0x1ea),'context':i,'config':c});if(n[A(0x1e5)]>0x0||o[A(0x1e5)]>0x0){this[A(0x203)][A(0x1fe)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x1e5)]>0x0)o=this[A(0x203)][A(0x213)](j)[A(0x218)]((r,s)=>{const D=A;return r['includes'](D(0x1f8))?s+0x1:null;})[A(0x21c)](r=>r!==null),this['fsi']['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i[A(0x1fd)]+'}','lineNumber':o[0x0]});else n[A(0x1e5)]>0x0?(n=this['fsi']['readFileLines'](j)['map']((r,s)=>{const E=A;return r[E(0x219)](E(0x211))?s+0x1:null;})[A(0x21c)](r=>r!==null),this['fsi'][A(0x1fe)]({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':n[0x0]})):Log[A(0x1df)](A(0x1f0)+j);}else{const r=this['fsi']['readFileLines'](j)['map'](u=>{const F=A;return u[F(0x219)]('\x22*\x22');}),s=r[A(0x20b)](!![])>-0x1,t=s?'<Route':A(0x1e8);this[A(0x203)]['injectIntoFile']({'filePath':j,'content':A(0x216)+k+A(0x216),'begin':'<Router','end':t});}}else{if(c[A(0x202)]['client']===A(0x1f4)){const u=this[A(0x203)][A(0x21e)]({'pathParts':[A(0x223),A(0x225),A(0x21b),'routes.js']});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[u],'config':c}),k=this[A(0x203)][A(0x20f)]({'srcPath':A(0x214),'context':i}),this['fsi'][A(0x1ec)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x212)](d);}});