@maka/maka-cli 4.5.11 → 4.5.13

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 (97) hide show
  1. package/bundle/obf/package.json +2 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/build/_index.js +1 -1
  17. package/bundle/obf/src/commands/build/build.js +1 -1
  18. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/create.js +1 -1
  20. package/bundle/obf/src/commands/debug.js +1 -1
  21. package/bundle/obf/src/commands/deploy.js +1 -1
  22. package/bundle/obf/src/commands/game/_index.js +1 -1
  23. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/game/play.command.js +1 -1
  25. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/generate.js +1 -1
  29. package/bundle/obf/src/commands/get/_index.js +1 -1
  30. package/bundle/obf/src/commands/get/get.command.js +1 -1
  31. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/help.js +1 -1
  35. package/bundle/obf/src/commands/jsdoc.js +1 -1
  36. package/bundle/obf/src/commands/lint.js +1 -1
  37. package/bundle/obf/src/commands/login.js +1 -1
  38. package/bundle/obf/src/commands/logout.js +1 -1
  39. package/bundle/obf/src/commands/logs.js +1 -1
  40. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  41. package/bundle/obf/src/commands/murder.js +1 -1
  42. package/bundle/obf/src/commands/proxy.js +1 -1
  43. package/bundle/obf/src/commands/reconfig.js +1 -1
  44. package/bundle/obf/src/commands/run/_index.js +1 -1
  45. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  46. package/bundle/obf/src/commands/run/run.command.js +1 -1
  47. package/bundle/obf/src/commands/set/_index.js +1 -1
  48. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  49. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  50. package/bundle/obf/src/commands/set/set.command.js +1 -1
  51. package/bundle/obf/src/commands/ssh.js +1 -1
  52. package/bundle/obf/src/commands/ssl.js +1 -1
  53. package/bundle/obf/src/commands/test.js +1 -1
  54. package/bundle/obf/src/commands/version.js +1 -1
  55. package/bundle/obf/src/error.js +1 -1
  56. package/bundle/obf/src/generator.js +1 -1
  57. package/bundle/obf/src/generators/_index.js +1 -1
  58. package/bundle/obf/src/generators/api.js +1 -1
  59. package/bundle/obf/src/generators/collection.js +1 -1
  60. package/bundle/obf/src/generators/component.js +1 -1
  61. package/bundle/obf/src/generators/config.js +1 -1
  62. package/bundle/obf/src/generators/dbc.js +1 -1
  63. package/bundle/obf/src/generators/dockerfile.js +1 -1
  64. package/bundle/obf/src/generators/hook.js +1 -1
  65. package/bundle/obf/src/generators/kit.js +1 -1
  66. package/bundle/obf/src/generators/layout.js +1 -1
  67. package/bundle/obf/src/generators/maka.gen.js +1 -1
  68. package/bundle/obf/src/generators/methods.js +1 -1
  69. package/bundle/obf/src/generators/package.js +1 -1
  70. package/bundle/obf/src/generators/page.js +1 -1
  71. package/bundle/obf/src/generators/publish.js +1 -1
  72. package/bundle/obf/src/generators/route.js +1 -1
  73. package/bundle/obf/src/generators/service.js +1 -1
  74. package/bundle/obf/src/generators/services/_index.js +1 -1
  75. package/bundle/obf/src/generators/services/openssl.js +1 -1
  76. package/bundle/obf/src/generators/services/translation.js +1 -1
  77. package/bundle/obf/src/maka.js +1 -1
  78. package/bundle/obf/src/templates/meteor/dbc/conn.js +1 -1
  79. package/bundle/obf/src/tool.js +1 -1
  80. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  81. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  82. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  83. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  84. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  85. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  86. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  87. package/bundle/obf/src/tools/https/https.class.js +1 -1
  88. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  89. package/bundle/obf/src/tools/log/log.class.js +1 -1
  90. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  91. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  92. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  93. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  94. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  95. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  96. package/package.json +2 -1
  97. package/bundle/obf/src/commands/install.js +0 -1
