@maka/maka-cli 4.6.10 → 4.6.11
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 +3 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.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/chz.sub.cmd.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/rdn.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/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.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/exec.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/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -0
- 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 +3 -1
- package/bundle/obf/src/tools/https/progress.class.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a94x=a94d;(function(a,b){const t=a94d,c=a();while(!![]){try{const d
|
|
1
|
+
const a94x=a94d;function a94c(){const J=['addGenerator\x20requires\x20a\x20Generator\x20instance','toString','root','name','mustHaveMeteorInstalled','listGenerators','chdir','Alias','DARK','validateMeteorInstall','function','shortDesc','domainLicense','Generator\x20requires\x20a\x20name','_generators','exit','Generator.create\x20requires\x20a\x20handler\x20function!','help','LIGHT','Too\x20few\x20options','match','proGenerators','resourceName','server','597156avnQew','validateParams','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','noResource','4599009zAfkHi','cwd','maxOptsLength','Server','checkWhere','validateMakaSubscription','maxArgLength','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','dir','Name','pallet','options','map','_handler','addGenerator','join','slice','constructor','getPro','number','Too\x20few\x20arguments','client','create','where','proFlags','findGenerator','(((.+)+)+)+$','find','To\x20use\x20this\x20generator,\x20\x22','49JFglvs','includes','search','notice','apply','getGlobalConfig','replace','515770tgNQbh','3ayAeAy','pop','both','filter','1503495LkdLVN','Both','There\x20is\x20no\x20Meteor\x20application\x20here','246378BkRiDm','Generator.create\x20requires\x20some\x20options!','invoke','No\x20resource\x20name\x20specified','keys','bright','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','colLocAnswer','tableList','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','Generators:','length','204632UZvpbo','findProjectDirectory','Client','Location','To\x20use\x20these\x20pro\x20flags,\x20\x22','2750916ZrhfYT','fsi','mustBeInMakaProject','minOptsLength','error','appPathPrefix','push','minArgLength','bind','parent'];a94c=function(){return J;};return a94c();}(function(a,b){const t=a94d,c=a();while(!![]){try{const d=parseInt(t(0x12f))/0x1*(parseInt(t(0x136))/0x2)+parseInt(t(0x133))/0x3+parseInt(t(0x169))/0x4+parseInt(t(0x12e))/0x5+-parseInt(t(0x147))/0x6+parseInt(t(0x127))/0x7*(parseInt(t(0x142))/0x8)+-parseInt(t(0x16d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x513c5));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a94d;if(c){const e=c[u(0x12b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const v=a94d;return a94a['toString']()[v(0x129)](v(0x124))['toString']()[v(0x11b)](a94a)[v(0x129)](v(0x124));});a94a();import a94e from'path';import a94f from'cli-table';import{paramCase}from'change-case';import a94g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x119;let f=c[d];return f;},a94d(a,b);}import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const w=a94d,c=process[w(0x16e)]();let d=null;try{process['chdir'](a),d=b();}finally{process[w(0x157)](c);}return d;}export class Generator extends Tool{['options'];[a94x(0x15f)];constructor(a,b){const y=a94x;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[y(0x154)])throw new Error(y(0x15e));if(typeof b!==y(0x15b))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[y(0x15f)]=[],this['options']=Object['assign']({},a),this['name']=this[y(0x178)][y(0x154)],this[y(0x17a)]=b[y(0x14f)](this);}static[a94x(0x120)](a,b,c){const z=a94x;if(!a)throw new Error(z(0x137));if(typeof b!==z(0x15b))throw new Error(z(0x161));const d=new Generator(a,b);return c=c||a94g,Object['assign'](d,{'parent':c?.[z(0x178)]?.[z(0x154)]}),c[z(0x17b)](d),d;}[a94x(0x17b)](a){const A=a94x;if(!(a instanceof Generator))throw new Error(A(0x151));this[A(0x15f)]['push'](a);}[a94x(0x123)](a){const B=a94x,b=this[B(0x15f)][B(0x125)](c=>c[B(0x165)](a));return b;}async['validateMakaSubscription'](a,b){const C=a94x,c=this[C(0x123)](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.[C(0x150)]||'',f=Object['keys'](b),g=await this[C(0x148)][C(0x11c)]();!g&&(Log[C(0x14b)](C(0x174)),process[C(0x160)](0x1));const h=!g?.['roles'][C(0x128)]('singleLicense')&&!g?.['roles'][C(0x128)](C(0x15d)),i=g?.['proGenerators'][C(0x128)](d)||g?.[C(0x166)][C(0x128)](e);if(i&&h)throw C(0x126)+d+C(0x13f);if(f[C(0x141)]>0x0){const j=g?.[C(0x122)][C(0x132)](k=>f[C(0x128)](k));if(j&&j[C(0x141)]>0x0&&h)throw C(0x146)+j?.['join'](',\x20')+C(0x13f);}}}async[a94x(0x138)](a,b){const D=a94x,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[D(0x178)],f=await this[D(0x148)][D(0x12c)](),g=f[D(0x177)]==='light'?ColorMode[D(0x163)]:ColorMode[D(0x159)];Log['setColorMode'](g);try{await this[D(0x172)](a,b);}catch(j){Log[D(0x14b)](j),process['exit'](0x1);}const h=a[D(0x11a)]();b[D(0x167)]=h[0x0];const i=b[D(0x162)]||b['h'];try{if((a[0x0]===_prevGen||a['length']===0x0)&&i)throw new UsageError();if(this[D(0x178)][D(0x149)]){const k=this['validateMakaProject']();if(!k)throw new MustBeInProjectError();}if(this[D(0x178)][D(0x155)]){const l=this[D(0x15a)]();if(!l)throw new NoMeteorFoundError();}if(typeof this[D(0x178)]['minArgLength']===D(0x11d)){if(a['length']<this[D(0x178)][D(0x14e)]){Log[D(0x14b)](D(0x11e));throw new UsageError();}}if(typeof this[D(0x178)][D(0x173)]===D(0x11d)){if(a[D(0x141)]>this[D(0x178)][D(0x173)]){Log[D(0x14b)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[D(0x178)]['minOptsLength']==='number'){if(Object['keys'](b)[D(0x141)]<this[D(0x178)][D(0x14a)]){Log['error'](D(0x164));throw new UsageError();}}if(typeof this[D(0x178)][D(0x16f)]==='number'){if(Object[D(0x13a)](b)['length']>=this[D(0x178)][D(0x16f)]){Log['error']('Too\x20many\x20options');throw new UsageError();}}await this[D(0x16a)](a,b,this[D(0x178)]);if(!b['resourceName']&&!this[D(0x178)][D(0x16c)]){Log[D(0x14b)](D(0x139));throw new UsageError();}_prevGen=a[0x0];}catch(m){Log['usage'](description,examples,usage,c,requiredOpts,d);if(m instanceof UsageError)this[D(0x15f)][D(0x141)]>0x0&&i&&(Log['notice'](D(0x140)),this[D(0x13e)](this[D(0x15f)]));else{if(m instanceof MustBeInProjectError)Log['error'](D(0x13c));else{if(m instanceof NoMeteorFoundError)Log[D(0x14b)](D(0x16b)),Log[D(0x12a)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(m instanceof NoMeteorAppFoundError)Log[D(0x14b)](D(0x135));else throw m;}}}process['exit'](0x1);}return new Promise(n=>{const E=D;inside(b[E(0x16e)],async()=>{const F=E;try{if(!b[F(0x153)]&&!this['fsi'][F(0x143)]())throw new MustBeInProjectError();const o=b[F(0x167)]?.[F(0x12d)](/\\/g,'/')['split']('/');!b[F(0x175)]&&(o?.[F(0x141)]>0x1?(b[F(0x167)]=o[F(0x130)](),h[0x0]=b[F(0x167)],b[F(0x175)]=o[F(0x179)](p=>{return paramCase(p);})[F(0x119)](a94e['sep'])):b['dir']='');if(this['options'][F(0x171)]){if(!b[F(0x121)]){const q={'type':'list','name':F(0x13d),'message':F(0x145),'choices':[{'name':F(0x144),'value':F(0x11f)},{'name':F(0x170),'value':F(0x168)},{'name':F(0x134),'value':F(0x131)}]},{colLocAnswer:r}=await Actions[F(0x178)](q);r?b[F(0x121)]=r:b['where']=F(0x131);}const p=[F(0x131),'client','server'];if(!p['includes'](b[F(0x121)])){Log['error']('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[F(0x121)]){case F(0x131):b['appPathPrefix']='lib';break;case F(0x168):b[F(0x14c)]=F(0x168);break;case F(0x11f):b[F(0x14c)]='client';break;default:b[F(0x14c)]='';}}n(this[F(0x17a)]['call'](this,h,b));}catch(s){console[F(0x14b)](s);}});});}[a94x(0x156)](){const G=a94x;this['tableList'](this[G(0x15f)]);}['tableList'](a){const H=a94x,b=new a94f({});b['push']([H(0x176),H(0x158),'Description']),a['sort']()['forEach'](c=>{const I=H;b[I(0x14d)]([c[I(0x154)],c['aliases'](),c[I(0x15c)]()]);}),Log[H(0x13b)](b[H(0x152)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a95d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a95d,c=a();while(!![]){try{var d=-parseInt(f(0x113))/0x1+-parseInt(f(0x119))/0x2+-parseInt(f(0x118))/0x3*(-parseInt(f(0x11d))/0x4)+-parseInt(f(0x11c))/0x5*(-parseInt(f(0x121))/0x6)+parseInt(f(0x11b))/0x7+parseInt(f(0x117))/0x8*(parseInt(f(0x114))/0x9)+-parseInt(f(0x115))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xcd5de));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a[h(0x11e)]()[h(0x116)](h(0x11a))[h(0x11e)]()[h(0x11f)](a95a)[h(0x116)](h(0x11a));});a95a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x113;var f=c[d];return f;},a95d(a,b);}import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';function a95c(){var i=['4dYpBHQ','toString','constructor','apply','6Ppnhkw','722946msJzEP','10627002aYcBat','7935390YuDsio','search','8meUATl','194787igiqJG','1612516Vqscdd','(((.+)+)+)+$','2375464fWnLla','7894330TLtRxh'];a95c=function(){return i;};return a95c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96z=a96d;(function(a,b){const w=a96d,c=a();while(!![]){try{const d=-parseInt(w(0x19e))/0x1+parseInt(w(0x16b))/0x2*(parseInt(w(0x194))/0x3)+parseInt(w(0x17e))/0x4*(-parseInt(w(0x183))/0x5)+-parseInt(w(0x15e))/0x6*(parseInt(w(0x1b0))/0x7)+-parseInt(w(0x1a3))/0x8+parseInt(w(0x160))/0x9+parseInt(w(0x180))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x49d51));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a96d;if(c){const e=c[x(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const y=a96d;return a96a[y(0x157)]()[y(0x191)](y(0x1a1))[y(0x157)]()['constructor'](a96a)[y(0x191)](y(0x1a1));});a96a();import{Generator}from'../generator.js';function a96c(){const C=['787584qgVcnE','injectAtBeginningOfFile','1012986EOOYMJ','resourceName','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','length','Publications','-api.','import\x20\x27./register-','\x0aimport\x20{\x20resolvers\x20as\x20','withGql','graphql','apiAnswers','162wblGmF','push','none','tsx','TypeDefs\x20}\x20from\x20\x27','injectIntoFile','API\x20boundaries\x20to\x20create','/imports/api','fsi','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','withPubs','invoke','imports','ddp-rate-limiter','rest','fixtures.','.app-tests.','collection','error','20kGRqjQ','No\x20API\x20boundaries\x20selected','8415020qSBdxZ','apollo','const','260675boZkQl','/graphql/resolvers','withValue','maka:rest','TypeDefs);\x0a','injectAtEndOfFile','Fixtures','resolvers.','withMethods','test','apply','maka\x20{generate,\x20g}:{api}\x20<resource-name>','rpc-methods.','withRest','search','mongo','startup','17151rOoaOJ','withFixtures','typeList.push(','api/tests.js','dir','options','maka:check','exit','includes','/graphql/typeDefs','332693XYQvXA','mdg:validated-method','server','(((.+)+)+)+$','api','2070560rVYLTl','api/methods.js','api/fixtures.js','RPC\x20(Methods)','GraphQL','if\x20\x5c(typeList','Resolvers\x20}\x20from\x20\x27','index.','notice','checkMeteorPackage','api/register-api.js','template','api/resolvers.js','14lzyKuE','Resolvers);\x0a\x0a','Verifying\x20meteor\x20package\x20requirements\x20...','pathFromApp','toString','publications.','register-','maka\x20g:api\x20Todos','api/api.js','engines','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'];a96c=function(){return C;};return a96c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a96e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x155;let f=c[d];return f;},a96d(a,b);}Generator['create']({'name':a96z(0x1a2),'aliases':['a'],'usage':a96z(0x18e),'shortDesc':a96z(0x174),'validOpts':[a96z(0x198)],'examples':[a96z(0x15a)],'description':a96z(0x15d)},async function(a,b){const A=a96z;try{const c=this[A(0x173)]['getProjectConfig'](),d=[{'name':A(0x1a6),'value':'withMethods'},{'name':A(0x189),'value':'withFixtures'},{'name':A(0x164),'value':A(0x175)}];c[A(0x15c)][A(0x1a2)]===A(0x179)&&d[A(0x16c)]({'name':'REST\x20API','value':'withRest'});c[A(0x15c)][A(0x169)]===A(0x181)&&d[A(0x16c)]({'name':A(0x1a7),'value':A(0x168)});const f={'type':'checkbox','name':A(0x16a),'message':A(0x171),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x199)](f);g[A(0x163)]===0x0&&(Log[A(0x17d)](A(0x17f)),process[A(0x19b)](0x1)),this['fsi'][A(0x185)](c,async()=>{const B=A,h=this[B(0x173)][B(0x156)]({}),i=b[B(0x161)],j=paramCase(i),k=camelCase(i),l=b[B(0x198)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x15c)][B(0x1a2)],'graphql':c[B(0x15c)][B(0x169)],'test':c[B(0x15c)][B(0x18c)],'noRename':!![],'withPubs':g[B(0x19c)](B(0x175)),'withFixtures':g[B(0x19c)](B(0x195)),'withMethods':g[B(0x19c)](B(0x18b)),'withRest':g[B(0x19c)](B(0x190))};let n='js';c[B(0x15c)]['js']===B(0x16e)&&(n='ts');(!this[B(0x173)][B(0x1ac)](B(0x186))||!this['fsi'][B(0x1ac)](B(0x19a))||!this[B(0x173)]['checkMeteorPackage'](B(0x178))||!this[B(0x173)][B(0x1ac)](B(0x19f))||!this[B(0x173)][B(0x1ac)](B(0x192)))&&(Log[B(0x1ab)](B(0x155)),await this[B(0x173)]['installMeteorPackage'](B(0x162),{'cwd':h}));const o=a96e['findGenerator'](B(0x17c));o&&await o[B(0x176)]([j],{'config':c,'where':B(0x1a0)});c[B(0x15c)][B(0x1a2)]===B(0x179)&&(m['withRest']&&this[B(0x173)]['template']({'srcPath':B(0x15b),'destPath':this[B(0x173)][B(0x156)]({'pathParts':['imports',B(0x1a2),b[B(0x198)],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi']['template']({'srcPath':B(0x1a4),'destPath':this['fsi'][B(0x156)]({'pathParts':[B(0x177),B(0x1a2),b[B(0x198)],j,B(0x18f)+n]}),'context':m,'config':c});m[B(0x195)]&&this[B(0x173)]['template']({'srcPath':B(0x1a5),'destPath':this[B(0x173)]['pathFromApp']({'pathParts':['imports','api',b[B(0x198)],j,B(0x17a)+n]}),'context':m,'config':c});c[B(0x15c)]['test']!==B(0x16d)&&this['fsi'][B(0x1ae)]({'srcPath':B(0x197),'destPath':this['fsi'][B(0x156)]({'pathParts':['imports',B(0x1a2),b[B(0x198)],j,j+B(0x17b)+n]}),'context':m,'config':c});m[B(0x175)]&&this[B(0x173)]['template']({'srcPath':'api/publications.js','destPath':this[B(0x173)][B(0x156)]({'pathParts':[B(0x177),B(0x1a2),b[B(0x198)],j,B(0x158)+n]}),'context':m,'config':c});if(c[B(0x15c)]['graphql']===B(0x181)){if(g[B(0x19c)]('withGql')){const q=this[B(0x173)][B(0x156)]({'pathParts':[B(0x177),B(0x193),'server',B(0x1aa)+c['engines']['js']]}),r=this[B(0x173)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[B(0x173)][B(0x156)]({'pathParts':[B(0x177),'api',b['dir'],j,B(0x169),'typeDefs.'+n]}),t=B(0x172)+l+j+B(0x19d);this[B(0x173)]['template']({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this[B(0x173)][B(0x15f)]({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+B(0x16f)+t+'\x27;\x0a'}),this['fsi']['injectIntoFile']({'filePath':r,'content':B(0x196)+k+B(0x187),'begin':B(0x182),'end':B(0x1a8)});const u=this[B(0x173)][B(0x156)]({'pathParts':[B(0x177),B(0x1a2),b['dir'],j,'graphql',B(0x18a)+n]}),v=B(0x172)+l+j+B(0x184);this[B(0x173)]['template']({'srcPath':B(0x1af),'destPath':u,'context':m,'config':c}),this[B(0x173)][B(0x15f)]({'filePath':r,'content':B(0x167)+k+B(0x1a9)+v+'\x27;'}),this[B(0x173)][B(0x170)]({'filePath':r,'content':'resolverList.push('+k+B(0x1b1),'begin':B(0x182),'end':B(0x1a8)});}}this[B(0x173)][B(0x1ae)]({'srcPath':B(0x1ad),'destPath':this['fsi'][B(0x156)]({'pathParts':[B(0x177),'startup',B(0x1a0),B(0x159)+j+B(0x165)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x173)]['pathFromApp']({'pathParts':['imports',B(0x193),B(0x1a0),'index.'+c[B(0x15c)]['js']]});this[B(0x173)][B(0x188)]({'filePath':p,'content':B(0x166)+j+'-api\x27;'});});}catch(h){console[A(0x17d)](h),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97n=a97d;function
|
|
1
|
+
const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x1ce))/0x1*(-parseInt(k(0x1bd))/0x2)+-parseInt(k(0x1c4))/0x3*(-parseInt(k(0x1d9))/0x4)+parseInt(k(0x1cc))/0x5*(parseInt(k(0x1df))/0x6)+-parseInt(k(0x1db))/0x7+parseInt(k(0x1d6))/0x8*(-parseInt(k(0x1c5))/0x9)+-parseInt(k(0x1ca))/0xa+parseInt(k(0x1b8))/0xb*(parseInt(k(0x1c0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x87fb9));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x1da)]()['search']('(((.+)+)+)+$')['toString']()[m(0x1c7)](a97a)[m(0x1b4)](m(0x1d0));});function a97c(){const q=['test','(((.+)+)+)+$','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','getProjectConfig','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','appPathPrefix','fsi','8sUVJLu','col','apply','2534668RxLbYT','toString','5300680yTzTao','installMeteorPackage','collections','dir','18XZxPQG','maka:check','checkMeteorPackage','imports','template','search','startup','.app-tests.','\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','10656019UTFSff','index.','mongo','error','injectAtEndOfFile','806064ZrWWSX','pathFromApp','maka\x20g:collection\x20todos','24OLIBiH','resourceName','tsx','where','3NOgRjT','7772319CzeJvy','collection/tests.js','constructor','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','import\x20\x27./collections','3529980ROERTa','engines','1276255JGwbdx','collection','2BKyaVY'];a97c=function(){return q;};return a97c();}a97a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a97d(a,b);}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a97n(0x1cd),'aliases':[a97n(0x1d7)],'usage':a97n(0x1c8),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a97n(0x1de),a97n(0x1c3)],'description':a97n(0x1b7),'examples':[a97n(0x1bf)]},async function(a,b){const o=a97n;try{const c=this[o(0x1d5)][o(0x1be)]({}),d=this[o(0x1d5)][o(0x1d2)]();this[o(0x1d5)]['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0x1c1)]),g={'name':pascalCase(b[p(0x1c1)]),'collectionName':pascalCase(b[p(0x1c1)]),'fileName':f,'where':b[p(0x1c3)],'test':d[p(0x1cb)][p(0x1cf)],'noRename':!![]};let h='js';d[p(0x1cb)]['js']===p(0x1c2)&&(h='ts');!this[p(0x1d5)]['checkMeteorPackage'](p(0x1ba))&&(Log['notice'](p(0x1d1)),await this[p(0x1d5)][p(0x1dc)](p(0x1ba),{'cwd':c}));!this[p(0x1d5)][p(0x1b1)](p(0x1e0))&&(Log['notice'](p(0x1d3)),await this[p(0x1d5)][p(0x1dc)](p(0x1e0),{'cwd':c}));this[p(0x1d5)][p(0x1b3)]({'srcPath':'collection/collection.js','destPath':this[p(0x1d5)][p(0x1be)]({'pathParts':[p(0x1b2),p(0x1b5),b[p(0x1d4)],p(0x1dd),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x1cb)]['test']!=='none'&&this[p(0x1d5)][p(0x1b3)]({'srcPath':p(0x1c6),'destPath':this[p(0x1d5)][p(0x1be)]({'pathParts':[p(0x1b2),p(0x1b5),b[p(0x1d4)],p(0x1dd),b[p(0x1de)],f+p(0x1b6)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b[p(0x1de)]+'/':'/',j=this[p(0x1d5)][p(0x1be)]({'pathParts':[p(0x1b2),'startup',b[p(0x1d4)],p(0x1b9)+d['engines']['js']]});this[p(0x1d5)][p(0x1bc)]({'filePath':j,'content':p(0x1c9)+i+f+'\x27;'});});}catch(f){Log[o(0x1bb)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=parseInt(n(0x1aa))/0x1+parseInt(n(0x16e))/0x2+parseInt(n(0x16c))/0x3*(-parseInt(n(0x1a5))/0x4)+-parseInt(n(0x16a))/0x5*(parseInt(n(0x19a))/0x6)+-parseInt(n(0x167))/0x7+parseInt(n(0x18b))/0x8+parseInt(n(0x16d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x40147));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x18c)]()['search'](p(0x195))[p(0x18c)]()[p(0x174)](a98a)['search'](p(0x195));});function a98c(){const t=['143803MOZKtX','engines','assign','client','setTemplate','installNpmPackage','none','findAppDirectory','checkNpmPackage','features','2055872QPqqDt','apply','root','634895PratSF','css','16557qLtXMT','3607668cBTJwX','467020BujjWT','baseDir','injectAtEndOfFile','theme','.js','injectAtBeginningOfFile','constructor','test','true','import\x20\x27./','fsi','hooks','cssCaseName','lib','warn','imports','rewriteDestinationPathForEngine','import\x20{\x20','ramda','comp','component','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','className','fileName','graphql','dir','react','create','api','122888WqoQcD','toString','pages','\x20};\x0a','/imports/ui/','export\x20{\x20','component/component.js','ssr','import\x20\x27','resourceName','(((.+)+)+)+$','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','layouts','template','pathFromApp','6PyFiCT','relative','withTranslations','components','error','\x27;\x0a','templates.js','withValue','startup','string','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','80TzRSUf','tsx','\x20}\x20from\x20\x27','.css','/imports/ui/components'];a98c=function(){return t;};return a98c();}a98a();import a98e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a98q(0x181)];function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x167;let f=c[d];return f;},a98d(a,b);}Generator[a98q(0x189)]({'name':a98q(0x182),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a98q(0x1a4),'validOpts':[{'name':'baseDir','values':[a98q(0x179),a98q(0x19d),a98q(0x18d),a98q(0x197)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a98q;try{const c=this['fsi'][r(0x1b1)](),d=b[r(0x16f)]?r(0x18f)+b[r(0x16f)]:r(0x1a9),f=this['fsi'][r(0x199)]({'pathParts':[d,b['dir'],paramCase(b[r(0x194)]),paramCase(b[r(0x194)])]}),g=await this[r(0x178)]['getProjectConfig']();this[r(0x178)][r(0x1a1)](g,async()=>{const s=r;typeof g[s(0x198)][s(0x175)]===s(0x1a3)&&(g[s(0x198)][s(0x175)]=g[s(0x198)][s(0x175)]==='true'?!![]:![],this['fsi'][s(0x1ae)](s(0x175),g[s(0x198)][s(0x175)]));typeof g[s(0x198)][s(0x16b)]===s(0x1a3)&&(g[s(0x198)][s(0x16b)]=g[s(0x198)][s(0x16b)]==='true'?!![]:![],this[s(0x178)][s(0x1ae)](s(0x16b),g[s(0x198)][s(0x16b)]));typeof g[s(0x198)]['js']===s(0x1a3)&&(g['template']['js']=g[s(0x198)]['js']===s(0x176)?!![]:![],this[s(0x178)]['setTemplate']('js',g['template']['js']));!g[s(0x1b3)]&&(g[s(0x1b3)]={});!b[s(0x169)]&&!this[s(0x178)][s(0x1b2)](s(0x180))&&(Log[s(0x17c)](s(0x183)),await this[s(0x178)][s(0x1af)](s(0x180),{'cwd':c}));if(!b['root']&&!this[s(0x178)][s(0x1b2)](s(0x188))){Log['error'](s(0x196));return;}const h={'name':pascalCase(b[s(0x194)]),'myPath':a98e[s(0x19b)](this[s(0x178)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x194)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x194)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x1ab)][s(0x186)],'features':g[s(0x1b3)],'client':g['engines'][s(0x1ad)],'api':g[s(0x1ab)][s(0x18a)],'ssr':g['engines'][s(0x192)],'test':g[s(0x1ab)][s(0x175)],'theme':g[s(0x1ab)][s(0x171)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x1b3)][s(0x19c)]};this[s(0x178)][s(0x198)]({'srcPath':s(0x191),'destPath':f+s(0x172),'context':h,'framework':s(0x188),'config':g});g['engines'][s(0x175)]!==s(0x1b0)&&this[s(0x178)][s(0x198)]({'srcPath':'test/test.js','destPath':f+'.tests.js','context':h,'framework':'react','config':g});g[s(0x198)][s(0x16b)]&&(this[s(0x178)][s(0x198)]({'srcPath':'template/template.css','destPath':f+s(0x1a8),'context':Object[s(0x1ac)]({},h,{'className':paramCase(b[s(0x194)])}),'config':g}),this[s(0x178)][s(0x173)]({'filePath':f+'.'+g[s(0x1ab)]['js'],'content':s(0x177)+h[s(0x17a)]+'.'+g[s(0x1ab)][s(0x16b)]+'\x27;'}));const i=b[s(0x187)]?'/'+b[s(0x187)]+'/':'/',j=''+d+i+h[s(0x185)]+'/'+h['fileName'];let k;if(g[s(0x1ab)][s(0x192)]===s(0x176)){const l=this['fsi'][s(0x199)]({'pathParts':[s(0x17d),s(0x1a2),s(0x17b),s(0x1a0)]});k=this[s(0x178)][s(0x17e)]({'pathParts':[l],'config':g});}else{const m=this[s(0x178)][s(0x199)]({'pathParts':[s(0x17d),s(0x1a2),'client',s(0x1a0)]});k=this[s(0x178)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g['engines']['client']===s(0x188)||g[s(0x1ab)][s(0x1ad)]==='reflux'?(g[s(0x1ab)]['js']===s(0x1a6)?this[s(0x178)][s(0x173)]({'filePath':k,'content':s(0x17f)+h[s(0x184)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this[s(0x178)][s(0x173)]({'filePath':k,'content':s(0x17f)+h['className']+s(0x1a7)+j+'.'+g[s(0x1ab)]['js']+s(0x19f)}),this[s(0x178)][s(0x170)]({'filePath':k,'content':s(0x190)+h[s(0x184)]+s(0x18e)})):this[s(0x178)]['injectAtEndOfFile']({'filePath':k,'content':s(0x193)+j+'.'+g[s(0x1ab)]['js']+s(0x19f)});});}catch(h){Log[r(0x19e)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-
|
|
1
|
+
function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x73;let f=c[d];return f;},a99d(a,b);}const a99k=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x87))/0x1+parseInt(h(0x91))/0x2*(parseInt(h(0x74))/0x3)+-parseInt(h(0x81))/0x4*(-parseInt(h(0x8c))/0x5)+parseInt(h(0x7c))/0x6*(-parseInt(h(0x8a))/0x7)+parseInt(h(0x8e))/0x8+parseInt(h(0x76))/0x9+-parseInt(h(0x82))/0xa*(parseInt(h(0x73))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x93b55));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a[j(0x92)]()[j(0x79)]('(((.+)+)+)+$')[j(0x92)]()[j(0x80)](a99a)[j(0x79)](j(0x7b));});function a99c(){const n=['isDocker','2jtfMCY','toString','pathFromProject','989593sKHTyC','2061777thGBfq','template','10187820tQUvcX','apply','appName','search','prod','(((.+)+)+)+$','3616974RhurSi','development','getProjectConfig','resourceName','constructor','20OkeuOW','320BhlMdp','ubuntu','maka\x20{generate,\x20g}:{config}\x20<name>','withValue','maka\x20g:config\x20production','926115QpDjcr','config','Generate\x20configuration\x20settings.','14ukfevM','fsi','789895KslJqR','process.env','9233904vArDcf','settings.json'];a99c=function(){return n;};return a99c();}a99a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a99k(0x88),'usage':a99k(0x84),'shortDesc':a99k(0x89),'validOpts':[a99k(0x90)],'examples':[a99k(0x86)]},function(a,b){const l=a99k,c=this[l(0x8b)][l(0x7e)]();this[l(0x8b)][l(0x85)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x78)]),'name':pascalCase(b[m(0x7f)]),'fileName':paramCase(b[m(0x7f)]),'camelCase':camelCase(b[m(0x7f)]),'userName':m(0x83),'isDocker':b[m(0x90)]};let e=b[m(0x7f)];if(e==='dev')e=m(0x7d);else e===m(0x7a)&&(e='production');const f=this[m(0x8b)][m(0x93)]({'pathParts':[m(0x88),e,m(0x8f)]});this[m(0x8b)][m(0x75)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x8b)][m(0x93)]({'pathParts':[m(0x88),e,m(0x8d)]});this['fsi'][m(0x75)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100l=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=-parseInt(j(0x90))/0x1*(-parseInt(j(0xa1))/0x2)+-parseInt(j(0x91))/0x3+parseInt(j(0xa6))/0x4+-parseInt(j(0xb5))/0x5*(-parseInt(j(0x94))/0x6)+-parseInt(j(0xa9))/0x7*(-parseInt(j(0xa8))/0x8)+-parseInt(j(0x86))/0x9+-parseInt(j(0xa7))/0xa*(parseInt(j(0x9b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xb233b));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const k=a100d;return a100a[k(0x96)]()[k(0xb3)](k(0x9c))[k(0x96)]()['constructor'](a100a)[k(0xb3)](k(0x9c));});a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x84;let f=c[d];return f;},a100d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a100l(0xa3)]({'name':a100l(0x84),'usage':a100l(0xae),'shortDesc':a100l(0xa0),'validOpts':[a100l(0xaa)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a100l(0x95),'values':['pgsql',a100l(0xb4),'sqlite']}],'examples':[a100l(0xa2),a100l(0xab),a100l(0xb2)]},async function(a,b){const m=a100l;try{const c=await this[m(0x98)][m(0x8f)](),d=this[m(0x98)][m(0x89)]({}),f=paramCase(b[m(0x93)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x93)]),'camelCase':camelCase(b['resourceName']),'type':b[m(0x95)],'engine':c[m(0xa4)]['js'],'noRename':!![]};this['fsi']['withValue'](c,async()=>{const n=m;let h='js';c[n(0xa4)]['js']===n(0x88)&&(h='ts');b[n(0x95)]===n(0xb0)&&!this[n(0x98)][n(0xa5)]('pg')&&(Log[n(0x8e)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[n(0x98)][n(0x8a)]('pg',{'cwd':d}));b[n(0x95)]==='mssql'&&!this[n(0x98)][n(0xa5)](n(0xb4))&&(Log[n(0x8e)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[n(0x98)][n(0x8a)](n(0xb4),{'cwd':d}));b[n(0x95)]===n(0x8b)&&!this[n(0x98)][n(0xa5)](n(0xad))&&(Log[n(0x8e)](n(0x8d)),await this['fsi']['installNpmPackage'](n(0xad),{'cwd':d}));this[n(0x98)]['template']({'srcPath':n(0x9d),'destPath':this[n(0x98)][n(0x89)]({'pathParts':[n(0xb1),n(0x9e),n(0x92),'dbc',b[n(0xaa)],f,'config.'+h]}),'context':g,'config':c}),this[n(0x98)][n(0x99)]({'srcPath':n(0x97),'destPath':this[n(0x98)][n(0x89)]({'pathParts':['imports','startup',n(0x92),n(0x84),b['dir'],f,n(0x9f)+h]}),'context':g,'config':c}),this[n(0x98)][n(0x99)]({'srcPath':n(0x9a),'destPath':this[n(0x98)][n(0x89)]({'pathParts':[n(0xb1),'startup',n(0x92),n(0x8c)+f+'-dbc.'+h]}),'context':g,'config':c});const i=this[n(0x98)][n(0x89)]({'pathParts':[n(0xb1),n(0x9e),n(0x92),n(0xac)+c[n(0xa4)]['js']]});this[n(0x98)][n(0xaf)]({'filePath':i,'content':n(0x87)+f+'-dbc\x27;'});});}catch(h){Log[m(0x85)](h);}});function a100c(){const o=['(((.+)+)+)+$','dbc/config.js','startup','conn.','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','2PfWQTB','maka\x20g:dbc\x20geoserver\x20--type=pgsql','create','engines','checkNpmPackage','1027192PnecCg','337390EeetsT','203440wyIzbk','14GSLzam','dir','maka\x20g:dbc\x20azure\x20--type=mssql','index.','better-sqlite3','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','injectAtEndOfFile','pgsql','imports','maka\x20g:dbc\x20todos\x20--type=sqlite','search','mssql','37825esFdUP','dbc','error','983583nYOJYX','import\x20\x27./register-','tsx','pathFromApp','installNpmPackage','sqlite','register-','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','warn','getProjectConfig','1392694ArZiDQ','1865961HeEAso','server','resourceName','1068qoNzJG','type','toString','dbc/conn.js','fsi','template','dbc/register-dbc.js','517hVztKd'];a100c=function(){return o;};return a100c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d
|
|
1
|
+
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x18d))/0x1+parseInt(f(0x197))/0x2*(parseInt(f(0x193))/0x3)+-parseInt(f(0x195))/0x4+parseInt(f(0x188))/0x5+parseInt(f(0x199))/0x6+parseInt(f(0x18f))/0x7+parseInt(f(0x19e))/0x8*(-parseInt(f(0x19c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xb56d5));function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x186;let f=c[d];return f;},a101d(a,b);}function a101c(){const l=['appName','getProjectConfig','fsi','1411694EbtJzE','withValue','525224idwpHo','apply','docker/Dockerfile','(((.+)+)+)+$','9nEPnup','template','220984AgXysq','maka\x20{generate,\x20g}:dockerfile','654586jsPFsI','isFile','6480402vzVGOx','getGlobalConfig','join','243279ROwPXO','maka\x20g:dockerfile','1096KeDZjm','search','service','4764730myfBbk','error'];a101c=function(){return l;};return a101c();}const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a['toString']()[h(0x186)](h(0x192))['toString']()['constructor'](a101a)['search'](h(0x192));});a101a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a101e from'path';Generator['create']({'name':'dockerfile','usage':a101i(0x196),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a101i(0x19d)]},async function(){const j=a101i;try{const a=await this[j(0x18c)][j(0x18b)](),b=await this[j(0x18c)][j(0x19a)](),c=this[j(0x18c)]['findProjectDirectory']();this[j(0x18c)][j(0x18e)](a,async()=>{const k=j,d={'app':b[k(0x18a)],'config':a,'appPath':a101e[k(0x19b)](c,'app'),'bundlePath':a101e[k(0x19b)](c,'build','app.tar.gz'),'useCert':this['fsi'][k(0x198)](b['cert'])};this['fsi'][k(0x194)]({'srcPath':k(0x191),'destPath':a101e[k(0x19b)](c,'Dockerfile'),'framework':k(0x187),'context':d,'config':a});});}catch(d){Log[j(0x189)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102q=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x85))/0x1+-parseInt(o(0x74))/0x2+parseInt(o(0x95))/0x3*(-parseInt(o(0x92))/0x4)+parseInt(o(0x80))/0x5*(parseInt(o(0xaa))/0x6)+-parseInt(o(0x91))/0x7+-parseInt(o(0xa9))/0x8*(parseInt(o(0x71))/0x9)+parseInt(o(0xa8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xe662a));const a102b=(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;};}()),a102a=a102b(this,function(){const p=a102d;return a102a[p(0x7b)]()[p(0x76)]('(((.+)+)+)+$')[p(0x7b)]()[p(0x86)](a102a)['search'](p(0x77));});a102a();function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x6c;let f=c[d];return f;},a102d(a,b);}import a102e from'path';function a102c(){const t=['components','startup','pathFromApp','lib','pathFromProject','\x20}\x20from\x20\x27','tsx','getProjectConfig','css','warn','9RbdhpY','resourceName','import\x20\x27./','113054FblLQC','notice','search','(((.+)+)+)+$','template','setTemplate','checkNpmPackage','toString','hook','theme','template/template.css','assign','445IfqzXl','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','test/test.js','layouts','error','789328PARfkl','constructor','import\x20\x27','\x20hook...','injectAtBeginningOfFile','Creating\x20','true','rewriteDestinationPathForEngine','fileName','features','string','import\x20{\x20','8481466BuafMk','752kNVyph','apollo','className','17907WeVpPM','@apollo/client\x20isomorphic-fetch','injectAtEndOfFile','react','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','\x20};\x0a','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','create','dir','\x27;\x0a','hooks','maka\x20g:hook\x20cool-hook','pages','graphql','.js','engines','baseDir','.css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','46784320jsUmxC','12935032DCqeKV','71580jyZYqJ','ssr','export\x20{\x20','client','templates.js','cssCaseName','imports','relative','withValue','hook/hook.js','fsi'];a102c=function(){return t;};return a102c();}import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a102q(0x9c)]({'name':a102q(0x7c),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a102q(0x9b),'validOpts':[{'name':a102q(0xa5),'values':[a102q(0x9f),a102q(0xb5),a102q(0xa1),a102q(0x83)]}],'examples':[a102q(0xa0)],'description':a102q(0x99)},async function(a,b){const r=a102q;Log[r(0x75)](r(0x8a)+b[r(0x72)]+r(0x88));try{const c=this[r(0xb4)][r(0x7a)](r(0x98));if(!c){Log[r(0x84)](r(0x81));throw new UsageError();}const d=this['fsi']['pathFromApp'](b),f=b[r(0xa5)]?'/imports/ui/'+b[r(0xa5)]:'/imports/ui/hooks',g=this[r(0xb4)][r(0xb7)]({'pathParts':[f,b[r(0x9d)],paramCase(b[r(0x72)]),paramCase(b['resourceName'])]}),h=await this[r(0xb4)][r(0x6e)]();this[r(0xb4)][r(0xb2)](h,async()=>{const s=r;typeof h['template'][s(0x6f)]===s(0x8f)&&(h['template']['css']=h[s(0x78)][s(0x6f)]===s(0x8b)?!![]:![],this['fsi'][s(0x79)](s(0x6f),h['template'][s(0x6f)]));h[s(0xa4)][s(0xa2)]===s(0x93)&&!this['fsi']['checkNpmPackage']('@apollo/client')&&(Log[s(0x70)](s(0xa7)),await this[s(0xb4)]['installNpmPackage'](s(0x96),{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'className':pascalCase(b[s(0x72)]),'name':pascalCase(b[s(0x72)]),'graphql':h[s(0xa4)][s(0xa2)],'theme':h[s(0xa4)][s(0x7d)],'features':h[s(0x8e)],'myPath':a102e[s(0xb1)](this[s(0xb4)][s(0xb9)]({}),g),'fileName':paramCase(b[s(0x72)]),'isComponent':![],'isLayout':![],'withTranslations':h['features']['withTranslations']};this[s(0xb4)][s(0x78)]({'srcPath':s(0xb3),'destPath':g+s(0xa3),'context':i,'config':h,'framework':s(0x98)});h[s(0x78)][s(0x6f)]&&(this[s(0xb4)][s(0x78)]({'srcPath':s(0x7e),'destPath':g+s(0xa6),'context':Object[s(0x7f)]({},i,{'className':i[s(0xaf)]}),'config':h}),this[s(0xb4)][s(0x89)]({'filePath':g+'.'+h[s(0xa4)]['js'],'content':s(0x73)+i[s(0x8d)]+'.'+h[s(0xa4)]['css']+'\x27;'}));h[s(0xa4)]['test']!=='none'&&this['fsi'][s(0x78)]({'srcPath':s(0x82),'destPath':g+'.app-tests.js','framework':s(0x98),'context':i,'config':h});const j=b[s(0x9d)]?'/'+b[s(0x9d)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[s(0x8d)];let l;if(h['engines'][s(0xab)]==='true'){const m=this[s(0xb4)]['pathFromApp']({'pathParts':[s(0xb0),s(0xb6),s(0xb8),s(0xae)]});l=this[s(0xb4)][s(0x8c)]({'pathParts':[m],'config':h});}else{const n=this[s(0xb4)][s(0xb7)]({'pathParts':[s(0xb0),'startup',s(0xad),'templates.js']});l=this[s(0xb4)][s(0x8c)]({'pathParts':[n],'config':h});}h[s(0xa4)][s(0xad)]==='react'?(h[s(0xa4)]['js']===s(0x6d)?this['fsi'][s(0x89)]({'filePath':l,'content':'import\x20{\x20'+i['className']+s(0x6c)+k+s(0x9e)}):this[s(0xb4)][s(0x89)]({'filePath':l,'content':s(0x90)+i[s(0x94)]+s(0x6c)+k+'.'+h[s(0xa4)]['js']+s(0x9e)}),this[s(0xb4)]['injectAtEndOfFile']({'filePath':l,'content':s(0xac)+i[s(0x94)]+s(0x9a)})):this[s(0xb4)][s(0x97)]({'filePath':l,'content':s(0x87)+k+'.'+h[s(0xa4)]['js']+s(0x9e)});});}catch(i){Log['error'](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0x1a3))/0x1+parseInt(h(0x1ac))/0x2*(-parseInt(h(0x1b0))/0x3)+-parseInt(h(0x196))/0x4+-parseInt(h(0x1a2))/0x5+-parseInt(h(0x1a0))/0x6+-parseInt(h(0x19a))/0x7*(parseInt(h(0x1a5))/0x8)+parseInt(h(0x1b3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xe3ca5));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x195)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0x19e)]()[j(0x1b2)](j(0x197))[j(0x19e)]()[j(0x1aa)](a103a)[j(0x1b2)](j(0x197));});a103a();import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x193;let f=c[d];return f;},a103d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a103c(){const n=['type','search','43357572mONgEF','notice','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','apply','1872848vHvFiI','(((.+)+)+)+$','fsi','Invalid\x20type\x20','7PYXRxm','engines','leaflet-map','withValue','toString','login','5420364irTmpp','maka\x20g:k\x20city-map\x20--type=leaflet-map','6559725QAgvCX','486726GiFkmA','error','250696FeLWvk','resourceName','(blank)','maka\x20g:kit\x20--type=map','NIE','constructor','create','1365730dVsoCu','map',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','indexOf','3CihMyZ'];a103c=function(){return n;};return a103c();}Generator[a103k(0x1ab)]({'name':'kit','aliases':['k'],'usage':a103k(0x194),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a103k(0x1b1)],'examples':[a103k(0x1a8),a103k(0x1a1)]},async function(a,b){const l=a103k;try{const c=this[l(0x198)]['getProjectConfig']();this[l(0x198)][l(0x19d)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x1a6)]),'fileName':paramCase(b[m(0x1a6)]),'camelCase':camelCase(b[m(0x1a6)]),'type':b['type'],'engine':c[m(0x19b)]['js'],'noRename':!![]},f=[m(0x19c),m(0x19f)];if(f[m(0x1af)](d[m(0x1b1)])<0x0){const g=d[m(0x1b1)]?d[m(0x1b1)]:m(0x1a7);Log['error'](m(0x199)+g+m(0x1ae));return;}b['type']===m(0x1ad)&&Log[m(0x193)](m(0x1a9)),b[m(0x1b1)]===m(0x19f)&&Log['notice']('NIE');});}catch(d){Log[l(0x1a4)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-
|
|
1
|
+
const a104r=a104d;function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xc7;let f=c[d];return f;},a104d(a,b);}(function(a,b){const o=a104d,c=a();while(!![]){try{const d=-parseInt(o(0xc7))/0x1*(-parseInt(o(0xf6))/0x2)+parseInt(o(0xd2))/0x3*(parseInt(o(0x10a))/0x4)+parseInt(o(0xe3))/0x5+-parseInt(o(0xd4))/0x6+parseInt(o(0xdd))/0x7*(parseInt(o(0xf1))/0x8)+parseInt(o(0xf5))/0x9+-parseInt(o(0xe2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x5ad91));function a104c(){const u=['pathFromProject','dir','test','includes','14gcGWmR','export\x20{\x20','withHook','injectAtBeginningOfFile','react','18008730VriKJT','3633700fSNBQt','toString','layout','features','ramda','import\x20{\x20','fileName','\x20};\x0a','\x20}\x20from\x20\x27','tsx','fsi','import\x20\x27','template/template.css','none','1797944ZzeMPC','warn','api','setTemplate','6560937FblthC','50vLWMqb','getProjectConfig','graphql','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','withHooks','injectAtEndOfFile','split','resourceName','assign','template','hook/hook.js','\x27;\x0a','test/test.js','.css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','maka\x20g:layout\x20mobile/iPhone8','.js','client','ssr','component/component.js','4SOZzYr','lib','css','withValue','imports','constructor','import\x20\x27./','4461VLRWjR','engines','maka\x20g:l\x20web/safari','string','findAppDirectory','checkNpmPackage','/imports/ui/layouts','relative','true','search','theme','634803lwmiTy','className','332154ZUsdlY','(((.+)+)+)+$','pathFromApp','apply','startup'];a104c=function(){return u;};return a104c();}const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a104d;if(c){const e=c[p(0xd7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const q=a104d;return a104a[q(0xe4)]()[q(0xd0)]('(((.+)+)+)+$')[q(0xe4)]()[q(0x10f)](a104a)[q(0xd0)](q(0xd5));});a104a();import a104e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator['create']({'name':a104r(0xe5),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a104r(0x105),a104r(0xc9)]},function(a,b){const s=a104r,c=s(0xcd),d=this[s(0xed)][s(0xcb)](),e=this[s(0xed)][s(0xd6)]({'pathParts':[c,b[s(0xda)],paramCase(b['resourceName']),paramCase(b[s(0xfd)])]}),f=this['fsi'][s(0xf7)]();this[s(0xed)][s(0x10d)](f,()=>{const t=s;typeof f['template'][t(0xdb)]==='string'&&(f[t(0xff)]['test']=f['template'][t(0xdb)]===t(0xcf)?!![]:![],this[t(0xed)][t(0xf4)](t(0xdb),f[t(0xff)][t(0xdb)]));typeof f[t(0xff)]['css']===t(0xca)&&(f['template'][t(0x10c)]=f[t(0xff)][t(0x10c)]==='true'?!![]:![],this['fsi'][t(0xf4)](t(0x10c),f[t(0xff)][t(0x10c)]));typeof f['template']['js']===t(0xca)&&(f[t(0xff)]['js']=f[t(0xff)]['js']===t(0xcf)?!![]:![],this[t(0xed)]['setTemplate']('js',f['template']['js']));!f[t(0xe6)]&&(f[t(0xe6)]={});const g=b['_']?b['_'][0x0][t(0xfc)](':')[0x1]:![],h=b['_']&&aliases[t(0xdc)](g);h&&!this['checkNpmPackage'](t(0xe7))&&(Log[t(0xf2)](t(0x104)),this[t(0xed)]['installNpmPackage'](t(0xe7),{'cwd':d}));if(h&&!this[t(0xcc)]('react')){Log['warn'](t(0xf9));return;}const i={'name':pascalCase(b[t(0xfd)]),'myPath':a104e[t(0xce)](this[t(0xed)][t(0xd9)]({}),e),'cssCaseName':paramCase(b[t(0xfd)]),'className':pascalCase(b[t(0xfd)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0xfd)]),'graphql':f[t(0xc8)][t(0xf8)],'features':f['features'],'client':f['engines'][t(0x107)],'api':f['engines'][t(0xf3)],'ssr':f['engines'][t(0x108)],'test':f['engines'][t(0xdb)],'theme':f['engines'][t(0xd1)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0xe6)]['withTranslations']};f['features']?.[t(0xfa)]||b[t(0xdf)]?this[t(0xed)][t(0xff)]({'srcPath':t(0x100),'destPath':e+t(0x106),'framework':t(0xe1),'context':i,'config':f}):this[t(0xed)][t(0xff)]({'srcPath':t(0x109),'destPath':e+t(0x106),'framework':t(0xe1),'context':i,'config':f});f[t(0xc8)][t(0xdb)]!==t(0xf0)&&this[t(0xed)]['template']({'srcPath':t(0x102),'destPath':e+'.app-tests.js','framework':'react','context':i,'config':f});f[t(0xff)][t(0x10c)]&&(this[t(0xed)]['template']({'srcPath':t(0xef),'destPath':e+t(0x103),'context':Object[t(0xfe)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0xed)][t(0xe0)]({'filePath':e+'.'+f['engines']['js'],'content':t(0x110)+i[t(0xe9)]+'.'+f[t(0xc8)]['css']+'\x27;'}));const j=b[t(0xda)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0xe9)]+'/'+i['fileName'];let l;if(f['engines']['ssr']===t(0xcf)){const m=this[t(0xed)][t(0xd6)]({'pathParts':['imports',t(0xd8),t(0x10b),'templates.js']});l=this[t(0xed)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0xed)][t(0xd6)]({'pathParts':[t(0x10e),t(0xd8),t(0x107),'templates.js']});l=this[t(0xed)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[t(0xc8)][t(0x107)]==='react'?(f['engines']['js']===t(0xec)?this[t(0xed)][t(0xe0)]({'filePath':l,'content':t(0xe8)+i[t(0xd3)]+t(0xeb)+k+t(0x101)}):this[t(0xed)][t(0xe0)]({'filePath':l,'content':t(0xe8)+i[t(0xd3)]+'\x20}\x20from\x20\x27'+k+'.'+f['engines']['js']+t(0x101)}),this[t(0xed)]['injectAtEndOfFile']({'filePath':l,'content':t(0xde)+i[t(0xd3)]+t(0xea)})):this[t(0xed)][t(0xfb)]({'filePath':l,'content':t(0xee)+k+'.'+f[t(0xc8)]['js']+t(0x101)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a105h=a105d;(function(a,b){const f=a105d,c=a();while(!![]){try{const d=parseInt(f(0x18f))/0x1*(parseInt(f(0x18d))/0x2)+-parseInt(f(0x196))/0x3*(-parseInt(f(0x18e))/0x4)+-parseInt(f(0x19a))/0x5*(parseInt(f(0x194))/0x6)+-parseInt(f(0x19d))/0x7+-parseInt(f(0x198))/0x8*(-parseInt(f(0x19e))/0x9)+parseInt(f(0x193))/0xa*(parseInt(f(0x195))/0xb)+-parseInt(f(0x191))/0xc*(parseInt(f(0x197))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x2bef4));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const g=a105d;return a105a[g(0x199)]()[g(0x18c)](g(0x192))[g(0x199)]()['constructor'](a105a)[g(0x18c)](g(0x192));});function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x18c;let f=c[d];return f;},a105d(a,b);}a105a();import{Generator}from'../generator.js';function a105c(){const i=['11csqQAm','514938qksVZK','1580774NZwpso','16rIimzD','toString','151565TAQqcP','maka\x20g:hook\x20cool-hook','Maka!','2095716SFJGRf','450999ApVcaH','maka\x20generate:api\x20Trucks','\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','2CgcdSQ','8qLNdMo','252315LLXiSi','maka','24QMnWyT','(((.+)+)+)+$','873370oeEtnr','12pLmAME'];a105c=function(){return i;};return a105c();}const MakaGen=new Generator({'name':a105h(0x190),'shortDesc':a105h(0x19c),'validOpts':[],'description':a105h(0x1a0),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':[a105h(0x19f),a105h(0x19b)]},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d
|
|
1
|
+
const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=-parseInt(k(0x1f9))/0x1+parseInt(k(0x1f5))/0x2*(-parseInt(k(0x1fc))/0x3)+parseInt(k(0x1fb))/0x4*(-parseInt(k(0x211))/0x5)+parseInt(k(0x1fa))/0x6+-parseInt(k(0x1fd))/0x7+parseInt(k(0x212))/0x8+parseInt(k(0x1ee))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xd93c3));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0x200)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0x215)]()['search'](m(0x1f1))[m(0x215)]()[m(0x20b)](a106a)[m(0x203)](m(0x1f1));});a106a();import{Generator}from'../generator.js';function a106c(){const q=['import\x20\x27./methods','toString','check','engines','template','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','injectAtEndOfFile','43071849YtwHID','-rpc-method\x27;','getProjectConfig','(((.+)+)+)+$','index.','mdg:validated-method','tsx','458342gHRahi','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','withValue','resourceName','1607353AlmAND','6734316rrDHlE','5128fXKkyl','12MtOIab','12165888ZTeAyB','create','methods','apply','maka\x20{generate,\x20g}:{method,\x20m}\x20name','error','search','maka\x20g:method\x20todos','installMeteorPackage','method','method/method.js','fsi','pathFromApp','appPathPrefix','constructor','check\x20ddp-rate-limiter\x20mdg:validated-method','imports','ddp-rate-limiter','checkMeteorPackage','dir','4435bZcIvN','3046424gVGkEw','startup'];a106c=function(){return q;};return a106c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a106d(a,b);}Generator[a106n(0x1fe)]({'name':a106n(0x206),'aliases':['m'],'usage':a106n(0x201),'checkWhere':!![],'shortDesc':a106n(0x1f6),'validOpts':[a106n(0x210)],'examples':[a106n(0x204)]},function(a,b){const o=a106n;try{const c=this['fsi'][o(0x1f0)]();this[o(0x208)][o(0x1f7)](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b[p(0x1f8)],'fileName':d,'className':pascalCase(b[p(0x1f8)]),'camelCase':camelCase(b[p(0x1f8)]),'noRename':!![]};let g='js';c[p(0x217)]['js']===p(0x1f4)&&(g='ts');const h=this['fsi'][p(0x209)]({});(!this[p(0x208)][p(0x20f)](p(0x216))||!this[p(0x208)][p(0x20f)](p(0x20e))||!this[p(0x208)][p(0x20f)](p(0x1f3)))&&(Log['warn'](p(0x1ec)),this[p(0x208)][p(0x205)](p(0x20c),{'cwd':h}));this[p(0x208)][p(0x218)]({'srcPath':p(0x207),'destPath':this[p(0x208)][p(0x209)]({'pathParts':[p(0x20d),p(0x213),b[p(0x20a)],p(0x1ff),b[p(0x210)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x210)]?'/'+b[p(0x210)]+'/':'/',j=this[p(0x208)][p(0x209)]({'pathParts':[p(0x20d),p(0x213),b[p(0x20a)],p(0x1f2)+c[p(0x217)]['js']]});this['fsi'][p(0x1ed)]({'filePath':j,'content':p(0x214)+i+d+p(0x1ef)});});}catch(d){Log[o(0x202)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a107o=a107d;(function(a,b){const l=a107d,c=a();while(!![]){try{const d=parseInt(l(0xc7))/0x1*(-parseInt(l(0xdb))/0x2)+parseInt(l(0xb9))/0x3*(-parseInt(l(0xc0))/0x4)+-parseInt(l(0xb2))/0x5+parseInt(l(0xc5))/0x6*(-parseInt(l(0xd5))/0x7)+parseInt(l(0xc1))/0x8*(parseInt(l(0xb4))/0x9)+parseInt(l(0xbe))/0xa*(-parseInt(l(0xbb))/0xb)+parseInt(l(0xd3))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x980d3));function a107c(){const s=['ssr','package','/client/','server','9StGgcM','engines','2513764aaXNle','component','relative','40ZMzNfH','pathFromApp','648072LaywDn','16pwTEjz','/package.js','fsi','store','7018590aDZBEf','pathFromAppWithNoReWrite','198112CsYHZt','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','lib','(((.+)+)+)+$','template/template.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','maka\x20g:package\x20todos:package','withValue','dir','client','toString','packages','48027612Ujkzxb','tests/client','7quLYsB','search','.js','resourceName','apply','noRename','6WllYUy','theme','features','forEach','hasOwnProperty','template','1662265egPwde','constructor','527427tDCAaL'];a107c=function(){return s;};return a107c();}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a107d;if(c){const e=c[m(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const n=a107d;return a107a['toString']()[n(0xd6)](n(0xca))[n(0xd1)]()[n(0xb3)](a107a)[n(0xd6)](n(0xca));});a107a();function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xae;let f=c[d];return f;},a107d(a,b);}import a107e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a107o(0xb6),'aliases':['p'],'usage':a107o(0xcc),'shortDesc':a107o(0xc8),'validOpts':[a107o(0xcf)],'examples':[a107o(0xcd)]},async function(a,b){const p=a107o,c=paramCase(b[p(0xd8)]),d=this[p(0xc3)][p(0xbf)]({'pathParts':[p(0xd2),b['dir'],c]}),e=this[p(0xc3)][p(0xc6)]({'pathParts':[p(0xd2),b[p(0xcf)],c,'package.js']}),f=this[p(0xc3)]['getProjectConfig']();this[p(0xc3)][p(0xce)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a107e[q(0xbd)](this['fsi']['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0xd8)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0xd8)]),'fileName':c,'client':f[q(0xba)][q(0xd0)],'graphql':f[q(0xba)]['graphql'],'ssr':f[q(0xba)][q(0xb5)],'isComponent':b[q(0xb0)](q(0xbc)),'isLayout':b[q(0xb0)]('layout'),'isStore':b[q(0xb0)](q(0xc4)),'features':f[q(0xae)],'noRename':!![],'theme':f[q(0xba)][q(0xdc)]};this[q(0xc3)][q(0xb1)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0xda)]=![];const h=d+q(0xb7)+c+'.js';this[q(0xc3)][q(0xb1)]({'srcPath':q(0xcb),'destPath':h,'context':g,'config':f});const i=[q(0xc9),q(0xb8),q(0xd4),'tests/server'];i[q(0xaf)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xd7);this['fsi'][r(0xb1)]({'srcPath':'package/'+j+r(0xc2),'destPath':k,'context':g,'config':f});});});});
|