@maka/maka-cli 4.5.18 → 4.5.20
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/sideQuest/commands/command.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/game.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 -0
- 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/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/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 +2 -2
- 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
- package/bundle/obf/src/commands/game/sideQuest/commands/commands.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a85t=a85d;function a85c(){const F=['4jFzNTw','tableList','cwd','sort','shortDesc','name','lib','server','Server','maxOptsLength','client','where','Generator.create\x20requires\x20some\x20options!','function','create','minArgLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Too\x20many\x20arguments','8uiBrnE','replace','39373fkxFTF','call','parent','error','both','minOptsLength','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','help','Generator\x20requires\x20a\x20handler\x20function','2241060CzETDk','match','keys','Location','push','Alias','map','chdir','number','addGenerator\x20requires\x20a\x20Generator\x20instance','3055410HMbilZ','_generators','colLocAnswer','515080wdtINL','notice','assign','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','No\x20resource\x20name\x20specified','21ipCBXy','bright','Too\x20many\x20options','There\x20is\x20no\x20Meteor\x20application\x20here','dir','validateMeteorInstall','usage','253785GcAVCq','3699243xdCEzK','validateMakaSubscription','Name','_handler','findProjectDirectory','Description','join','appPathPrefix','To\x20use\x20these\x20pro\x20flags,\x20\x22','maxArgLength','invoke','validateParams','To\x20use\x20this\x20generator,\x20\x22','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','options','(((.+)+)+)+$','Too\x20few\x20options','Both','roles','noResource','proFlags','exit','toString','filter','Generator.create\x20requires\x20a\x20handler\x20function!','constructor','checkWhere','addGenerator','includes','resourceName','mustBeInMakaProject','Generator\x20requires\x20a\x20name','validateMakaProject','146520BKkbVr','listGenerators','length','proGenerators'];a85c=function(){return F;};return a85c();}function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0xad;let f=c[d];return f;},a85d(a,b);}(function(a,b){const q=a85d,c=a();while(!![]){try{const d=parseInt(q(0x101))/0x1*(-parseInt(q(0xff))/0x2)+-parseInt(q(0xc7))/0x3*(parseInt(q(0xed))/0x4)+parseInt(q(0xe9))/0x5+parseInt(q(0xae))/0x6+parseInt(q(0xc0))/0x7*(parseInt(q(0xbb))/0x8)+-parseInt(q(0xc8))/0x9+parseInt(q(0xb8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x3ca4c));const a85b=(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;};}()),a85a=a85b(this,function(){const r=a85d;return a85a[r(0xde)]()['search'](r(0xd7))[r(0xde)]()[r(0xe1)](a85a)['search'](r(0xd7));});a85a();import a85e from'path';import a85f from'cli-table';import{paramCase}from'change-case';import a85g 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 s=a85d,c=process[s(0xef)]();let d=null;try{process['chdir'](a),d=b();}finally{process[s(0xb5)](c);}return d;}export class Generator extends Tool{['options'];[a85t(0xb9)];constructor(a,b){const u=a85t;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[u(0xf2)])throw new Error(u(0xe7));if(typeof b!==u(0xfa))throw new Error(u(0xad));this[u(0xb9)]=[],this['options']=Object[u(0xbd)]({},a),this[u(0xf2)]=this[u(0xd6)][u(0xf2)],this[u(0xcb)]=b['bind'](this);}static[a85t(0xfb)](a,b,c){const v=a85t;if(!a)throw new Error(v(0xf9));if(typeof b!==v(0xfa))throw new Error(v(0xe0));const d=new Generator(a,b);return c=c||a85g,Object[v(0xbd)](d,{'parent':c?.[v(0xd6)]?.[v(0xf2)]}),c['addGenerator'](d),d;}[a85t(0xe3)](a){const w=a85t;if(!(a instanceof Generator))throw new Error(w(0xb7));this[w(0xb9)][w(0xb2)](a);}['findGenerator'](a){const x=a85t,b=this[x(0xb9)]['find'](c=>c[x(0xaf)](a));return b;}async[a85t(0xc9)](a,b){const y=a85t,c=this['findGenerator'](a[0x0]);if(c){const d=c?.[y(0xf2)]||a[0x0],e=c?.[y(0x103)]||'',f=Object[y(0xb0)](b),g=await this['fsi']['getPro']();!g&&(Log[y(0x104)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[y(0xdd)](0x1));const h=!g?.['roles'][y(0xe4)]('singleLicense')&&!g?.[y(0xda)][y(0xe4)]('domainLicense'),i=g?.[y(0xec)]['includes'](d)||g?.['proGenerators'][y(0xe4)](e);if(i&&h)throw y(0xd4)+d+y(0xd5);if(f[y(0xeb)]>0x0){const j=g?.[y(0xdc)][y(0xdf)](k=>f[y(0xe4)](k));if(j&&j[y(0xeb)]>0x0&&h)throw y(0xd0)+j?.[y(0xce)](',\x20')+y(0xd5);}}}async[a85t(0xd2)](a,b){const z=a85t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[z(0xd6)];try{await this[z(0xc9)](a,b);}catch(g){Log[z(0x104)](g),process[z(0xdd)](0x1);}const f=a['slice']();b[z(0xe5)]=f[0x0];try{if((a[0x0]===_prevGen||a[z(0xeb)]===0x0)&&b['help'])throw new UsageError();if(this['options'][z(0xe6)]){const h=this[z(0xe8)]();if(!h)throw new MustBeInProjectError();}if(this['options']['mustHaveMeteorInstalled']){const i=this[z(0xc5)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[z(0xd6)][z(0xfc)]===z(0xb6)){if(a[z(0xeb)]<this[z(0xd6)][z(0xfc)]){Log[z(0x104)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[z(0xd6)][z(0xd1)]===z(0xb6)){if(a['length']>this[z(0xd6)][z(0xd1)]){Log[z(0x104)](z(0xfe));throw new UsageError();}}if(typeof this['options']['minOptsLength']==='number'){if(Object[z(0xb0)](b)[z(0xeb)]<this['options'][z(0x106)]){Log['error'](z(0xd8));throw new UsageError();}}if(typeof this['options'][z(0xf6)]==='number'){if(Object[z(0xb0)](b)[z(0xeb)]>=this[z(0xd6)][z(0xf6)]){Log[z(0x104)](z(0xc2));throw new UsageError();}}this[z(0xd3)](a,b,this[z(0xd6)]);if(!b[z(0xe5)]&&!this['options'][z(0xdb)]){Log[z(0x104)](z(0xbf));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[z(0xc6)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[z(0xb9)][z(0xeb)]>0x0&&b[z(0x108)]&&(Log[z(0xbc)]('Generators:'),this['tableList'](this['_generators']));else{if(j instanceof MustBeInProjectError)Log[z(0x104)](z(0xbe));else{if(j instanceof NoMeteorFoundError)Log[z(0x104)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](z(0xfd));else{if(j instanceof NoMeteorAppFoundError)Log[z(0x104)](z(0xc3));else throw j;}}}process[z(0xdd)](0x1);}return new Promise(k=>{const A=z;inside(b[A(0xef)],async()=>{const B=A;try{if(!b['root']&&!this['fsi'][B(0xcc)]())throw new MustBeInProjectError();const l=b[B(0xe5)]?.[B(0x100)](/\\/g,'/')['split']('/');!b[B(0xc4)]&&(l?.['length']>0x1?(b[B(0xe5)]=l['pop'](),f[0x0]=b[B(0xe5)],b[B(0xc4)]=l[B(0xb4)](m=>{return paramCase(m);})[B(0xce)](a85e['sep'])):b[B(0xc4)]='');if(this[B(0xd6)][B(0xe2)]){if(!b[B(0xf8)]){const n={'type':'list','name':B(0xba),'message':B(0xb1),'choices':[{'name':'Client','value':B(0xf7)},{'name':B(0xf5),'value':B(0xf4)},{'name':B(0xd9),'value':B(0x105)}]},{colLocAnswer:o}=await Actions[B(0xd6)](n);o?b[B(0xf8)]=o:b[B(0xf8)]='both';}const m=[B(0x105),B(0xf7),B(0xf4)];if(!m['includes'](b[B(0xf8)])){Log[B(0x104)](B(0x107));throw new UsageError();}switch(b[B(0xf8)]){case B(0x105):b[B(0xcf)]=B(0xf3);break;case B(0xf4):b['appPathPrefix']=B(0xf4);break;case B(0xf7):b[B(0xcf)]='client';break;default:b[B(0xcf)]='';}}k(this[B(0xcb)][B(0x102)](this,f,b));}catch(p){console[B(0x104)](p);}});});}[a85t(0xea)](){const C=a85t;this[C(0xee)](this[C(0xb9)]);}['tableList'](a){const D=a85t,b=new a85f({});b[D(0xb2)]([D(0xca),D(0xb3),D(0xcd)]),a[D(0xf0)]()['forEach'](c=>{const E=D;b[E(0xb2)]([c[E(0xf2)],c['aliases'](),c[E(0xf1)]()]);}),Log[D(0xc1)](b[D(0xde)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a86d,c=a();while(!![]){try{var d=-parseInt(f(0x130))/0x1+-parseInt(f(0x12d))/0x2*(parseInt(f(0x128))/0x3)+-parseInt(f(0x126))/0x4*(parseInt(f(0x123))/0x5)+parseInt(f(0x12a))/0x6+-parseInt(f(0x12f))/0x7+parseInt(f(0x12e))/0x8+-parseInt(f(0x12c))/0x9*(-parseInt(f(0x127))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x9cac5));var a86b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){var g=a86d;return a86a['toString']()['search'](g(0x129))[g(0x124)]()[g(0x12b)](a86a)[g(0x125)](g(0x129));});a86a();function a86d(a,b){var c=a86c();return a86d=function(d,e){d=d-0x123;var f=c[d];return f;},a86d(a,b);}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';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';function a86c(){var h=['292864ELnIqi','4649939DJkkzq','25396DxxpMY','95qoLaVX','toString','search','9436JTyDVl','110IcbrWL','3qDDBxw','(((.+)+)+)+$','3541338FaxLjV','constructor','671751XuEjLh','143266IGLLnm'];a86c=function(){return h;};return a86c();}import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87z=a87d;(function(a,b){const w=a87d,c=a();while(!![]){try{const d=-parseInt(w(0xd4))/0x1*(-parseInt(w(0x11c))/0x2)+parseInt(w(0x119))/0x3*(-parseInt(w(0x116))/0x4)+parseInt(w(0xea))/0x5+parseInt(w(0x104))/0x6*(-parseInt(w(0xfb))/0x7)+parseInt(w(0x115))/0x8+-parseInt(w(0xf1))/0x9*(-parseInt(w(0xff))/0xa)+parseInt(w(0x11e))/0xb*(-parseInt(w(0xda))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x869bb));const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a87d;if(c){const e=c[x(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const y=a87d;return a87a[y(0xe5)]()[y(0xfe)](y(0x111))['toString']()[y(0xf6)](a87a)[y(0xfe)]('(((.+)+)+)+$');});a87a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a87c(){const C=['engines','exit','import\x20{\x20typeDefs\x20as\x20','GraphQL','9AWBJqZ','api/methods.js','withGql','typeDefs.','typeList.push(','constructor','rpc-methods.','\x27;\x0a','withFixtures','push','7650923lVKbTC','injectAtBeginningOfFile','findGenerator','search','3873710nAWqWe','const','resolvers.','withPubs','withRest','6ykUXqv','imports','installMeteorPackage','injectIntoFile','register-','notice','test','startup','log','withValue','api/register-api.js','invoke','apply','(((.+)+)+)+$','apollo','fsi','apiAnswers','5881560evUSdH','24gZapWw','No\x20API\x20boundaries\x20selected','injectAtEndOfFile','13719yoNaWN','maka:rest','api','2oZenhJ','/graphql/resolvers','2744181UHEoOw','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','template','checkMeteorPackage','rewriteDestinationPathForEngine','\x0aimport\x20{\x20resolvers\x20as\x20','import\x20\x27./register-','RPC\x20(Methods)','resolverList.push(','publications.','maka\x20g:api\x20todos','if\x20\x5c(typeList','maka\x20{generate,\x20g}:{api}\x20<resource-name>','136443KSsoHj','graphql','-api\x27;','api/fixtures.js','getProjectConfig','mongo','12DeVWpq','api/api.js','server','Resolvers\x20}\x20from\x20\x27','pathFromApp','rest','Verifying\x20meteor\x20package\x20requirements\x20...','error','index.','ddp-rate-limiter','dir','toString','collection','checkbox','api/tests.js','fixtures.','3311220IlPPUo','includes','.app-tests.'];a87c=function(){return C;};return a87c();}function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0xd3;let f=c[d];return f;},a87d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a87e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a87z(0x11b),'aliases':['a'],'usage':a87z(0xd3),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a87z(0xe4)],'examples':[a87z(0x128)]},async function(a,b){const A=a87z;try{const c=this[A(0x113)][A(0xd8)](),d=[{'name':A(0x125),'value':'withMethods'},{'name':'Fixtures','value':A(0xf9)},{'name':'Publications','value':A(0x102)}];c[A(0xed)][A(0x11b)]==='rest'&&d['push']({'name':'REST\x20API','value':A(0x103)});c['engines'][A(0xd5)]===A(0x112)&&d[A(0xfa)]({'name':A(0xf0),'value':A(0xf3)});const f={'type':A(0xe7),'name':A(0x114),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g['length']===0x0&&(Log[A(0xe1)](A(0x117)),process['exit'](0x1)),this[A(0x113)][A(0x10d)](c,async()=>{const B=A,h=this[B(0x113)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0xe4)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0xed)][B(0x11b)],'graphql':c[B(0xed)][B(0xd5)],'test':c['engines'][B(0x10a)],'noRename':!![],'withPubs':g[B(0xeb)]('withPubs'),'withFixtures':g[B(0xeb)]('withFixtures'),'withMethods':g[B(0xeb)]('withMethods'),'withRest':g['includes']('withRest')};let n='js';c[B(0xed)]['js']==='tsx'&&(n='ts');(!this[B(0x113)]['checkMeteorPackage'](B(0x11a))||!this['fsi'][B(0x121)]('maka:check')||!this[B(0x113)][B(0x121)](B(0xe3))||!this[B(0x113)][B(0x121)]('mdg:validated-method')||!this[B(0x113)][B(0x121)](B(0xd9)))&&(Log[B(0x109)](B(0xe0)),await this[B(0x113)][B(0x106)](B(0x11f),{'cwd':h}));const o=a87e[B(0xfd)](B(0xe6));o&&await o[B(0x10f)]([j],{'config':c,'where':B(0xdc)});c[B(0xed)][B(0x11b)]===B(0xdf)&&(m[B(0x103)]&&this[B(0x113)]['template']({'srcPath':B(0xdb),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b['dir'],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][B(0x120)]({'srcPath':B(0xf2),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,B(0xf7)+n]}),'context':m,'config':c});m[B(0xf9)]&&this['fsi'][B(0x120)]({'srcPath':B(0xd7),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b['dir'],j,B(0xe9)+n]}),'context':m,'config':c});c['engines'][B(0x10a)]!=='none'&&this[B(0x113)][B(0x120)]({'srcPath':B(0xe8),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,j+B(0xec)+n]}),'context':m,'config':c});m[B(0x102)]&&this[B(0x113)][B(0x120)]({'srcPath':'api/publications.js','destPath':this['fsi'][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,B(0x127)+n]}),'context':m,'config':c});if(c['engines'][B(0xd5)]===B(0x112)){if(g[B(0xeb)]('withGql')){const q=this['fsi']['pathFromApp']({'pathParts':[B(0x105),B(0x10b),B(0xdc),B(0xe2)+c['engines']['js']]}),r=this['fsi'][B(0x122)]({'pathParts':[q],'config':c}),s=this['fsi']['pathFromApp']({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,B(0xd5),B(0xf4)+n]}),t='/imports/api'+l+j+'/graphql/typeDefs';this[B(0x113)][B(0x120)]({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this[B(0x113)][B(0xfc)]({'filePath':r,'content':B(0xef)+k+'TypeDefs\x20}\x20from\x20\x27'+t+B(0xf8)}),this[B(0x113)][B(0x107)]({'filePath':r,'content':B(0xf5)+k+'TypeDefs);\x0a','begin':B(0x100),'end':B(0x129)});const u=this[B(0x113)][B(0xde)]({'pathParts':['imports','api',b['dir'],j,B(0xd5),B(0x101)+n]}),v='/imports/api'+l+j+B(0x11d);this[B(0x113)][B(0x120)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x113)][B(0xfc)]({'filePath':r,'content':B(0x123)+k+B(0xdd)+v+'\x27;'}),this[B(0x113)][B(0x107)]({'filePath':r,'content':B(0x126)+k+'Resolvers);\x0a\x0a','begin':B(0x100),'end':B(0x129)});}}this[B(0x113)][B(0x120)]({'srcPath':B(0x10e),'destPath':this[B(0x113)][B(0xde)]({'pathParts':['imports','startup',B(0xdc),B(0x108)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0xde)]({'pathParts':['imports','startup',B(0xdc),'index.'+c['engines']['js']]});this[B(0x113)][B(0x118)]({'filePath':p,'content':B(0x124)+j+B(0xd6)});});}catch(h){console[A(0x10c)](h),process[A(0xee)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x7e;let f=c[d];return f;},a88d(a,b);}const a88n=a88d;(function(a,b){const k=a88d,c=a();while(!![]){try{const d=-parseInt(k(0x80))/0x1+-parseInt(k(0xa3))/0x2*(parseInt(k(0xa0))/0x3)+parseInt(k(0x8f))/0x4+-parseInt(k(0x9b))/0x5+parseInt(k(0xa2))/0x6*(-parseInt(k(0x97))/0x7)+parseInt(k(0xaa))/0x8+-parseInt(k(0xa9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xb5328));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a88d;if(c){const e=c[l(0x8c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const m=a88d;return a88a['toString']()['search'](m(0x9e))['toString']()[m(0x8e)](a88a)[m(0x98)](m(0x9e));});a88a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a88c(){const q=['496714fufWfA','col','template','dir','startup','tsx','2078946dWRaPp','6654184mCfJIi','installMeteorPackage','appPathPrefix','engines','.app-tests.','collection/tests.js','249513hzUyXk','pathFromApp','resourceName','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','injectAtEndOfFile','collection/collection.js','mongo','index.','collection','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','create','test','apply','getProjectConfig','constructor','5360628OtUFli','maka:check','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','notice','collections','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','none','withValue','243957gLvmDV','search','fsi','checkMeteorPackage','2284625TTdjYk','where','maka\x20g:collection\x20todos','(((.+)+)+)+$','imports','3wMinzT','error','42ZbkEJI'];a88c=function(){return q;};return a88c();}Generator[a88n(0x8a)]({'name':a88n(0x88),'aliases':[a88n(0xa4)],'usage':a88n(0x89),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a88n(0xa6),a88n(0x9c)],'description':a88n(0x94),'examples':[a88n(0x9d)]},async function(a,b){const o=a88n;try{const c=this[o(0x99)][o(0x81)]({}),d=this[o(0x99)][o(0x8d)]();this[o(0x99)][o(0x96)](d,async()=>{const p=o,f=paramCase(b[p(0x82)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x82)]),'fileName':f,'where':b['where'],'test':d['engines'][p(0x8b)],'noRename':!![]};let h='js';d['engines']['js']===p(0xa8)&&(h='ts');!this['fsi'][p(0x9a)](p(0x86))&&(Log[p(0x92)](p(0x91)),await this[p(0x99)]['installMeteorPackage'](p(0x86),{'cwd':c}));!this[p(0x99)][p(0x9a)](p(0x90))&&(Log['notice'](p(0x83)),await this[p(0x99)][p(0xab)](p(0x90),{'cwd':c}));this['fsi'][p(0xa5)]({'srcPath':p(0x85),'destPath':this[p(0x99)]['pathFromApp']({'pathParts':['imports','startup',b[p(0xac)],p(0x93),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0xad)][p(0x8b)]!==p(0x95)&&this['fsi'][p(0xa5)]({'srcPath':p(0x7f),'destPath':this[p(0x99)]['pathFromApp']({'pathParts':[p(0x9f),p(0xa7),b[p(0xac)],p(0x93),b[p(0xa6)],f+p(0x7e)+h]}),'context':g,'config':d});const i=b[p(0xa6)]?'/'+b[p(0xa6)]+'/':'/',j=this[p(0x99)][p(0x81)]({'pathParts':[p(0x9f),p(0xa7),b[p(0xac)],p(0x87)+d['engines']['js']]});this['fsi'][p(0x84)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0xa1)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89q=a89d;(function(a,b){const n=a89d,c=a();while(!![]){try{const d=-parseInt(n(0xbb))/0x1*(-parseInt(n(0xdc))/0x2)+parseInt(n(0xfb))/0x3*(parseInt(n(0xc4))/0x4)+parseInt(n(0xd9))/0x5+-parseInt(n(0xcc))/0x6*(-parseInt(n(0xc2))/0x7)+parseInt(n(0xba))/0x8*(-parseInt(n(0xbd))/0x9)+-parseInt(n(0xde))/0xa+parseInt(n(0xfc))/0xb*(-parseInt(n(0xd5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x241a3));const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a89d;if(c){const e=c[o(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const p=a89d;return a89a['toString']()[p(0xda)](p(0xcb))['toString']()[p(0xf9)](a89a)['search'](p(0xcb));});a89a();function a89c(){const t=['cssCaseName','checkNpmPackage','warn','860160IfHask','search','import\x20\x27','40JKGRLu','maka\x20g:comp\x20todos/todos-item','1055150yBsuks','true','string','\x20}\x20from\x20\x27','pathFromProject','injectAtEndOfFile','withTranslations','root','.css','test/test.js','fsi','apply','import\x20{\x20','graphql','client','installNpmPackage','create','reflux','getProjectConfig','\x27;\x0a','css','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','comp','tsx','template','import\x20\x27./','test','constructor','\x20};\x0a','569469bTjeHj','11fTQUtR','error','react','component','engines','resourceName','dir','8ahrTdm','13627AkjYdb','setTemplate','160425pyKvXt','className','withValue','injectAtBeginningOfFile','pathFromApp','1978179yeiFRR','template/template.css','4MEfCbX','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','features','imports','ramda','api','.tests.js','(((.+)+)+)+$','6wgPRCS','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','assign','/imports/ui/components','.js','findAppDirectory','startup','ssr','7749324DRrlTi'];a89c=function(){return t;};return a89c();}import a89e from'path';function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0xb4;let f=c[d];return f;},a89d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a89q(0xf4)];Generator[a89q(0xee)]({'name':a89q(0xb6),'aliases':aliases,'usage':a89q(0xc5),'shortDesc':a89q(0xf3),'validOpts':[a89q(0xb9)],'examples':[a89q(0xdd)]},async function(a,b){const r=a89q;try{const c=this[r(0xe8)][r(0xd2)](),d=r(0xd0),f=this[r(0xe8)][r(0xc1)]({'pathParts':[d,b[r(0xb9)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),g=await this[r(0xe8)][r(0xf0)]();this[r(0xe8)][r(0xbf)](g,async()=>{const s=r;typeof g[s(0xf6)]['test']==='string'&&(g[s(0xf6)][s(0xf8)]=g[s(0xf6)][s(0xf8)]===s(0xdf)?!![]:![],this[s(0xe8)][s(0xbc)]('test',g['template'][s(0xf8)]));typeof g['template'][s(0xf2)]===s(0xe0)&&(g['template'][s(0xf2)]=g[s(0xf6)][s(0xf2)]===s(0xdf)?!![]:![],this['fsi'][s(0xbc)](s(0xf2),g[s(0xf6)][s(0xf2)]));typeof g['template']['js']===s(0xe0)&&(g['template']['js']=g[s(0xf6)]['js']==='true'?!![]:![],this[s(0xe8)][s(0xbc)]('js',g['template']['js']));!g[s(0xc6)]&&(g[s(0xc6)]={});!b[s(0xe5)]&&!this[s(0xe8)][s(0xd7)](s(0xc8))&&(Log[s(0xd8)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0xe8)][s(0xed)](s(0xc8),{'cwd':c}));if(!b[s(0xe5)]&&!this[s(0xe8)][s(0xd7)](s(0xb5))){Log[s(0xb4)](s(0xcd));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a89e['relative'](this[s(0xe8)][s(0xe2)]({}),f),'cssCaseName':paramCase(b[s(0xb8)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0xb8)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0xb7)][s(0xeb)],'features':g['features'],'client':g[s(0xb7)][s(0xec)],'api':g[s(0xb7)][s(0xc9)],'ssr':g[s(0xb7)][s(0xd4)],'test':g[s(0xb7)]['test'],'theme':g['engines']['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0xc6)][s(0xe4)]};this[s(0xe8)][s(0xf6)]({'srcPath':'component/component.js','destPath':f+s(0xd1),'context':h,'framework':s(0xb5),'config':g});g[s(0xb7)][s(0xf8)]!=='none'&&this[s(0xe8)][s(0xf6)]({'srcPath':s(0xe7),'destPath':f+s(0xca),'context':h,'framework':s(0xb5),'config':g});g['template'][s(0xf2)]&&(this['fsi']['template']({'srcPath':s(0xc3),'destPath':f+s(0xe6),'context':Object[s(0xcf)]({},h,{'className':paramCase(b[s(0xb8)])}),'config':g}),this[s(0xe8)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0xb7)]['js'],'content':s(0xf7)+h[s(0xd6)]+'.'+g[s(0xb7)]['css']+'\x27;'}));const i=b[s(0xb9)]?'/'+b[s(0xb9)]+'/':'/',j=''+d+i+h['fileName']+'/'+h['fileName'];let k;if(g[s(0xb7)][s(0xd4)]===s(0xdf)){const l=this[s(0xe8)][s(0xc1)]({'pathParts':[s(0xc7),s(0xd3),'lib',s(0xce)]});k=this[s(0xe8)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0xe8)][s(0xc1)]({'pathParts':[s(0xc7),s(0xd3),s(0xec),s(0xce)]});k=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g['engines'][s(0xec)]===s(0xb5)||g['engines'][s(0xec)]===s(0xef)?(g['engines']['js']===s(0xf5)?this[s(0xe8)][s(0xc0)]({'filePath':k,'content':s(0xea)+h[s(0xbe)]+s(0xe1)+j+'\x27;\x0a'}):this[s(0xe8)][s(0xc0)]({'filePath':k,'content':'import\x20{\x20'+h[s(0xbe)]+s(0xe1)+j+'.'+g[s(0xb7)]['js']+s(0xf1)}),this[s(0xe8)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h[s(0xbe)]+s(0xfa)})):this['fsi'][s(0xe3)]({'filePath':k,'content':s(0xdb)+j+'.'+g[s(0xb7)]['js']+s(0xf1)});});}catch(h){Log[r(0xb4)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90j=a90d;function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x141;let f=c[d];return f;},a90d(a,b);}function a90c(){const m=['dev','prod','maka\x20{generate,\x20g}:{config}\x20<name>','config/settings.json','179TtwcfQ','getProjectConfig','718866JJFehF','isDocker','ubuntu','Generate\x20configuration\x20settings.','constructor','762lIoGwt','fsi','process.env','toString','production','120OXBiOi','(((.+)+)+)+$','23255KikqhP','config/process.env','template','4592vzhNxW','search','appName','479409iKAJAB','pathFromProject','3057672jTcVqI','resourceName','config','2143379AMWYMo','2643888bwQNjJ'];a90c=function(){return m;};return a90c();}(function(a,b){const h=a90d,c=a();while(!![]){try{const d=parseInt(h(0x148))/0x1*(-parseInt(h(0x159))/0x2)+-parseInt(h(0x15c))/0x3+-parseInt(h(0x143))/0x4+parseInt(h(0x156))/0x5*(parseInt(h(0x14f))/0x6)+-parseInt(h(0x142))/0x7+parseInt(h(0x15e))/0x8+-parseInt(h(0x14a))/0x9*(-parseInt(h(0x154))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x600ca));const a90b=(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;};}()),a90a=a90b(this,function(){const i=a90d;return a90a[i(0x152)]()[i(0x15a)](i(0x155))[i(0x152)]()[i(0x14e)](a90a)[i(0x15a)](i(0x155));});a90a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a90j(0x141),'usage':a90j(0x146),'shortDesc':a90j(0x14d),'validOpts':[a90j(0x14b)],'examples':['maka\x20g:config\x20production']},function(a,b){const k=a90j,c=this[k(0x150)][k(0x149)]();this[k(0x150)]['withValue'](c,async()=>{const l=k,d={'app':c[l(0x15b)],'appFileCase':paramCase(c[l(0x15b)]),'name':pascalCase(b[l(0x15f)]),'fileName':paramCase(b[l(0x15f)]),'camelCase':camelCase(b['resourceName']),'userName':l(0x14c),'isDocker':b[l(0x14b)]};let e=a[0x0];if(e===l(0x144))e='development';else e===l(0x145)&&(e=l(0x153));const f=this[l(0x150)][l(0x15d)]({'pathParts':[l(0x141),e,'settings.json']});this[l(0x150)]['template']({'srcPath':l(0x147),'destPath':f,'context':d,'config':c});if(!b[l(0x14b)]){const g=this[l(0x150)][l(0x15d)]({'pathParts':[l(0x141),e,l(0x151)]});this['fsi'][l(0x158)]({'srcPath':l(0x157),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a91d(a,b);}const a91q=a91d;(function(a,b){const n=a91d,c=a();while(!![]){try{const d=parseInt(n(0x1e4))/0x1*(-parseInt(n(0x1e0))/0x2)+parseInt(n(0x1f1))/0x3+parseInt(n(0x1d2))/0x4*(parseInt(n(0x1f4))/0x5)+-parseInt(n(0x1e3))/0x6*(-parseInt(n(0x1dc))/0x7)+parseInt(n(0x1d0))/0x8*(-parseInt(n(0x1fd))/0x9)+parseInt(n(0x1d9))/0xa+parseInt(n(0x1e1))/0xb*(-parseInt(n(0x1fa))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x894ae));const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a91d;if(c){const e=c[o(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const p=a91d;return a91a[p(0x1d1)]()[p(0x1db)](p(0x1fe))[p(0x1d1)]()['constructor'](a91a)[p(0x1db)](p(0x1fe));});a91a();import{camelCase,paramCase,pascalCase}from'change-case';function a91c(){const t=['sqlite','dir','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','fsi','imports','maka\x20g:dbc\x20geoserver\x20--type=pgsql','server','register-','better-sqlite3','maka\x20g:dbc\x20azure\x20--type=mssql','Invalid\x20type\x20','2937054StcgUh','create','resourceName','158825RAcYAx','(blank)','template','dbc','pgsql','dbAnswer','24436452afoBIq','withValue','MS\x20SQL','12789nmbulD','(((.+)+)+)+$','PostgreSQL','type','config.','checkNpmPackage','dbc/config.js','warn','4504JAhCnV','toString','124uQQmPu','DB\x20Driver','list','apply','index.','startup','import\x20\x27./register-','8243990UCLjri','pathFromApp','search','19761iJWceR','installNpmPackage','error','indexOf','2kmJcrv','11HDxQfn','mssql','1968DlQWEs','315332AbDJdX','engines'];a91c=function(){return t;};return a91c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a91q(0x1f2)]({'name':a91q(0x1f7),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a91q(0x1cb),a91q(0x1e7)],'examples':[a91q(0x1eb),a91q(0x1ef),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a91q;try{const c=await this[r(0x1e9)]['getProjectConfig'](),d=this['fsi']['pathFromApp']({}),f=paramCase(b['resourceName']);if(!b[r(0x1cb)]){const h={'type':r(0x1d4),'name':r(0x1f9),'message':r(0x1d3),'choices':[{'name':r(0x1ca),'value':'pgsql'},{'name':r(0x1fc),'value':r(0x1e2)}]},{dbAnswer:i}=await Actions['options'](h);i&&(b[r(0x1cb)]=i);}const g={'name':pascalCase(b[r(0x1f3)]),'fileName':paramCase(b[r(0x1f3)]),'camelCase':camelCase(b[r(0x1f3)]),'type':b[r(0x1cb)],'engine':c[r(0x1e5)]['js'],'noRename':!![]};this[r(0x1e9)][r(0x1fb)](c,async()=>{const s=r;let j='js';c[s(0x1e5)]['js']==='tsx'&&(j='ts');const k=[s(0x1e2),s(0x1f8)];if(k[s(0x1df)](g[s(0x1cb)])<0x0){const m=g['type']?g[s(0x1cb)]:s(0x1f5);Log[s(0x1de)](s(0x1f0)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x1cb)]===s(0x1f8)&&!this[s(0x1e9)][s(0x1cd)]('pg')&&(Log[s(0x1cf)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0x1dd)]('pg',{'cwd':d}));b['type']==='mssql'&&!this['fsi']['checkNpmPackage'](s(0x1e2))&&(Log['warn'](s(0x1e8)),await this['fsi']['installNpmPackage'](s(0x1e2),{'cwd':d}));b[s(0x1cb)]===s(0x1e6)&&!this[s(0x1e9)]['checkNpmPackage']('better-sqlite3')&&(Log['warn']('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x1e9)][s(0x1dd)](s(0x1ee),{'cwd':d}));this[s(0x1e9)][s(0x1f6)]({'srcPath':s(0x1ce),'destPath':this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),s(0x1d7),s(0x1ec),s(0x1f7),b[s(0x1e7)],f,s(0x1cc)+j]}),'context':g,'config':c}),this['fsi'][s(0x1f6)]({'srcPath':'dbc/conn.js','destPath':this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),s(0x1d7),s(0x1ec),s(0x1f7),b['dir'],f,'conn.'+j]}),'context':g,'config':c}),this['fsi'][s(0x1f6)]({'srcPath':'dbc/register-dbc.js','destPath':this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),s(0x1d7),s(0x1ec),s(0x1ed)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),'startup',s(0x1ec),s(0x1d6)+c['engines']['js']]});this[s(0x1e9)]['injectAtEndOfFile']({'filePath':l,'content':s(0x1d8)+f+'-dbc\x27;'});});}catch(j){Log[r(0x1de)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92i=a92d;(function(a,b){const f=a92d,c=a();while(!![]){try{const d=-parseInt(f(0xaf))/0x1+-parseInt(f(0xb7))/0x2+parseInt(f(0xbe))/0x3*(-parseInt(f(0xae))/0x4)+-parseInt(f(0xc4))/0x5*(parseInt(f(0xc2))/0x6)+-parseInt(f(0xc6))/0x7*(-parseInt(f(0xc3))/0x8)+parseInt(f(0xca))/0x9*(parseInt(f(0xbb))/0xa)+-parseInt(f(0xb6))/0xb*(-parseInt(f(0xc7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x4c41a));function a92c(){const l=['withValue','app','(((.+)+)+)+$','99wUlbwN','1123456mTBVVz','docker/Dockerfile','appName','maka\x20{generate,\x20g}:dockerfile','10KyVEoP','Dockerfile','error','63156BfsIvl','getProjectConfig','service','apply','956724aFzBew','534056WkpHXB','15jIJGgy','search','7ZXBovL','2399652qzmzXW','fsi','constructor','452907MWQKup','app.tar.gz','Generate\x20an\x20updated\x20dockerfile','join','24MqAXmw','438071JJnwkn','cert','toString','findProjectDirectory'];a92c=function(){return l;};return a92c();}const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a92d;if(c){const e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const h=a92d;return a92a['toString']()[h(0xc5)]('(((.+)+)+)+$')[h(0xb1)]()[h(0xc9)](a92a)[h(0xc5)](h(0xb5));});a92a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0xad;let f=c[d];return f;},a92d(a,b);}import a92e from'path';Generator['create']({'name':'dockerfile','usage':a92i(0xba),'shortDesc':a92i(0xcc),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a92i;try{const a=await this[j(0xc8)][j(0xbf)](),b=await this[j(0xc8)]['getGlobalConfig'](),c=this['fsi'][j(0xb2)]();this['fsi'][j(0xb3)](a,async()=>{const k=j,d={'app':b[k(0xb9)],'config':a,'appPath':a92e[k(0xad)](c,k(0xb4)),'bundlePath':a92e[k(0xad)](c,'build',k(0xcb)),'useCert':this[k(0xc8)]['isFile'](b[k(0xb0)])};this[k(0xc8)]['template']({'srcPath':k(0xb8),'destPath':a92e[k(0xad)](c,k(0xbc)),'framework':k(0xc0),'context':d,'config':a});});}catch(d){Log[j(0xbd)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x74;let f=c[d];return f;},a93d(a,b);}const a93r=a93d;(function(a,b){const o=a93d,c=a();while(!![]){try{const d=-parseInt(o(0x74))/0x1*(-parseInt(o(0xab))/0x2)+parseInt(o(0x87))/0x3*(-parseInt(o(0x9f))/0x4)+parseInt(o(0x81))/0x5+-parseInt(o(0x99))/0x6+-parseInt(o(0x8d))/0x7*(-parseInt(o(0x96))/0x8)+parseInt(o(0xa6))/0x9+-parseInt(o(0xa2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x3d371));function a93c(){const u=['fileName','css','injectAtBeginningOfFile','hook/hook.js','cssCaseName','69ASxDJD','(((.+)+)+)+$','ssr','react','error','/imports/ui/hooks','7aAwbHs','.app-tests.js','theme','string','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','hook','constructor','toString','warn','827032tVRHsy','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','none','2468790qmIZjj','test','.css','\x20}\x20from\x20\x27','export\x20{\x20','@apollo/client\x20isomorphic-fetch','69328GPnYvH','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','2291870DKNwCT','templates.js','pathFromProject','injectAtEndOfFile','3993921xBtEGI','engines','withTranslations','true','className','12RAzRTg','maka\x20g:hook\x20cool-hook','import\x20\x27','relative','apollo','withValue','setTemplate','startup','features','resourceName','tsx','61589wxIPEn','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fsi','import\x20\x27./','client','apply','.js','template','dir','\x20};\x0a','pathFromApp','\x27;\x0a','checkNpmPackage','1866715CHUrRb'];a93c=function(){return u;};return a93c();}const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a93d;if(c){const e=c[p(0x79)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const q=a93d;return a93a[q(0x94)]()[q(0xa1)]('(((.+)+)+)+$')[q(0x94)]()[q(0x93)](a93a)[q(0xa1)](q(0x88));});a93a();import a93e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':a93r(0x92),'aliases':['h'],'checkWhere':![],'usage':a93r(0x91),'shortDesc':a93r(0x97),'validOpts':[a93r(0x7c)],'examples':[a93r(0xac)]},async function(a,b){const s=a93r;try{const c=this[s(0x76)][s(0x80)](s(0x8a));if(!c){Log[s(0x8b)](s(0xa0));throw new UsageError();}const d=this[s(0x76)][s(0x7e)](b),f=s(0x8c),g=this['fsi'][s(0x7e)]({'pathParts':[f,b[s(0x7c)],paramCase(b[s(0xb4)]),paramCase(b[s(0xb4)])]}),h=await this[s(0x76)]['getProjectConfig']();this[s(0x76)][s(0xb0)](h,async()=>{const t=s;typeof h['template'][t(0x83)]===t(0x90)&&(h['template'][t(0x83)]=h[t(0x7b)]['css']===t(0xa9)?!![]:![],this['fsi'][t(0xb1)](t(0x83),h[t(0x7b)][t(0x83)]));h[t(0xa7)]['graphql']===t(0xaf)&&!this[t(0x80)]('@apollo/client')&&(Log[t(0x95)](t(0x75)),await this['fsi']['installNpmPackage'](t(0x9e),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xb4)]),'className':pascalCase(b[t(0xb4)]),'name':pascalCase(b[t(0xb4)]),'graphql':h[t(0xa7)]['graphql'],'theme':h['engines'][t(0x8f)],'features':h[t(0xb3)],'myPath':a93e[t(0xae)](this[t(0x76)][t(0xa4)]({}),g),'fileName':paramCase(b[t(0xb4)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xb3)][t(0xa8)]};this[t(0x76)]['template']({'srcPath':t(0x85),'destPath':g+t(0x7a),'context':i,'config':h,'framework':t(0x8a)});h[t(0x7b)][t(0x83)]&&(this[t(0x76)][t(0x7b)]({'srcPath':'template/template.css','destPath':g+t(0x9b),'context':Object['assign']({},i,{'className':i[t(0x86)]}),'config':h}),this[t(0x76)][t(0x84)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x77)+i[t(0x82)]+'.'+h[t(0xa7)][t(0x83)]+'\x27;'}));h[t(0xa7)][t(0x9a)]!==t(0x98)&&this['fsi'][t(0x7b)]({'srcPath':'test/test.js','destPath':g+t(0x8e),'framework':'react','context':i,'config':h});const j=b[t(0x7c)]?'/'+b[t(0x7c)]+'/':'/',k=''+f+j+i[t(0x82)]+'/'+i[t(0x82)];let l;if(h[t(0xa7)][t(0x89)]===t(0xa9)){const m=this[t(0x76)]['pathFromApp']({'pathParts':['imports',t(0xb2),'lib',t(0xa3)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x76)][t(0x7e)]({'pathParts':['imports','startup',t(0x78),t(0xa3)]});l=this[t(0x76)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h[t(0xa7)]['client']===t(0x8a)?(h[t(0xa7)]['js']===t(0xb5)?this[t(0x76)][t(0x84)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xaa)]+t(0x9c)+k+'\x27;\x0a'}):this[t(0x76)]['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i[t(0xaa)]+t(0x9c)+k+'.'+h[t(0xa7)]['js']+'\x27;\x0a'}),this[t(0x76)][t(0xa5)]({'filePath':l,'content':t(0x9d)+i[t(0xaa)]+t(0x7d)})):this[t(0x76)]['injectAtEndOfFile']({'filePath':l,'content':t(0xad)+k+'.'+h[t(0xa7)]['js']+t(0x7f)});});}catch(i){Log['error'](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a94k=a94d;(function(a,b){const h=a94d,c=a();while(!![]){try{const d=-parseInt(h(0x13e))/0x1+parseInt(h(0x147))/0x2*(parseInt(h(0x14f))/0x3)+parseInt(h(0x149))/0x4*(parseInt(h(0x136))/0x5)+parseInt(h(0x134))/0x6*(parseInt(h(0x148))/0x7)+-parseInt(h(0x140))/0x8+parseInt(h(0x14c))/0x9*(parseInt(h(0x145))/0xa)+parseInt(h(0x13f))/0xb*(-parseInt(h(0x13c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x85ee9));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a94d;if(c){const e=c[i(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const j=a94d;return a94a[j(0x141)]()[j(0x13b)](j(0x14a))[j(0x141)]()['constructor'](a94a)[j(0x13b)]('(((.+)+)+)+$');});a94a();function a94c(){const n=['error','6099790pCyFTi','kit','2lGCuAf','21gIGNrI','704056JuKiTv','(((.+)+)+)+$','engines','9QwNVRV','withValue','indexOf','867924UUODVe','(blank)',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','getProjectConfig','fsi','177108HGlvTx','login','25PsNMGp','resourceName','apply','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20g:k\x20city-map\x20--type=leaflet-map','search','5355804xcGHhN','notice','156602ArhAWf','11rpkqsA','5731256TrirXO','toString','type','NIE'];a94c=function(){return n;};return a94c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x133;let f=c[d];return f;},a94d(a,b);}Generator['create']({'name':a94k(0x146),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':a94k(0x139),'validOpts':[a94k(0x142)],'examples':['maka\x20g:kit\x20--type=map',a94k(0x13a)]},async function(a,b){const l=a94k;try{const c=this[l(0x133)][l(0x152)]();this[l(0x133)][l(0x14d)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x137)]),'fileName':paramCase(b[m(0x137)]),'camelCase':camelCase(b[m(0x137)]),'type':b[m(0x142)],'engine':c[m(0x14b)]['js'],'noRename':!![]},f=['leaflet-map','login'];if(f[m(0x14e)](d['type'])<0x0){const g=d[m(0x142)]?d[m(0x142)]:m(0x150);Log[m(0x144)]('Invalid\x20type\x20'+g+m(0x151));return;}b[m(0x142)]==='map'&&Log[m(0x13d)](m(0x143)),b[m(0x142)]===m(0x135)&&Log['notice'](m(0x143));});}catch(d){Log[l(0x144)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95r=a95d;(function(a,b){const o=a95d,c=a();while(!![]){try{const d=-parseInt(o(0x1f7))/0x1*(-parseInt(o(0x20e))/0x2)+parseInt(o(0x220))/0x3*(-parseInt(o(0x20b))/0x4)+parseInt(o(0x1ef))/0x5*(parseInt(o(0x207))/0x6)+-parseInt(o(0x203))/0x7+-parseInt(o(0x1fe))/0x8+parseInt(o(0x234))/0x9+parseInt(o(0x205))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x3e80a));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a95d;if(c){const e=c[p(0x219)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const q=a95d;return a95a[q(0x1f1)]()[q(0x216)](q(0x235))[q(0x1f1)]()['constructor'](a95a)[q(0x216)](q(0x235));});a95a();import a95e from'path';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a95c(){const u=['checkNpmPackage','test','setTemplate','client','hook/hook.js','3AMNuPY','engines','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','.app-tests.js','warn','graphql','resourceName','import\x20\x27./','withHook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','maka\x20g:layout\x20mobile/iPhone8','assign','imports','withHooks','theme','.js','true','api','import\x20{\x20','2797056sxUQlR','(((.+)+)+)+$','relative','template','\x20};\x0a','25wkzaAo','injectAtEndOfFile','toString','fsi','split','className','installNpmPackage','withTranslations','5223kQfycy','fileName','react','ramda','dir','Scaffolding\x20for\x20a\x20React\x20Layout.','withValue','3602712YtQURf','layout','getProjectConfig','\x27;\x0a','pathFromApp','1447432kOdYKR','\x20}\x20from\x20\x27','5017560DTPemU','maka\x20g:l\x20web/safari','224550RwJqxp','injectAtBeginningOfFile','template/template.css','none','1411652vcJlYl','findAppDirectory','features','102VCXeLF','rewriteDestinationPathForEngine','pathFromProject','import\x20\x27','ssr','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','create','startup','search','css','string','apply','lib'];a95c=function(){return u;};return a95c();}const aliases=['l'];Generator[a95r(0x214)]({'name':a95r(0x1ff),'aliases':aliases,'usage':a95r(0x213),'shortDesc':a95r(0x1fc),'validOpts':[],'examples':[a95r(0x22b),a95r(0x206)]},function(a,b){const s=a95r,c='/imports/ui/layouts',d=this[s(0x1f2)][s(0x20c)](),e=this[s(0x1f2)][s(0x202)]({'pathParts':[c,b['dir'],paramCase(b[s(0x226)]),paramCase(b[s(0x226)])]}),f=this[s(0x1f2)][s(0x200)]();this[s(0x1f2)][s(0x1fd)](f,()=>{const t=s;typeof f[t(0x1ed)][t(0x21c)]===t(0x218)&&(f[t(0x1ed)][t(0x21c)]=f[t(0x1ed)][t(0x21c)]===t(0x231)?!![]:![],this[t(0x1f2)][t(0x21d)](t(0x21c),f['template'][t(0x21c)]));typeof f[t(0x1ed)][t(0x217)]===t(0x218)&&(f[t(0x1ed)][t(0x217)]=f[t(0x1ed)][t(0x217)]===t(0x231)?!![]:![],this['fsi']['setTemplate'](t(0x217),f['template'][t(0x217)]));typeof f[t(0x1ed)]['js']===t(0x218)&&(f['template']['js']=f[t(0x1ed)]['js']===t(0x231)?!![]:![],this['fsi'][t(0x21d)]('js',f[t(0x1ed)]['js']));!f[t(0x20d)]&&(f[t(0x20d)]={});const g=b['_']?b['_'][0x0][t(0x1f3)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x21b)](t(0x1fa))&&(Log[t(0x224)](t(0x222)),this['fsi'][t(0x1f5)](t(0x1fa),{'cwd':d}));if(h&&!this[t(0x21b)](t(0x1f9))){Log[t(0x224)](t(0x229));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a95e[t(0x1ec)](this[t(0x1f2)][t(0x210)]({}),e),'cssCaseName':paramCase(b[t(0x226)]),'className':pascalCase(b[t(0x226)]),'camelCaseName':camelCase(b[t(0x226)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x221)][t(0x225)],'features':f['features'],'client':f['engines']['client'],'api':f['engines'][t(0x232)],'ssr':f['engines']['ssr'],'test':f[t(0x221)][t(0x21c)],'theme':f[t(0x221)][t(0x22f)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x20d)][t(0x1f6)]};f[t(0x20d)]?.[t(0x22e)]||b[t(0x228)]?this[t(0x1f2)][t(0x1ed)]({'srcPath':t(0x21f),'destPath':e+t(0x230),'framework':t(0x1f9),'context':i,'config':f}):this['fsi'][t(0x1ed)]({'srcPath':'component/component.js','destPath':e+t(0x230),'framework':'react','context':i,'config':f});f[t(0x221)][t(0x21c)]!==t(0x20a)&&this[t(0x1f2)]['template']({'srcPath':'test/test.js','destPath':e+t(0x223),'framework':t(0x1f9),'context':i,'config':f});f['template']['css']&&(this[t(0x1f2)]['template']({'srcPath':t(0x209),'destPath':e+'.css','context':Object[t(0x22c)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x1f2)][t(0x208)]({'filePath':e+'.'+f[t(0x221)]['js'],'content':t(0x227)+i[t(0x1f8)]+'.'+f[t(0x221)][t(0x217)]+'\x27;'}));const j=b[t(0x1fb)]?'/'+b[t(0x1fb)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x1f8)];let l;if(f[t(0x221)][t(0x212)]==='true'){const m=this['fsi'][t(0x202)]({'pathParts':[t(0x22d),t(0x215),t(0x21a),t(0x22a)]});l=this[t(0x1f2)][t(0x20f)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x202)]({'pathParts':[t(0x22d),t(0x215),'client',t(0x22a)]});l=this[t(0x1f2)][t(0x20f)]({'pathParts':[n],'config':f});}f[t(0x221)][t(0x21e)]===t(0x1f9)?(f[t(0x221)]['js']==='tsx'?this[t(0x1f2)][t(0x208)]({'filePath':l,'content':t(0x233)+i['className']+'\x20}\x20from\x20\x27'+k+t(0x201)}):this[t(0x1f2)][t(0x208)]({'filePath':l,'content':t(0x233)+i[t(0x1f4)]+t(0x204)+k+'.'+f[t(0x221)]['js']+'\x27;\x0a'}),this['fsi'][t(0x1f0)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x1f4)]+t(0x1ee)})):this[t(0x1f2)]['injectAtEndOfFile']({'filePath':l,'content':t(0x211)+k+'.'+f[t(0x221)]['js']+t(0x201)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a96i=a96d;function a96c(){const j=['toString','23585247zvwwVx','search','2272200odnORw','190114lRcefo','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','(((.+)+)+)+$','maka\x20g:hook\x20cool-hook','6142398khiFnW','maka\x20generate:api\x20Trucks','561358pjKPHe','apply','Maka!','7BfMydX','8cIFwEL','1000608prkwWL','3316032KQsmki'];a96c=function(){return j;};return a96c();}(function(a,b){const f=a96d,c=a();while(!![]){try{const d=parseInt(f(0x170))/0x1+parseInt(f(0x176))/0x2+parseInt(f(0x16a))/0x3*(-parseInt(f(0x169))/0x4)+-parseInt(f(0x16f))/0x5+-parseInt(f(0x174))/0x6*(parseInt(f(0x168))/0x7)+-parseInt(f(0x16b))/0x8+parseInt(f(0x16d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x81cab));function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x167;let f=c[d];return f;},a96d(a,b);}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a['toString']()['search'](h(0x172))[h(0x16c)]()['constructor'](a96a)[h(0x16e)](h(0x172));});a96a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a96i(0x167),'validOpts':[],'description':'\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','usage':a96i(0x171),'examples':[a96i(0x175),a96i(0x173)]},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97m=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0xcd))/0x1+-parseInt(k(0xc9))/0x2+-parseInt(k(0xcf))/0x3*(parseInt(k(0xea))/0x4)+-parseInt(k(0xca))/0x5+parseInt(k(0xe8))/0x6*(-parseInt(k(0xde))/0x7)+parseInt(k(0xe4))/0x8*(parseInt(k(0xd5))/0x9)+parseInt(k(0xd9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x29077));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const l=a97d;return a97a[l(0xed)]()[l(0xf0)]('(((.+)+)+)+$')[l(0xed)]()[l(0xe3)](a97a)[l(0xf0)](l(0xcb));});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xc9;let f=c[d];return f;},a97d(a,b);}a97a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a97m(0xd8)]({'name':a97m(0xd0),'aliases':['m'],'usage':a97m(0xd1),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a97m(0xec)],'examples':[a97m(0xd3)]},function(a,b){const n=a97m;try{const c=this['fsi']['getProjectConfig']();this['fsi'][n(0xdd)](c,async()=>{const o=n,d=paramCase(b[o(0xdc)]),f={'name':b[o(0xdc)],'fileName':d,'className':pascalCase(b[o(0xdc)]),'camelCase':camelCase(b[o(0xdc)]),'noRename':!![]};let g='js';c[o(0xe0)]['js']===o(0xe2)&&(g='ts');const h=this[o(0xef)]['pathFromApp']({});(!this[o(0xef)][o(0xee)](o(0xe5))||!this[o(0xef)]['checkMeteorPackage'](o(0xd6))||!this[o(0xef)][o(0xee)](o(0xeb)))&&(Log['warn'](o(0xe9)),this[o(0xef)][o(0xf2)](o(0xd2),{'cwd':h}));this[o(0xef)][o(0xdb)]({'srcPath':o(0xe6),'destPath':this['fsi'][o(0xda)]({'pathParts':[o(0xd7),'startup',b['appPathPrefix'],o(0xdf),b[o(0xec)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[o(0xec)]?'/'+b['dir']+'/':'/',j=this['fsi'][o(0xda)]({'pathParts':[o(0xd7),o(0xe7),b[o(0xd4)],o(0xf1)+c['engines']['js']]});this[o(0xef)]['injectAtEndOfFile']({'filePath':j,'content':o(0xe1)+i+d+o(0xcc)});});}catch(d){Log[n(0xce)](d);}});function a97c(){const p=['fsi','search','index.','installMeteorPackage','70814OZYVbY','349245ujiUsr','(((.+)+)+)+$','-rpc-method\x27;','252184bGXlpy','error','1671FCRbLx','method','maka\x20{generate,\x20g}:{method,\x20m}\x20name','check\x20ddp-rate-limiter\x20mdg:validated-method','maka\x20g:method\x20todos','appPathPrefix','2401137nCNwbu','ddp-rate-limiter','imports','create','5834850GwVbLY','pathFromApp','template','resourceName','withValue','7OgqsKJ','methods','engines','import\x20\x27./methods','tsx','constructor','8SiHziP','check','method/method.js','startup','1845096txjqKB','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','124ZvpgKG','mdg:validated-method','dir','toString','checkMeteorPackage'];a97c=function(){return p;};return a97c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98o=a98d;(function(a,b){const l=a98d,c=a();while(!![]){try{const d=parseInt(l(0xf9))/0x1+parseInt(l(0xd9))/0x2+-parseInt(l(0xfa))/0x3*(-parseInt(l(0xea))/0x4)+-parseInt(l(0xf4))/0x5+parseInt(l(0xd3))/0x6+-parseInt(l(0xf3))/0x7+parseInt(l(0xe8))/0x8*(-parseInt(l(0xd4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x9dc84));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a98d;if(c){const e=c[m(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const n=a98d;return a98a[n(0xe6)]()[n(0xd5)](n(0xd6))[n(0xe6)]()['constructor'](a98a)[n(0xd5)]('(((.+)+)+)+$');});a98a();function a98c(){const s=['theme','server','package/','template/template.js','store','apply','lib','package/package.js','toString','fsi','122824MEtOqS','hasOwnProperty','364TkFxCH','.js','package.js','pathFromApp','pathFromAppWithNoReWrite','ssr','noRename','layout','dir','932372zrbtsG','1479575fLXSsP','forEach','client','packages','/client/','181789XwJlob','33144fVdxKI','features','6192816fbcjeG','747ZDSKPn','search','(((.+)+)+)+$','create','relative','260786kGWyeC','engines','resourceName','template','/package.js'];a98c=function(){return s;};return a98c();}function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xd2;let f=c[d];return f;},a98d(a,b);}import a98e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98o(0xd7)]({'name':'package','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a98o(0xf2)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a98o,c=paramCase(b['resourceName']),d=this[p(0xe7)][p(0xed)]({'pathParts':[p(0xf7),b[p(0xf2)],c]}),e=this[p(0xe7)][p(0xee)]({'pathParts':[p(0xf7),b['dir'],c,p(0xec)]}),f=this['fsi']['getProjectConfig']();this['fsi']['withValue'](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a98e[q(0xd8)](this[q(0xe7)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0xdb)]),'className':pascalCase(b[q(0xdb)]),'camelCaseName':camelCase(b[q(0xdb)]),'fileName':c,'client':f[q(0xda)][q(0xf6)],'graphql':f[q(0xda)]['graphql'],'ssr':f[q(0xda)][q(0xef)],'isComponent':b[q(0xe9)]('component'),'isLayout':b[q(0xe9)](q(0xf1)),'isStore':b[q(0xe9)](q(0xe2)),'features':f[q(0xd2)],'noRename':!![],'theme':f[q(0xda)][q(0xde)]};this[q(0xe7)][q(0xdc)]({'srcPath':q(0xe5),'destPath':e,'context':g,'config':f}),g[q(0xf0)]=![];const h=d+q(0xf8)+c+q(0xeb);this['fsi'][q(0xdc)]({'srcPath':q(0xe1),'destPath':h,'context':g,'config':f});const i=[q(0xe4),q(0xdf),'tests/client','tests/server'];i[q(0xf5)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xeb);this['fsi'][r(0xdc)]({'srcPath':r(0xe0)+j+r(0xdd),'destPath':k,'context':g,'config':f});});});});
|