@maka/maka-cli 4.5.8 → 4.5.10
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.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a55u=a55d;(function(a,b){const q=a55d,c=a();while(!![]){try{const d
|
|
1
|
+
const a55u=a55d;(function(a,b){const q=a55d,c=a();while(!![]){try{const d=parseInt(q(0x14e))/0x1+parseInt(q(0x120))/0x2*(parseInt(q(0x15d))/0x3)+-parseInt(q(0x16e))/0x4*(parseInt(q(0x163))/0x5)+-parseInt(q(0x133))/0x6+-parseInt(q(0x128))/0x7*(-parseInt(q(0x136))/0x8)+-parseInt(q(0x145))/0x9+-parseInt(q(0x168))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x2d289));const a55b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a55d;if(c){const e=c[r(0x123)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){const s=a55d;return a55a[s(0x166)]()[s(0x153)](s(0x156))[s(0x166)]()[s(0x162)](a55a)['search']('(((.+)+)+)+$');});a55a();import a55e from'path';function a55c(){const F=['both','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','Generator.create\x20requires\x20some\x20options!','2143183hPfIga','sort','minOptsLength','call','proGenerators','Too\x20few\x20arguments','getPro','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','push','error','replace','268920nVVIqS','maxArgLength','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','8txLEEV','tableList','roles','options','findProjectDirectory','client','length','name','Server','validateMakaProject','exit','pop','Too\x20many\x20arguments','bind','Generator\x20requires\x20a\x20name','1934919FQiyjs','map','Description','To\x20use\x20these\x20pro\x20flags,\x20\x22','To\x20use\x20this\x20generator,\x20\x22','aliases','lib','chdir','Client','208301NZlKUL','Generator.create\x20requires\x20a\x20handler\x20function!','mustHaveMeteorInstalled','colLocAnswer','_generators','search','cwd','split','(((.+)+)+)+$','dir','addGenerator\x20requires\x20a\x20Generator\x20instance','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','singleLicense','number','create','6723scxBVq','validateParams','bright','Too\x20many\x20options','noResource','constructor','15rgxMpC','proFlags','includes','toString','where','975990omcqfR','Alias','_handler','findGenerator','function','appPathPrefix','13584JAdedj','assign','listGenerators','Both','Generators:','keys','server','help','minArgLength','validateMeteorInstall','maxOptsLength','filter','slice','root','Location','notice','34TsXEVh','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','addGenerator','apply','resourceName'];a55c=function(){return F;};return a55c();}import a55f from'cli-table';function a55d(a,b){const c=a55c();return a55d=function(d,e){d=d-0x111;let f=c[d];return f;},a55d(a,b);}import{paramCase}from'change-case';import a55g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const t=a55d,c=process[t(0x154)]();let d=null;try{process[t(0x14c)](a),d=b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a55u(0x139)];[a55u(0x152)];constructor(a,b){const v=a55u;super();if(!a)throw new Error(v(0x12f));if(!a['name'])throw new Error(v(0x144));if(typeof b!==v(0x16c))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[v(0x152)]=[],this[v(0x139)]=Object[v(0x111)]({},a),this['name']=this[v(0x139)][v(0x13d)],this[v(0x16a)]=b[v(0x143)](this);}static[a55u(0x15c)](a,b,c){const w=a55u;if(!a)throw new Error(w(0x127));if(typeof b!==w(0x16c))throw new Error(w(0x14f));const d=new Generator(a,b);return c=c||a55g,Object[w(0x111)](d,{'parent':c?.[w(0x139)]?.[w(0x13d)]}),c[w(0x122)](d),d;}[a55u(0x122)](a){const x=a55u;if(!(a instanceof Generator))throw new Error(x(0x158));this[x(0x152)][x(0x130)](a);}[a55u(0x16b)](a){const b=this['_generators']['find'](c=>c['match'](a));return b;}async['validateMakaSubscription'](a,b){const y=a55u,c=this['findGenerator'](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.['parent']||'',f=Object[y(0x115)](b),g=await this['fsi'][y(0x12e)]();!g&&(Log[y(0x131)](y(0x126)),process['exit'](0x1));const h=!g?.[y(0x138)]['includes'](y(0x15a))&&!g?.[y(0x138)][y(0x165)]('domainLicense'),i=g?.[y(0x12c)]['includes'](d)||g?.[y(0x12c)][y(0x165)](e);if(i&&h)throw y(0x149)+d+y(0x121);if(f['length']>0x0){const j=g?.[y(0x164)][y(0x11b)](k=>f[y(0x165)](k));if(j&&j[y(0x13c)]>0x0&&h)throw y(0x148)+j?.['join'](',\x20')+y(0x121);}}}async['invoke'](a,b){const z=a55u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[z(0x139)];try{await this['validateMakaSubscription'](a,b);}catch(g){Log[z(0x131)](g),process[z(0x140)](0x1);}const f=a[z(0x11c)]();b['resourceName']=f[0x0];try{if((a[0x0]===_prevGen||a[z(0x13c)]===0x0)&&b[z(0x117)])throw new UsageError();if(this[z(0x139)]['mustBeInMakaProject']){const h=this[z(0x13f)]();if(!h)throw new MustBeInProjectError();}if(this['options'][z(0x150)]){const i=this[z(0x119)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[z(0x139)][z(0x118)]===z(0x15b)){if(a[z(0x13c)]<this['options'][z(0x118)]){Log[z(0x131)](z(0x12d));throw new UsageError();}}if(typeof this['options'][z(0x134)]==='number'){if(a[z(0x13c)]>this[z(0x139)][z(0x134)]){Log[z(0x131)](z(0x142));throw new UsageError();}}if(typeof this[z(0x139)][z(0x12a)]===z(0x15b)){if(Object[z(0x115)](b)[z(0x13c)]<this[z(0x139)][z(0x12a)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this['options'][z(0x11a)]==='number'){if(Object[z(0x115)](b)[z(0x13c)]>=this[z(0x139)][z(0x11a)]){Log['error'](z(0x160));throw new UsageError();}}this[z(0x15e)](a,b,this[z(0x139)]);if(!b[z(0x124)]&&!this['options'][z(0x161)]){Log[z(0x131)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[z(0x152)]['length']>0x0&&b[z(0x117)]&&(Log[z(0x11f)](z(0x114)),this['tableList'](this['_generators']));else{if(j instanceof MustBeInProjectError)Log[z(0x131)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(j instanceof NoMeteorFoundError)Log[z(0x131)](z(0x135)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(j instanceof NoMeteorAppFoundError)Log[z(0x131)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw j;}}}process[z(0x140)](0x1);}return new Promise(k=>{const A=z;inside(b[A(0x154)],async()=>{const B=A;try{if(!b[B(0x11d)]&&!this['fsi'][B(0x13a)]())throw new MustBeInProjectError();const l=b['resourceName']?.[B(0x132)](/\\/g,'/')[B(0x155)]('/');!b[B(0x157)]&&(l?.[B(0x13c)]>0x1?(b['resourceName']=l[B(0x141)](),f[0x0]=b[B(0x124)],b[B(0x157)]=l[B(0x146)](m=>{return paramCase(m);})['join'](a55e['sep'])):b[B(0x157)]='');if(this[B(0x139)]['checkWhere']){if(!b[B(0x167)]){const n={'type':'list','name':B(0x151),'message':B(0x11e),'choices':[{'name':B(0x14d),'value':B(0x13b)},{'name':B(0x13e),'value':'server'},{'name':B(0x113),'value':B(0x125)}]},{colLocAnswer:o}=await Actions[B(0x139)](n);o?b[B(0x167)]=o:b['where']=B(0x125);}const m=[B(0x125),B(0x13b),B(0x116)];if(!m[B(0x165)](b[B(0x167)])){Log[B(0x131)](B(0x159));throw new UsageError();}switch(b[B(0x167)]){case B(0x125):b[B(0x16d)]=B(0x14b);break;case B(0x116):b[B(0x16d)]=B(0x116);break;case B(0x13b):b[B(0x16d)]=B(0x13b);break;default:b[B(0x16d)]='';}}k(this[B(0x16a)][B(0x12b)](this,f,b));}catch(p){console[B(0x131)](p);}});});}[a55u(0x112)](){const C=a55u;this[C(0x137)](this['_generators']);}[a55u(0x137)](a){const D=a55u,b=new a55f({});b[D(0x130)](['Name',D(0x169),D(0x147)]),a[D(0x129)]()['forEach'](c=>{const E=D;b[E(0x130)]([c['name'],c[E(0x14a)](),c['shortDesc']()]);}),Log[D(0x15f)](b[D(0x166)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a56d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a56d,c=a();while(!![]){try{var d=parseInt(f(0x7b))/0x1*(parseInt(f(0x6e))/0x2)+parseInt(f(0x71))/0x3+parseInt(f(0x6d))/0x4*(parseInt(f(0x7a))/0x5)+-parseInt(f(0x76))/0x6+parseInt(f(0x73))/0x7+-parseInt(f(0x70))/0x8*(parseInt(f(0x79))/0x9)+parseInt(f(0x74))/0xa*(parseInt(f(0x6f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0xdc584));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0x78)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a[h(0x72)]()[h(0x75)](h(0x77))[h(0x72)]()['constructor'](a56a)['search'](h(0x77));});a56a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';function a56c(){var i=['1jGbNpn','10504ePORTp','878704AaSMlJ','12078IifeeD','8uYOWxv','196416RQRGJT','toString','3925404CUoNRL','15070rvvqfX','search','7858266dCvGQA','(((.+)+)+)+$','apply','8093817jsteKy','745zLEwak'];a56c=function(){return i;};return a56c();}import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x6d;var f=c[d];return f;},a56d(a,b);}import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d
|
|
1
|
+
const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=parseInt(w(0x1d6))/0x1*(-parseInt(w(0x1dc))/0x2)+parseInt(w(0x1d4))/0x3*(-parseInt(w(0x18d))/0x4)+-parseInt(w(0x1e1))/0x5*(parseInt(w(0x1bb))/0x6)+-parseInt(w(0x1c9))/0x7+parseInt(w(0x1d3))/0x8+-parseInt(w(0x1a6))/0x9*(-parseInt(w(0x1aa))/0xa)+parseInt(w(0x1b7))/0xb*(parseInt(w(0x18f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x41943));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x1ad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a[y(0x1d9)]()[y(0x1ba)](y(0x1d5))['toString']()[y(0x1c6)](a57a)[y(0x1ba)](y(0x1d5));});a57a();import{Generator}from'../generator.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x18d;let f=c[d];return f;},a57d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a57z(0x1b9)]({'name':a57z(0x1dd),'aliases':['a'],'usage':a57z(0x1bc),'shortDesc':a57z(0x1a1),'validOpts':['dir'],'examples':[a57z(0x18e)]},async function(a,b){const A=a57z;try{const c=this[A(0x1af)]['getProjectConfig'](),d=[{'name':A(0x1d7),'value':A(0x19b)},{'name':A(0x19f),'value':A(0x1be)},{'name':A(0x1c2),'value':A(0x19d)}];c[A(0x1ea)]['api']===A(0x1ce)&&d[A(0x1eb)]({'name':'REST\x20API','value':'withRest'});c['engines'][A(0x192)]===A(0x1c8)&&d[A(0x1eb)]({'name':'GraphQL','value':A(0x1ac)});const f={'type':A(0x1b5),'name':A(0x1a5),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x1c7)](f);g['length']===0x0&&(Log[A(0x1e8)](A(0x197)),process['exit'](0x1)),this[A(0x1af)][A(0x1db)](c,async()=>{const B=A,h=this['fsi']['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x1e0)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1ea)][B(0x1dd)],'graphql':c[B(0x1ea)][B(0x192)],'test':c[B(0x1ea)][B(0x1df)],'noRename':!![],'withPubs':g[B(0x1a9)](B(0x19d)),'withFixtures':g[B(0x1a9)](B(0x1be)),'withMethods':g[B(0x1a9)](B(0x19b)),'withRest':g['includes'](B(0x1a8))};let n='js';c['engines']['js']===B(0x1ab)&&(n='ts');(!this['fsi'][B(0x1de)](B(0x1c4))||!this[B(0x1af)][B(0x1de)]('maka:check')||!this[B(0x1af)]['checkMeteorPackage'](B(0x1a3))||!this[B(0x1af)][B(0x1de)](B(0x1d0))||!this['fsi']['checkMeteorPackage'](B(0x1e6)))&&(Log[B(0x19e)](B(0x1b0)),await this[B(0x1af)]['installMeteorPackage'](B(0x1a0),{'cwd':h}));const o=a57e['findGenerator'](B(0x19a));o&&await o['invoke']([j],{'config':c,'where':'server'});c[B(0x1ea)][B(0x1dd)]===B(0x1ce)&&(m[B(0x1a8)]&&this[B(0x1af)]['template']({'srcPath':'api/api.js','destPath':this[B(0x1af)][B(0x1a4)]({'pathParts':[B(0x1cf),'api',b['dir'],j,B(0x199)+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][B(0x1bf)]({'srcPath':B(0x1b4),'destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x1cf),B(0x1dd),b[B(0x1e0)],j,B(0x195)+n]}),'context':m,'config':c});m[B(0x1be)]&&this[B(0x1af)]['template']({'srcPath':B(0x1e5),'destPath':this[B(0x1af)][B(0x1a4)]({'pathParts':['imports','api',b[B(0x1e0)],j,B(0x1ae)+n]}),'context':m,'config':c});c[B(0x1ea)][B(0x1df)]!==B(0x1b3)&&this[B(0x1af)][B(0x1bf)]({'srcPath':B(0x1e9),'destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x1cf),'api',b[B(0x1e0)],j,j+B(0x196)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x1af)]['template']({'srcPath':B(0x194),'destPath':this[B(0x1af)][B(0x1a4)]({'pathParts':['imports',B(0x1dd),b[B(0x1e0)],j,B(0x1c1)+n]}),'context':m,'config':c});if(c[B(0x1ea)][B(0x192)]===B(0x1c8)){if(g[B(0x1a9)](B(0x1ac))){const q=this['fsi'][B(0x1a4)]({'pathParts':['imports','startup','server','index.'+c[B(0x1ea)]['js']]}),r=this[B(0x1af)][B(0x1a2)]({'pathParts':[q],'config':c}),s=this['fsi'][B(0x1a4)]({'pathParts':[B(0x1cf),B(0x1dd),b[B(0x1e0)],j,B(0x192),B(0x1bd)+n]}),t=B(0x1e7)+l+j+B(0x1b6);this['fsi'][B(0x1bf)]({'srcPath':B(0x19c),'destPath':s,'context':m,'config':c}),this[B(0x1af)][B(0x1c3)]({'filePath':r,'content':B(0x191)+k+B(0x1da)+t+'\x27;\x0a'}),this[B(0x1af)][B(0x1e4)]({'filePath':r,'content':'typeList.push('+k+B(0x1b1),'begin':B(0x1cb),'end':B(0x1e3)});const u=this[B(0x1af)][B(0x1a4)]({'pathParts':[B(0x1cf),B(0x1dd),b['dir'],j,B(0x192),B(0x1d1)+n]}),v=B(0x1e7)+l+j+B(0x193);this['fsi']['template']({'srcPath':B(0x190),'destPath':u,'context':m,'config':c}),this[B(0x1af)][B(0x1c3)]({'filePath':r,'content':B(0x198)+k+B(0x1d8)+v+'\x27;'}),this[B(0x1af)][B(0x1e4)]({'filePath':r,'content':B(0x1b2)+k+B(0x1d2),'begin':B(0x1cb),'end':B(0x1e3)});}}this['fsi'][B(0x1bf)]({'srcPath':B(0x1ca),'destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x1cf),B(0x1e2),'server',B(0x1cc)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1af)][B(0x1a4)]({'pathParts':[B(0x1cf),'startup',B(0x1c5),B(0x1c0)+c[B(0x1ea)]['js']]});this[B(0x1af)][B(0x1cd)]({'filePath':p,'content':B(0x1a7)+j+B(0x1b8)});});}catch(h){console['log'](h),process['exit'](0x0);}});function a57c(){const C=['test','dir','20960vLVSpU','startup','if\x20\x5c(typeList','injectIntoFile','api/fixtures.js','mongo','/imports/api','error','api/tests.js','engines','push','1162228hzVabY','maka\x20g:api\x20todos','12408mfeOYH','api/resolvers.js','import\x20{\x20typeDefs\x20as\x20','graphql','/graphql/resolvers','api/publications.js','rpc-methods.','.app-tests.','No\x20API\x20boundaries\x20selected','\x0aimport\x20{\x20resolvers\x20as\x20','rest-api.','collection','withMethods','api/typeDefs.js','withPubs','notice','Fixtures','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','rewriteDestinationPathForEngine','ddp-rate-limiter','pathFromApp','apiAnswers','603IfBTUD','import\x20\x27./register-','withRest','includes','18220ORHsZV','tsx','withGql','apply','fixtures.','fsi','Verifying\x20meteor\x20package\x20requirements\x20...','TypeDefs);\x0a','resolverList.push(','none','api/methods.js','checkbox','/graphql/typeDefs','10340MxyLin','-api\x27;','create','search','696hPAHQN','maka\x20{generate,\x20g}:{api}\x20<resource-name>','typeDefs.','withFixtures','template','index.','publications.','Publications','injectAtBeginningOfFile','maka:rest','server','constructor','options','apollo','171024WDJgCQ','api/register-api.js','const','register-','injectAtEndOfFile','rest','imports','mdg:validated-method','resolvers.','Resolvers);\x0a\x0a','82264krCDAr','3MoNiDM','(((.+)+)+)+$','83XxEnpY','RPC\x20(Methods)','Resolvers\x20}\x20from\x20\x27','toString','TypeDefs\x20}\x20from\x20\x27','withValue','830NowrJu','api','checkMeteorPackage'];a57c=function(){return C;};return a57c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58m=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0xcd))/0x1*(parseInt(k(0xc7))/0x2)+-parseInt(k(0xde))/0x3*(-parseInt(k(0xdd))/0x4)+-parseInt(k(0xcb))/0x5+-parseInt(k(0xcf))/0x6*(parseInt(k(0xc8))/0x7)+-parseInt(k(0xc3))/0x8*(parseInt(k(0xc5))/0x9)+parseInt(k(0xd4))/0xa*(-parseInt(k(0xd6))/0xb)+parseInt(k(0xdc))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x56568));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const l=a58d;return a58a[l(0xd9)]()[l(0xcc)](l(0xd2))[l(0xd9)]()[l(0xe0)](a58a)[l(0xcc)](l(0xd2));});a58a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0xc1;let f=c[d];return f;},a58d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a58m(0xce)]({'name':a58m(0xe2),'aliases':['col'],'usage':a58m(0xd3),'checkWhere':!![],'shortDesc':a58m(0xdf),'validOpts':[a58m(0xee),a58m(0xda)],'description':a58m(0xc9),'examples':[a58m(0xd5)]},async function(a,b){const n=a58m;try{const c=this[n(0xd0)]['pathFromApp']({}),d=this[n(0xd0)]['getProjectConfig']();this[n(0xd0)][n(0xe5)](d,async()=>{const o=n,f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[o(0xe1)]),'fileName':f,'where':b[o(0xda)],'test':d['engines'][o(0xeb)],'noRename':!![]};let h='js';d[o(0xc6)]['js']==='tsx'&&(h='ts');!this['fsi'][o(0xdb)]('mongo')&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[o(0xd0)]['installMeteorPackage'](o(0xc1),{'cwd':c}));!this[o(0xd0)][o(0xdb)]('maka:check')&&(Log[o(0xd8)](o(0xe3)),await this['fsi'][o(0xd1)](o(0xe9),{'cwd':c}));this[o(0xd0)][o(0xec)]({'srcPath':'collection/collection.js','destPath':this['fsi'][o(0xea)]({'pathParts':[o(0xed),o(0xe7),b[o(0xd7)],o(0xc4),b[o(0xee)],f+'.'+h]}),'context':g,'config':d});d[o(0xc6)][o(0xeb)]!=='none'&&this[o(0xd0)][o(0xec)]({'srcPath':o(0xe6),'destPath':this['fsi'][o(0xea)]({'pathParts':['imports','startup',b[o(0xd7)],o(0xc4),b[o(0xee)],f+o(0xc2)+h]}),'context':g,'config':d});const i=b[o(0xee)]?'/'+b[o(0xee)]+'/':'/',j=this[o(0xd0)]['pathFromApp']({'pathParts':['imports',o(0xe7),b['appPathPrefix'],o(0xe4)+d[o(0xc6)]['js']]});this[o(0xd0)][o(0xe8)]({'filePath':j,'content':o(0xca)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});function a58c(){const p=['(((.+)+)+)+$','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','17950QIVinP','maka\x20g:collection\x20todos','3245SFZYMZ','appPathPrefix','notice','toString','where','checkMeteorPackage','14776536oRxxdz','445612yDfeTU','9bytaYu','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','constructor','resourceName','collection','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','index.','withValue','collection/tests.js','startup','injectAtEndOfFile','maka:check','pathFromApp','test','template','imports','dir','mongo','.app-tests.','10536zyYmED','collections','1638PCwDws','engines','4nnohns','141554iLDBbD','\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','import\x20\x27./collections','137940YFJApj','search','177237AAtBmq','create','18mVpcEG','fsi','installMeteorPackage'];a58c=function(){return p;};return a58c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a59p=a59d;
|
|
1
|
+
const a59p=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=-parseInt(n(0xb8))/0x1*(-parseInt(n(0xb3))/0x2)+parseInt(n(0xcb))/0x3*(parseInt(n(0xda))/0x4)+parseInt(n(0xe7))/0x5+-parseInt(n(0xbd))/0x6+-parseInt(n(0xb6))/0x7+parseInt(n(0xac))/0x8*(parseInt(n(0xe3))/0x9)+parseInt(n(0xc9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xb1df0));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[o(0xb9)]()['search']('(((.+)+)+)+$')[o(0xb9)]()[o(0xce)](a59a)[o(0xc6)](o(0xcf));});a59a();import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a59p(0xc3)];function a59c(){const s=['client','checkNpmPackage','.tests.js','comp','import\x20{\x20','error','search','warn','features','11757920akZXeY','ssr','1032gWYRwQ','\x20}\x20from\x20\x27','pathFromProject','constructor','(((.+)+)+)+$','imports','\x27;\x0a','injectAtBeginningOfFile','root','none','/imports/ui/components','string','lib','getProjectConfig','assign','436TJBlnh','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','cssCaseName','css','theme','fileName','reflux','import\x20\x27','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','9mLmvhj','export\x20{\x20','.js','tsx','2178235FPspll','dir','template/template.css','resourceName','test','setTemplate','withTranslations','injectAtEndOfFile','fsi','3942624cRPsST','true','withValue','react','templates.js','maka\x20g:comp\x20todos/todos-item','findAppDirectory','18CnxFqp','engines','className','10112949ZFWRnG','pathFromApp','14397JPhaXT','toString','ramda','relative','template','588414BSeIqU','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','test/test.js'];a59c=function(){return s;};return a59c();}function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0xaa;let f=c[d];return f;},a59d(a,b);}Generator['create']({'name':'component','aliases':aliases,'usage':a59p(0xdb),'shortDesc':a59p(0xbe),'validOpts':[a59p(0xe8)],'examples':[a59p(0xb1)]},async function(a,b){const q=a59p;try{const c=this['fsi'][q(0xb2)](),d=q(0xd5),f=this[q(0xab)]['pathFromApp']({'pathParts':[d,b[q(0xe8)],paramCase(b[q(0xea)]),paramCase(b[q(0xea)])]}),g=await this[q(0xab)][q(0xd8)]();this[q(0xab)][q(0xae)](g,async()=>{const r=q;typeof g[r(0xbc)][r(0xeb)]===r(0xd6)&&(g[r(0xbc)][r(0xeb)]=g[r(0xbc)][r(0xeb)]===r(0xad)?!![]:![],this['fsi'][r(0xec)](r(0xeb),g[r(0xbc)][r(0xeb)]));typeof g[r(0xbc)][r(0xdd)]===r(0xd6)&&(g[r(0xbc)]['css']=g[r(0xbc)][r(0xdd)]==='true'?!![]:![],this[r(0xab)][r(0xec)](r(0xdd),g[r(0xbc)][r(0xdd)]));typeof g['template']['js']===r(0xd6)&&(g['template']['js']=g[r(0xbc)]['js']===r(0xad)?!![]:![],this[r(0xab)][r(0xec)]('js',g[r(0xbc)]['js']));!g[r(0xc8)]&&(g['features']={});!b[r(0xd3)]&&!this[r(0xab)][r(0xc1)](r(0xba))&&(Log[r(0xc7)](r(0xe2)),await this[r(0xab)]['installNpmPackage'](r(0xba),{'cwd':c}));if(!b[r(0xd3)]&&!this[r(0xab)][r(0xc1)](r(0xaf))){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[r(0xea)]),'myPath':a59e[r(0xbb)](this[r(0xab)][r(0xcd)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[r(0xea)]),'camelCaseName':camelCase(b[r(0xea)]),'fileName':paramCase(b[r(0xea)]),'graphql':g[r(0xb4)]['graphql'],'features':g[r(0xc8)],'client':g[r(0xb4)][r(0xc0)],'api':g[r(0xb4)]['api'],'ssr':g[r(0xb4)][r(0xca)],'test':g[r(0xb4)][r(0xeb)],'theme':g[r(0xb4)][r(0xde)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0xc8)][r(0xed)]};this['fsi'][r(0xbc)]({'srcPath':'component/component.js','destPath':f+r(0xe5),'context':h,'framework':r(0xaf),'config':g});g[r(0xb4)][r(0xeb)]!==r(0xd4)&&this['fsi'][r(0xbc)]({'srcPath':r(0xbf),'destPath':f+r(0xc2),'context':h,'framework':r(0xaf),'config':g});g['template'][r(0xdd)]&&(this[r(0xab)]['template']({'srcPath':r(0xe9),'destPath':f+'.css','context':Object[r(0xd9)]({},h,{'className':paramCase(b[r(0xea)])}),'config':g}),this[r(0xab)][r(0xd2)]({'filePath':f+'.'+g['engines']['js'],'content':'import\x20\x27./'+h[r(0xdc)]+'.'+g['engines'][r(0xdd)]+'\x27;'}));const i=b[r(0xe8)]?'/'+b[r(0xe8)]+'/':'/',j=''+d+i+h[r(0xdf)]+'/'+h[r(0xdf)];let k;if(g[r(0xb4)][r(0xca)]===r(0xad)){const l=this[r(0xab)][r(0xb7)]({'pathParts':['imports','startup',r(0xd7),r(0xb0)]});k=this[r(0xab)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[r(0xab)]['pathFromApp']({'pathParts':[r(0xd0),'startup',r(0xc0),'templates.js']});k=this[r(0xab)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g['engines']['client']===r(0xaf)||g[r(0xb4)][r(0xc0)]===r(0xe0)?(g[r(0xb4)]['js']===r(0xe6)?this[r(0xab)]['injectAtBeginningOfFile']({'filePath':k,'content':r(0xc4)+h[r(0xb5)]+r(0xcc)+j+r(0xd1)}):this[r(0xab)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[r(0xb5)]+r(0xcc)+j+'.'+g['engines']['js']+'\x27;\x0a'}),this[r(0xab)][r(0xaa)]({'filePath':k,'content':r(0xe4)+h['className']+'\x20};\x0a'})):this[r(0xab)]['injectAtEndOfFile']({'filePath':k,'content':r(0xe1)+j+'.'+g[r(0xb4)]['js']+r(0xd1)});});}catch(h){Log[q(0xc5)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x6c;let f=c[d];return f;},a60d(a,b);}const a60j=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=-parseInt(h(0x7a))/0x1*(-parseInt(h(0x76))/0x2)+-parseInt(h(0x81))/0x3+-parseInt(h(0x6c))/0x4*(parseInt(h(0x7f))/0x5)+parseInt(h(0x87))/0x6+parseInt(h(0x72))/0x7+-parseInt(h(0x7b))/0x8*(parseInt(h(0x74))/0x9)+parseInt(h(0x89))/0xa*(parseInt(h(0x6e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0xc447d));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(0x86)]()['search'](i(0x73))[i(0x86)]()[i(0x8c)](a60a)[i(0x79)]('(((.+)+)+)+$');});a60a();function a60c(){const m=['maka\x20{generate,\x20g}:{config}\x20<name>','production','constructor','ubuntu','pathFromProject','2790012lGUjFO','process.env','286kSFnlN','create','prod','fsi','3637361udBDDN','(((.+)+)+)+$','1209042dJNWjh','withValue','6vdaRao','isDocker','config/settings.json','search','98039BbTvzU','64xLzVFl','settings.json','template','dev','10neeMpS','development','494469EtCTWV','config','resourceName','appName','getProjectConfig','toString','2168904bgWtkP','Generate\x20configuration\x20settings.','870490wcgLtH'];a60c=function(){return m;};return a60c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a60j(0x6f)]({'name':a60j(0x82),'usage':a60j(0x8a),'shortDesc':a60j(0x88),'validOpts':[a60j(0x77)],'examples':['maka\x20g:config\x20production']},function(a,b){const k=a60j,c=this[k(0x71)][k(0x85)]();this[k(0x71)][k(0x75)](c,async()=>{const l=k,d={'app':c[l(0x84)],'appFileCase':paramCase(c[l(0x84)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[l(0x83)]),'camelCase':camelCase(b[l(0x83)]),'userName':l(0x8d),'isDocker':b['isDocker']};let e=a[0x0];if(e===l(0x7e))e=l(0x80);else e===l(0x70)&&(e=l(0x8b));const f=this['fsi'][l(0x8e)]({'pathParts':[l(0x82),e,l(0x7c)]});this[l(0x71)][l(0x7d)]({'srcPath':l(0x78),'destPath':f,'context':d,'config':c});if(!b[l(0x77)]){const g=this[l(0x71)][l(0x8e)]({'pathParts':[l(0x82),e,l(0x6d)]});this[l(0x71)][l(0x7d)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a61q=a61d;
|
|
1
|
+
const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=-parseInt(n(0x8d))/0x1+parseInt(n(0x9b))/0x2*(-parseInt(n(0xa2))/0x3)+-parseInt(n(0x8c))/0x4+-parseInt(n(0x88))/0x5*(parseInt(n(0x85))/0x6)+parseInt(n(0x97))/0x7*(-parseInt(n(0xba))/0x8)+-parseInt(n(0x93))/0x9*(-parseInt(n(0x9f))/0xa)+parseInt(n(0x96))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x3e649));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a['toString']()[p(0xae)](p(0x9e))[p(0x89)]()[p(0xb5)](a61a)[p(0xae)]('(((.+)+)+)+$');});function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x7e;let f=c[d];return f;},a61d(a,b);}a61a();import{camelCase,paramCase,pascalCase}from'change-case';function a61c(){const t=['maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','pgsql','5LyHtPx','toString','-dbc\x27;','type','1827172ajhYsS','25310LCdHef','mssql','server','better-sqlite3','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','dbc','45uSfLew','MS\x20SQL','withValue','10513008llmxBe','246141eguLsO','dir','getProjectConfig','Invalid\x20type\x20','14458JfOSjY','fsi','dbAnswer','(((.+)+)+)+$','557110VedGXl','conn.','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','96DIjzJk','indexOf','resourceName','options',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','startup','maka\x20g:dbc\x20azure\x20--type=mssql','error','engines','config.','(blank)','template','search','index.','apply','dbc/config.js','injectAtEndOfFile','register-','imports','constructor','pathFromApp','checkNpmPackage','dbc/conn.js','dbc/register-dbc.js','16rDXPST','warn','installNpmPackage','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20geoserver\x20--type=pgsql','list','PostgreSQL','tsx','1169790iqPFNn'];a61c=function(){return t;};return a61c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator['create']({'name':a61q(0x92),'usage':a61q(0x86),'shortDesc':a61q(0x91),'validOpts':['type','dir'],'examples':[a61q(0x81),a61q(0xa8),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a61q;try{const c=await this[r(0x9c)][r(0x99)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b[r(0xa4)]);if(!b[r(0x8b)]){const h={'type':r(0x82),'name':r(0x9d),'message':'DB\x20Driver','choices':[{'name':r(0x83),'value':r(0x87)},{'name':r(0x94),'value':r(0x8e)}]},{dbAnswer:i}=await Actions[r(0xa5)](h);i&&(b[r(0x8b)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[r(0xa4)]),'camelCase':camelCase(b[r(0xa4)]),'type':b[r(0x8b)],'engine':c[r(0xaa)]['js'],'noRename':!![]};this[r(0x9c)][r(0x95)](c,async()=>{const s=r;let j='js';c[s(0xaa)]['js']===s(0x84)&&(j='ts');const k=[s(0x8e),s(0x87)];if(k[s(0xa3)](g['type'])<0x0){const m=g[s(0x8b)]?g[s(0x8b)]:s(0xac);Log[s(0xa9)](s(0x9a)+m+s(0xa6));return;}b[s(0x8b)]===s(0x87)&&!this['fsi'][s(0xb7)]('pg')&&(Log[s(0x7e)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[s(0x9c)][s(0x7f)]('pg',{'cwd':d}));b[s(0x8b)]==='mssql'&&!this['fsi'][s(0xb7)](s(0x8e))&&(Log[s(0x7e)](s(0xa1)),await this[s(0x9c)][s(0x7f)]('mssql',{'cwd':d}));b[s(0x8b)]==='sqlite'&&!this[s(0x9c)][s(0xb7)](s(0x90))&&(Log['warn'](s(0x80)),await this[s(0x9c)][s(0x7f)](s(0x90),{'cwd':d}));this['fsi'][s(0xad)]({'srcPath':s(0xb1),'destPath':this['fsi'][s(0xb6)]({'pathParts':[s(0xb4),s(0xa7),s(0x8f),s(0x92),b[s(0x98)],f,s(0xab)+j]}),'context':g,'config':c}),this[s(0x9c)][s(0xad)]({'srcPath':s(0xb8),'destPath':this[s(0x9c)][s(0xb6)]({'pathParts':[s(0xb4),s(0xa7),'server',s(0x92),b[s(0x98)],f,s(0xa0)+j]}),'context':g,'config':c}),this[s(0x9c)]['template']({'srcPath':s(0xb9),'destPath':this['fsi'][s(0xb6)]({'pathParts':[s(0xb4),s(0xa7),s(0x8f),s(0xb3)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x9c)][s(0xb6)]({'pathParts':['imports','startup','server',s(0xaf)+c[s(0xaa)]['js']]});this['fsi'][s(0xb2)]({'filePath':l,'content':'import\x20\x27./register-'+f+s(0x8a)});});}catch(j){Log[r(0xa9)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d
|
|
1
|
+
const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=-parseInt(f(0x1db))/0x1+parseInt(f(0x1ed))/0x2+parseInt(f(0x1d6))/0x3+parseInt(f(0x1d7))/0x4+parseInt(f(0x1e3))/0x5*(-parseInt(f(0x1ec))/0x6)+parseInt(f(0x1e8))/0x7*(parseInt(f(0x1dd))/0x8)+parseInt(f(0x1d4))/0x9*(-parseInt(f(0x1d9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x8885a));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a['toString']()[h(0x1da)](h(0x1e0))['toString']()[h(0x1d1)](a62a)['search'](h(0x1e0));});a62a();import{Generator}from'../generator.js';function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x1d1;let f=c[d];return f;},a62d(a,b);}import{Log}from'../tools/log/log.class.js';function a62c(){const l=['maka\x20g:dockerfile','getGlobalConfig','dockerfile','getProjectConfig','413wjtjvz','maka\x20{generate,\x20g}:dockerfile','withValue','app.tar.gz','4191126oUwnsp','490822jwacxO','cert','constructor','isFile','join','1934559yHuBNQ','apply','2630841ruZmru','324800iUPKZh','docker/Dockerfile','10trlANm','search','77045eJBkxr','template','46936jQtzcQ','findProjectDirectory','Dockerfile','(((.+)+)+)+$','fsi','Generate\x20an\x20updated\x20dockerfile','5THLXwQ'];a62c=function(){return l;};return a62c();}import a62e from'path';Generator['create']({'name':a62i(0x1e6),'usage':a62i(0x1e9),'shortDesc':a62i(0x1e2),'validOpts':[],'noResource':!![],'examples':[a62i(0x1e4)]},async function(){const j=a62i;try{const a=await this[j(0x1e1)][j(0x1e7)](),b=await this[j(0x1e1)][j(0x1e5)](),c=this['fsi'][j(0x1de)]();this[j(0x1e1)][j(0x1ea)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a62e[k(0x1d3)](c,'app'),'bundlePath':a62e[k(0x1d3)](c,'build',k(0x1eb)),'useCert':this['fsi'][k(0x1d2)](b[k(0x1ee)])};this[k(0x1e1)][k(0x1dc)]({'srcPath':k(0x1d8),'destPath':a62e['join'](c,k(0x1df)),'framework':'service','context':d,'config':a});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63r=a63d;function a63c(){const u=['This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','18KVqaRs','search','className','imports','error','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','5iqwWAy','4157880ifsGce','tsx','import\x20\x27./','toString','checkNpmPackage','/imports/ui/hooks','startup','7295190TIYFaW','18004710IczXjN','features','test/test.js','react','relative','.js','templates.js','client','hook','fileName','maka\x20g:hook\x20cool-hook','import\x20\x27','.app-tests.js','pathFromProject','ssr','rewriteDestinationPathForEngine','template','template/template.css','installNpmPackage','true','withValue','export\x20{\x20','test','create','warn','6kZynrV','fsi','pathFromApp','312422YaGQqx','lib','@apollo/client','332645ghnQbm','apply','graphql','engines','@apollo/client\x20isomorphic-fetch','9090904GwiDZF','\x27;\x0a','\x20}\x20from\x20\x27','dir','theme','(((.+)+)+)+$','setTemplate','css','\x20};\x0a','injectAtEndOfFile','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','none','import\x20{\x20','resourceName','146884yiOwOe','injectAtBeginningOfFile'];a63c=function(){return u;};return a63c();}(function(a,b){const o=a63d,c=a();while(!![]){try{const d=-parseInt(o(0x193))/0x1+-parseInt(o(0x190))/0x2*(-parseInt(o(0x18d))/0x3)+parseInt(o(0x1a6))/0x4*(-parseInt(o(0x1af))/0x5)+-parseInt(o(0x1b0))/0x6+-parseInt(o(0x173))/0x7+-parseInt(o(0x198))/0x8+-parseInt(o(0x1a9))/0x9*(-parseInt(o(0x174))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0xa42e5));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a[q(0x16f)]()[q(0x1aa)](q(0x19d))['toString']()['constructor'](a63a)[q(0x1aa)](q(0x19d));});a63a();import a63e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x16f;let f=c[d];return f;},a63d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a63r(0x18b)]({'name':a63r(0x17c),'aliases':['h'],'checkWhere':![],'usage':a63r(0x1a2),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':['dir'],'examples':[a63r(0x17e)]},async function(a,b){const s=a63r;try{const c=this['fsi'][s(0x170)](s(0x177));if(!c){Log['error'](s(0x1a8));throw new UsageError();}const d=this[s(0x18e)]['pathFromApp'](b),f=s(0x171),g=this[s(0x18e)]['pathFromApp']({'pathParts':[f,b[s(0x19b)],paramCase(b[s(0x1a5)]),paramCase(b[s(0x1a5)])]}),h=await this['fsi']['getProjectConfig']();this[s(0x18e)][s(0x188)](h,async()=>{const t=s;typeof h[t(0x184)][t(0x19f)]==='string'&&(h[t(0x184)][t(0x19f)]=h[t(0x184)][t(0x19f)]===t(0x187)?!![]:![],this['fsi'][t(0x19e)](t(0x19f),h[t(0x184)]['css']));h['engines'][t(0x195)]==='apollo'&&!this[t(0x170)](t(0x192))&&(Log[t(0x18c)](t(0x1ae)),await this['fsi'][t(0x186)](t(0x197),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1a5)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b['resourceName']),'graphql':h['engines'][t(0x195)],'theme':h[t(0x196)][t(0x19c)],'features':h[t(0x175)],'myPath':a63e[t(0x178)](this[t(0x18e)][t(0x181)]({}),g),'fileName':paramCase(b[t(0x1a5)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x175)]['withTranslations']};this['fsi']['template']({'srcPath':'hook/hook.js','destPath':g+t(0x179),'context':i,'config':h,'framework':t(0x177)});h['template'][t(0x19f)]&&(this[t(0x18e)][t(0x184)]({'srcPath':t(0x185),'destPath':g+'.css','context':Object['assign']({},i,{'className':i['cssCaseName']}),'config':h}),this[t(0x18e)][t(0x1a7)]({'filePath':g+'.'+h[t(0x196)]['js'],'content':t(0x1b2)+i[t(0x17d)]+'.'+h['engines'][t(0x19f)]+'\x27;'}));h['engines'][t(0x18a)]!==t(0x1a3)&&this[t(0x18e)][t(0x184)]({'srcPath':t(0x176),'destPath':g+t(0x180),'framework':t(0x177),'context':i,'config':h});const j=b['dir']?'/'+b[t(0x19b)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x17d)];let l;if(h[t(0x196)][t(0x182)]===t(0x187)){const m=this[t(0x18e)][t(0x18f)]({'pathParts':[t(0x1ac),t(0x172),t(0x191),t(0x17a)]});l=this[t(0x18e)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x18e)][t(0x18f)]({'pathParts':['imports',t(0x172),t(0x17b),'templates.js']});l=this[t(0x18e)][t(0x183)]({'pathParts':[n],'config':h});}h[t(0x196)][t(0x17b)]===t(0x177)?(h[t(0x196)]['js']===t(0x1b1)?this[t(0x18e)][t(0x1a7)]({'filePath':l,'content':t(0x1a4)+i[t(0x1ab)]+t(0x19a)+k+t(0x199)}):this[t(0x18e)][t(0x1a7)]({'filePath':l,'content':t(0x1a4)+i[t(0x1ab)]+'\x20}\x20from\x20\x27'+k+'.'+h['engines']['js']+t(0x199)}),this[t(0x18e)][t(0x1a1)]({'filePath':l,'content':t(0x189)+i[t(0x1ab)]+t(0x1a0)})):this[t(0x18e)][t(0x1a1)]({'filePath':l,'content':t(0x17f)+k+'.'+h[t(0x196)]['js']+t(0x199)});});}catch(i){Log[s(0x1ad)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a64j=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=parseInt(h(0xce))/0x1+-parseInt(h(0xc0))/0x2+-parseInt(h(0xca))/0x3+parseInt(h(0xc1))/0x4*(parseInt(h(0xcb))/0x5)+-parseInt(h(0xd7))/0x6+parseInt(h(0xd1))/0x7*(-parseInt(h(0xc9))/0x8)+parseInt(h(0xd9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0xe2081));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(0xd2)]()[i(0xdc)]('(((.+)+)+)+$')[i(0xd2)]()[i(0xc7)](a64a)[i(0xdc)]('(((.+)+)+)+$');});a64a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a64c(){const m=['37126557hVofrw','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','kit','search','3348622vxvdjm','8tbHwDL','resourceName','login','getProjectConfig','NIE','indexOf','constructor','fsi','6551704GLoKVP','1391181xbZvdV','151395FZKqzm','maka\x20g:kit\x20--type=map','(blank)','107527WoTnvq','withValue','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','7HeRsKB','toString','type',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','error','Invalid\x20type\x20','2462592RzYViQ','engines'];a64c=function(){return m;};return a64c();}import{camelCase,paramCase,pascalCase}from'change-case';function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0xc0;let f=c[d];return f;},a64d(a,b);}Generator['create']({'name':a64j(0xdb),'aliases':['k'],'usage':a64j(0xd0),'shortDesc':a64j(0xda),'validOpts':[a64j(0xd3)],'examples':[a64j(0xcc),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const k=a64j;try{const c=this[k(0xc8)][k(0xc4)]();this[k(0xc8)][k(0xcf)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0xc2)]),'fileName':paramCase(b[l(0xc2)]),'camelCase':camelCase(b[l(0xc2)]),'type':b[l(0xd3)],'engine':c[l(0xd8)]['js'],'noRename':!![]},f=['leaflet-map',l(0xc3)];if(f[l(0xc6)](d[l(0xd3)])<0x0){const g=d[l(0xd3)]?d[l(0xd3)]:l(0xcd);Log[l(0xd5)](l(0xd6)+g+l(0xd4));return;}b[l(0xd3)]==='map'&&Log['notice'](l(0xc5)),b['type']===l(0xc3)&&Log['notice'](l(0xc5));});}catch(d){Log[k(0xd5)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65r=a65d;function
|
|
1
|
+
const a65r=a65d;function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x127;let f=c[d];return f;},a65d(a,b);}(function(a,b){const o=a65d,c=a();while(!![]){try{const d=-parseInt(o(0x166))/0x1*(-parseInt(o(0x15f))/0x2)+-parseInt(o(0x15c))/0x3*(parseInt(o(0x148))/0x4)+-parseInt(o(0x13e))/0x5+-parseInt(o(0x152))/0x6+parseInt(o(0x14c))/0x7+-parseInt(o(0x15a))/0x8*(parseInt(o(0x168))/0x9)+parseInt(o(0x14b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x27195));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x135)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x16f)]()['search']('(((.+)+)+)+$')[q(0x16f)]()[q(0x16e)](a65a)[q(0x142)](q(0x12c));});a65a();import a65e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a65c(){const u=['template','setTemplate','maka\x20g:layout\x20mobile/iPhone8','relative','.css','layout','startup','apply','rewriteDestinationPathForEngine','test/test.js','fileName','\x20};\x0a','checkNpmPackage','findAppDirectory','theme','ramda','256305aDfNmq','imports','react','className','search','withValue','none','resourceName','component/component.js','dir','4hJGWWM','api','templates.js','2000290vmiqZA','622286gdsWNr','warn','export\x20{\x20','installNpmPackage','create','css','750804EwtJNX','maka\x20g:l\x20web/safari','pathFromApp','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','injectAtEndOfFile','\x27;\x0a','import\x20\x27','fsi','1838152tUPnZs','import\x20\x27./','69039UBNPsg','/imports/ui/layouts','pathFromProject','66rtzEGh','template/template.css','.js','client','true','injectAtBeginningOfFile','includes','9103qFYcMr','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','9cCVMfO','import\x20{\x20','test','.app-tests.js','engines','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','constructor','toString','Scaffolding\x20for\x20a\x20React\x20Layout.','withHook','features','ssr','split','(((.+)+)+)+$','string'];a65c=function(){return u;};return a65c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a65r(0x150)]({'name':a65r(0x133),'aliases':aliases,'usage':a65r(0x167),'shortDesc':a65r(0x127),'validOpts':[],'examples':[a65r(0x130),a65r(0x153)]},function(a,b){const s=a65r,c=s(0x15d),d=this[s(0x159)][s(0x13b)](),e=this[s(0x159)][s(0x154)]({'pathParts':[c,b[s(0x147)],paramCase(b['resourceName']),paramCase(b[s(0x145)])]}),f=this[s(0x159)]['getProjectConfig']();this['fsi'][s(0x143)](f,()=>{const t=s;typeof f[t(0x12e)][t(0x16a)]===t(0x12d)&&(f[t(0x12e)]['test']=f[t(0x12e)][t(0x16a)]==='true'?!![]:![],this[t(0x159)]['setTemplate'](t(0x16a),f[t(0x12e)]['test']));typeof f[t(0x12e)]['css']===t(0x12d)&&(f[t(0x12e)][t(0x151)]=f[t(0x12e)][t(0x151)]===t(0x163)?!![]:![],this[t(0x159)]['setTemplate'](t(0x151),f[t(0x12e)]['css']));typeof f[t(0x12e)]['js']===t(0x12d)&&(f[t(0x12e)]['js']=f[t(0x12e)]['js']==='true'?!![]:![],this[t(0x159)][t(0x12f)]('js',f[t(0x12e)]['js']));!f[t(0x129)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x12b)](':')[0x1]:![],h=b['_']&&aliases[t(0x165)](g);h&&!this['checkNpmPackage'](t(0x13d))&&(Log[t(0x14d)](t(0x155)),this[t(0x159)][t(0x14f)]('ramda',{'cwd':d}));if(h&&!this[t(0x13a)](t(0x140))){Log[t(0x14d)](t(0x16d));return;}const i={'name':pascalCase(b[t(0x145)]),'myPath':a65e[t(0x131)](this[t(0x159)][t(0x15e)]({}),e),'cssCaseName':paramCase(b[t(0x145)]),'className':pascalCase(b[t(0x145)]),'camelCaseName':camelCase(b[t(0x145)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x16c)]['graphql'],'features':f['features'],'client':f['engines']['client'],'api':f[t(0x16c)][t(0x149)],'ssr':f[t(0x16c)][t(0x12a)],'test':f[t(0x16c)][t(0x16a)],'theme':f[t(0x16c)][t(0x13c)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x129)]['withTranslations']};f[t(0x129)]?.['withHooks']||b[t(0x128)]?this[t(0x159)][t(0x12e)]({'srcPath':'hook/hook.js','destPath':e+t(0x161),'framework':'react','context':i,'config':f}):this[t(0x159)][t(0x12e)]({'srcPath':t(0x146),'destPath':e+t(0x161),'framework':t(0x140),'context':i,'config':f});f[t(0x16c)][t(0x16a)]!==t(0x144)&&this[t(0x159)][t(0x12e)]({'srcPath':t(0x137),'destPath':e+t(0x16b),'framework':t(0x140),'context':i,'config':f});f[t(0x12e)][t(0x151)]&&(this[t(0x159)][t(0x12e)]({'srcPath':t(0x160),'destPath':e+t(0x132),'context':Object['assign']({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x159)][t(0x164)]({'filePath':e+'.'+f[t(0x16c)]['js'],'content':t(0x15b)+i['fileName']+'.'+f['engines'][t(0x151)]+'\x27;'}));const j=b[t(0x147)]?'/'+b[t(0x147)]+'/':'/',k=''+c+j+i[t(0x138)]+'/'+i['fileName'];let l;if(f['engines'][t(0x12a)]==='true'){const m=this['fsi'][t(0x154)]({'pathParts':['imports','startup','lib','templates.js']});l=this[t(0x159)][t(0x136)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x154)]({'pathParts':[t(0x13f),t(0x134),t(0x162),t(0x14a)]});l=this[t(0x159)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[t(0x16c)][t(0x162)]===t(0x140)?(f[t(0x16c)]['js']==='tsx'?this[t(0x159)][t(0x164)]({'filePath':l,'content':t(0x169)+i[t(0x141)]+'\x20}\x20from\x20\x27'+k+t(0x157)}):this[t(0x159)][t(0x164)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x141)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x16c)]['js']+t(0x157)}),this[t(0x159)][t(0x156)]({'filePath':l,'content':t(0x14e)+i[t(0x141)]+t(0x139)})):this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0x158)+k+'.'+f[t(0x16c)]['js']+t(0x157)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a66c(){const i=['maka\x20generate:api\x20Trucks','search','maka\x20g:hook\x20cool-hook','35cTHewg','\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','2716190BqAPFP','871496FOvCVN','747075YOtgxv','1936323dixUmg','111138SpHBYt','Maka!','63VNpLOm','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','(((.+)+)+)+$','467593CgMGWZ','96JsqrKB','toString','462408IddnlV'];a66c=function(){return i;};return a66c();}const a66h=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=-parseInt(f(0x1c4))/0x1+-parseInt(f(0x1c3))/0x2+parseInt(f(0x1c5))/0x3+-parseInt(f(0x1bc))/0x4+parseInt(f(0x1c0))/0x5*(parseInt(f(0x1c6))/0x6)+parseInt(f(0x1b9))/0x7*(-parseInt(f(0x1ba))/0x8)+parseInt(f(0x1c8))/0x9*(parseInt(f(0x1c2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x8cba6));const a66b=(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;};}()),a66a=a66b(this,function(){const g=a66d;return a66a['toString']()[g(0x1be)](g(0x1b8))[g(0x1bb)]()['constructor'](a66a)['search']('(((.+)+)+)+$');});function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x1b7;let f=c[d];return f;},a66d(a,b);}a66a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a66h(0x1c7),'validOpts':[],'description':a66h(0x1c1),'usage':a66h(0x1b7),'examples':[a66h(0x1bd),a66h(0x1bf)]},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-
|
|
1
|
+
function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x1b4;let f=c[d];return f;},a67d(a,b);}const a67n=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0x1dc))/0x1+-parseInt(k(0x1be))/0x2+-parseInt(k(0x1db))/0x3+-parseInt(k(0x1c5))/0x4*(-parseInt(k(0x1c2))/0x5)+-parseInt(k(0x1cc))/0x6+-parseInt(k(0x1bf))/0x7+parseInt(k(0x1cd))/0x8*(parseInt(k(0x1de))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x78342));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a67d;if(c){const e=c[l(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const m=a67d;return a67a['toString']()['search'](m(0x1d0))[m(0x1d1)]()['constructor'](a67a)[m(0x1c9)]('(((.+)+)+)+$');});a67a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a67c(){const q=['checkMeteorPackage','apply','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','warn','310689LUHdOK','168572bkfpvB','engines','513ovlAQR','fsi','import\x20\x27./methods','check','methods','ddp-rate-limiter','installMeteorPackage','create','method/method.js','withValue','tsx','1927532pnmTPR','482349WhUnOj','getProjectConfig','injectAtEndOfFile','5ANbTfE','resourceName','mdg:validated-method','3849488zaobEu','method','dir','pathFromApp','search','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','appPathPrefix','167022UKVxkD','73752FgLftv','maka\x20{generate,\x20g}:{method,\x20m}\x20name','-rpc-method.','(((.+)+)+)+$','toString','template','maka\x20g:method\x20todos','imports','startup','check\x20ddp-rate-limiter\x20mdg:validated-method'];a67c=function(){return q;};return a67c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0x1ba)]({'name':a67n(0x1c6),'aliases':['m'],'usage':a67n(0x1ce),'checkWhere':!![],'shortDesc':a67n(0x1ca),'validOpts':['dir'],'examples':[a67n(0x1d3)]},function(a,b){const o=a67n;try{const c=this[o(0x1b4)][o(0x1c0)]();this[o(0x1b4)][o(0x1bc)](c,async()=>{const p=o,d=paramCase(b[p(0x1c3)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x1c3)]),'camelCase':camelCase(b[p(0x1c3)]),'noRename':!![]};let g='js';c['engines']['js']===p(0x1bd)&&(g='ts');const h=this[p(0x1b4)]['pathFromApp']({});(!this[p(0x1b4)][p(0x1d7)](p(0x1b6))||!this[p(0x1b4)][p(0x1d7)](p(0x1b8))||!this[p(0x1b4)]['checkMeteorPackage'](p(0x1c4)))&&(Log[p(0x1da)](p(0x1d9)),this['fsi'][p(0x1b9)](p(0x1d6),{'cwd':h}));this[p(0x1b4)][p(0x1d2)]({'srcPath':p(0x1bb),'destPath':this[p(0x1b4)][p(0x1c8)]({'pathParts':[p(0x1d4),p(0x1d5),b[p(0x1cb)],p(0x1b7),b[p(0x1c7)],d+p(0x1cf)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[p(0x1b4)][p(0x1c8)]({'pathParts':['imports','startup',b[p(0x1cb)],'index.'+c[p(0x1dd)]['js']]});this[p(0x1b4)][p(0x1c1)]({'filePath':j,'content':p(0x1b5)+i+d+'-rpc-method\x27;'});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x9b;let f=c[d];return f;},a68d(a,b);}const a68o=a68d;(function(a,b){const l=a68d,c=a();while(!![]){try{const d=parseInt(l(0xc2))/0x1*(-parseInt(l(0xa7))/0x2)+-parseInt(l(0xbb))/0x3*(-parseInt(l(0xbf))/0x4)+-parseInt(l(0x9b))/0x5*(-parseInt(l(0xa1))/0x6)+-parseInt(l(0xaf))/0x7+-parseInt(l(0xba))/0x8*(-parseInt(l(0xc7))/0x9)+parseInt(l(0xbc))/0xa*(parseInt(l(0xa4))/0xb)+-parseInt(l(0xb1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x50827));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0xa0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a[n(0xa5)]()[n(0xa2)]('(((.+)+)+)+$')['toString']()['constructor'](a68a)[n(0xa2)](n(0xad));});function a68c(){const s=['apply','42HkmvbT','search','template/template.js','55WFhvOy','toString','layout','4616LjWGqz','maka\x20g:package\x20todos:package','.js','noRename','packages','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','(((.+)+)+)+$','theme','4064410MoTMVq','hasOwnProperty','7764096VfJNCZ','create','component','package.js','package','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','tests/client','ssr','forEach','1544vPwyzA','3uUNOlm','903120MKtsyt','/package.js','fsi','2538344RXQAyB','graphql','template','2gGaLHu','store','pathFromProject','/client/','resourceName','21501SxUgxN','withValue','pathFromAppWithNoReWrite','server','10570QaBNTd','pathFromApp','package/','engines','dir'];a68c=function(){return s;};return a68c();}a68a();import a68e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68o(0xb2)]({'name':a68o(0xb5),'aliases':['p'],'usage':a68o(0xac),'shortDesc':a68o(0xb6),'validOpts':['dir'],'examples':[a68o(0xa8)]},async function(a,b){const p=a68o,c=paramCase(b[p(0xc6)]),d=this[p(0xbe)][p(0x9c)]({'pathParts':[p(0xab),b[p(0x9f)],c]}),e=this[p(0xbe)][p(0xc9)]({'pathParts':[p(0xab),b['dir'],c,p(0xb4)]}),f=this[p(0xbe)]['getProjectConfig']();this[p(0xbe)][p(0xc8)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xc6)]),'myPath':a68e['relative'](this[q(0xbe)][q(0xc4)]({}),d),'cssCaseName':paramCase(b[q(0xc6)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0xc6)]),'fileName':c,'client':f[q(0x9e)]['client'],'graphql':f[q(0x9e)][q(0xc0)],'ssr':f[q(0x9e)][q(0xb8)],'isComponent':b['hasOwnProperty'](q(0xb3)),'isLayout':b[q(0xb0)](q(0xa6)),'isStore':b[q(0xb0)](q(0xc3)),'features':f['features'],'noRename':!![],'theme':f['engines'][q(0xae)]};this[q(0xbe)][q(0xc1)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0xaa)]=![];const h=d+q(0xc5)+c+q(0xa9);this[q(0xbe)][q(0xc1)]({'srcPath':q(0xa3),'destPath':h,'context':g,'config':f});const i=['lib',q(0xca),q(0xb7),'tests/server'];i[q(0xb9)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xa9);this[r(0xbe)]['template']({'srcPath':r(0x9d)+j+r(0xbd),'destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69o=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=-parseInt(m(0x1ba))/0x1*(-parseInt(m(0x1c6))/0x2)+-parseInt(m(0x1b2))/0x3+parseInt(m(0x1ab))/0x4+parseInt(m(0x1cd))/0x5*(-parseInt(m(0x1a7))/0x6)+parseInt(m(0x197))/0x7*(-parseInt(m(0x1b8))/0x8)+parseInt(m(0x1c1))/0x9+-parseInt(m(0x1a8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x43eb6));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const n=a69d;return a69a[n(0x192)]()[n(0x1b4)](n(0x1d3))[n(0x192)]()[n(0x1a1)](a69a)['search']('(((.+)+)+)+$');});a69a();import a69e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x18e;let f=c[d];return f;},a69d(a,b);}function a69c(){const r=['installNpmPackage','(((.+)+)+)+$','css','fileName','pathFromApp','export\x20{\x20','Generate\x20a\x20page.','test','withHooks','tsx','react','test/test.js','vanilla','warn','templates.js','\x20}\x20from\x20\x27','toString','template/template.html','resourceName','engines','ramda','1171891BHlEkZ','.js','\x20};\x0a','dir','assign','component','.html','startup','ssr','import\x20\x27','constructor','hook/hook.js','injectAtEndOfFile','.css','getProjectConfig','true','66qnIZqa','2372420yXjVte','setTemplate','api','1992596XGGTSj','string','lib','template/template.css','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','className','graphql','735366YkFSTf','fsi','search','layout','create','store','8BWKGpM','rewriteDestinationPathForEngine','31SfEXiN','relative','component/component.js','html','injectAtBeginningOfFile','template','imports','645300MvAVLD','features','client','checkNpmPackage','import\x20{\x20','30196gQpECq','pathFromProject','none','hasOwnProperty','import\x20\x27./','/imports/ui/pages','withTranslations','49960EwuBIN','\x27;\x0a','withValue','Updating\x20npm\x20packages\x20...','maka\x20g:page\x20todos/todos-item'];a69c=function(){return r;};return a69c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a69o(0x1b6)]({'name':'page','aliases':aliases,'usage':a69o(0x1af),'shortDesc':a69o(0x1d8),'validOpts':[a69o(0x19a),'withHook'],'examples':[a69o(0x1d1)]},function(a,b){const p=a69o,c=p(0x1cb),d=this['fsi'][p(0x1d6)](b),e=this['fsi'][p(0x1d6)]({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[p(0x194)])]}),f=this['fsi'][p(0x1a5)]();this[p(0x1b3)][p(0x1cf)](f,()=>{const q=p;typeof f[q(0x1bf)][q(0x1bd)]===q(0x1ac)&&(f['template']['html']=f[q(0x1bf)][q(0x1bd)]===q(0x1a6)?!![]:![],this['fsi'][q(0x1a9)](q(0x1bd),f[q(0x1bf)][q(0x1bd)]));typeof f[q(0x1bf)][q(0x1d9)]===q(0x1ac)&&(f[q(0x1bf)][q(0x1d9)]=f[q(0x1bf)][q(0x1d9)]===q(0x1a6)?!![]:![],this['fsi'][q(0x1a9)]('test',f[q(0x1bf)][q(0x1d9)]));typeof f[q(0x1bf)][q(0x1d4)]==='string'&&(f[q(0x1bf)]['css']=f['template'][q(0x1d4)]===q(0x1a6)?!![]:![],this[q(0x1b3)][q(0x1a9)](q(0x1d4),f[q(0x1bf)][q(0x1d4)]));typeof f[q(0x1bf)]['js']==='string'&&(f[q(0x1bf)]['js']=f[q(0x1bf)]['js']===q(0x1a6)?!![]:![],this[q(0x1b3)][q(0x1a9)]('js',f[q(0x1bf)]['js']));!f[q(0x1c2)]&&(f[q(0x1c2)]={});!b['root']&&!this['fsi'][q(0x1c4)](q(0x196))&&(Log[q(0x18f)](q(0x1d0)),this[q(0x1b3)][q(0x1d2)](q(0x196),{'cwd':d}));const g={'name':pascalCase(b[q(0x194)]),'myPath':a69e[q(0x1bb)](this[q(0x1b3)][q(0x1c7)]({}),e),'cssCaseName':paramCase(b[q(0x194)]),'className':pascalCase(b[q(0x194)]),'camelCaseName':camelCase(b[q(0x194)]),'fileName':paramCase(b[q(0x194)]),'graphql':f[q(0x195)][q(0x1b1)],'features':f[q(0x1c2)],'client':f[q(0x195)][q(0x1c3)],'api':f[q(0x195)][q(0x1aa)],'ssr':f[q(0x195)][q(0x19f)],'isStore':b[q(0x1c9)](q(0x1b7)),'isComponent':b[q(0x1c9)](q(0x19c)),'isLayout':b[q(0x1c9)](q(0x1b5)),'withTranslations':f[q(0x1c2)][q(0x1cc)],'test':f[q(0x195)][q(0x1d9)],'theme':f[q(0x195)]['theme']};f['template'][q(0x1bd)]&&this[q(0x1b3)]['template']({'srcPath':q(0x193),'destPath':e+q(0x19d),'context':g,'config':f});f[q(0x1c2)]?.[q(0x1da)]||b['withHook']?this[q(0x1b3)][q(0x1bf)]({'srcPath':q(0x1a2),'destPath':e+'.js','framework':'react','context':g,'config':f}):this[q(0x1b3)][q(0x1bf)]({'srcPath':q(0x1bc),'destPath':e+q(0x198),'framework':q(0x1dc),'context':g,'config':f});f[q(0x195)][q(0x1d9)]!==q(0x1c8)&&this[q(0x1b3)]['template']({'srcPath':q(0x1dd),'destPath':e+'.app-tests.js','framework':q(0x1dc),'context':g,'config':f});f[q(0x1bf)][q(0x1d4)]&&this[q(0x1b3)]['template']({'srcPath':q(0x1ae),'destPath':e+q(0x1a4),'context':Object[q(0x19b)]({},g,{'className':paramCase(b[q(0x194)])}),'config':f});f[q(0x195)][q(0x1c3)]!=='react'&&f['engines']['client']!==q(0x18e)?(f[q(0x1bf)][q(0x1d4)]&&this[q(0x1b3)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x195)]['js'],'content':'import\x20\x27./'+g[q(0x1d5)]+'.'+f[q(0x195)][q(0x1bd)]+'\x27;\x0a'+'import\x20\x27./'+g['fileName']+'.'+f[q(0x195)][q(0x1d4)]+'\x27;'}),!f[q(0x1bf)][q(0x1d4)]&&this[q(0x1b3)][q(0x1be)]({'filePath':e+'.'+f[q(0x195)]['js'],'content':q(0x1ca)+g[q(0x1d5)]+'.'+f['engines']['html']+'\x27;'})):f[q(0x1bf)][q(0x1d4)]&&this[q(0x1b3)][q(0x1be)]({'filePath':e+'.'+f[q(0x195)]['js'],'content':q(0x1ca)+g['fileName']+'.'+f[q(0x195)][q(0x1d4)]+'\x27;'});const h=b[q(0x19a)]?'/'+b[q(0x19a)]+'/':'/',i=''+c+h+g[q(0x1d5)]+'/'+g[q(0x1d5)];let j;if(f[q(0x195)]['ssr']===q(0x1a6)){const k=this['fsi'][q(0x1d6)]({'pathParts':['imports',q(0x19e),q(0x1ad),q(0x190)]});j=this[q(0x1b3)][q(0x1b9)]({'pathParts':[k],'config':f});}else{const l=this[q(0x1b3)][q(0x1d6)]({'pathParts':[q(0x1c0),'startup',q(0x1c3),q(0x190)]});j=this[q(0x1b3)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[q(0x195)][q(0x1c3)]===q(0x1dc)?(f[q(0x195)]['js']===q(0x1db)?this[q(0x1b3)]['injectAtBeginningOfFile']({'filePath':j,'content':q(0x1c5)+g['className']+q(0x191)+i+q(0x1ce)}):this[q(0x1b3)][q(0x1be)]({'filePath':j,'content':'import\x20{\x20'+g[q(0x1b0)]+q(0x191)+i+'.'+f[q(0x195)]['js']+q(0x1ce)}),this[q(0x1b3)]['injectAtEndOfFile']({'filePath':j,'content':q(0x1d7)+g[q(0x1b0)]+q(0x199)})):this[q(0x1b3)][q(0x1a3)]({'filePath':j,'content':q(0x1a0)+i+'.'+f[q(0x195)]['js']+q(0x1ce)});});});
|