@@ -1 +1 @@
1
- const a57y=a57d;function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0xc4;let f=c[d];return f;},a57d(a,b);}(function(a,b){const w=a57d,c=a();while(!![]){try{const d=-parseInt(w(0x117))/0x1+parseInt(w(0xfc))/0x2+-parseInt(w(0xc9))/0x3+parseInt(w(0xd8))/0x4*(parseInt(w(0xdb))/0x5)+-parseInt(w(0x113))/0x6+-parseInt(w(0x11e))/0x7*(-parseInt(w(0xcd))/0x8)+-parseInt(w(0x107))/0x9*(-parseInt(w(0xe2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x1fbd7));const a57b=(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;};}()),a57a=a57b(this,function(){const x=a57d;return a57a[x(0x108)]()[x(0xfd)](x(0xdf))[x(0x108)]()[x(0x119)](a57a)[x(0xfd)](x(0xdf));});a57a();import{Generator}from'../generator.js';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[a57y(0x112)]({'name':'api','aliases':['a'],'usage':a57y(0xe8),'shortDesc':a57y(0xfb),'validOpts':[a57y(0x106)],'examples':[a57y(0xd2)]},async function(a,b){const z=a57y;try{const c=this[z(0xd7)][z(0x109)](),d=[{'name':z(0x116),'value':z(0x10d)},{'name':z(0xeb),'value':'withFixtures'},{'name':z(0x10a),'value':z(0x11c)}];c['engines'][z(0x11f)]==='rest'&&d[z(0x11a)]({'name':'REST\x20API','value':z(0xd6)});c[z(0xf1)][z(0xe5)]===z(0xd1)&&d[z(0x11a)]({'name':z(0x121),'value':z(0x10e)});const f={'type':z(0xf5),'name':'apiAnswers','message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0xd0)](f);g[z(0xcf)]===0x0&&(Log[z(0xc4)](z(0x11d)),process[z(0xf0)](0x1)),this['fsi'][z(0xce)](c,async()=>{const A=z,h=this[A(0xd7)][A(0xee)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[A(0x106)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0xf1)][A(0x11f)],'graphql':c['engines'][A(0xe5)],'test':c[A(0xf1)][A(0xf2)],'noRename':!![],'withPubs':g['includes'](A(0x11c)),'withFixtures':g[A(0xde)](A(0xe7)),'withMethods':g['includes']('withMethods'),'withRest':g[A(0xde)](A(0xd6))};let n='js';c['engines']['js']===A(0xc7)&&(n='ts');(!this[A(0xd7)][A(0xff)](A(0xda))||!this[A(0xd7)][A(0xff)](A(0x114))||!this['fsi'][A(0xff)](A(0xed))||!this[A(0xd7)][A(0xff)](A(0xd9))||!this['fsi'][A(0xff)](A(0x118)))&&(Log[A(0xc8)](A(0xf7)),await this[A(0xd7)][A(0x111)](A(0xea),{'cwd':h}));const o=a57e[A(0xd3)]('collection');o&&await o[A(0x10c)]([j],{'config':c,'where':A(0xe6)});c[A(0xf1)][A(0x11f)]===A(0xe0)&&(m[A(0xd6)]&&this['fsi'][A(0xec)]({'srcPath':A(0xfa),'destPath':this['fsi'][A(0xee)]({'pathParts':['imports',A(0x11f),b[A(0x106)],j,A(0xf8)+n]}),'context':m,'config':c}));m[A(0x10d)]&&this['fsi'][A(0xec)]({'srcPath':A(0xc5),'destPath':this['fsi'][A(0xee)]({'pathParts':[A(0x100),A(0x11f),b[A(0x106)],j,A(0xfe)+n]}),'context':m,'config':c});m[A(0xe7)]&&this['fsi'][A(0xec)]({'srcPath':A(0xd4),'destPath':this[A(0xd7)][A(0xee)]({'pathParts':[A(0x100),A(0x11f),b['dir'],j,A(0xca)+n]}),'context':m,'config':c});c[A(0xf1)]['test']!==A(0x101)&&this['fsi'][A(0xec)]({'srcPath':'api/tests.js','destPath':this[A(0xd7)][A(0xee)]({'pathParts':[A(0x100),A(0x11f),b[A(0x106)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m[A(0x11c)]&&this[A(0xd7)][A(0xec)]({'srcPath':A(0xe3),'destPath':this[A(0xd7)]['pathFromApp']({'pathParts':[A(0x100),A(0x11f),b[A(0x106)],j,'publications.'+n]}),'context':m,'config':c});if(c[A(0xf1)][A(0xe5)]==='apollo'){if(g[A(0xde)](A(0x10e))){const q=this[A(0xd7)][A(0xee)]({'pathParts':['imports',A(0xcb),A(0xe6),'index.'+c[A(0xf1)]['js']]}),r=this[A(0xd7)][A(0xf9)]({'pathParts':[q],'config':c}),s=this['fsi'][A(0xee)]({'pathParts':[A(0x100),'api',b['dir'],j,A(0xe5),A(0x104)+n]}),t=A(0xd5)+l+j+A(0xe1);this[A(0xd7)][A(0xec)]({'srcPath':A(0xe4),'destPath':s,'context':m,'config':c}),this[A(0xd7)][A(0x115)]({'filePath':r,'content':A(0x11b)+k+'TypeDefs\x20}\x20from\x20\x27'+t+A(0xdc)}),this[A(0xd7)][A(0x10f)]({'filePath':r,'content':A(0xc6)+k+A(0xf3),'begin':'const','end':A(0xf6)});const u=this[A(0xd7)][A(0xee)]({'pathParts':[A(0x100),A(0x11f),b[A(0x106)],j,A(0xe5),A(0x120)+n]}),v=A(0xd5)+l+j+A(0xf4);this[A(0xd7)][A(0xec)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this['fsi'][A(0x115)]({'filePath':r,'content':A(0xcc)+k+A(0xdd)+v+'\x27;'}),this[A(0xd7)][A(0x10f)]({'filePath':r,'content':'resolverList.push('+k+A(0x105),'begin':'const','end':A(0xf6)});}}this[A(0xd7)][A(0xec)]({'srcPath':'api/register-api.js','destPath':this['fsi'][A(0xee)]({'pathParts':[A(0x100),A(0xcb),A(0xe6),A(0xe9)+j+A(0x10b)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][A(0xee)]({'pathParts':[A(0x100),A(0xcb),'server','index.'+c[A(0xf1)]['js']]});this[A(0xd7)][A(0x110)]({'filePath':p,'content':A(0x103)+j+A(0x102)});});}catch(h){console[z(0xef)](h),process[z(0xf0)](0x0);}});function a57c(){const B=['resolvers.','GraphQL','error','api/methods.js','typeList.push(','tsx','notice','528645NrUhth','fixtures.','startup','\x0aimport\x20{\x20resolvers\x20as\x20','16RbQmAo','withValue','length','options','apollo','maka\x20g:api\x20todos','findGenerator','api/fixtures.js','/imports/api','withRest','fsi','1252cNFSWf','mdg:validated-method','maka:rest','1525yZrWqS','\x27;\x0a','Resolvers\x20}\x20from\x20\x27','includes','(((.+)+)+)+$','rest','/graphql/typeDefs','66970cNdAtQ','api/publications.js','api/typeDefs.js','graphql','server','withFixtures','maka\x20{generate,\x20g}:{api}\x20<resource-name>','register-','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','Fixtures','template','ddp-rate-limiter','pathFromApp','log','exit','engines','test','TypeDefs);\x0a','/graphql/resolvers','checkbox','if\x20\x5c(typeList','Verifying\x20meteor\x20package\x20requirements\x20...','rest-api.','rewriteDestinationPathForEngine','api/api.js','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','16670CcALOs','search','rpc-methods.','checkMeteorPackage','imports','none','-api\x27;','import\x20\x27./register-','typeDefs.','Resolvers);\x0a\x0a','dir','162rhrAuK','toString','getProjectConfig','Publications','-api.','invoke','withMethods','withGql','injectIntoFile','injectAtEndOfFile','installMeteorPackage','create','736800eHflsj','maka:check','injectAtBeginningOfFile','RPC\x20(Methods)','37466oDRhxG','mongo','constructor','push','import\x20{\x20typeDefs\x20as\x20','withPubs','No\x20API\x20boundaries\x20selected','847497PAzGOY','api'];a57c=function(){return B;};return a57c();}
1
+ const a56z=a56d;(function(a,b){const w=a56d,c=a();while(!![]){try{const d=-parseInt(w(0x234))/0x1*(-parseInt(w(0x208))/0x2)+parseInt(w(0x221))/0x3+parseInt(w(0x1ec))/0x4*(-parseInt(w(0x230))/0x5)+-parseInt(w(0x20f))/0x6*(parseInt(w(0x21f))/0x7)+parseInt(w(0x204))/0x8*(-parseInt(w(0x210))/0x9)+-parseInt(w(0x219))/0xa*(parseInt(w(0x241))/0xb)+parseInt(w(0x211))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x67953));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a56d;if(c){const e=c[x(0x209)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const y=a56d;return a56a['toString']()[y(0x222)]('(((.+)+)+)+$')[y(0x22c)]()[y(0x23d)](a56a)['search'](y(0x20e));});a56a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a56d(a,b);}import a56e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a56c(){const C=['maka:check','776ZekBGk','installMeteorPackage','test','API\x20boundaries\x20to\x20create','5318LReGAJ','apply','invoke','api/typeDefs.js','resolverList.push(','injectAtBeginningOfFile','(((.+)+)+)+$','744Qcwycv','74034ciraya','21073320iSsLKZ','exit','/imports/api','ddp-rate-limiter','withValue','getProjectConfig','mongo','Fixtures','10BNgcfn','Resolvers\x20}\x20from\x20\x27','graphql','Verifying\x20meteor\x20package\x20requirements\x20...','collection','-api.','29596mdFdnJ','\x27;\x0a','488322ZFPpeA','search','imports','dir','resolvers.','Resolvers);\x0a\x0a','tsx','maka\x20{generate,\x20g}:{api}\x20<resource-name>','publications.','maka:rest','-api\x27;','toString','injectAtEndOfFile','.app-tests.','typeList.push(','1409510xGhkJP','injectIntoFile','template','api/methods.js','296WMXfsN','GraphQL','withFixtures','fsi','options','fixtures.','rest-api.','rewriteDestinationPathForEngine','includes','constructor','log','index.','none','4352425bLcVoX','if\x20\x5c(typeList','No\x20API\x20boundaries\x20selected','const','rpc-methods.','api/fixtures.js','apollo','REST\x20API','rest','withMethods','pathFromApp','import\x20\x27./register-','8DYoSiO','withRest','typeDefs.','api/register-api.js','engines','api','startup','checkMeteorPackage','withPubs','/graphql/resolvers','notice','RPC\x20(Methods)','\x0aimport\x20{\x20resolvers\x20as\x20','findGenerator','maka\x20g:api\x20todos','TypeDefs\x20}\x20from\x20\x27','/graphql/typeDefs','push','withGql','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','register-','server','Publications'];a56c=function(){return C;};return a56c();}Generator['create']({'name':a56z(0x1f1),'aliases':['a'],'usage':a56z(0x228),'shortDesc':a56z(0x1ff),'validOpts':[a56z(0x224)],'examples':[a56z(0x1fa)]},async function(a,b){const A=a56z;try{const c=this[A(0x237)][A(0x216)](),d=[{'name':A(0x1f7),'value':A(0x1e9)},{'name':A(0x218),'value':A(0x236)},{'name':A(0x202),'value':A(0x1f4)}];c[A(0x1f0)][A(0x1f1)]===A(0x1e8)&&d[A(0x1fd)]({'name':A(0x1e7),'value':A(0x1ed)});c['engines'][A(0x21b)]===A(0x1e6)&&d[A(0x1fd)]({'name':A(0x235),'value':'withGql'});const f={'type':'checkbox','name':'apiAnswers','message':A(0x207),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x238)](f);g['length']===0x0&&(Log['error'](A(0x243)),process[A(0x212)](0x1)),this[A(0x237)][A(0x215)](c,async()=>{const B=A,h=this[B(0x237)][B(0x1ea)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x224)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x1f1)],'graphql':c[B(0x1f0)][B(0x21b)],'test':c[B(0x1f0)][B(0x206)],'noRename':!![],'withPubs':g[B(0x23c)](B(0x1f4)),'withFixtures':g[B(0x23c)](B(0x236)),'withMethods':g[B(0x23c)](B(0x1e9)),'withRest':g['includes'](B(0x1ed))};let n='js';c[B(0x1f0)]['js']===B(0x227)&&(n='ts');(!this[B(0x237)][B(0x1f3)](B(0x22a))||!this[B(0x237)][B(0x1f3)](B(0x203))||!this['fsi'][B(0x1f3)](B(0x214))||!this['fsi']['checkMeteorPackage']('mdg:validated-method')||!this[B(0x237)][B(0x1f3)](B(0x217)))&&(Log[B(0x1f6)](B(0x21c)),await this['fsi'][B(0x205)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a56e[B(0x1f9)](B(0x21d));o&&await o[B(0x20a)]([j],{'config':c,'where':B(0x201)});c[B(0x1f0)]['api']===B(0x1e8)&&(m['withRest']&&this[B(0x237)][B(0x232)]({'srcPath':'api/api.js','destPath':this[B(0x237)][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f1),b[B(0x224)],j,B(0x23a)+n]}),'context':m,'config':c}));m[B(0x1e9)]&&this[B(0x237)][B(0x232)]({'srcPath':B(0x233),'destPath':this[B(0x237)][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f1),b['dir'],j,B(0x1e4)+n]}),'context':m,'config':c});m[B(0x236)]&&this[B(0x237)][B(0x232)]({'srcPath':B(0x1e5),'destPath':this[B(0x237)][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f1),b['dir'],j,B(0x239)+n]}),'context':m,'config':c});c[B(0x1f0)][B(0x206)]!==B(0x240)&&this[B(0x237)][B(0x232)]({'srcPath':'api/tests.js','destPath':this['fsi'][B(0x1ea)]({'pathParts':['imports',B(0x1f1),b['dir'],j,j+B(0x22e)+n]}),'context':m,'config':c});m[B(0x1f4)]&&this['fsi'][B(0x232)]({'srcPath':'api/publications.js','destPath':this[B(0x237)][B(0x1ea)]({'pathParts':['imports',B(0x1f1),b[B(0x224)],j,B(0x229)+n]}),'context':m,'config':c});if(c[B(0x1f0)][B(0x21b)]===B(0x1e6)){if(g[B(0x23c)](B(0x1fe))){const q=this['fsi'][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f2),B(0x201),'index.'+c[B(0x1f0)]['js']]}),r=this['fsi'][B(0x23b)]({'pathParts':[q],'config':c}),s=this[B(0x237)]['pathFromApp']({'pathParts':[B(0x223),B(0x1f1),b[B(0x224)],j,'graphql',B(0x1ee)+n]}),t=B(0x213)+l+j+B(0x1fc);this[B(0x237)]['template']({'srcPath':B(0x20b),'destPath':s,'context':m,'config':c}),this[B(0x237)]['injectAtBeginningOfFile']({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+B(0x1fb)+t+B(0x220)}),this[B(0x237)][B(0x231)]({'filePath':r,'content':B(0x22f)+k+'TypeDefs);\x0a','begin':B(0x1e3),'end':B(0x242)});const u=this['fsi']['pathFromApp']({'pathParts':[B(0x223),B(0x1f1),b[B(0x224)],j,B(0x21b),B(0x225)+n]}),v=B(0x213)+l+j+B(0x1f5);this[B(0x237)][B(0x232)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this['fsi'][B(0x20d)]({'filePath':r,'content':B(0x1f8)+k+B(0x21a)+v+'\x27;'}),this[B(0x237)]['injectIntoFile']({'filePath':r,'content':B(0x20c)+k+B(0x226),'begin':'const','end':B(0x242)});}}this['fsi'][B(0x232)]({'srcPath':B(0x1ef),'destPath':this[B(0x237)]['pathFromApp']({'pathParts':[B(0x223),'startup',B(0x201),B(0x200)+j+B(0x21e)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x237)]['pathFromApp']({'pathParts':[B(0x223),B(0x1f2),B(0x201),B(0x23f)+c[B(0x1f0)]['js']]});this[B(0x237)][B(0x22d)]({'filePath':p,'content':B(0x1eb)+j+B(0x22b)});});}catch(h){console[A(0x23e)](h),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a58n=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=parseInt(k(0x102))/0x1*(-parseInt(k(0x12c))/0x2)+-parseInt(k(0x112))/0x3*(parseInt(k(0x10d))/0x4)+-parseInt(k(0x116))/0x5*(-parseInt(k(0x110))/0x6)+parseInt(k(0x11a))/0x7*(-parseInt(k(0x128))/0x8)+-parseInt(k(0x130))/0x9*(-parseInt(k(0x10c))/0xa)+parseInt(k(0x12f))/0xb*(parseInt(k(0x11b))/0xc)+-parseInt(k(0x131))/0xd*(-parseInt(k(0x107))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x4dc23));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a58d;if(c){const e=c[l(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const m=a58d;return a58a[m(0x120)]()[m(0x136)](m(0x11e))[m(0x120)]()[m(0x134)](a58a)['search'](m(0x11e));});function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x101;let f=c[d];return f;},a58d(a,b);}a58a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a58c(){const q=['\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','811445gnEMYH','notice','apply','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','707mxbdDT','57756UNSjhI','mongo','template','(((.+)+)+)+$','tsx','toString','test','none','collection','startup','maka\x20g:collection\x20todos','dir','create','45272rxNAGI','maka:check','appPathPrefix','.app-tests.','2zmXtfq','error','getProjectConfig','671muFOYh','252OjWxLu','6953011ocBXcZ','installMeteorPackage','imports','constructor','index.','search','where','70948mpfWLe','checkMeteorPackage','collections','injectAtEndOfFile','engines','14vNhtfW','import\x20\x27./collections','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','col','152580iqOAFu','4944HrgjAA','resourceName','withValue','12yeMDBa','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','1503UOJsQB','pathFromApp','fsi'];a58c=function(){return q;};return a58c();}import{Log}from'../tools/log/log.class.js';Generator[a58n(0x127)]({'name':a58n(0x123),'aliases':[a58n(0x10b)],'usage':a58n(0x111),'checkWhere':!![],'shortDesc':a58n(0x119),'validOpts':[a58n(0x126),a58n(0x101)],'description':a58n(0x115),'examples':[a58n(0x125)]},async function(a,b){const o=a58n;try{const c=this[o(0x114)][o(0x113)]({}),d=this['fsi'][o(0x12e)]();this['fsi'][o(0x10f)](d,async()=>{const p=o,f=paramCase(b[p(0x10e)]),g={'name':pascalCase(b[p(0x10e)]),'collectionName':pascalCase(b[p(0x10e)]),'fileName':f,'where':b['where'],'test':d['engines']['test'],'noRename':!![]};let h='js';d['engines']['js']===p(0x11f)&&(h='ts');!this[p(0x114)][p(0x103)](p(0x11c))&&(Log[p(0x117)](p(0x109)),await this['fsi'][p(0x132)](p(0x11c),{'cwd':c}));!this[p(0x114)]['checkMeteorPackage'](p(0x129))&&(Log[p(0x117)](p(0x10a)),await this[p(0x114)][p(0x132)](p(0x129),{'cwd':c}));this[p(0x114)][p(0x11d)]({'srcPath':'collection/collection.js','destPath':this[p(0x114)][p(0x113)]({'pathParts':[p(0x133),'startup',b[p(0x12a)],p(0x104),b[p(0x126)],f+'.'+h]}),'context':g,'config':d});d[p(0x106)][p(0x121)]!==p(0x122)&&this[p(0x114)][p(0x11d)]({'srcPath':'collection/tests.js','destPath':this[p(0x114)][p(0x113)]({'pathParts':[p(0x133),p(0x124),b[p(0x12a)],'collections',b[p(0x126)],f+p(0x12b)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x126)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':[p(0x133),'startup',b['appPathPrefix'],p(0x135)+d['engines']['js']]});this['fsi'][p(0x105)]({'filePath':j,'content':p(0x108)+i+f+'\x27;'});});}catch(f){Log[o(0x12d)](f);}});
1
+ const a57n=a57d;(function(a,b){const k=a57d,c=a();while(!![]){try{const d=parseInt(k(0x20d))/0x1+parseInt(k(0x1f4))/0x2+parseInt(k(0x1f8))/0x3+parseInt(k(0x213))/0x4*(parseInt(k(0x1fc))/0x5)+-parseInt(k(0x211))/0x6*(parseInt(k(0x1fb))/0x7)+-parseInt(k(0x217))/0x8+parseInt(k(0x20c))/0x9*(-parseInt(k(0x1f9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x54eae));function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a57d(a,b);}const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a57d;if(c){const e=c[l(0x21b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const m=a57d;return a57a[m(0x1f1)]()[m(0x1f5)](m(0x212))[m(0x1f1)]()[m(0x201)](a57a)['search']('(((.+)+)+)+$');});a57a();function a57c(){const q=['engines','\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','3082221lnufHM','337172fVUooO','collections','appPathPrefix','import\x20\x27./collections','18qilzjL','(((.+)+)+)+$','1136jJfoYT','imports','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','where','5530184ncsmdk','checkMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','tsx','apply','toString','template','mongo','1214988sESWIk','search','dir','notice','1091631CPhUoJ','10Cmiqpp','pathFromApp','890547Ruaund','8005Wuoejm','none','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','injectAtEndOfFile','col','constructor','fsi','collection/collection.js','installMeteorPackage','maka:check','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','test','getProjectConfig','startup'];a57c=function(){return q;};return a57c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'collection','aliases':[a57n(0x200)],'usage':a57n(0x215),'checkWhere':!![],'shortDesc':a57n(0x206),'validOpts':[a57n(0x1f6),'where'],'description':a57n(0x20b),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a57n;try{const c=this[o(0x202)]['pathFromApp']({}),d=this['fsi'][o(0x208)]();this[o(0x202)]['withValue'](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x216)],'test':d[p(0x20a)][p(0x207)],'noRename':!![]};let h='js';d[p(0x20a)]['js']===p(0x21a)&&(h='ts');!this['fsi']['checkMeteorPackage'](p(0x1f3))&&(Log['notice'](p(0x219)),await this['fsi'][p(0x204)]('mongo',{'cwd':c}));!this[p(0x202)][p(0x218)](p(0x205))&&(Log[p(0x1f7)](p(0x1fe)),await this[p(0x202)][p(0x204)](p(0x205),{'cwd':c}));this[p(0x202)][p(0x1f2)]({'srcPath':p(0x203),'destPath':this[p(0x202)][p(0x1fa)]({'pathParts':['imports',p(0x209),b[p(0x20f)],p(0x20e),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x20a)][p(0x207)]!==p(0x1fd)&&this[p(0x202)][p(0x1f2)]({'srcPath':'collection/tests.js','destPath':this[p(0x202)][p(0x1fa)]({'pathParts':[p(0x214),p(0x209),b[p(0x20f)],'collections',b[p(0x1f6)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b[p(0x1f6)]?'/'+b[p(0x1f6)]+'/':'/',j=this[p(0x202)][p(0x1fa)]({'pathParts':[p(0x214),p(0x209),b[p(0x20f)],'index.'+d[p(0x20a)]['js']]});this[p(0x202)][p(0x1ff)]({'filePath':j,'content':p(0x210)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
@@ -1 +1 @@
1
- const a59p=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=parseInt(n(0x90))/0x1*(parseInt(n(0x78))/0x2)+-parseInt(n(0x94))/0x3+parseInt(n(0xa3))/0x4+parseInt(n(0x8e))/0x5*(-parseInt(n(0x9a))/0x6)+parseInt(n(0x83))/0x7+parseInt(n(0x96))/0x8+parseInt(n(0x6b))/0x9*(-parseInt(n(0x66))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xafde7));const a59b=(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;};}()),a59a=a59b(this,function(){const o=a59d;return a59a['toString']()[o(0x85)](o(0x92))['toString']()[o(0x99)](a59a)['search']('(((.+)+)+)+$');});function a59c(){const s=['injectAtBeginningOfFile','3439048KvWKaF','pathFromApp','injectAtEndOfFile','features','rewriteDestinationPathForEngine','1612150pHtlwR','withTranslations','root','true','\x20};\x0a','27ReXEPu','css','theme','relative','maka\x20g:comp\x20todos/todos-item','template','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','setTemplate','test','imports','error','assign','.css','84022VkfcQY','fileName','ramda','checkNpmPackage','\x20}\x20from\x20\x27','templates.js','component','import\x20{\x20','engines','graphql','.tests.js','8573313IYdiEx','lib','search','template/template.css','react','ssr','fsi','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','startup','findAppDirectory','string','3366460AJvdxe','resourceName','7kzoDNe','\x27;\x0a','(((.+)+)+)+$','export\x20{\x20','2487525TFvpZI','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','8009320yVSzeL','reflux','installNpmPackage','constructor','12zuqglv','getProjectConfig','client','dir','none','warn','className','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator'];a59c=function(){return s;};return a59c();}a59a();import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x66;let f=c[d];return f;},a59d(a,b);}import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator['create']({'name':a59p(0x7e),'aliases':aliases,'usage':a59p(0x95),'shortDesc':a59p(0x8a),'validOpts':['dir'],'examples':[a59p(0x6f)]},async function(a,b){const q=a59p;try{const c=this['fsi'][q(0x8c)](),d='/imports/ui/components',f=this[q(0x89)][q(0xa4)]({'pathParts':[d,b[q(0x9d)],paramCase(b[q(0x8f)]),paramCase(b[q(0x8f)])]}),g=await this['fsi'][q(0x9b)]();this['fsi']['withValue'](g,async()=>{const r=q;typeof g[r(0x70)][r(0x73)]==='string'&&(g[r(0x70)][r(0x73)]=g['template']['test']==='true'?!![]:![],this['fsi']['setTemplate'](r(0x73),g['template']['test']));typeof g[r(0x70)][r(0x6c)]===r(0x8d)&&(g[r(0x70)]['css']=g[r(0x70)][r(0x6c)]===r(0x69)?!![]:![],this['fsi'][r(0x72)](r(0x6c),g[r(0x70)][r(0x6c)]));typeof g[r(0x70)]['js']==='string'&&(g[r(0x70)]['js']=g['template']['js']==='true'?!![]:![],this[r(0x89)][r(0x72)]('js',g[r(0x70)]['js']));!g[r(0xa6)]&&(g[r(0xa6)]={});!b['root']&&!this[r(0x89)][r(0x7b)](r(0x7a))&&(Log[r(0x9f)](r(0x71)),await this[r(0x89)][r(0x98)]('ramda',{'cwd':c}));if(!b[r(0x68)]&&!this[r(0x89)][r(0x7b)](r(0x87))){Log['error'](r(0xa1));return;}const h={'name':pascalCase(b[r(0x8f)]),'myPath':a59e[r(0x6e)](this[r(0x89)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[r(0x8f)]),'className':pascalCase(b[r(0x8f)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x8f)]),'graphql':g[r(0x80)][r(0x81)],'features':g[r(0xa6)],'client':g[r(0x80)][r(0x9c)],'api':g[r(0x80)]['api'],'ssr':g['engines']['ssr'],'test':g[r(0x80)][r(0x73)],'theme':g[r(0x80)][r(0x6d)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0xa6)][r(0x67)]};this[r(0x89)][r(0x70)]({'srcPath':'component/component.js','destPath':f+'.js','context':h,'framework':r(0x87),'config':g});g[r(0x80)]['test']!==r(0x9e)&&this[r(0x89)][r(0x70)]({'srcPath':'test/test.js','destPath':f+r(0x82),'context':h,'framework':r(0x87),'config':g});g[r(0x70)][r(0x6c)]&&(this[r(0x89)][r(0x70)]({'srcPath':r(0x86),'destPath':f+r(0x77),'context':Object[r(0x76)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[r(0x89)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[r(0x80)]['js'],'content':'import\x20\x27./'+h['cssCaseName']+'.'+g['engines'][r(0x6c)]+'\x27;'}));const i=b['dir']?'/'+b[r(0x9d)]+'/':'/',j=''+d+i+h[r(0x79)]+'/'+h[r(0x79)];let k;if(g[r(0x80)][r(0x88)]===r(0x69)){const l=this['fsi']['pathFromApp']({'pathParts':[r(0x74),r(0x8b),r(0x84),r(0x7d)]});k=this[r(0x89)][r(0xa7)]({'pathParts':[l],'config':g});}else{const m=this['fsi'][r(0xa4)]({'pathParts':[r(0x74),r(0x8b),r(0x9c),r(0x7d)]});k=this['fsi'][r(0xa7)]({'pathParts':[m],'config':g});}g[r(0x80)][r(0x9c)]===r(0x87)||g[r(0x80)][r(0x9c)]===r(0x97)?(g[r(0x80)]['js']==='tsx'?this[r(0x89)][r(0xa2)]({'filePath':k,'content':r(0x7f)+h[r(0xa0)]+r(0x7c)+j+r(0x91)}):this[r(0x89)][r(0xa2)]({'filePath':k,'content':'import\x20{\x20'+h['className']+r(0x7c)+j+'.'+g[r(0x80)]['js']+r(0x91)}),this[r(0x89)]['injectAtEndOfFile']({'filePath':k,'content':r(0x93)+h[r(0xa0)]+r(0x6a)})):this['fsi'][r(0xa5)]({'filePath':k,'content':'import\x20\x27'+j+'.'+g[r(0x80)]['js']+r(0x91)});});}catch(h){Log[q(0x75)](h);}});
1
+ const a58q=a58d;(function(a,b){const n=a58d,c=a();while(!![]){try{const d=-parseInt(n(0x18a))/0x1+-parseInt(n(0x191))/0x2*(parseInt(n(0x197))/0x3)+parseInt(n(0x18e))/0x4+parseInt(n(0x193))/0x5+parseInt(n(0x170))/0x6+parseInt(n(0x184))/0x7*(-parseInt(n(0x166))/0x8)+parseInt(n(0x161))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x27623));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a58d;if(c){const e=c[o(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const p=a58d;return a58a[p(0x195)]()[p(0x159)]('(((.+)+)+)+$')[p(0x195)]()[p(0x171)](a58a)[p(0x159)](p(0x199));});function a58c(){const t=['98lCtUnP','create','client','rewriteDestinationPathForEngine','installNpmPackage','assign','207176xFGovp','graphql','fsi','string','216380otvsUR','reflux','engines','1070JXnszr','imports','1384670aFpCin','component','toString','warn','1137RPGCYh','comp','(((.+)+)+)+$','template','fileName','withValue','css','search','setTemplate','tsx','import\x20\x27./','\x20};\x0a','true','withTranslations','resourceName','3746826JjOcQS','.js','component/component.js','react','lib','177760bZBMqH','ramda','\x27;\x0a','.css','\x20}\x20from\x20\x27','none','root','theme','import\x20\x27','startup','809958HaYbuH','constructor','pathFromProject','.tests.js','injectAtBeginningOfFile','injectAtEndOfFile','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','pathFromApp','checkNpmPackage','relative','apply','features','ssr','import\x20{\x20','test/test.js','dir','templates.js','test','className','cssCaseName'];a58c=function(){return t;};return a58c();}a58a();import a58e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x158;let f=c[d];return f;},a58d(a,b);}import{Log}from'../tools/log/log.class.js';const aliases=[a58q(0x198)];Generator[a58q(0x185)]({'name':a58q(0x194),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[a58q(0x17f)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a58q;try{const c=this['fsi']['findAppDirectory'](),d='/imports/ui/components',f=this['fsi'][r(0x177)]({'pathParts':[d,b[r(0x17f)],paramCase(b['resourceName']),paramCase(b[r(0x160)])]}),g=await this[r(0x18c)]['getProjectConfig']();this['fsi'][r(0x19c)](g,async()=>{const s=r;typeof g[s(0x19a)][s(0x181)]===s(0x18d)&&(g['template'][s(0x181)]=g['template'][s(0x181)]===s(0x15e)?!![]:![],this[s(0x18c)]['setTemplate']('test',g[s(0x19a)]['test']));typeof g[s(0x19a)][s(0x158)]===s(0x18d)&&(g[s(0x19a)][s(0x158)]=g[s(0x19a)][s(0x158)]===s(0x15e)?!![]:![],this[s(0x18c)][s(0x15a)](s(0x158),g[s(0x19a)][s(0x158)]));typeof g[s(0x19a)]['js']===s(0x18d)&&(g[s(0x19a)]['js']=g[s(0x19a)]['js']===s(0x15e)?!![]:![],this['fsi'][s(0x15a)]('js',g[s(0x19a)]['js']));!g[s(0x17b)]&&(g['features']={});!b[s(0x16c)]&&!this[s(0x18c)]['checkNpmPackage'](s(0x167))&&(Log[s(0x196)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0x18c)][s(0x188)](s(0x167),{'cwd':c}));if(!b[s(0x16c)]&&!this['fsi'][s(0x178)]('react')){Log['error'](s(0x176));return;}const h={'name':pascalCase(b[s(0x160)]),'myPath':a58e[s(0x179)](this['fsi'][s(0x172)]({}),f),'cssCaseName':paramCase(b[s(0x160)]),'className':pascalCase(b[s(0x160)]),'camelCaseName':camelCase(b[s(0x160)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x190)][s(0x18b)],'features':g[s(0x17b)],'client':g['engines'][s(0x186)],'api':g[s(0x190)]['api'],'ssr':g[s(0x190)][s(0x17c)],'test':g[s(0x190)][s(0x181)],'theme':g[s(0x190)][s(0x16d)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][s(0x15f)]};this['fsi']['template']({'srcPath':s(0x163),'destPath':f+s(0x162),'context':h,'framework':'react','config':g});g[s(0x190)][s(0x181)]!==s(0x16b)&&this['fsi']['template']({'srcPath':s(0x17e),'destPath':f+s(0x173),'context':h,'framework':s(0x164),'config':g});g[s(0x19a)][s(0x158)]&&(this['fsi']['template']({'srcPath':'template/template.css','destPath':f+s(0x169),'context':Object[s(0x189)]({},h,{'className':paramCase(b[s(0x160)])}),'config':g}),this[s(0x18c)][s(0x174)]({'filePath':f+'.'+g[s(0x190)]['js'],'content':s(0x15c)+h[s(0x183)]+'.'+g[s(0x190)]['css']+'\x27;'}));const i=b[s(0x17f)]?'/'+b[s(0x17f)]+'/':'/',j=''+d+i+h[s(0x19b)]+'/'+h[s(0x19b)];let k;if(g[s(0x190)]['ssr']===s(0x15e)){const l=this[s(0x18c)]['pathFromApp']({'pathParts':[s(0x192),s(0x16f),s(0x165),'templates.js']});k=this[s(0x18c)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x18c)][s(0x177)]({'pathParts':[s(0x192),s(0x16f),s(0x186),s(0x180)]});k=this[s(0x18c)][s(0x187)]({'pathParts':[m],'config':g});}g['engines'][s(0x186)]==='react'||g[s(0x190)][s(0x186)]===s(0x18f)?(g['engines']['js']===s(0x15b)?this[s(0x18c)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[s(0x182)]+s(0x16a)+j+s(0x168)}):this[s(0x18c)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x17d)+h[s(0x182)]+s(0x16a)+j+'.'+g[s(0x190)]['js']+s(0x168)}),this['fsi'][s(0x175)]({'filePath':k,'content':'export\x20{\x20'+h['className']+s(0x15d)})):this[s(0x18c)][s(0x175)]({'filePath':k,'content':s(0x16e)+j+'.'+g[s(0x190)]['js']+s(0x168)});});}catch(h){Log['error'](h);}});
@@ -1 +1 @@
1
- const a60j=a60d;function a60c(){const m=['search','production','Generate\x20configuration\x20settings.','ubuntu','626356bEOtwp','553240mixbsX','88NyStyx','prod','5085ULrzXD','pathFromProject','appName','(((.+)+)+)+$','constructor','withValue','isDocker','process.env','30TdXMCF','dev','4821558shNkeC','toString','1166914QriSJj','141618yNWPcb','9233700KQpCZP','config/settings.json','config','fsi','getProjectConfig','settings.json','template','config/process.env','resourceName','1IqrubF'];a60c=function(){return m;};return a60c();}(function(a,b){const h=a60d,c=a();while(!![]){try{const d=parseInt(h(0xb1))/0x1*(-parseInt(h(0xb6))/0x2)+-parseInt(h(0xa7))/0x3+-parseInt(h(0xb7))/0x4*(-parseInt(h(0xa2))/0x5)+-parseInt(h(0xa4))/0x6+-parseInt(h(0xa6))/0x7+-parseInt(h(0xb8))/0x8*(parseInt(h(0xba))/0x9)+parseInt(h(0xa8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x65a50));const a60b=(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;};}()),a60a=a60b(this,function(){const i=a60d;return a60a[i(0xa5)]()[i(0xb2)](i(0xbd))[i(0xa5)]()[i(0xbe)](a60a)['search']('(((.+)+)+)+$');});a60a();import{Generator}from'../generator.js';function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0xa0;let f=c[d];return f;},a60d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'config','usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a60j(0xb4),'validOpts':['isDocker'],'examples':['maka\x20g:config\x20production']},function(a,b){const k=a60j,c=this[k(0xab)][k(0xac)]();this[k(0xab)][k(0xbf)](c,async()=>{const l=k,d={'app':c[l(0xbc)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[l(0xb0)]),'userName':l(0xb5),'isDocker':b['isDocker']};let e=a[0x0];if(e===l(0xa3))e='development';else e===l(0xb9)&&(e=l(0xb3));const f=this[l(0xab)][l(0xbb)]({'pathParts':[l(0xaa),e,l(0xad)]});this['fsi'][l(0xae)]({'srcPath':l(0xa9),'destPath':f,'context':d,'config':c});if(!b[l(0xa0)]){const g=this[l(0xab)][l(0xbb)]({'pathParts':[l(0xaa),e,l(0xa1)]});this[l(0xab)][l(0xae)]({'srcPath':l(0xaf),'destPath':g,'context':d,'config':c});}});});
1
+ const a59k=a59d;(function(a,b){const h=a59d,c=a();while(!![]){try{const d=parseInt(h(0x1cf))/0x1*(parseInt(h(0x1d0))/0x2)+-parseInt(h(0x1d1))/0x3+-parseInt(h(0x1e4))/0x4*(-parseInt(h(0x1e0))/0x5)+-parseInt(h(0x1e7))/0x6*(-parseInt(h(0x1cc))/0x7)+parseInt(h(0x1c9))/0x8*(parseInt(h(0x1d3))/0x9)+parseInt(h(0x1d4))/0xa*(parseInt(h(0x1e3))/0xb)+-parseInt(h(0x1de))/0xc*(parseInt(h(0x1dd))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xe973b));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a59d;if(c){const e=c[i(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const j=a59d;return a59a[j(0x1dc)]()[j(0x1ce)](j(0x1d6))[j(0x1dc)]()[j(0x1e6)](a59a)[j(0x1ce)](j(0x1d6));});function a59c(){const n=['11BgBlzT','8508AqcXnu','prod','constructor','402DvUawO','apply','231464Ctmzcw','template','isDocker','74893AbZEDE','config','search','31442ZVVPuU','100EhPUoX','4877664hmXwWK','pathFromProject','342oBRkWK','16000610ywUpcS','getProjectConfig','(((.+)+)+)+$','create','config/settings.json','process.env','production','settings.json','toString','581633vLhbUG','804vkPvbc','resourceName','1390mWffxP','fsi','appName'];a59c=function(){return n;};return a59c();}function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x1c9;let f=c[d];return f;},a59d(a,b);}a59a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a59k(0x1d7)]({'name':a59k(0x1cd),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a59k(0x1cb)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a59k,c=this[l(0x1e1)][l(0x1d5)]();this['fsi']['withValue'](c,async()=>{const m=l,d={'app':c[m(0x1e2)],'appFileCase':paramCase(c[m(0x1e2)]),'name':pascalCase(b[m(0x1df)]),'fileName':paramCase(b[m(0x1df)]),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b['isDocker']};let e=a[0x0];if(e==='dev')e='development';else e===m(0x1e5)&&(e=m(0x1da));const f=this[m(0x1e1)][m(0x1d2)]({'pathParts':[m(0x1cd),e,m(0x1db)]});this[m(0x1e1)][m(0x1ca)]({'srcPath':m(0x1d8),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x1e1)][m(0x1d2)]({'pathParts':[m(0x1cd),e,m(0x1d9)]});this['fsi'][m(0x1ca)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=parseInt(n(0x199))/0x1+parseInt(n(0x1be))/0x2+parseInt(n(0x1b6))/0x3*(-parseInt(n(0x1b2))/0x4)+parseInt(n(0x18d))/0x5+-parseInt(n(0x188))/0x6+parseInt(n(0x197))/0x7+-parseInt(n(0x198))/0x8*(parseInt(n(0x1a4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x18c10));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0x1b9)]()[p(0x18a)]('(((.+)+)+)+$')[p(0x1b9)]()[p(0x190)](a61a)[p(0x18a)](p(0x1b3));});a61a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x188;let f=c[d];return f;},a61d(a,b);}import{Actions}from'../tools/actions/actions.class.js';Generator[a61q(0x1a3)]({'name':'dbc','usage':a61q(0x1a9),'shortDesc':a61q(0x1bb),'validOpts':[a61q(0x1bf),a61q(0x191)],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a61q(0x1a8),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a61q;try{const c=await this[r(0x196)][r(0x1b4)](),d=this[r(0x196)]['pathFromApp']({}),f=paramCase(b[r(0x1af)]);if(!b[r(0x1bf)]){const h={'type':r(0x19f),'name':r(0x18b),'message':r(0x18e),'choices':[{'name':r(0x19c),'value':r(0x1a7)},{'name':r(0x1c1),'value':r(0x1b0)}]},{dbAnswer:i}=await Actions[r(0x1a2)](h);i&&(b[r(0x1bf)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[r(0x1af)]),'camelCase':camelCase(b[r(0x1af)]),'type':b['type'],'engine':c[r(0x18f)]['js'],'noRename':!![]};this[r(0x196)][r(0x1c2)](c,async()=>{const s=r;let j='js';c[s(0x18f)]['js']===s(0x1c0)&&(j='ts');const k=[s(0x1b0),s(0x1a7)];if(k[s(0x1bc)](g['type'])<0x0){const m=g[s(0x1bf)]?g['type']:s(0x1a1);Log['error'](s(0x19b)+m+s(0x189));return;}b[s(0x1bf)]===s(0x1a7)&&!this[s(0x196)][s(0x193)]('pg')&&(Log[s(0x19a)](s(0x1bd)),await this['fsi'][s(0x18c)]('pg',{'cwd':d}));b[s(0x1bf)]===s(0x1b0)&&!this['fsi']['checkNpmPackage'](s(0x1b0))&&(Log['warn']('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[s(0x196)][s(0x18c)]('mssql',{'cwd':d}));b[s(0x1bf)]===s(0x1ac)&&!this[s(0x196)]['checkNpmPackage'](s(0x195))&&(Log[s(0x19a)](s(0x1b7)),await this[s(0x196)][s(0x18c)](s(0x195),{'cwd':d}));this[s(0x196)][s(0x1b8)]({'srcPath':s(0x1b5),'destPath':this[s(0x196)][s(0x1a0)]({'pathParts':['imports','startup',s(0x194),s(0x1ab),b[s(0x191)],f,s(0x19d)+j]}),'context':g,'config':c}),this[s(0x196)][s(0x1b8)]({'srcPath':'dbc/conn.js','destPath':this['fsi']['pathFromApp']({'pathParts':[s(0x192),s(0x1aa),s(0x194),s(0x1ab),b[s(0x191)],f,s(0x1ad)+j]}),'context':g,'config':c}),this['fsi'][s(0x1b8)]({'srcPath':s(0x1b1),'destPath':this[s(0x196)][s(0x1a0)]({'pathParts':['imports',s(0x1aa),s(0x194),s(0x1a6)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x196)][s(0x1a0)]({'pathParts':['imports','startup',s(0x194),s(0x1ba)+c[s(0x18f)]['js']]});this[s(0x196)]['injectAtEndOfFile']({'filePath':l,'content':s(0x19e)+f+s(0x1a5)});});}catch(j){Log['error'](j);}});function a61c(){const t=['403196HQxXaT','(((.+)+)+)+$','getProjectConfig','dbc/config.js','3kKbEHE','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','template','toString','index.','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','indexOf','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','204274vawnQF','type','tsx','MS\x20SQL','withValue','944862yVYHGH',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','search','dbAnswer','installNpmPackage','318585KhRqct','DB\x20Driver','engines','constructor','dir','imports','checkNpmPackage','server','better-sqlite3','fsi','999278etVfda','5352tPoAAI','150741Fpdtqy','warn','Invalid\x20type\x20','PostgreSQL','config.','import\x20\x27./register-','list','pathFromApp','(blank)','options','create','1341gWLiGF','-dbc\x27;','register-','pgsql','maka\x20g:dbc\x20azure\x20--type=mssql','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','startup','dbc','sqlite','conn.','apply','resourceName','mssql','dbc/register-dbc.js'];a61c=function(){return t;};return a61c();}
1
+ const a60p=a60d;(function(a,b){const n=a60d,c=a();while(!![]){try{const d=-parseInt(n(0x21a))/0x1+-parseInt(n(0x20c))/0x2*(-parseInt(n(0x218))/0x3)+parseInt(n(0x21c))/0x4+-parseInt(n(0x21f))/0x5+-parseInt(n(0x21b))/0x6+-parseInt(n(0x20d))/0x7*(-parseInt(n(0x228))/0x8)+-parseInt(n(0x1f3))/0x9*(-parseInt(n(0x1fa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x62c89));const a60b=(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;};}()),a60a=a60b(this,function(){const o=a60d;return a60a['toString']()[o(0x214)](o(0x220))[o(0x210)]()[o(0x215)](a60a)['search'](o(0x220));});function a60c(){const s=['withValue','installNpmPackage','toString','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','index.','imports','search','constructor','config.','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','438oOlRWT','create','282604XMkNdl','830712vbWRsU','74904ilYLLm','maka\x20g:dbc\x20geoserver\x20--type=pgsql','startup','1698425owzDJV','(((.+)+)+)+$','import\x20\x27./register-','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','dir','checkNpmPackage','resourceName','Invalid\x20type\x20','template','1184mxQKki','pgsql','getProjectConfig','dbAnswer','better-sqlite3','mssql','pathFromApp','sqlite','1414386FFLpwI','dbc/register-dbc.js','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20todos\x20--type=sqlite','DB\x20Driver','MS\x20SQL','injectAtEndOfFile','30wZcBCP','(blank)','-dbc.','warn','PostgreSQL','fsi','tsx','engines','options','server','type','dbc/config.js','indexOf','dbc',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','-dbc\x27;','conn.','error','1042RZXlhB','28336DCoNRq'];a60c=function(){return s;};return a60c();}a60a();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';function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a60d(a,b);}Generator[a60p(0x219)]({'name':a60p(0x207),'usage':a60p(0x211),'shortDesc':a60p(0x217),'validOpts':['type',a60p(0x223)],'examples':[a60p(0x21d),'maka\x20g:dbc\x20azure\x20--type=mssql',a60p(0x1f6)]},async function(a,b){const q=a60p;try{const c=await this[q(0x1ff)][q(0x22a)](),d=this[q(0x1ff)][q(0x1f1)]({}),f=paramCase(b['resourceName']);if(!b['type']){const h={'type':'list','name':q(0x22b),'message':q(0x1f7),'choices':[{'name':q(0x1fe),'value':q(0x229)},{'name':q(0x1f8),'value':'mssql'}]},{dbAnswer:i}=await Actions[q(0x202)](h);i&&(b['type']=i);}const g={'name':pascalCase(b[q(0x225)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[q(0x225)]),'type':b['type'],'engine':c[q(0x201)]['js'],'noRename':!![]};this[q(0x1ff)][q(0x20e)](c,async()=>{const r=q;let j='js';c[r(0x201)]['js']===r(0x200)&&(j='ts');const k=[r(0x22d),'pgsql'];if(k[r(0x206)](g[r(0x204)])<0x0){const m=g[r(0x204)]?g[r(0x204)]:r(0x1fb);Log[r(0x20b)](r(0x226)+m+r(0x208));return;}b[r(0x204)]===r(0x229)&&!this[r(0x1ff)][r(0x224)]('pg')&&(Log['warn'](r(0x222)),await this['fsi']['installNpmPackage']('pg',{'cwd':d}));b['type']==='mssql'&&!this[r(0x1ff)][r(0x224)](r(0x22d))&&(Log['warn']('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[r(0x1ff)][r(0x20f)]('mssql',{'cwd':d}));b[r(0x204)]===r(0x1f2)&&!this[r(0x1ff)][r(0x224)](r(0x22c))&&(Log[r(0x1fd)](r(0x1f5)),await this[r(0x1ff)]['installNpmPackage'](r(0x22c),{'cwd':d}));this[r(0x1ff)]['template']({'srcPath':r(0x205),'destPath':this[r(0x1ff)]['pathFromApp']({'pathParts':[r(0x213),r(0x21e),r(0x203),'dbc',b[r(0x223)],f,r(0x216)+j]}),'context':g,'config':c}),this['fsi'][r(0x227)]({'srcPath':'dbc/conn.js','destPath':this['fsi']['pathFromApp']({'pathParts':[r(0x213),r(0x21e),r(0x203),r(0x207),b[r(0x223)],f,r(0x20a)+j]}),'context':g,'config':c}),this[r(0x1ff)][r(0x227)]({'srcPath':r(0x1f4),'destPath':this[r(0x1ff)][r(0x1f1)]({'pathParts':[r(0x213),'startup',r(0x203),'register-'+f+r(0x1fc)+j]}),'context':g,'config':c});const l=this[r(0x1ff)][r(0x1f1)]({'pathParts':[r(0x213),r(0x21e),'server',r(0x212)+c[r(0x201)]['js']]});this[r(0x1ff)][r(0x1f9)]({'filePath':l,'content':r(0x221)+f+r(0x209)});});}catch(j){Log[q(0x20b)](j);}});
@@ -1 +1 @@
1
- const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=-parseInt(f(0x97))/0x1*(parseInt(f(0x8f))/0x2)+parseInt(f(0x9a))/0x3*(parseInt(f(0x87))/0x4)+-parseInt(f(0x95))/0x5+-parseInt(f(0x88))/0x6+-parseInt(f(0x9c))/0x7+-parseInt(f(0x96))/0x8+-parseInt(f(0x90))/0x9*(-parseInt(f(0xa0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0xbc562));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x89)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a['toString']()[h(0x86)]('(((.+)+)+)+$')[h(0x8d)]()[h(0x9e)](a62a)['search'](h(0x93));});function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x85;let f=c[d];return f;},a62d(a,b);}a62a();import{Generator}from'../generator.js';function a62c(){const l=['cert','maka\x20g:dockerfile','toString','error','2EelLIM','423NfFBdW','dockerfile','appName','(((.+)+)+)+$','isFile','5876545nIanBn','9888048ucukYO','1348189AKkLgX','Generate\x20an\x20updated\x20dockerfile','maka\x20{generate,\x20g}:dockerfile','21957WEzOTa','create','5896198DcPhoL','app.tar.gz','constructor','template','1197850CqhyAu','getProjectConfig','join','search','204LDGULo','3779520mmFFJU','apply','fsi'];a62c=function(){return l;};return a62c();}import{Log}from'../tools/log/log.class.js';import a62e from'path';Generator[a62i(0x9b)]({'name':a62i(0x91),'usage':a62i(0x99),'shortDesc':a62i(0x98),'validOpts':[],'noResource':!![],'examples':[a62i(0x8c)]},async function(){const j=a62i;try{const a=await this[j(0x8a)][j(0xa1)](),b=await this[j(0x8a)]['getGlobalConfig'](),c=this[j(0x8a)]['findProjectDirectory']();this[j(0x8a)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0x92)],'config':a,'appPath':a62e[k(0x85)](c,'app'),'bundlePath':a62e[k(0x85)](c,'build',k(0x9d)),'useCert':this[k(0x8a)][k(0x94)](b[k(0x8b)])};this[k(0x8a)][k(0x9f)]({'srcPath':'docker/Dockerfile','destPath':a62e[k(0x85)](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x8e)](d);}});
1
+ const a61i=a61d;(function(a,b){const f=a61d,c=a();while(!![]){try{const d=-parseInt(f(0xbe))/0x1*(-parseInt(f(0xd4))/0x2)+parseInt(f(0xc1))/0x3*(-parseInt(f(0xba))/0x4)+parseInt(f(0xcd))/0x5*(-parseInt(f(0xbf))/0x6)+-parseInt(f(0xd1))/0x7*(-parseInt(f(0xdc))/0x8)+-parseInt(f(0xca))/0x9*(-parseInt(f(0xd3))/0xa)+parseInt(f(0xdb))/0xb*(-parseInt(f(0xc9))/0xc)+parseInt(f(0xc0))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x2cba2));function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0xba;let f=c[d];return f;},a61d(a,b);}const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a61d;if(c){const e=c[g(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const h=a61d;return a61a[h(0xc6)]()[h(0xd5)](h(0xd2))[h(0xc6)]()[h(0xbd)](a61a)[h(0xd5)]('(((.+)+)+)+$');});a61a();function a61c(){const l=['99564xeGOGE','join','apply','constructor','21001fAlgus','1005234cHBbzY','2852057LaJSQX','27noSmVK','Dockerfile','fsi','service','findProjectDirectory','toString','template','create','238956fMNHEt','147816pAPObv','docker/Dockerfile','isFile','5ZumirW','error','maka\x20{generate,\x20g}:dockerfile','getProjectConfig','7mTHruU','(((.+)+)+)+$','10IlSLnS','2wXzUel','search','cert','Generate\x20an\x20updated\x20dockerfile','dockerfile','build','appName','22FGJaGY','2862176qyWvKr','app.tar.gz','maka\x20g:dockerfile'];a61c=function(){return l;};return a61c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a61e from'path';Generator[a61i(0xc8)]({'name':a61i(0xd8),'usage':a61i(0xcf),'shortDesc':a61i(0xd7),'validOpts':[],'noResource':!![],'examples':[a61i(0xde)]},async function(){const j=a61i;try{const a=await this[j(0xc3)][j(0xd0)](),b=await this['fsi']['getGlobalConfig'](),c=this[j(0xc3)][j(0xc5)]();this[j(0xc3)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0xda)],'config':a,'appPath':a61e['join'](c,'app'),'bundlePath':a61e[k(0xbb)](c,k(0xd9),k(0xdd)),'useCert':this[k(0xc3)][k(0xcc)](b[k(0xd6)])};this[k(0xc3)][k(0xc7)]({'srcPath':k(0xcb),'destPath':a61e[k(0xbb)](c,k(0xc2)),'framework':k(0xc4),'context':d,'config':a});});}catch(d){Log[j(0xce)](d);}});
@@ -1 +1 @@
1
- const a63r=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=parseInt(o(0x20f))/0x1+-parseInt(o(0x21b))/0x2+parseInt(o(0x202))/0x3*(parseInt(o(0x1fe))/0x4)+parseInt(o(0x213))/0x5*(parseInt(o(0x1f7))/0x6)+-parseInt(o(0x215))/0x7+parseInt(o(0x200))/0x8+-parseInt(o(0x1e2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0xe241c));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a[q(0x216)]()[q(0x214)](q(0x1f0))[q(0x216)]()[q(0x1f1)](a63a)['search'](q(0x1f0));});function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x1de;let f=c[d];return f;},a63d(a,b);}function a63c(){const u=['features','\x20};\x0a','lib','cssCaseName','pathFromProject','withTranslations','installNpmPackage','true','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','848351OYSNFl','withValue','.js','fileName','6648485Gqacim','search','5974052AeVapl','toString','templates.js','error','getProjectConfig','engines','2007946JVlHQD','graphql','\x27;\x0a','assign','imports','fsi','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','@apollo/client\x20isomorphic-fetch','checkNpmPackage','10257111ekmVLQ','tsx','client','import\x20\x27','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','startup','apply','rewriteDestinationPathForEngine','injectAtEndOfFile','hook','export\x20{\x20','.css','resourceName','none','(((.+)+)+)+$','constructor','import\x20{\x20','maka\x20g:hook\x20cool-hook','template','dir','theme','6bCAoRM','react','setTemplate','.app-tests.js','css','\x20}\x20from\x20\x27','hook/hook.js','16uOsruG','pathFromApp','4219296vwjepx','template/template.css','913782dWsuxu','injectAtBeginningOfFile','/imports/ui/hooks'];a63c=function(){return u;};return a63c();}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['create']({'name':a63r(0x1eb),'aliases':['h'],'checkWhere':![],'usage':a63r(0x1e6),'shortDesc':a63r(0x1df),'validOpts':[a63r(0x1f5)],'examples':[a63r(0x1f3)]},async function(a,b){const s=a63r;try{const c=this['fsi']['checkNpmPackage'](s(0x1f8));if(!c){Log['error'](s(0x20d));throw new UsageError();}const d=this[s(0x1de)][s(0x1ff)](b),f=s(0x204),g=this['fsi']['pathFromApp']({'pathParts':[f,b[s(0x1f5)],paramCase(b[s(0x1ee)]),paramCase(b[s(0x1ee)])]}),h=await this[s(0x1de)][s(0x219)]();this[s(0x1de)][s(0x210)](h,async()=>{const t=s;typeof h[t(0x1f4)][t(0x1fb)]==='string'&&(h['template'][t(0x1fb)]=h[t(0x1f4)][t(0x1fb)]==='true'?!![]:![],this[t(0x1de)][t(0x1f9)](t(0x1fb),h[t(0x1f4)][t(0x1fb)]));h['engines'][t(0x21c)]==='apollo'&&!this[t(0x1e1)]('@apollo/client')&&(Log['warn'](t(0x20e)),await this['fsi'][t(0x20b)](t(0x1e0),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1ee)]),'className':pascalCase(b[t(0x1ee)]),'name':pascalCase(b['resourceName']),'graphql':h[t(0x21a)]['graphql'],'theme':h[t(0x21a)][t(0x1f6)],'features':h['features'],'myPath':a63e['relative'](this[t(0x1de)][t(0x209)]({}),g),'fileName':paramCase(b[t(0x1ee)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x205)][t(0x20a)]};this[t(0x1de)][t(0x1f4)]({'srcPath':t(0x1fd),'destPath':g+t(0x211),'context':i,'config':h,'framework':t(0x1f8)});h[t(0x1f4)]['css']&&(this[t(0x1de)][t(0x1f4)]({'srcPath':t(0x201),'destPath':g+t(0x1ed),'context':Object[t(0x21e)]({},i,{'className':i[t(0x208)]}),'config':h}),this[t(0x1de)][t(0x203)]({'filePath':g+'.'+h[t(0x21a)]['js'],'content':'import\x20\x27./'+i[t(0x212)]+'.'+h[t(0x21a)][t(0x1fb)]+'\x27;'}));h['engines']['test']!==t(0x1ef)&&this[t(0x1de)][t(0x1f4)]({'srcPath':'test/test.js','destPath':g+t(0x1fa),'framework':t(0x1f8),'context':i,'config':h});const j=b[t(0x1f5)]?'/'+b[t(0x1f5)]+'/':'/',k=''+f+j+i[t(0x212)]+'/'+i[t(0x212)];let l;if(h[t(0x21a)]['ssr']===t(0x20c)){const m=this[t(0x1de)][t(0x1ff)]({'pathParts':[t(0x21f),t(0x1e7),t(0x207),t(0x217)]});l=this[t(0x1de)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x1de)]['pathFromApp']({'pathParts':['imports',t(0x1e7),t(0x1e4),t(0x217)]});l=this[t(0x1de)][t(0x1e9)]({'pathParts':[n],'config':h});}h[t(0x21a)][t(0x1e4)]===t(0x1f8)?(h['engines']['js']===t(0x1e3)?this['fsi'][t(0x203)]({'filePath':l,'content':'import\x20{\x20'+i['className']+t(0x1fc)+k+t(0x21d)}):this[t(0x1de)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x1f2)+i['className']+t(0x1fc)+k+'.'+h[t(0x21a)]['js']+'\x27;\x0a'}),this[t(0x1de)][t(0x1ea)]({'filePath':l,'content':t(0x1ec)+i['className']+t(0x206)})):this[t(0x1de)][t(0x1ea)]({'filePath':l,'content':t(0x1e5)+k+'.'+h[t(0x21a)]['js']+t(0x21d)});});}catch(i){Log[s(0x218)](i);}});
1
+ const a62r=a62d;(function(a,b){const o=a62d,c=a();while(!![]){try{const d=-parseInt(o(0x1ba))/0x1*(parseInt(o(0x19e))/0x2)+-parseInt(o(0x1b9))/0x3*(parseInt(o(0x1ac))/0x4)+-parseInt(o(0x195))/0x5+parseInt(o(0x1af))/0x6*(parseInt(o(0x1b2))/0x7)+-parseInt(o(0x17e))/0x8+parseInt(o(0x1bc))/0x9*(-parseInt(o(0x1a9))/0xa)+parseInt(o(0x1b4))/0xb*(parseInt(o(0x180))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x2a761));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a62d;if(c){const e=c[p(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const q=a62d;return a62a[q(0x194)]()['search'](q(0x1b7))[q(0x194)]()[q(0x1ad)](a62a)[q(0x1bb)](q(0x1b7));});a62a();import a62e 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';function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x17b;let f=c[d];return f;},a62d(a,b);}Generator[a62r(0x186)]({'name':a62r(0x1ae),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a62r(0x17b),'validOpts':[a62r(0x184)],'examples':[a62r(0x1a3)]},async function(a,b){const s=a62r;try{const c=this[s(0x181)][s(0x1a5)](s(0x187));if(!c){Log[s(0x19b)](s(0x1a0));throw new UsageError();}const d=this[s(0x181)][s(0x1bd)](b),f='/imports/ui/hooks',g=this[s(0x181)][s(0x1bd)]({'pathParts':[f,b[s(0x184)],paramCase(b[s(0x19a)]),paramCase(b[s(0x19a)])]}),h=await this['fsi'][s(0x17d)]();this['fsi'][s(0x18a)](h,async()=>{const t=s;typeof h['template'][t(0x185)]==='string'&&(h['template'][t(0x185)]=h['template'][t(0x185)]===t(0x1b5)?!![]:![],this[t(0x181)][t(0x1a7)]('css',h[t(0x18d)]['css']));h[t(0x1be)][t(0x1a4)]==='apollo'&&!this[t(0x1a5)](t(0x191))&&(Log[t(0x1a6)](t(0x18c)),await this[t(0x181)][t(0x19c)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x19a)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0x19a)]),'graphql':h[t(0x1be)][t(0x1a4)],'theme':h[t(0x1be)]['theme'],'features':h[t(0x199)],'myPath':a62e[t(0x190)](this[t(0x181)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0x19a)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x199)][t(0x1a1)]};this[t(0x181)]['template']({'srcPath':t(0x196),'destPath':g+t(0x1b1),'context':i,'config':h,'framework':'react'});h[t(0x18d)][t(0x185)]&&(this[t(0x181)][t(0x18d)]({'srcPath':t(0x19f),'destPath':g+'.css','context':Object['assign']({},i,{'className':i[t(0x17f)]}),'config':h}),this[t(0x181)][t(0x197)]({'filePath':g+'.'+h[t(0x1be)]['js'],'content':'import\x20\x27./'+i[t(0x1ab)]+'.'+h[t(0x1be)][t(0x185)]+'\x27;'}));h[t(0x1be)][t(0x1a8)]!==t(0x18e)&&this['fsi'][t(0x18d)]({'srcPath':'test/test.js','destPath':g+t(0x19d),'framework':t(0x187),'context':i,'config':h});const j=b[t(0x184)]?'/'+b[t(0x184)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x1ab)];let l;if(h['engines'][t(0x18b)]===t(0x1b5)){const m=this[t(0x181)][t(0x1bd)]({'pathParts':[t(0x18f),t(0x17c),'lib',t(0x1a2)]});l=this['fsi'][t(0x188)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x1bd)]({'pathParts':[t(0x18f),'startup',t(0x192),t(0x1a2)]});l=this['fsi'][t(0x188)]({'pathParts':[n],'config':h});}h[t(0x1be)][t(0x192)]===t(0x187)?(h[t(0x1be)]['js']===t(0x1b3)?this['fsi'][t(0x197)]({'filePath':l,'content':t(0x1b0)+i['className']+t(0x1aa)+k+'\x27;\x0a'}):this['fsi'][t(0x197)]({'filePath':l,'content':t(0x1b0)+i[t(0x183)]+t(0x1aa)+k+'.'+h[t(0x1be)]['js']+'\x27;\x0a'}),this[t(0x181)][t(0x193)]({'filePath':l,'content':t(0x182)+i[t(0x183)]+t(0x1b6)})):this[t(0x181)][t(0x193)]({'filePath':l,'content':t(0x1b8)+k+'.'+h[t(0x1be)]['js']+t(0x198)});});}catch(i){Log[s(0x19b)](i);}});function a62c(){const u=['export\x20{\x20','className','dir','css','create','react','rewriteDestinationPathForEngine','apply','withValue','ssr','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','template','none','imports','relative','@apollo/client','client','injectAtEndOfFile','toString','1663360CQRvRO','hook/hook.js','injectAtBeginningOfFile','\x27;\x0a','features','resourceName','error','installNpmPackage','.app-tests.js','2IKHstu','template/template.css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','withTranslations','templates.js','maka\x20g:hook\x20cool-hook','graphql','checkNpmPackage','warn','setTemplate','test','10PDlyjW','\x20}\x20from\x20\x27','fileName','3188IIRbkL','constructor','hook','222EXcNGX','import\x20{\x20','.js','25263xRIhej','tsx','35519vbDigB','true','\x20};\x0a','(((.+)+)+)+$','import\x20\x27','501nTYKRk','106200mhciuH','search','180909JDjZRb','pathFromApp','engines','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','startup','getProjectConfig','1940792RCBqmP','cssCaseName','3252neFkTr','fsi'];a62c=function(){return u;};return a62c();}
@@ -1 +1 @@
1
- function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x1c9;let f=c[d];return f;},a64d(a,b);}const a64j=a64d;function a64c(){const m=['NIE','leaflet-map','5342250zDrzXj','getProjectConfig','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','(((.+)+)+)+$','5640808rOoKuq','error','9760576IKAXPb','maka\x20g:k\x20city-map\x20--type=leaflet-map','notice','type','withValue','engines','473504JePPzA','login','5684115OVoEUY','map','2OPADOE','Invalid\x20type\x20',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','toString','kit','8194109xywoFB','fsi','resourceName','constructor','(blank)','maka\x20g:kit\x20--type=map','1200417MfIFJL','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','create','indexOf'];a64c=function(){return m;};return a64c();}(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0x1d1))/0x1*(parseInt(h(0x1cd))/0x2)+-parseInt(h(0x1dc))/0x3+parseInt(h(0x1e6))/0x4+parseInt(h(0x1cf))/0x5+-parseInt(h(0x1e2))/0x6+-parseInt(h(0x1d6))/0x7+parseInt(h(0x1e8))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0xcb3ec));const a64b=(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;};}()),a64a=a64b(this,function(){const i=a64d;return a64a[i(0x1d4)]()['search'](i(0x1e5))[i(0x1d4)]()[i(0x1d9)](a64a)['search'](i(0x1e5));});a64a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a64j(0x1de)]({'name':a64j(0x1d5),'aliases':['k'],'usage':a64j(0x1e4),'shortDesc':a64j(0x1dd),'validOpts':[a64j(0x1ca)],'examples':[a64j(0x1db),a64j(0x1e9)]},async function(a,b){const k=a64j;try{const c=this[k(0x1d7)][k(0x1e3)]();this[k(0x1d7)][k(0x1cb)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x1d8)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[l(0x1d8)]),'type':b[l(0x1ca)],'engine':c[l(0x1cc)]['js'],'noRename':!![]},f=[l(0x1e1),l(0x1ce)];if(f[l(0x1df)](d[l(0x1ca)])<0x0){const g=d[l(0x1ca)]?d['type']:l(0x1da);Log[l(0x1e7)](l(0x1d2)+g+l(0x1d3));return;}b['type']===l(0x1d0)&&Log[l(0x1c9)](l(0x1e0)),b[l(0x1ca)]===l(0x1ce)&&Log[l(0x1c9)](l(0x1e0));});}catch(d){Log[k(0x1e7)](d);}});
1
+ function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x78;let f=c[d];return f;},a63d(a,b);}const a63j=a63d;(function(a,b){const h=a63d,c=a();while(!![]){try{const d=parseInt(h(0x86))/0x1*(-parseInt(h(0x81))/0x2)+parseInt(h(0x78))/0x3+-parseInt(h(0x88))/0x4+-parseInt(h(0x7f))/0x5*(parseInt(h(0x91))/0x6)+-parseInt(h(0x92))/0x7+parseInt(h(0x7c))/0x8+parseInt(h(0x95))/0x9*(parseInt(h(0x8f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x45e04));const a63b=(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;};}()),a63a=a63b(this,function(){const i=a63d;return a63a[i(0x89)]()[i(0x79)](i(0x82))[i(0x89)]()['constructor'](a63a)['search'](i(0x82));});a63a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a63c(){const m=[',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','10448577wjoDrO','773811yqQwhI','search','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20g:k\x20city-map\x20--type=leaflet-map','2661968UyeCDu','fsi','NIE','72125pjTzCP','login','24IMHVkI','(((.+)+)+)+$','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','error','type','28087uchQhe','create','1336660lJHwSA','toString','notice','leaflet-map','maka\x20g:kit\x20--type=map','resourceName','getProjectConfig','10fBrcLc','indexOf','228BrBVbE','1722455CwSxMP','(blank)'];a63c=function(){return m;};return a63c();}Generator[a63j(0x87)]({'name':'kit','aliases':['k'],'usage':a63j(0x83),'shortDesc':a63j(0x7a),'validOpts':[a63j(0x85)],'examples':[a63j(0x8c),a63j(0x7b)]},async function(a,b){const k=a63j;try{const c=this['fsi'][k(0x8e)]();this[k(0x7d)]['withValue'](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x8d)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[l(0x8d)]),'type':b[l(0x85)],'engine':c['engines']['js'],'noRename':!![]},f=[l(0x8b),l(0x80)];if(f[l(0x90)](d[l(0x85)])<0x0){const g=d[l(0x85)]?d['type']:l(0x93);Log[l(0x84)]('Invalid\x20type\x20'+g+l(0x94));return;}b[l(0x85)]==='map'&&Log[l(0x8a)](l(0x7e)),b['type']===l(0x80)&&Log[l(0x8a)](l(0x7e));});}catch(d){Log[k(0x84)](d);}});
@@ -1 +1 @@
1
- const a65r=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d=-parseInt(o(0xd5))/0x1+-parseInt(o(0xce))/0x2+-parseInt(o(0xd6))/0x3+parseInt(o(0xcf))/0x4+-parseInt(o(0xb7))/0x5*(-parseInt(o(0xbc))/0x6)+-parseInt(o(0xc4))/0x7*(parseInt(o(0xe8))/0x8)+parseInt(o(0xb0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x4d24c));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0xd2)]()[q(0xaa)]('(((.+)+)+)+$')[q(0xd2)]()[q(0xb6)](a65a)[q(0xaa)](q(0xb3));});a65a();import a65e from'path';import{Generator}from'../generator.js';function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0xa9;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=['fsi','dir','260188rLgwip','939612BPLbgc','create','withTranslations','toString','\x27;\x0a','withHooks','516673ZxXttu','268347Xdchlr','warn','split','pathFromProject','imports','ramda','tsx','engines','checkNpmPackage','react','import\x20{\x20','\x20};\x0a','findAppDirectory','templates.js','injectAtBeginningOfFile','export\x20{\x20','apply','relative','9152TCIVRX','test','import\x20\x27./','setTemplate','string','none','withValue','search','includes','installNpmPackage','withHook','className','template','6096870dKJLYV','graphql','startup','(((.+)+)+)+$','.css','.app-tests.js','constructor','25tlABQo','\x20}\x20from\x20\x27','component/component.js','assign','lib','467106OXXWzn','css','fileName','features','true','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','client','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','1526yBrzZF','pathFromApp','ssr','.js','api','Scaffolding\x20for\x20a\x20React\x20Layout.','resourceName','hook/hook.js'];a65c=function(){return u;};return a65c();}const aliases=['l'];Generator[a65r(0xd0)]({'name':'layout','aliases':aliases,'usage':a65r(0xc3),'shortDesc':a65r(0xc9),'validOpts':[],'examples':['maka\x20g:layout\x20mobile/iPhone8','maka\x20g:l\x20web/safari']},function(a,b){const s=a65r,c='/imports/ui/layouts',d=this[s(0xcc)][s(0xe2)](),e=this[s(0xcc)][s(0xc5)]({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[s(0xca)])]}),f=this[s(0xcc)]['getProjectConfig']();this[s(0xcc)][s(0xa9)](f,()=>{const t=s;typeof f[t(0xaf)][t(0xe9)]===t(0xec)&&(f[t(0xaf)][t(0xe9)]=f[t(0xaf)][t(0xe9)]===t(0xc0)?!![]:![],this[t(0xcc)][t(0xeb)]('test',f[t(0xaf)][t(0xe9)]));typeof f[t(0xaf)][t(0xbd)]==='string'&&(f[t(0xaf)]['css']=f['template']['css']===t(0xc0)?!![]:![],this['fsi'][t(0xeb)](t(0xbd),f[t(0xaf)][t(0xbd)]));typeof f[t(0xaf)]['js']===t(0xec)&&(f['template']['js']=f[t(0xaf)]['js']==='true'?!![]:![],this[t(0xcc)]['setTemplate']('js',f[t(0xaf)]['js']));!f['features']&&(f[t(0xbf)]={});const g=b['_']?b['_'][0x0][t(0xd8)](':')[0x1]:![],h=b['_']&&aliases[t(0xab)](g);h&&!this[t(0xde)](t(0xdb))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0xcc)][t(0xac)](t(0xdb),{'cwd':d}));if(h&&!this[t(0xde)]('react')){Log[t(0xd7)](t(0xc1));return;}const i={'name':pascalCase(b[t(0xca)]),'myPath':a65e[t(0xe7)](this[t(0xcc)][t(0xd9)]({}),e),'cssCaseName':paramCase(b[t(0xca)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0xca)]),'fileName':paramCase(b[t(0xca)]),'graphql':f[t(0xdd)][t(0xb1)],'features':f[t(0xbf)],'client':f[t(0xdd)][t(0xc2)],'api':f[t(0xdd)][t(0xc8)],'ssr':f[t(0xdd)]['ssr'],'test':f[t(0xdd)][t(0xe9)],'theme':f[t(0xdd)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][t(0xd1)]};f[t(0xbf)]?.[t(0xd4)]||b[t(0xad)]?this['fsi']['template']({'srcPath':t(0xcb),'destPath':e+t(0xc7),'framework':t(0xdf),'context':i,'config':f}):this[t(0xcc)]['template']({'srcPath':t(0xb9),'destPath':e+'.js','framework':t(0xdf),'context':i,'config':f});f[t(0xdd)][t(0xe9)]!==t(0xed)&&this['fsi'][t(0xaf)]({'srcPath':'test/test.js','destPath':e+t(0xb5),'framework':t(0xdf),'context':i,'config':f});f[t(0xaf)][t(0xbd)]&&(this[t(0xcc)][t(0xaf)]({'srcPath':'template/template.css','destPath':e+t(0xb4),'context':Object[t(0xba)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0xcc)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0xdd)]['js'],'content':t(0xea)+i[t(0xbe)]+'.'+f[t(0xdd)]['css']+'\x27;'}));const j=b[t(0xcd)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0xbe)]+'/'+i[t(0xbe)];let l;if(f[t(0xdd)][t(0xc6)]===t(0xc0)){const m=this[t(0xcc)][t(0xc5)]({'pathParts':['imports',t(0xb2),t(0xbb),t(0xe3)]});l=this[t(0xcc)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0xcc)][t(0xc5)]({'pathParts':[t(0xda),t(0xb2),t(0xc2),'templates.js']});l=this[t(0xcc)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[t(0xdd)][t(0xc2)]===t(0xdf)?(f[t(0xdd)]['js']===t(0xdc)?this['fsi'][t(0xe4)]({'filePath':l,'content':t(0xe0)+i['className']+t(0xb8)+k+t(0xd3)}):this[t(0xcc)][t(0xe4)]({'filePath':l,'content':t(0xe0)+i[t(0xae)]+t(0xb8)+k+'.'+f['engines']['js']+'\x27;\x0a'}),this[t(0xcc)]['injectAtEndOfFile']({'filePath':l,'content':t(0xe5)+i[t(0xae)]+t(0xe1)})):this[t(0xcc)]['injectAtEndOfFile']({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0xdd)]['js']+t(0xd3)});});});
1
+ const a64r=a64d;(function(a,b){const o=a64d,c=a();while(!![]){try{const d=-parseInt(o(0x14c))/0x1*(parseInt(o(0x163))/0x2)+parseInt(o(0x146))/0x3*(-parseInt(o(0x153))/0x4)+-parseInt(o(0x165))/0x5*(-parseInt(o(0x11e))/0x6)+parseInt(o(0x122))/0x7*(parseInt(o(0x14e))/0x8)+parseInt(o(0x128))/0x9*(-parseInt(o(0x132))/0xa)+-parseInt(o(0x15b))/0xb*(-parseInt(o(0x13b))/0xc)+parseInt(o(0x126))/0xd*(parseInt(o(0x11d))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x3f235));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a64d;if(c){const e=c[p(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const q=a64d;return a64a[q(0x134)]()[q(0x125)]('(((.+)+)+)+$')['toString']()[q(0x121)](a64a)['search'](q(0x11f));});function a64c(){const u=['graphql','search','429GhrTbT','withHook','9LTyoOK','component/component.js','css','.app-tests.js','tsx','create','className','relative','fsi','resourceName','2410130gxBiFW','imports','toString','Scaffolding\x20for\x20a\x20React\x20Layout.','withTranslations','setTemplate','api','\x20}\x20from\x20\x27','layout','12VqyHMU','features','string','injectAtEndOfFile','import\x20\x27./','/imports/ui/layouts','react','test','getProjectConfig','template','engines','549nJCgUJ','template/template.css','pathFromApp','none','maka\x20g:l\x20web/safari','true','17zgvdIi','pathFromProject','120HAGXDp','theme','templates.js','.js','export\x20{\x20','4268tmMAeB','ramda','maka\x20g:layout\x20mobile/iPhone8','findAppDirectory','client','test/test.js','ssr','startup','3681007SrbGcx','installNpmPackage','apply','fileName','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','import\x20{\x20','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','38788qCYOUv','withHooks','12805AEmxzH','dir','rewriteDestinationPathForEngine','checkNpmPackage','withValue','\x27;\x0a','82474XEBWua','780vQJLsG','(((.+)+)+)+$','includes','constructor','75887CiqQLp','warn'];a64c=function(){return u;};return a64c();}a64a();import a64e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x11a;let f=c[d];return f;},a64d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a64r(0x12d)]({'name':a64r(0x13a),'aliases':aliases,'usage':a64r(0x162),'shortDesc':a64r(0x135),'validOpts':[],'examples':[a64r(0x155),a64r(0x14a)]},function(a,b){const s=a64r,c=s(0x140),d=this[s(0x130)][s(0x156)](),e=this[s(0x130)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[s(0x131)]),paramCase(b['resourceName'])]}),f=this['fsi'][s(0x143)]();this[s(0x130)][s(0x11b)](f,()=>{const t=s;typeof f['template']['test']==='string'&&(f[t(0x144)][t(0x142)]=f[t(0x144)][t(0x142)]===t(0x14b)?!![]:![],this[t(0x130)]['setTemplate'](t(0x142),f[t(0x144)][t(0x142)]));typeof f[t(0x144)][t(0x12a)]===t(0x13d)&&(f[t(0x144)][t(0x12a)]=f[t(0x144)][t(0x12a)]==='true'?!![]:![],this[t(0x130)]['setTemplate']('css',f[t(0x144)][t(0x12a)]));typeof f[t(0x144)]['js']===t(0x13d)&&(f['template']['js']=f[t(0x144)]['js']===t(0x14b)?!![]:![],this[t(0x130)][t(0x137)]('js',f[t(0x144)]['js']));!f[t(0x13c)]&&(f[t(0x13c)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[t(0x120)](g);h&&!this[t(0x11a)]('ramda')&&(Log[t(0x123)](t(0x15f)),this[t(0x130)][t(0x15c)](t(0x154),{'cwd':d}));if(h&&!this[t(0x11a)](t(0x141))){Log[t(0x123)](t(0x160));return;}const i={'name':pascalCase(b[t(0x131)]),'myPath':a64e[t(0x12f)](this[t(0x130)][t(0x14d)]({}),e),'cssCaseName':paramCase(b[t(0x131)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0x131)]),'graphql':f[t(0x145)][t(0x124)],'features':f[t(0x13c)],'client':f[t(0x145)]['client'],'api':f[t(0x145)][t(0x138)],'ssr':f[t(0x145)][t(0x159)],'test':f[t(0x145)][t(0x142)],'theme':f[t(0x145)][t(0x14f)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x13c)][t(0x136)]};f[t(0x13c)]?.[t(0x164)]||b[t(0x127)]?this['fsi'][t(0x144)]({'srcPath':'hook/hook.js','destPath':e+t(0x151),'framework':t(0x141),'context':i,'config':f}):this[t(0x130)][t(0x144)]({'srcPath':t(0x129),'destPath':e+t(0x151),'framework':'react','context':i,'config':f});f['engines'][t(0x142)]!==t(0x149)&&this['fsi']['template']({'srcPath':t(0x158),'destPath':e+t(0x12b),'framework':t(0x141),'context':i,'config':f});f['template']['css']&&(this[t(0x130)][t(0x144)]({'srcPath':t(0x147),'destPath':e+'.css','context':Object['assign']({},i,{'className':paramCase(b[t(0x131)])}),'config':f}),this[t(0x130)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x145)]['js'],'content':t(0x13f)+i['fileName']+'.'+f[t(0x145)][t(0x12a)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x166)]+'/':'/',k=''+c+j+i[t(0x15e)]+'/'+i[t(0x15e)];let l;if(f[t(0x145)][t(0x159)]===t(0x14b)){const m=this[t(0x130)][t(0x148)]({'pathParts':['imports',t(0x15a),'lib',t(0x150)]});l=this[t(0x130)][t(0x167)]({'pathParts':[m],'config':f});}else{const n=this[t(0x130)][t(0x148)]({'pathParts':[t(0x133),t(0x15a),t(0x157),t(0x150)]});l=this[t(0x130)][t(0x167)]({'pathParts':[n],'config':f});}f[t(0x145)][t(0x157)]===t(0x141)?(f[t(0x145)]['js']===t(0x12c)?this[t(0x130)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x161)+i[t(0x12e)]+t(0x139)+k+t(0x11c)}):this[t(0x130)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x161)+i[t(0x12e)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x145)]['js']+t(0x11c)}),this[t(0x130)]['injectAtEndOfFile']({'filePath':l,'content':t(0x152)+i[t(0x12e)]+'\x20};\x0a'})):this[t(0x130)][t(0x13e)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0x145)]['js']+t(0x11c)});});});
@@ -1 +1 @@
1
- const a66i=a66d;function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x71;let f=c[d];return f;},a66d(a,b);}(function(a,b){const f=a66d,c=a();while(!![]){try{const d=parseInt(f(0x82))/0x1*(-parseInt(f(0x7b))/0x2)+-parseInt(f(0x84))/0x3*(-parseInt(f(0x79))/0x4)+-parseInt(f(0x72))/0x5+-parseInt(f(0x75))/0x6*(-parseInt(f(0x7c))/0x7)+-parseInt(f(0x74))/0x8+parseInt(f(0x80))/0x9+parseInt(f(0x7f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0xf1a1e));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0x7a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0x81)]()[h(0x71)]('(((.+)+)+)+$')[h(0x81)]()[h(0x73)](a66a)['search'](h(0x7e));});function a66c(){const j=['189386uzwhKB','maka\x20g:hook\x20cool-hook','3sLPEha','search','4906015MieemF','constructor','14619736gZGtQr','246GVodik','Maka!','maka\x20generate:api\x20Trucks','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','6629836DXKWhd','apply','18vgYXcn','3423WqkhMZ','\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','(((.+)+)+)+$','37895680nbzblx','322146khdeDz','toString'];a66c=function(){return j;};return a66c();}a66a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a66i(0x76),'validOpts':[],'description':a66i(0x7d),'usage':a66i(0x78),'examples':[a66i(0x77),a66i(0x83)]},function(){return null;});export default MakaGen;
1
+ const a65i=a65d;(function(a,b){const f=a65d,c=a();while(!![]){try{const d=parseInt(f(0xb8))/0x1+parseInt(f(0xaa))/0x2+-parseInt(f(0xb0))/0x3+parseInt(f(0xb2))/0x4+-parseInt(f(0xb7))/0x5+-parseInt(f(0xab))/0x6+parseInt(f(0xae))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x5ab70));function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0xa9;let f=c[d];return f;},a65d(a,b);}const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a65d;if(c){const e=c[g(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const h=a65d;return a65a['toString']()['search'](h(0xa9))[h(0xba)]()[h(0xac)](a65a)[h(0xb5)]('(((.+)+)+)+$');});a65a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a65i(0xad),'shortDesc':a65i(0xb1),'validOpts':[],'description':a65i(0xb4),'usage':a65i(0xb9),'examples':[a65i(0xb6),a65i(0xb3)]},function(){return null;});function a65c(){const j=['Maka!','1914092zGVMEE','maka\x20g:hook\x20cool-hook','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','search','maka\x20generate:api\x20Trucks','2037825tdZIKz','175074bixwtN','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','toString','(((.+)+)+)+$','1292320xzLBEK','3758652SoKlgr','constructor','maka','1708035PVukUl','apply','414561eRgEPM'];a65c=function(){return j;};return a65c();}export default MakaGen;
@@ -1 +1 @@
1
- const a67n=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=-parseInt(k(0x1ed))/0x1*(-parseInt(k(0x1e0))/0x2)+parseInt(k(0x1d9))/0x3+parseInt(k(0x1eb))/0x4+parseInt(k(0x1f0))/0x5+parseInt(k(0x1da))/0x6+-parseInt(k(0x1d1))/0x7+-parseInt(k(0x1d3))/0x8*(parseInt(k(0x1e1))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xcce20));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a67d;if(c){const e=c[l(0x1d6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const m=a67d;return a67a[m(0x1d4)]()['search'](m(0x1f1))['toString']()[m(0x1e2)](a67a)['search']('(((.+)+)+)+$');});a67a();import{Generator}from'../generator.js';function a67c(){const q=['imports','getProjectConfig','error','create','check','index.','template','method/method.js','1257120MzWRhE','maka\x20g:method\x20todos','7JMoXvp','installMeteorPackage','withValue','6745115OAJIwo','(((.+)+)+)+$','resourceName','methods','appPathPrefix','9285360FpISUX','fsi','3621952BpGejn','toString','tsx','apply','pathFromApp','startup','3544626zllRnq','6773022ewNdYI','engines','checkMeteorPackage','-rpc-method.','maka\x20{generate,\x20g}:{method,\x20m}\x20name','dir','388916FSeWvC','63NOKRxo','constructor'];a67c=function(){return q;};return a67c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x1cf;let f=c[d];return f;},a67d(a,b);}Generator[a67n(0x1e6)]({'name':'method','aliases':['m'],'usage':a67n(0x1de),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a67n(0x1df)],'examples':[a67n(0x1ec)]},function(a,b){const o=a67n;try{const c=this[o(0x1d2)][o(0x1e4)]();this[o(0x1d2)][o(0x1ef)](c,async()=>{const p=o,d=paramCase(b[p(0x1f2)]),f={'name':b[p(0x1f2)],'fileName':d,'className':pascalCase(b[p(0x1f2)]),'camelCase':camelCase(b[p(0x1f2)]),'noRename':!![]};let g='js';c['engines']['js']===p(0x1d5)&&(g='ts');const h=this[p(0x1d2)]['pathFromApp']({});(!this[p(0x1d2)]['checkMeteorPackage'](p(0x1e7))||!this[p(0x1d2)][p(0x1dc)]('ddp-rate-limiter')||!this[p(0x1d2)][p(0x1dc)]('mdg:validated-method'))&&(Log['warn']('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this['fsi'][p(0x1ee)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this[p(0x1d2)][p(0x1e9)]({'srcPath':p(0x1ea),'destPath':this[p(0x1d2)][p(0x1d7)]({'pathParts':['imports',p(0x1d8),b[p(0x1d0)],p(0x1cf),b['dir'],d+p(0x1dd)+g]}),'context':f,'config':c});const i=b[p(0x1df)]?'/'+b[p(0x1df)]+'/':'/',j=this[p(0x1d2)]['pathFromApp']({'pathParts':[p(0x1e3),p(0x1d8),b[p(0x1d0)],p(0x1e8)+c[p(0x1db)]['js']]});this[p(0x1d2)]['injectAtEndOfFile']({'filePath':j,'content':'import\x20\x27./methods'+i+d+'-rpc-method\x27;'});});}catch(d){Log[o(0x1e5)](d);}});
1
+ const a66n=a66d;(function(a,b){const k=a66d,c=a();while(!![]){try{const d=-parseInt(k(0xfb))/0x1+-parseInt(k(0xff))/0x2+parseInt(k(0xf3))/0x3*(parseInt(k(0xdf))/0x4)+-parseInt(k(0x106))/0x5+-parseInt(k(0x104))/0x6+parseInt(k(0xf6))/0x7+parseInt(k(0xf7))/0x8*(parseInt(k(0xf2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x2aecc));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a66d;if(c){const e=c[l(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const m=a66d;return a66a[m(0xee)]()[m(0xe9)](m(0xe1))[m(0xee)]()[m(0xf8)](a66a)[m(0xe9)](m(0xe1));});a66a();function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0xdc;let f=c[d];return f;},a66d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a66c(){const q=['-rpc-method\x27;','688524akkpHU','index.','startup','template','resourceName','1653276qYojau','appPathPrefix','1619195VnjJZp','dir','installMeteorPackage','import\x20\x27./methods','4UREROY','apply','(((.+)+)+)+$','methods','-rpc-method.','mdg:validated-method','checkMeteorPackage','method','maka\x20g:method\x20todos','pathFromApp','search','check','create','ddp-rate-limiter','fsi','toString','method/method.js','engines','imports','1697778cVZUGy','974904ulHrMj','injectAtEndOfFile','check\x20ddp-rate-limiter\x20mdg:validated-method','2181179vkXgBn','24GzERcy','constructor','error','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','83024vCYIcz','withValue','tsx'];a66c=function(){return q;};return a66c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a66n(0xeb)]({'name':a66n(0xe6),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a66n(0xfa),'validOpts':[a66n(0xdc)],'examples':[a66n(0xe7)]},function(a,b){const o=a66n;try{const c=this['fsi']['getProjectConfig']();this[o(0xed)][o(0xfc)](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b[p(0x103)],'fileName':d,'className':pascalCase(b[p(0x103)]),'camelCase':camelCase(b[p(0x103)]),'noRename':!![]};let g='js';c[p(0xf0)]['js']===p(0xfd)&&(g='ts');const h=this['fsi'][p(0xe8)]({});(!this[p(0xed)][p(0xe5)](p(0xea))||!this[p(0xed)][p(0xe5)](p(0xec))||!this[p(0xed)]['checkMeteorPackage'](p(0xe4)))&&(Log['warn']('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[p(0xed)][p(0xdd)](p(0xf5),{'cwd':h}));this[p(0xed)][p(0x102)]({'srcPath':p(0xef),'destPath':this[p(0xed)][p(0xe8)]({'pathParts':[p(0xf1),p(0x101),b[p(0x105)],p(0xe2),b['dir'],d+p(0xe3)+g]}),'context':f,'config':c});const i=b[p(0xdc)]?'/'+b[p(0xdc)]+'/':'/',j=this[p(0xed)][p(0xe8)]({'pathParts':[p(0xf1),p(0x101),b['appPathPrefix'],p(0x100)+c[p(0xf0)]['js']]});this[p(0xed)][p(0xf4)]({'filePath':j,'content':p(0xde)+i+d+p(0xfe)});});}catch(d){Log[o(0xf9)](d);}});
@@ -1 +1 @@
1
- const a68o=a68d;(function(a,b){const l=a68d,c=a();while(!![]){try{const d=-parseInt(l(0xb8))/0x1+parseInt(l(0xc1))/0x2*(-parseInt(l(0xb0))/0x3)+-parseInt(l(0xa7))/0x4*(-parseInt(l(0xab))/0x5)+parseInt(l(0xc3))/0x6+-parseInt(l(0xad))/0x7*(parseInt(l(0xb7))/0x8)+parseInt(l(0xbe))/0x9+parseInt(l(0xac))/0xa*(parseInt(l(0xbd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x5fe95));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a['toString']()[n(0xb6)]('(((.+)+)+)+$')[n(0xaa)]()[n(0xd5)](a68a)[n(0xb6)](n(0xc2));});a68a();function a68c(){const s=['fsi','graphql','constructor','2079368iSpuzy','create','tests/server','toString','5Dimcdd','70sdVpSA','328531UaDCTN','template/template.js','features','6jWXzwQ','noRename','store','theme','relative','server','search','24YjBfCL','652319YeaHgu','tests/client','engines','hasOwnProperty','pathFromAppWithNoReWrite','373285tgPjPD','4355424WoSxtl','package','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','473462vbouKj','(((.+)+)+)+$','2508660zRsTTE','apply','packages','resourceName','.js','/package.js','withValue','template','ssr','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','pathFromApp','getProjectConfig','dir','lib','package/','forEach'];a68c=function(){return s;};return a68c();}import a68e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0xa7;let f=c[d];return f;},a68d(a,b);}Generator[a68o(0xa8)]({'name':a68o(0xbf),'aliases':['p'],'usage':a68o(0xc0),'shortDesc':a68o(0xcc),'validOpts':['dir'],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a68o,c=paramCase(b[p(0xc6)]),d=this[p(0xd3)][p(0xcd)]({'pathParts':[p(0xc5),b[p(0xcf)],c]}),e=this[p(0xd3)][p(0xbc)]({'pathParts':[p(0xc5),b[p(0xcf)],c,'package.js']}),f=this[p(0xd3)][p(0xce)]();this[p(0xd3)][p(0xc9)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xc6)]),'myPath':a68e[q(0xb4)](this[q(0xd3)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0xc6)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0xc6)]),'fileName':c,'client':f[q(0xba)]['client'],'graphql':f[q(0xba)][q(0xd4)],'ssr':f['engines'][q(0xcb)],'isComponent':b['hasOwnProperty']('component'),'isLayout':b[q(0xbb)]('layout'),'isStore':b[q(0xbb)](q(0xb2)),'features':f[q(0xaf)],'noRename':!![],'theme':f[q(0xba)][q(0xb3)]};this[q(0xd3)][q(0xca)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0xb1)]=![];const h=d+'/client/'+c+q(0xc7);this[q(0xd3)][q(0xca)]({'srcPath':q(0xae),'destPath':h,'context':g,'config':f});const i=[q(0xd0),q(0xb5),q(0xb9),q(0xa9)];i[q(0xd2)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this[r(0xd3)][r(0xca)]({'srcPath':r(0xd1)+j+r(0xc8),'destPath':k,'context':g,'config':f});});});});
1
+ const a67n=a67d;(function(a,b){const l=a67d,c=a();while(!![]){try{const d=parseInt(l(0x178))/0x1*(-parseInt(l(0x189))/0x2)+-parseInt(l(0x183))/0x3*(-parseInt(l(0x174))/0x4)+-parseInt(l(0x187))/0x5*(-parseInt(l(0x180))/0x6)+parseInt(l(0x182))/0x7*(-parseInt(l(0x177))/0x8)+-parseInt(l(0x18c))/0x9*(-parseInt(l(0x17f))/0xa)+parseInt(l(0x190))/0xb+-parseInt(l(0x198))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xe00ab));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 m=a67d;return a67a['toString']()['search'](m(0x17b))[m(0x188)]()['constructor'](a67a)['search'](m(0x17b));});function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x171;let f=c[d];return f;},a67d(a,b);}a67a();import a67e from'path';import{Generator}from'../generator.js';function a67c(){const r=['engines','graphql','5970710eKXsLU','80502QTDItA','template/template.js','4334449FAKpFP','219gynDWG','theme','pathFromProject','package.js','305cPWkbY','toString','271426fllXfO','.js','fsi','9HvAtMD','resourceName','layout','create','8410633FuUvHs','relative','tests/client','forEach','tests/server','hasOwnProperty','pathFromApp','/client/','3538152InuVsF','template','features','/package.js','store','getProjectConfig','lib','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','package/','22276LynjXi','pathFromAppWithNoReWrite','ssr','16yObWFp','1sZWQcc','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','packages','(((.+)+)+)+$','maka\x20g:package\x20todos:package'];a67c=function(){return r;};return a67c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0x18f)]({'name':'package','aliases':['p'],'usage':a67n(0x179),'shortDesc':a67n(0x172),'validOpts':['dir'],'examples':[a67n(0x17c)]},async function(a,b){const o=a67n,c=paramCase(b[o(0x18d)]),d=this[o(0x18b)][o(0x196)]({'pathParts':['packages',b['dir'],c]}),e=this[o(0x18b)][o(0x175)]({'pathParts':[o(0x17a),b['dir'],c,o(0x186)]}),f=this[o(0x18b)][o(0x19d)]();this[o(0x18b)]['withValue'](f,async()=>{const p=o,g={'name':paramCase(b[p(0x18d)]),'myPath':a67e[p(0x191)](this[p(0x18b)][p(0x185)]({}),d),'cssCaseName':paramCase(b[p(0x18d)]),'className':pascalCase(b[p(0x18d)]),'camelCaseName':camelCase(b[p(0x18d)]),'fileName':c,'client':f[p(0x17d)]['client'],'graphql':f['engines'][p(0x17e)],'ssr':f['engines'][p(0x176)],'isComponent':b[p(0x195)]('component'),'isLayout':b['hasOwnProperty'](p(0x18e)),'isStore':b[p(0x195)](p(0x19c)),'features':f[p(0x19a)],'noRename':!![],'theme':f[p(0x17d)][p(0x184)]};this['fsi'][p(0x199)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+p(0x197)+c+'.js';this[p(0x18b)][p(0x199)]({'srcPath':p(0x181),'destPath':h,'context':g,'config':f});const i=[p(0x171),'server',p(0x192),p(0x194)];i[p(0x193)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x18a);this[q(0x18b)][q(0x199)]({'srcPath':q(0x173)+j+q(0x19b),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x94;let f=c[d];return f;},a69d(a,b);}const a69p=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=parseInt(m(0xbb))/0x1+-parseInt(m(0xbc))/0x2*(parseInt(m(0xd8))/0x3)+-parseInt(m(0xa0))/0x4+-parseInt(m(0xbd))/0x5*(-parseInt(m(0xaf))/0x6)+parseInt(m(0xb3))/0x7*(-parseInt(m(0xb4))/0x8)+parseInt(m(0xb2))/0x9*(-parseInt(m(0xcd))/0xa)+parseInt(m(0xa1))/0xb*(parseInt(m(0xc5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x54fbd));function a69c(){const s=['712eRZgqz','search','withTranslations','engines','injectAtEndOfFile','installNpmPackage','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','454871KeaVlY','232SNaXPu','115385ZmiWQV','withHooks','/imports/ui/pages','.html','toString','\x20}\x20from\x20\x27','apply','string','408KkOVmg','css','templates.js','test','lib','fileName','maka\x20g:page\x20todos/todos-item','graphql','20fVekEa','features','import\x20\x27./','.js','assign','layout','dir','component/component.js','react','resourceName','test/test.js','3981QKGBLU','Updating\x20npm\x20packages\x20...','store','fsi','\x20};\x0a','none','injectAtBeginningOfFile','startup','html','className','true','setTemplate','.css','withHook','tsx','relative','(((.+)+)+)+$','api','ramda','warn','client','imports','template','template/template.html','1604048XumqxC','258203Khvabs','hasOwnProperty','template/template.css','export\x20{\x20','theme','rewriteDestinationPathForEngine','.app-tests.js','pathFromApp','component','pathFromProject','constructor','import\x20{\x20','\x27;\x0a','Generate\x20a\x20page.','90IXjoaJ','ssr','withValue','2306088dYKMbw','14441vBGWCQ'];a69c=function(){return s;};return a69c();}const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a69d;if(c){const e=c[n(0xc3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const o=a69d;return a69a[o(0xc1)]()[o(0xb5)]('(((.+)+)+)+$')[o(0xc1)]()[o(0xab)](a69a)['search'](o(0x98));});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['create']({'name':'page','aliases':aliases,'usage':a69p(0xba),'shortDesc':a69p(0xae),'validOpts':[a69p(0xd3),a69p(0x95)],'examples':[a69p(0xcb)]},function(a,b){const q=a69p,c=q(0xbf),d=this['fsi'][q(0xa8)](b),e=this[q(0xdb)][q(0xa8)]({'pathParts':[c,b[q(0xd3)],paramCase(b['resourceName']),paramCase(b[q(0xd6)])]}),f=this[q(0xdb)]['getProjectConfig']();this[q(0xdb)][q(0xb1)](f,()=>{const r=q;typeof f['template'][r(0xe0)]===r(0xc4)&&(f['template'][r(0xe0)]=f[r(0x9e)][r(0xe0)]===r(0xe2)?!![]:![],this[r(0xdb)][r(0xe3)](r(0xe0),f[r(0x9e)]['html']));typeof f['template'][r(0xc8)]===r(0xc4)&&(f[r(0x9e)][r(0xc8)]=f[r(0x9e)][r(0xc8)]===r(0xe2)?!![]:![],this[r(0xdb)][r(0xe3)](r(0xc8),f[r(0x9e)][r(0xc8)]));typeof f[r(0x9e)][r(0xc6)]===r(0xc4)&&(f['template']['css']=f[r(0x9e)]['css']===r(0xe2)?!![]:![],this[r(0xdb)][r(0xe3)](r(0xc6),f['template']['css']));typeof f[r(0x9e)]['js']===r(0xc4)&&(f[r(0x9e)]['js']=f[r(0x9e)]['js']==='true'?!![]:![],this['fsi'][r(0xe3)]('js',f[r(0x9e)]['js']));!f[r(0xce)]&&(f[r(0xce)]={});!b['root']&&!this[r(0xdb)]['checkNpmPackage'](r(0x9a))&&(Log[r(0x9b)](r(0xd9)),this[r(0xdb)][r(0xb9)](r(0x9a),{'cwd':d}));const g={'name':pascalCase(b[r(0xd6)]),'myPath':a69e[r(0x97)](this[r(0xdb)][r(0xaa)]({}),e),'cssCaseName':paramCase(b[r(0xd6)]),'className':pascalCase(b[r(0xd6)]),'camelCaseName':camelCase(b[r(0xd6)]),'fileName':paramCase(b[r(0xd6)]),'graphql':f['engines'][r(0xcc)],'features':f[r(0xce)],'client':f[r(0xb7)]['client'],'api':f[r(0xb7)][r(0x99)],'ssr':f[r(0xb7)][r(0xb0)],'isStore':b['hasOwnProperty'](r(0xda)),'isComponent':b['hasOwnProperty'](r(0xa9)),'isLayout':b[r(0xa2)](r(0xd2)),'withTranslations':f[r(0xce)][r(0xb6)],'test':f[r(0xb7)][r(0xc8)],'theme':f[r(0xb7)][r(0xa5)]};f[r(0x9e)][r(0xe0)]&&this[r(0xdb)]['template']({'srcPath':r(0x9f),'destPath':e+r(0xc0),'context':g,'config':f});f['features']?.[r(0xbe)]||b['withHook']?this[r(0xdb)][r(0x9e)]({'srcPath':'hook/hook.js','destPath':e+r(0xd0),'framework':r(0xd5),'context':g,'config':f}):this[r(0xdb)][r(0x9e)]({'srcPath':r(0xd4),'destPath':e+'.js','framework':'react','context':g,'config':f});f['engines'][r(0xc8)]!==r(0xdd)&&this[r(0xdb)][r(0x9e)]({'srcPath':r(0xd7),'destPath':e+r(0xa7),'framework':'react','context':g,'config':f});f[r(0x9e)][r(0xc6)]&&this[r(0xdb)][r(0x9e)]({'srcPath':r(0xa3),'destPath':e+r(0x94),'context':Object[r(0xd1)]({},g,{'className':paramCase(b[r(0xd6)])}),'config':f});f[r(0xb7)][r(0x9c)]!=='react'&&f[r(0xb7)][r(0x9c)]!=='vanilla'?(f[r(0x9e)][r(0xc6)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':r(0xcf)+g[r(0xca)]+'.'+f[r(0xb7)][r(0xe0)]+r(0xad)+r(0xcf)+g[r(0xca)]+'.'+f[r(0xb7)][r(0xc6)]+'\x27;'}),!f[r(0x9e)][r(0xc6)]&&this[r(0xdb)][r(0xde)]({'filePath':e+'.'+f['engines']['js'],'content':r(0xcf)+g[r(0xca)]+'.'+f[r(0xb7)][r(0xe0)]+'\x27;'})):f[r(0x9e)][r(0xc6)]&&this[r(0xdb)][r(0xde)]({'filePath':e+'.'+f['engines']['js'],'content':r(0xcf)+g['fileName']+'.'+f[r(0xb7)][r(0xc6)]+'\x27;'});const h=b[r(0xd3)]?'/'+b[r(0xd3)]+'/':'/',i=''+c+h+g[r(0xca)]+'/'+g[r(0xca)];let j;if(f[r(0xb7)]['ssr']===r(0xe2)){const k=this[r(0xdb)][r(0xa8)]({'pathParts':[r(0x9d),'startup',r(0xc9),r(0xc7)]});j=this[r(0xdb)][r(0xa6)]({'pathParts':[k],'config':f});}else{const l=this[r(0xdb)][r(0xa8)]({'pathParts':[r(0x9d),r(0xdf),r(0x9c),r(0xc7)]});j=this[r(0xdb)][r(0xa6)]({'pathParts':[l],'config':f});}f[r(0xb7)][r(0x9c)]===r(0xd5)?(f['engines']['js']===r(0x96)?this[r(0xdb)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0xac)+g[r(0xe1)]+'\x20}\x20from\x20\x27'+i+r(0xad)}):this[r(0xdb)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0xac)+g['className']+r(0xc2)+i+'.'+f['engines']['js']+r(0xad)}),this[r(0xdb)][r(0xb8)]({'filePath':j,'content':r(0xa4)+g[r(0xe1)]+r(0xdc)})):this[r(0xdb)][r(0xb8)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f[r(0xb7)]['js']+r(0xad)});});});
1
+ function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x100;let f=c[d];return f;},a68d(a,b);}const a68p=a68d;(function(a,b){const m=a68d,c=a();while(!![]){try{const d=-parseInt(m(0x134))/0x1+parseInt(m(0x145))/0x2*(parseInt(m(0x149))/0x3)+-parseInt(m(0x146))/0x4*(parseInt(m(0x129))/0x5)+-parseInt(m(0x107))/0x6*(-parseInt(m(0x117))/0x7)+parseInt(m(0x116))/0x8*(-parseInt(m(0x119))/0x9)+-parseInt(m(0x138))/0xa*(-parseInt(m(0x13d))/0xb)+parseInt(m(0x139))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x9a2f0));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a68d;if(c){const e=c[n(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const o=a68d;return a68a[o(0x12a)]()[o(0x147)](o(0x132))[o(0x12a)]()[o(0x12b)](a68a)['search'](o(0x132));});a68a();import a68e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a68c(){const s=['client','\x20};\x0a','\x27;\x0a','606234DTXGuK','theme','import\x20\x27','api','rewriteDestinationPathForEngine','apply','.js','ssr','Updating\x20npm\x20packages\x20...','ramda','imports','.app-tests.js','getProjectConfig','injectAtEndOfFile','templates.js','402352JQPqNb','14XaXyyP','setTemplate','9siLqWh','test/test.js','export\x20{\x20','features','withValue','className','withHook','.css','test','injectAtBeginningOfFile','hasOwnProperty','import\x20{\x20','withTranslations','none','vanilla','component','5YHnvdJ','toString','constructor','dir','component/component.js','template/template.css','\x20}\x20from\x20\x27','fileName','true','(((.+)+)+)+$','css','391500JHqovw','root','startup','template','10KEnWEP','9887688CNfZMk','pathFromProject','layout','string','5748633JqrIxn','fsi','hook/hook.js','engines','import\x20\x27./','resourceName','template/template.html','page','93510ucvEUK','3397460UFLFpc','search','relative','24rfMsBV','html','maka\x20g:page\x20todos/todos-item','pathFromApp','react'];a68c=function(){return s;};return a68c();}Generator['create']({'name':a68p(0x144),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[a68p(0x12c),a68p(0x11f)],'examples':[a68p(0x101)]},function(a,b){const q=a68p,c='/imports/ui/pages',d=this[q(0x13e)][q(0x102)](b),e=this[q(0x13e)][q(0x102)]({'pathParts':[c,b[q(0x12c)],paramCase(b[q(0x142)]),paramCase(b['resourceName'])]}),f=this[q(0x13e)][q(0x113)]();this['fsi'][q(0x11d)](f,()=>{const r=q;typeof f['template'][r(0x100)]===r(0x13c)&&(f[r(0x137)][r(0x100)]=f[r(0x137)]['html']===r(0x131)?!![]:![],this[r(0x13e)][r(0x118)]('html',f['template']['html']));typeof f['template']['test']===r(0x13c)&&(f[r(0x137)]['test']=f[r(0x137)][r(0x121)]===r(0x131)?!![]:![],this[r(0x13e)]['setTemplate']('test',f[r(0x137)]['test']));typeof f['template'][r(0x133)]==='string'&&(f['template']['css']=f[r(0x137)]['css']===r(0x131)?!![]:![],this['fsi'][r(0x118)](r(0x133),f[r(0x137)][r(0x133)]));typeof f[r(0x137)]['js']==='string'&&(f[r(0x137)]['js']=f[r(0x137)]['js']==='true'?!![]:![],this[r(0x13e)]['setTemplate']('js',f[r(0x137)]['js']));!f[r(0x11c)]&&(f[r(0x11c)]={});!b[r(0x135)]&&!this[r(0x13e)]['checkNpmPackage'](r(0x110))&&(Log['warn'](r(0x10f)),this[r(0x13e)]['installNpmPackage'](r(0x110),{'cwd':d}));const g={'name':pascalCase(b[r(0x142)]),'myPath':a68e[r(0x148)](this['fsi'][r(0x13a)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[r(0x142)]),'camelCaseName':camelCase(b[r(0x142)]),'fileName':paramCase(b['resourceName']),'graphql':f['engines']['graphql'],'features':f['features'],'client':f[r(0x140)][r(0x104)],'api':f['engines'][r(0x10a)],'ssr':f['engines'][r(0x10e)],'isStore':b['hasOwnProperty']('store'),'isComponent':b[r(0x123)](r(0x128)),'isLayout':b[r(0x123)](r(0x13b)),'withTranslations':f[r(0x11c)][r(0x125)],'test':f[r(0x140)][r(0x121)],'theme':f[r(0x140)][r(0x108)]};f[r(0x137)][r(0x100)]&&this[r(0x13e)][r(0x137)]({'srcPath':r(0x143),'destPath':e+'.html','context':g,'config':f});f[r(0x11c)]?.['withHooks']||b['withHook']?this[r(0x13e)][r(0x137)]({'srcPath':r(0x13f),'destPath':e+r(0x10d),'framework':r(0x103),'context':g,'config':f}):this[r(0x13e)][r(0x137)]({'srcPath':r(0x12d),'destPath':e+r(0x10d),'framework':r(0x103),'context':g,'config':f});f[r(0x140)][r(0x121)]!==r(0x126)&&this[r(0x13e)][r(0x137)]({'srcPath':r(0x11a),'destPath':e+r(0x112),'framework':r(0x103),'context':g,'config':f});f[r(0x137)][r(0x133)]&&this['fsi'][r(0x137)]({'srcPath':r(0x12e),'destPath':e+r(0x120),'context':Object['assign']({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0x140)][r(0x104)]!==r(0x103)&&f[r(0x140)]['client']!==r(0x127)?(f[r(0x137)][r(0x133)]&&this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x140)]['js'],'content':'import\x20\x27./'+g[r(0x130)]+'.'+f[r(0x140)][r(0x100)]+r(0x106)+'import\x20\x27./'+g[r(0x130)]+'.'+f[r(0x140)][r(0x133)]+'\x27;'}),!f[r(0x137)][r(0x133)]&&this[r(0x13e)][r(0x122)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[r(0x140)][r(0x100)]+'\x27;'})):f[r(0x137)][r(0x133)]&&this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x140)]['js'],'content':r(0x141)+g[r(0x130)]+'.'+f[r(0x140)]['css']+'\x27;'});const h=b[r(0x12c)]?'/'+b[r(0x12c)]+'/':'/',i=''+c+h+g['fileName']+'/'+g['fileName'];let j;if(f[r(0x140)]['ssr']===r(0x131)){const k=this['fsi'][r(0x102)]({'pathParts':[r(0x111),r(0x136),'lib',r(0x115)]});j=this[r(0x13e)][r(0x10b)]({'pathParts':[k],'config':f});}else{const l=this[r(0x13e)][r(0x102)]({'pathParts':[r(0x111),r(0x136),r(0x104),r(0x115)]});j=this[r(0x13e)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x140)][r(0x104)]===r(0x103)?(f[r(0x140)]['js']==='tsx'?this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0x124)+g[r(0x11e)]+r(0x12f)+i+r(0x106)}):this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0x124)+g[r(0x11e)]+r(0x12f)+i+'.'+f[r(0x140)]['js']+r(0x106)}),this['fsi'][r(0x114)]({'filePath':j,'content':r(0x11b)+g[r(0x11e)]+r(0x105)})):this[r(0x13e)][r(0x114)]({'filePath':j,'content':r(0x109)+i+'.'+f['engines']['js']+r(0x106)});});});
@@ -1 +1 @@
1
- const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=parseInt(h(0x180))/0x1*(parseInt(h(0x172))/0x2)+-parseInt(h(0x16d))/0x3*(-parseInt(h(0x178))/0x4)+parseInt(h(0x175))/0x5*(-parseInt(h(0x17d))/0x6)+-parseInt(h(0x183))/0x7+parseInt(h(0x171))/0x8*(-parseInt(h(0x16c))/0x9)+parseInt(h(0x184))/0xa+parseInt(h(0x173))/0xb*(-parseInt(h(0x16f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x83d6c));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x179)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a[j(0x16a)]()[j(0x181)](j(0x17a))['toString']()[j(0x170)](a70a)[j(0x181)](j(0x17a));});function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x169;let f=c[d];return f;},a70d(a,b);}a70a();function a70c(){const n=['16EUCsNG','apply','(((.+)+)+)+$','maka\x20g:publish\x20todos','getProjectConfig','2603082MnwFaQ','engines','injectAtEndOfFile','800441ouUevA','search','resourceName','1213324HwuHoV','8108060oALSNp','withValue','toString','create','9198VDMBPm','465687HtaQER','publish','248808YHVhYv','constructor','4760eKVoFd','2lZdxas','253GeQKqV','templateContent','5aVEJtH','fsi','server/publish.'];a70c=function(){return n;};return a70c();}import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a70k(0x16b)]({'name':a70k(0x16e),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a70k(0x17b)]},async function(a,b){const l=a70k,c=this[l(0x176)][l(0x17c)]();this[l(0x176)][l(0x169)](c,async()=>{const m=l,d={'name':b[m(0x182)],'collection':paramCase(b[m(0x182)]),'noRename':!![]};let e='js';c[m(0x17e)]['js']==='tsx'&&(e='ts');const f=this[m(0x176)]['rewriteDestinationPathForEngine']({'pathParts':[m(0x177)+c[m(0x17e)]['js']]}),g=this['fsi'][m(0x174)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x176)][m(0x17f)]({'filePath':f,'content':'\x0a'+g});});});
1
+ function a69c(){const m=['withValue','getProjectConfig','server/publish.','1169399PhnSXg','39582sfSKKZ','templateContent','644768zUtYMB','595696wOxfkl','181653DjZdxG','(((.+)+)+)+$','create','2427597xWRiTd','2UCwLBY','fsi','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','120183YEuHcg','search','toString','constructor','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','injectAtEndOfFile','110EbcRvi','resourceName','publish/publish.','rewriteDestinationPathForEngine','maka\x20g:publish\x20todos','engines'];a69c=function(){return m;};return a69c();}const a69j=a69d;(function(a,b){const h=a69d,c=a();while(!![]){try{const d=parseInt(h(0x180))/0x1+-parseInt(h(0x17d))/0x2*(parseInt(h(0x194))/0x3)+parseInt(h(0x192))/0x4+-parseInt(h(0x186))/0x5*(parseInt(h(0x190))/0x6)+-parseInt(h(0x18f))/0x7+-parseInt(h(0x193))/0x8+parseInt(h(0x197))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x195e0));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 i=a69d;return a69a[i(0x182)]()['search'](i(0x195))[i(0x182)]()[i(0x183)](a69a)[i(0x181)]('(((.+)+)+)+$');});a69a();import{paramCase}from'change-case';function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x17d;let f=c[d];return f;},a69d(a,b);}import{Generator}from'../generator.js';Generator[a69j(0x196)]({'name':'publish','aliases':['p'],'usage':a69j(0x17f),'shortDesc':a69j(0x184),'validOpts':[],'examples':[a69j(0x18a)]},async function(a,b){const k=a69j,c=this[k(0x17e)][k(0x18d)]();this[k(0x17e)][k(0x18c)](c,async()=>{const l=k,d={'name':b[l(0x187)],'collection':paramCase(b[l(0x187)]),'noRename':!![]};let e='js';c[l(0x18b)]['js']==='tsx'&&(e='ts');const f=this[l(0x17e)][l(0x189)]({'pathParts':[l(0x18e)+c['engines']['js']]}),g=this[l(0x17e)][l(0x191)]({'srcPath':l(0x188)+e,'context':d,'config':c});this[l(0x17e)][l(0x185)]({'filePath':f,'content':'\x0a'+g});});});