@maka/maka-cli 4.6.17 → 4.6.19
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 +31 -31
- 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/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.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 -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 +31 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
const a93q=a93d;
|
|
1
|
+
const a93q=a93d;(function(a,b){const m=a93d,c=a();while(!![]){try{const d=-parseInt(m(0x1d3))/0x1+parseInt(m(0x1d8))/0x2+-parseInt(m(0x1e1))/0x3+parseInt(m(0x1fa))/0x4+parseInt(m(0x1d0))/0x5*(parseInt(m(0x1ec))/0x6)+-parseInt(m(0x1e2))/0x7*(-parseInt(m(0x1df))/0x8)+-parseInt(m(0x1ef))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x1f66e));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a93d;if(c){const e=c[n(0x20a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const o=a93d;return a93a[o(0x203)]()[o(0x1ee)](o(0x1f5))[o(0x203)]()[o(0x1d1)](a93a)[o(0x1ee)](o(0x1f5));});a93a();import a93e from'fs';function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x1cf;let f=c[d];return f;},a93d(a,b);}function a93c(){const t=['jasmine','sanjo:jasmine','--full-app','8RMGTCW','env','189627VdBmog','14175ytThIX','--packages','packages','inspect','getConfigPath','unit','testAppPath','findProjectDirectory','--driver','port','58722JNTJhq','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','search','2721627JNMBqM','Meteor\x20Settings:\x20','create','warn','filter','exit','(((.+)+)+)+$','settings.json','--env','argv','config','298708qjrEmn','maka\x20test\x20<opts>','notice','driver','driver-package','none','driverPackage','concat','development','toString','isFile','test-packages','--settings','forEach','--driver-package','test','apply','rawLogs','115GPcppV','constructor','fsi','36642gjnNOH','.maka','invokeMeteorCommand','once','utf8','458146zWtruE','join','openSync','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'];a93c=function(){return t;};return a93c();}import a93f from'path';import a93g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a93d;a93e[p(0x1da)](a,'r'),a93g[p(0x1f9)]({'path':a});};Command[a93q(0x1f1)]({'name':a93q(0x209),'mustBeInMakaProject':!![],'validOpts':['once',a93q(0x1e4),a93q(0x1fd),a93q(0x200),a93q(0x1e7),a93q(0x1e0),a93q(0x1cf),a93q(0x1eb),a93q(0x1e5),a93q(0x1e8)],'usage':a93q(0x1fb),'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const r=a93q;try{let c=this[r(0x1d2)][r(0x1e6)](r(0x202));b[r(0x1e0)]&&(c=this[r(0x1d2)][r(0x1e6)](b[r(0x1e0)]));(!b[r(0x1e7)]||!!b[r(0x1d6)])&&(a=a['concat']([r(0x1de)]));b[r(0x1e7)]&&delete b[r(0x1e7)];let d=b[r(0x1fe)]||b[r(0x1fd)]||r(0x1ff);if(d==='none'){const j=JSON['parse'](a93e['readFileSync'](a93f[r(0x1d9)](this[r(0x1d2)][r(0x1e9)](),r(0x1d4),'config.json'),r(0x1d7)));if(j['engines']['test']===r(0x1dc))d=r(0x1dd);else j['engines'][r(0x209)]==='mocha'&&(d='meteortesting:mocha');}if(d==='none')throw r(0x1ed);(!b[r(0x1fe)]||!b[r(0x1fd)])&&(a=a['concat']([r(0x208),d]));const f=a93f[r(0x1d9)](c,r(0x1f6));this['fsi'][r(0x204)](f)?(Log['notice'](r(0x1f0)+f),a=a[r(0x201)]([r(0x206),f])):Log['warn'](r(0x1db)+f);const g=a93f[r(0x1d9)](c,'process.env');this[r(0x1d2)][r(0x204)](g)?(Log[r(0x1fc)]('Node\x20Env\x20Config:\x20'+g),syncSource(g)):Log[r(0x1f2)]('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+g);const h=process[r(0x1f8)]['slice'](0x2)[r(0x1f3)](k=>k!==r(0x1f7))['filter'](k=>k!=='test')[r(0x1f3)](k=>k!==a[0x0]);h[r(0x207)]((k,l)=>{const s=r;(k==='--env'||k===s(0x1ea))&&h['splice'](l,0x2),k===s(0x1e3)&&h['splice'](l,0x1);});const i=b[r(0x1e4)]?r(0x205):'test';this[r(0x1d2)][r(0x1d5)](i,a[r(0x201)](h));}catch(k){console['error'](k),process[r(0x1f4)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a94n=a94d;(function(a,b){const k=a94d,c=a();while(!![]){try{const d=parseInt(k(
|
|
1
|
+
const a94n=a94d;(function(a,b){const k=a94d,c=a();while(!![]){try{const d=parseInt(k(0xbf))/0x1*(-parseInt(k(0xb2))/0x2)+parseInt(k(0xca))/0x3*(-parseInt(k(0xd3))/0x4)+-parseInt(k(0xce))/0x5*(parseInt(k(0xd7))/0x6)+-parseInt(k(0xc9))/0x7*(-parseInt(k(0xb9))/0x8)+parseInt(k(0xd1))/0x9*(parseInt(k(0xd5))/0xa)+-parseInt(k(0xbb))/0xb*(-parseInt(k(0xb3))/0xc)+-parseInt(k(0xae))/0xd*(-parseInt(k(0xd6))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xd0b26));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a94d;if(c){const e=c[l(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const m=a94d;return a94a['toString']()['search'](m(0xd8))[m(0xd2)]()[m(0xaa)](a94a)[m(0xc2)](m(0xd8));});a94a();import{execSync}from'child_process';import a94e from'semver';function a94c(){const p=['platform','System\x27s\x20Meteor\x20Version\x20','4BvucHW','236868WmJNjq','maka\x20version','getGlobalMeteorVersion','node\x20-v','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','error','176ZixKqM','\x20node\x20-v','671gyUBjX','verbose','N/A','create','596184AkCWpD','compareMakaToLatest','meteor','search','Project\x27s\x20Meteor\x20Version\x20','maka\x20v','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','majestic','notice','327859sqeCgh','3ugnvIf','getProjectMeteorVersion','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','7885domDFw','bright','warn','9gzyCoa','toString','1853296anvILM','fsi','3480450aWnfWf','22350188VenvZG','6348FTXCAW','(((.+)+)+)+$','win32','Maka\x20','replace','Project\x27s\x20Meteor\x20Node\x20Version\x20','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','constructor',')\x20to\x20at\x20least\x20meteor\x27s\x20(','version','System\x27s\x20Node\x20Version\x20','13uVJxYJ','apply'];a94c=function(){return p;};return a94c();}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0xa5;let f=c[d];return f;},a94d(a,b);}const pjson={'version':'4.6.19'};Command[a94n(0xbe)]({'name':a94n(0xac),'aliases':['v'],'usage':a94n(0xb4),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':'Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','examples':[a94n(0xc4),'maka\x20version','maka\x20version\x20--verbose'],'description':a94n(0xc6)},async function(a,b){const o=a94n;try{const c=process[o(0xb0)]===o(0xa5)?'meteor.bat':o(0xc1);Log[o(0xc7)](o(0xa6)+pjson[o(0xac)]),await this['fsi'][o(0xc0)]();if(b[o(0xbc)]){await this[o(0xd4)][o(0xc0)](),Log[o(0xcf)]('----------------------System----------------------------');const d=this['fsi'][o(0xb5)]();Log[o(0xcf)]((o(0xb1)+d)[o(0xa7)]('\x0a',''));const f=execSync(c+o(0xba))['toString']()[o(0xa7)](/\r?\n|\r/,'')[o(0xa7)]('v','');Log['bright'](o(0xa9)+f);const g=execSync(o(0xb6))[o(0xd2)]()[o(0xa7)](/\r?\n|\r/,'')[o(0xa7)]('v','');a94e['gt'](f,g)?(Log[o(0xd0)](o(0xad)+g),Log[o(0xd0)](o(0xb7)+g+o(0xab)+f+')')):Log[o(0xcf)](o(0xad)+g);if(this[o(0xd4)]['isMakaProject']()){Log[o(0xcf)]('----------------------Project----------------------------');const h=this[o(0xd4)][o(0xcb)]();a94e['gt'](d,h)?(Log[o(0xd0)](o(0xc3)+h[o(0xa7)]('\x0a','')),Log[o(0xd0)](o(0xcc)+d+'\x22')):Log[o(0xc8)]((o(0xc3)+h)['replace']('\x0a',''));const i=await this[o(0xd4)]['getProjectsMeteorNodeVersion']();i===o(0xbd)?(Log[o(0xd0)](o(0xa8)+i),Log[o(0xd0)](o(0xcd))):Log[o(0xcf)](o(0xa8)+i),Log[o(0xcf)](o(0xc5));}}}catch(j){console[o(0xb8)](j),process['exit'](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -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(0x144))/0x1*(-parseInt(f(0x140))/0x2)+-parseInt(f(0x148))/0x3+parseInt(f(0x139))/0x4*(-parseInt(f(0x146))/0x5)+-parseInt(f(0x13d))/0x6*(parseInt(f(0x142))/0x7)+parseInt(f(0x147))/0x8+-parseInt(f(0x13f))/0x9*(parseInt(f(0x141))/0xa)+parseInt(f(0x13a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x1c1a0));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a[h(0x145)]()[h(0x13b)](h(0x13c))['toString']()[h(0x143)](a95a)[h(0x13b)](h(0x13c));});function a95c(){var i=['1595ltWqCy','50328RWTLQw','610944SomwJN','1996oUeHjV','8139142HmBjol','search','(((.+)+)+)+$','6dsDhhl','apply','9NgpxND','24fiuOJa','226120OVXtxd','248920QldUIR','constructor','17509xWfAww','toString'];a95c=function(){return i;};return a95c();}a95a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x139;var f=c[d];return f;},a95d(a,b);}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var a96i=a96d;(function(a,b){var f=a96d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
2
|
+
var a96i=a96d;(function(a,b){var f=a96d,c=a();while(!![]){try{var d=-parseInt(f(0x113))/0x1+-parseInt(f(0x110))/0x2+-parseInt(f(0x10f))/0x3+parseInt(f(0x112))/0x4*(-parseInt(f(0x109))/0x5)+-parseInt(f(0x10b))/0x6+parseInt(f(0x10a))/0x7*(-parseInt(f(0x114))/0x8)+parseInt(f(0x10e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xc3830));function a96c(){var j=['(((.+)+)+)+$','17725IHijNQ','14blGfer','179982kYZAII','apply','NODE_OPTIONS','20805138bMFAdc','3078576vEuhHB','156744SXHUoO','search','88MmweOn','218261IyhLIn','320216CWpSAF','toString'];a96c=function(){return j;};return a96c();}var a96b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a96d;if(c){var e=c[g(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){var h=a96d;return a96a['toString']()[h(0x111)](h(0x108))[h(0x115)]()['constructor'](a96a)[h(0x111)]('(((.+)+)+)+$');});function a96d(a,b){var c=a96c();return a96d=function(d,e){d=d-0x108;var f=c[d];return f;},a96d(a,b);}a96a(),process['env'][a96i(0x10d)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97x=a97d;(function(a,b){const t=a97d,c=a();while(!![]){try{const d
|
|
1
|
+
const a97x=a97d;(function(a,b){const t=a97d,c=a();while(!![]){try{const d=parseInt(t(0x1a1))/0x1+parseInt(t(0x16c))/0x2*(parseInt(t(0x147))/0x3)+-parseInt(t(0x193))/0x4*(parseInt(t(0x161))/0x5)+parseInt(t(0x169))/0x6+-parseInt(t(0x199))/0x7+parseInt(t(0x1a5))/0x8+-parseInt(t(0x17f))/0x9*(parseInt(t(0x16b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xc1af0));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a97d;if(c){const e=c[u(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const v=a97d;return a97a[v(0x15f)]()[v(0x1a2)]('(((.+)+)+)+$')[v(0x15f)]()[v(0x17e)](a97a)['search'](v(0x175));});a97a();import a97e from'path';import a97f from'cli-table';import{paramCase}from'change-case';import a97g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x145;let f=c[d];return f;},a97d(a,b);}import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a97c(){const J=['bind','4277440OUUHmb','bright','addGenerator\x20requires\x20a\x20Generator\x20instance','Both','noResource','validateMakaProject','_handler','pop','exit','help','root','Server','appPathPrefix','Generator\x20requires\x20a\x20name','notice','getGlobalConfig','call','keys','26844OTwLTA','client','...','length','Location','proGenerators','parent','mustBeInMakaProject','minOptsLength','apply','sort','Generators:','Generating\x20a\x20new\x20','getPro','both','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','push','Client','lib','validateMakaSubscription','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','fsi','Too\x20many\x20arguments','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','toString','To\x20use\x20these\x20pro\x20flags,\x20\x22','5TndNWI','list','filter','match','DARK','_generators','Description','shortDesc','4989822ogozEY','name','2796920apMhed','322CxIRMr','info','Generator\x20requires\x20a\x20handler\x20function','dir','forEach','number','singleLicense','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','colLocAnswer','(((.+)+)+)+$','resourceName','validateParams','setColorMode','chdir','findGenerator','minArgLength','assign','pallet','constructor','27lfcgpx','invoke','tableList','validateMeteorInstall','findProjectDirectory','maxOptsLength','cwd','domainLicense','options','maxArgLength','checkWhere','roles','function','join','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','find','where','includes','server','error','4868012ckzRFJ','split','LIGHT','usage','light','mustHaveMeteorInstalled','3444574hBGSUr','Alias','Too\x20many\x20options','sep','proFlags','addGenerator','To\x20use\x20this\x20generator,\x20\x22','slice','534544QXBXDA','search','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator'];a97c=function(){return J;};return a97c();}let _prevGen='';function inside(a='.',b){const w=a97d,c=process[w(0x185)]();let d=null;try{process[w(0x179)](a),d=b();}finally{process[w(0x179)](c);}return d;}export class Generator extends Tool{[a97x(0x187)];['_generators'];constructor(a,b){const y=a97x;super();if(!a)throw new Error(y(0x18d));if(!a[y(0x16a)])throw new Error(y(0x1b2));if(typeof b!==y(0x18b))throw new Error(y(0x16e));this[y(0x166)]=[],this[y(0x187)]=Object[y(0x17c)]({},a),this[y(0x16a)]=this[y(0x187)]['name'],this[y(0x1ab)]=b[y(0x1a4)](this);}static['create'](a,b,c){const z=a97x;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==z(0x18b))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const d=new Generator(a,b);return c=c||a97g,Object['assign'](d,{'parent':c?.[z(0x187)]?.[z(0x16a)]}),c[z(0x19e)](d),d;}['addGenerator'](a){const A=a97x;if(!(a instanceof Generator))throw new Error(A(0x1a7));this[A(0x166)][A(0x157)](a);}[a97x(0x17a)](a){const B=a97x,b=this['_generators'][B(0x18e)](c=>c[B(0x164)](a));return b;}async[a97x(0x15a)](a,b){const C=a97x,c=this[C(0x17a)](a[0x0]);if(c){const d=c?.[C(0x16a)]||a[0x0],e=c?.[C(0x14d)]||'',f=Object[C(0x146)](b),g=await this[C(0x15c)][C(0x154)]();!g&&(Log['error'](C(0x156)),process['exit'](0x1));const h=!g?.[C(0x18a)][C(0x190)](C(0x172))&&!g?.[C(0x18a)]['includes'](C(0x186)),i=g?.['proGenerators'][C(0x190)](d)||g?.[C(0x14c)]['includes'](e);if(i&&h)throw C(0x19f)+d+C(0x15b);if(f[C(0x14a)]>0x0){const j=g?.[C(0x19d)][C(0x163)](k=>f[C(0x190)](k));if(j&&j['length']>0x0&&h)throw C(0x160)+j?.[C(0x18c)](',\x20')+C(0x15b);}}}async[a97x(0x180)](a,b){const D=a97x,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[D(0x187)],f=await this['fsi'][D(0x1b4)](),g=f[D(0x17d)]===D(0x197)?ColorMode[D(0x195)]:ColorMode[D(0x165)];Log[D(0x178)](g);try{await this['validateMakaSubscription'](a,b);}catch(j){Log['error'](j),process[D(0x1ad)](0x1);}const h=a[D(0x1a0)]();b['resourceName']=h[0x0],Log[D(0x16d)](D(0x153)+this[D(0x16a)]+D(0x149));const i=b[D(0x1ae)]||b['h'];try{if((a[0x0]===_prevGen||a[D(0x14a)]===0x0)&&i)throw new UsageError();if(this[D(0x187)][D(0x14e)]){const k=this[D(0x1aa)]();if(!k)throw new MustBeInProjectError();}if(this['options'][D(0x198)]){const l=this[D(0x182)]();if(!l)throw new NoMeteorFoundError();}if(typeof this['options'][D(0x17b)]===D(0x171)){if(a[D(0x14a)]<this[D(0x187)][D(0x17b)]){Log[D(0x192)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[D(0x187)][D(0x188)]===D(0x171)){if(a[D(0x14a)]>this[D(0x187)]['maxArgLength']){Log['error'](D(0x15d));throw new UsageError();}}if(typeof this['options'][D(0x14f)]==='number'){if(Object[D(0x146)](b)[D(0x14a)]<this['options'][D(0x14f)]){Log[D(0x192)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[D(0x187)][D(0x184)]===D(0x171)){if(Object[D(0x146)](b)[D(0x14a)]>=this[D(0x187)][D(0x184)]){Log[D(0x192)](D(0x19b));throw new UsageError();}}await this[D(0x177)](a,b,this[D(0x187)]);if(!b['resourceName']&&!this[D(0x187)][D(0x1a9)]){Log[D(0x192)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(m){Log[D(0x196)](description,examples,usage,c,requiredOpts,d);if(m instanceof UsageError)this[D(0x166)][D(0x14a)]>0x0&&i&&(Log[D(0x1b3)](D(0x152)),this[D(0x181)](this['_generators']));else{if(m instanceof MustBeInProjectError)Log['error'](D(0x1a3));else{if(m instanceof NoMeteorFoundError)Log[D(0x192)](D(0x173)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(m instanceof NoMeteorAppFoundError)Log[D(0x192)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw m;}}}process[D(0x1ad)](0x1);}return new Promise(n=>{const E=D;inside(b[E(0x185)],async()=>{const F=E;try{if(!b[F(0x1af)]&&!this[F(0x15c)][F(0x183)]())throw new MustBeInProjectError();const o=b[F(0x176)]?.['replace'](/\\/g,'/')[F(0x194)]('/');!b[F(0x16f)]&&(o?.[F(0x14a)]>0x1?(b[F(0x176)]=o[F(0x1ac)](),h[0x0]=b['resourceName'],b[F(0x16f)]=o['map'](p=>{return paramCase(p);})[F(0x18c)](a97e[F(0x19c)])):b[F(0x16f)]='');if(this[F(0x187)][F(0x189)]){if(!b[F(0x18f)]){const q={'type':F(0x162),'name':F(0x174),'message':F(0x14b),'choices':[{'name':F(0x158),'value':'client'},{'name':F(0x1b0),'value':'server'},{'name':F(0x1a8),'value':'both'}]},{colLocAnswer:r}=await Actions[F(0x187)](q);r?b[F(0x18f)]=r:b[F(0x18f)]=F(0x155);}const p=[F(0x155),F(0x148),F(0x191)];if(!p[F(0x190)](b[F(0x18f)])){Log[F(0x192)](F(0x15e));throw new UsageError();}switch(b[F(0x18f)]){case'both':b[F(0x1b1)]=F(0x159);break;case F(0x191):b[F(0x1b1)]=F(0x191);break;case'client':b['appPathPrefix']='client';break;default:b[F(0x1b1)]='';}}n(this[F(0x1ab)][F(0x145)](this,h,b));}catch(s){console[F(0x192)](s);}});});}['listGenerators'](){const G=a97x;this[G(0x181)](this[G(0x166)]);}[a97x(0x181)](a){const H=a97x,b=new a97f({});b[H(0x157)](['Name',H(0x19a),H(0x167)]),a[H(0x151)]()[H(0x170)](c=>{const I=H;b[I(0x157)]([c[I(0x16a)],c['aliases'](),c[I(0x168)]()]);}),Log[H(0x1a6)](b[H(0x15f)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a98d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0xc1))/0x1*(parseInt(f(0xc7))/0x2)+parseInt(f(0xc8))/0x3+-parseInt(f(0xc5))/0x4*(-parseInt(f(0xcb))/0x5)+parseInt(f(0xca))/0x6*(parseInt(f(0xcc))/0x7)+parseInt(f(0xc4))/0x8+parseInt(f(0xc3))/0x9+-parseInt(f(0xc2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xe2ca6));var a98b=(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;};}()),a98a=a98b(this,function(){var g=a98d;return a98a[g(0xc0)]()['search'](g(0xc6))[g(0xc0)]()[g(0xc9)](a98a)[g(0xcd)](g(0xc6));});a98a();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';function a98c(){var h=['search','toString','7103SOjMgK','33247830FZkiit','2313243yHpqhT','13076600ojNmhl','93572LVwtYN','(((.+)+)+)+$','394CmVYzN','2425356HHVPck','constructor','3462KZhiuF','5ODOtdy','1589ErunZk'];a98c=function(){return h;};return a98c();}import'./service.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0xc0;var f=c[d];return f;},a98d(a,b);}import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xb8;let f=c[d];return f;},a99d(a,b);}const a99z=a99d;(function(a,b){const w=a99d,c=a();while(!![]){try{const d=-parseInt(w(0xef))/0x1+-parseInt(w(0xcc))/0x2+-parseInt(w(0xd0))/0x3+-parseInt(w(0x10a))/0x4+parseInt(w(0x10e))/0x5+-parseInt(w(0xf9))/0x6+-parseInt(w(0xe1))/0x7*(-parseInt(w(0xee))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x3e118));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a99d;if(c){const e=c[x(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const y=a99d;return a99a[y(0x101)]()['search'](y(0xc6))[y(0x101)]()[y(0xe5)](a99a)[y(0x105)](y(0xc6));});a99a();function a99c(){const C=['/graphql/resolvers','GraphQL','Verifying\x20meteor\x20package\x20requirements\x20...','TypeDefs\x20}\x20from\x20\x27','api/typeDefs.js','engines','collection','publications.','No\x20API\x20boundaries\x20selected','(((.+)+)+)+$','invoke','options','/graphql/typeDefs','injectIntoFile','API\x20boundaries\x20to\x20create','768250MQiAPF','const','rewriteDestinationPathForEngine','pathFromApp','817614ifgvHW','startup','graphql','imports','create','notice','apply','Fixtures','error','template','test','api/resolvers.js','getProjectConfig','Resolvers);\x0a\x0a','mdg:validated-method','api/publications.js','typeDefs.','2482795peNOqw','if\x20\x5c(typeList','Publications','register-','constructor','api/fixtures.js','withMethods','push','fixtures.','withGql','server','tsx','findGenerator','32cjbVCV','242841ZtDUgI','length','fsi','\x0aimport\x20{\x20resolvers\x20as\x20','withValue','apiAnswers','-api.','resolvers.','mongo','rest-api.','479304mGZFfd','api','withPubs','maka:rest','withRest','checkMeteorPackage','withFixtures','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','toString','import\x20{\x20typeDefs\x20as\x20','Resolvers\x20}\x20from\x20\x27','installMeteorPackage','search','typeList.push(','dir','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','\x27;\x0a','1555452blXoOf','rest','TypeDefs);\x0a','includes','1018715NXqZky','injectAtBeginningOfFile','exit','\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','/imports/api','index.','REST\x20API'];a99c=function(){return C;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99z(0xd4)]({'name':a99z(0xfa),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a99z(0x108),'validOpts':[a99z(0x107)],'examples':['maka\x20g:api\x20Todos'],'description':a99z(0xb9)},async function(a,b){const A=a99z;try{const c=this[A(0xf1)][A(0xdc)](),d=[{'name':'RPC\x20(Methods)','value':A(0xe7)},{'name':A(0xd7),'value':A(0xff)},{'name':A(0xe3),'value':A(0xfb)}];c[A(0xc2)][A(0xfa)]==='rest'&&d[A(0xe8)]({'name':A(0xbc),'value':A(0xfd)});c['engines'][A(0xd2)]==='apollo'&&d[A(0xe8)]({'name':A(0xbe),'value':'withGql'});const f={'type':'checkbox','name':A(0xf4),'message':A(0xcb),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0xc8)](f);g[A(0xf0)]===0x0&&(Log[A(0xd8)](A(0xc5)),process[A(0xb8)](0x1)),this[A(0xf1)][A(0xf3)](c,async()=>{const B=A,h=this[B(0xf1)][B(0xcf)]({}),i=b['resourceName'],j=paramCase(i),k=camelCase(i),l=b[B(0x107)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0xfa)],'graphql':c[B(0xc2)]['graphql'],'test':c[B(0xc2)]['test'],'noRename':!![],'withPubs':g['includes'](B(0xfb)),'withFixtures':g[B(0x10d)](B(0xff)),'withMethods':g[B(0x10d)](B(0xe7)),'withRest':g[B(0x10d)](B(0xfd))};let n='js';c[B(0xc2)]['js']===B(0xec)&&(n='ts');(!this[B(0xf1)][B(0xfe)](B(0xfc))||!this['fsi'][B(0xfe)]('maka:check')||!this[B(0xf1)]['checkMeteorPackage']('ddp-rate-limiter')||!this[B(0xf1)][B(0xfe)](B(0xde))||!this[B(0xf1)][B(0xfe)](B(0xf7)))&&(Log[B(0xd5)](B(0xbf)),await this[B(0xf1)][B(0x104)](B(0x100),{'cwd':h}));const o=a99e[B(0xed)](B(0xc3));o&&await o[B(0xc7)]([j],{'config':c,'where':B(0xeb)});c['engines']['api']===B(0x10b)&&(m[B(0xfd)]&&this['fsi']['template']({'srcPath':'api/api.js','destPath':this[B(0xf1)][B(0xcf)]({'pathParts':[B(0xd3),B(0xfa),b[B(0x107)],j,B(0xf8)+n]}),'context':m,'config':c}));m[B(0xe7)]&&this[B(0xf1)]['template']({'srcPath':'api/methods.js','destPath':this[B(0xf1)][B(0xcf)]({'pathParts':['imports',B(0xfa),b[B(0x107)],j,'rpc-methods.'+n]}),'context':m,'config':c});m['withFixtures']&&this[B(0xf1)][B(0xd9)]({'srcPath':B(0xe6),'destPath':this[B(0xf1)][B(0xcf)]({'pathParts':[B(0xd3),B(0xfa),b[B(0x107)],j,B(0xe9)+n]}),'context':m,'config':c});c['engines'][B(0xda)]!=='none'&&this[B(0xf1)][B(0xd9)]({'srcPath':'api/tests.js','destPath':this[B(0xf1)][B(0xcf)]({'pathParts':[B(0xd3),B(0xfa),b[B(0x107)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m[B(0xfb)]&&this[B(0xf1)][B(0xd9)]({'srcPath':B(0xdf),'destPath':this[B(0xf1)][B(0xcf)]({'pathParts':[B(0xd3),B(0xfa),b[B(0x107)],j,B(0xc4)+n]}),'context':m,'config':c});if(c[B(0xc2)][B(0xd2)]==='apollo'){if(g[B(0x10d)](B(0xea))){const q=this['fsi'][B(0xcf)]({'pathParts':[B(0xd3),B(0xd1),B(0xeb),B(0xbb)+c[B(0xc2)]['js']]}),r=this[B(0xf1)][B(0xce)]({'pathParts':[q],'config':c}),s=this[B(0xf1)][B(0xcf)]({'pathParts':['imports',B(0xfa),b[B(0x107)],j,'graphql',B(0xe0)+n]}),t=B(0xba)+l+j+B(0xc9);this[B(0xf1)][B(0xd9)]({'srcPath':B(0xc1),'destPath':s,'context':m,'config':c}),this[B(0xf1)][B(0x10f)]({'filePath':r,'content':B(0x102)+k+B(0xc0)+t+B(0x109)}),this[B(0xf1)][B(0xca)]({'filePath':r,'content':B(0x106)+k+B(0x10c),'begin':B(0xcd),'end':B(0xe2)});const u=this['fsi'][B(0xcf)]({'pathParts':[B(0xd3),'api',b['dir'],j,B(0xd2),B(0xf6)+n]}),v=B(0xba)+l+j+B(0xbd);this[B(0xf1)][B(0xd9)]({'srcPath':B(0xdb),'destPath':u,'context':m,'config':c}),this[B(0xf1)][B(0x10f)]({'filePath':r,'content':B(0xf2)+k+B(0x103)+v+'\x27;'}),this['fsi'][B(0xca)]({'filePath':r,'content':'resolverList.push('+k+B(0xdd),'begin':'const','end':B(0xe2)});}}this[B(0xf1)][B(0xd9)]({'srcPath':'api/register-api.js','destPath':this[B(0xf1)]['pathFromApp']({'pathParts':[B(0xd3),'startup',B(0xeb),B(0xe4)+j+B(0xf5)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0xf1)]['pathFromApp']({'pathParts':[B(0xd3),B(0xd1),B(0xeb),B(0xbb)+c['engines']['js']]});this['fsi']['injectAtEndOfFile']({'filePath':p,'content':'import\x20\x27./register-'+j+'-api\x27;'});});}catch(h){console['error'](h),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100n=a100d;(function(a,b){const k=a100d,c=a();while(!![]){try{const d=parseInt(k(0x100))/0x1+-parseInt(k(0xf6))/0x2+-parseInt(k(0x10c))/0x3+parseInt(k(0xf1))/0x4+parseInt(k(0xe2))/0x5*(-parseInt(k(0x106))/0x6)+-parseInt(k(0xfc))/0x7+parseInt(k(0x103))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xddf75));function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xe1;let f=c[d];return f;},a100d(a,b);}const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a100d;if(c){const e=c[l(0xef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const m=a100d;return a100a[m(0xed)]()['search'](m(0xe8))['toString']()[m(0xe7)](a100a)[m(0xeb)]('(((.+)+)+)+$');});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a100c(){const q=['appPathPrefix','toString','where','apply','test','5189048YHqDJq','error','injectAtEndOfFile','maka:check','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','115058zosHsz','checkMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','resourceName','engines','pathFromApp','7909846WqqwNM','collection/tests.js','fsi','startup','1500136ZEkNtF','maka\x20g:collection\x20todos','notice','14218112pYOcpw','mongo','collections','6ZIiXbR','imports','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','collection','tsx','none','3803061bcFUAV','import\x20\x27./collections','col','6051475fYhnhz','create','\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','installMeteorPackage','dir','constructor','(((.+)+)+)+$','template','getProjectConfig','search'];a100c=function(){return q;};return a100c();}Generator[a100n(0xe3)]({'name':a100n(0x109),'aliases':[a100n(0xe1)],'usage':a100n(0x108),'checkWhere':!![],'shortDesc':a100n(0xf5),'validOpts':['dir',a100n(0xee)],'description':a100n(0xe4),'examples':[a100n(0x101)]},async function(a,b){const o=a100n;try{const c=this[o(0xfe)][o(0xfb)]({}),d=this[o(0xfe)][o(0xea)]();this[o(0xfe)]['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0xf9)]),g={'name':pascalCase(b[p(0xf9)]),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0xee)],'test':d[p(0xfa)]['test'],'noRename':!![]};let h='js';d[p(0xfa)]['js']===p(0x10a)&&(h='ts');!this[p(0xfe)][p(0xf7)](p(0x104))&&(Log[p(0x102)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[p(0xfe)][p(0xe5)](p(0x104),{'cwd':c}));!this['fsi'][p(0xf7)](p(0xf4))&&(Log[p(0x102)](p(0xf8)),await this[p(0xfe)][p(0xe5)](p(0xf4),{'cwd':c}));this[p(0xfe)][p(0xe9)]({'srcPath':'collection/collection.js','destPath':this[p(0xfe)][p(0xfb)]({'pathParts':[p(0x107),'startup',b['appPathPrefix'],'collections',b[p(0xe6)],f+'.'+h]}),'context':g,'config':d});d['engines'][p(0xf0)]!==p(0x10b)&&this[p(0xfe)][p(0xe9)]({'srcPath':p(0xfd),'destPath':this['fsi'][p(0xfb)]({'pathParts':[p(0x107),'startup',b[p(0xec)],p(0x105),b[p(0xe6)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b[p(0xe6)]?'/'+b['dir']+'/':'/',j=this[p(0xfe)]['pathFromApp']({'pathParts':['imports',p(0xff),b[p(0xec)],'index.'+d[p(0xfa)]['js']]});this[p(0xfe)][p(0xf3)]({'filePath':j,'content':p(0x10d)+i+f+'\x27;'});});}catch(f){Log[o(0xf2)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101q=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d
|
|
1
|
+
const a101q=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=-parseInt(n(0x101))/0x1+parseInt(n(0x125))/0x2*(-parseInt(n(0xf2))/0x3)+parseInt(n(0x129))/0x4*(parseInt(n(0x123))/0x5)+-parseInt(n(0x105))/0x6*(parseInt(n(0x124))/0x7)+parseInt(n(0x11e))/0x8+parseInt(n(0x11d))/0x9+parseInt(n(0x104))/0xa*(parseInt(n(0xf6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xb5303));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a101d;if(c){const e=c[o(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const p=a101d;return a101a[p(0x10f)]()[p(0x112)](p(0x113))[p(0x10f)]()[p(0xf3)](a101a)['search'](p(0x113));});a101a();function a101c(){const t=['Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','10929447gIiiuq','5604304DVxGuP','assign','injectAtEndOfFile','layouts','checkNpmPackage','15DOWILf','182ShFhUO','82zeESXp','.css','withValue','resourceName','1160860oaVmOH','comp','setTemplate','theme','templates.js','ramda','template','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','fileName','baseDir','test','components','/imports/ui/components','features','react','startup','root','apply','\x27;\x0a','export\x20\x27','export\x20{\x20','engines','pathFromApp','6792zVwBuU','constructor','getProjectConfig','dir','532389Ayjitm','relative','withTranslations','findAppDirectory','true','css','hooks','string','reflux','installNpmPackage','rewriteDestinationPathForEngine','1356066RSVDxu','none','.tests.js','30klkKsw','170706YCKPyY','imports','graphql','import\x20\x27./','injectAtBeginningOfFile','test/test.js','pathFromProject','template/template.css','create','/imports/ui/','toString','client','fsi','search','(((.+)+)+)+$','className','warn','pages','cssCaseName','component/component.js','lib','ssr','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator'];a101c=function(){return t;};return a101c();}function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0xea;let f=c[d];return f;},a101d(a,b);}import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a101q(0x12a)];Generator[a101q(0x10d)]({'name':'component','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a101q(0x130),'validOpts':[{'name':a101q(0x132),'values':[a101q(0xfc),a101q(0x134),a101q(0x116),a101q(0x121)]}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a101q;try{const c=this['fsi'][r(0xf9)](),d=b[r(0x132)]?r(0x10e)+b['baseDir']:r(0x135),f=this[r(0x111)][r(0xf1)]({'pathParts':[d,b[r(0xf5)],paramCase(b['resourceName']),paramCase(b[r(0x128)])]}),g=await this[r(0x111)][r(0xf4)]();this['fsi'][r(0x127)](g,async()=>{const s=r;typeof g['template']['test']===s(0xfd)&&(g['template']['test']=g['template']['test']===s(0xfa)?!![]:![],this[s(0x111)][s(0x12b)](s(0x133),g[s(0x12f)][s(0x133)]));typeof g['template'][s(0xfb)]===s(0xfd)&&(g[s(0x12f)][s(0xfb)]=g['template'][s(0xfb)]===s(0xfa)?!![]:![],this['fsi']['setTemplate'](s(0xfb),g[s(0x12f)]['css']));typeof g[s(0x12f)]['js']===s(0xfd)&&(g[s(0x12f)]['js']=g['template']['js']===s(0xfa)?!![]:![],this[s(0x111)][s(0x12b)]('js',g[s(0x12f)]['js']));!g[s(0x136)]&&(g['features']={});!b[s(0xeb)]&&!this[s(0x111)][s(0x122)](s(0x12e))&&(Log[s(0x115)](s(0x11c)),await this['fsi'][s(0xff)](s(0x12e),{'cwd':c}));if(!b[s(0xeb)]&&!this[s(0x111)][s(0x122)](s(0x137))){Log['error'](s(0x11b));return;}const h={'name':pascalCase(b[s(0x128)]),'myPath':a101e[s(0xf7)](this[s(0x111)][s(0x10b)]({}),f),'cssCaseName':paramCase(b[s(0x128)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x128)]),'fileName':paramCase(b[s(0x128)]),'graphql':g['engines'][s(0x107)],'features':g[s(0x136)],'client':g[s(0xf0)][s(0x110)],'api':g[s(0xf0)]['api'],'ssr':g[s(0xf0)]['ssr'],'test':g[s(0xf0)][s(0x133)],'theme':g[s(0xf0)][s(0x12c)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x136)][s(0xf8)]};this[s(0x111)][s(0x12f)]({'srcPath':s(0x118),'destPath':f+'.js','context':h,'framework':s(0x137),'config':g});g['engines'][s(0x133)]!==s(0x102)&&this['fsi'][s(0x12f)]({'srcPath':s(0x10a),'destPath':f+s(0x103),'context':h,'framework':s(0x137),'config':g});g[s(0x12f)][s(0xfb)]&&(this['fsi'][s(0x12f)]({'srcPath':s(0x10c),'destPath':f+s(0x126),'context':Object[s(0x11f)]({},h,{'className':paramCase(b[s(0x128)])}),'config':g}),this[s(0x111)][s(0x109)]({'filePath':f+'.'+g[s(0xf0)]['js'],'content':s(0x108)+h[s(0x117)]+'.'+g[s(0xf0)][s(0xfb)]+'\x27;'}));const i=b[s(0xf5)]?'/'+b[s(0xf5)]+'/':'/',j=''+d+i+h[s(0x131)]+'/'+h['fileName'];let k;if(g[s(0xf0)][s(0x11a)]===s(0xfa)){const l=this[s(0x111)]['pathFromApp']({'pathParts':[s(0x106),s(0xea),s(0x119),s(0x12d)]});k=this[s(0x111)][s(0x100)]({'pathParts':[l],'config':g});}else{const m=this[s(0x111)][s(0xf1)]({'pathParts':['imports','startup','client',s(0x12d)]});k=this[s(0x111)][s(0x100)]({'pathParts':[m],'config':g});}g[s(0xf0)][s(0x110)]===s(0x137)||g[s(0xf0)][s(0x110)]===s(0xfe)?this[s(0x111)][s(0x120)]({'filePath':k,'content':s(0xef)+h[s(0x114)]+'\x20}\x20from\x20\x27'+j+s(0xed)}):this[s(0x111)][s(0x120)]({'filePath':k,'content':s(0xee)+j+'.'+g[s(0xf0)]['js']+s(0xed)});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x1fb))/0x1*(parseInt(h(0x1e5))/0x2)+parseInt(h(0x1e3))/0x3+-parseInt(h(0x1f4))/0x4+-parseInt(h(0x1e4))/0x5*(parseInt(h(0x1f0))/0x6)+-parseInt(h(0x1f2))/0x7+parseInt(h(0x204))/0x8+-parseInt(h(0x1f3))/0x9*(parseInt(h(0x1e7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x4f13e));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x1ec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x1ef)]()[j(0x1fd)]('(((.+)+)+)+$')['toString']()[j(0x1e9)](a102a)[j(0x1fd)](j(0x1e6));});function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a102d(a,b);}a102a();import{Generator}from'../generator.js';function a102c(){const n=['resourceName','toString','30HshyOn','prod','669662CcNUaL','185301YoqfNs','2472176qYIPyR','create','getProjectConfig','dev','config','appName','maka\x20{generate,\x20g}:{config}\x20<name>','198811dyyOrR','fsi','search','Generate\x20configuration\x20settings.','development','maka\x20g:config\x20production','production','template','settings.json','2947352mwMZzP','1882455MIvPho','129435mfWkxm','4JfNCfT','(((.+)+)+)+$','110BIMJxD','ubuntu','constructor','isDocker','pathFromProject','apply','withValue'];a102c=function(){return n;};return a102c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x1f5)]({'name':'config','usage':a102k(0x1fa),'shortDesc':a102k(0x1fe),'validOpts':[a102k(0x1ea)],'examples':[a102k(0x200)]},function(a,b){const l=a102k,c=this[l(0x1fc)][l(0x1f6)]();this['fsi'][l(0x1ed)](c,async()=>{const m=l,d={'app':c[m(0x1f9)],'appFileCase':paramCase(c[m(0x1f9)]),'name':pascalCase(b[m(0x1ee)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x1ee)]),'userName':m(0x1e8),'isDocker':b[m(0x1ea)]};let e=b[m(0x1ee)];if(e===m(0x1f7))e=m(0x1ff);else e===m(0x1f1)&&(e=m(0x201));const f=this['fsi']['pathFromProject']({'pathParts':[m(0x1f8),e,m(0x203)]});this[m(0x1fc)][m(0x202)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x1ea)]){const g=this[m(0x1fc)][m(0x1eb)]({'pathParts':[m(0x1f8),e,'process.env']});this['fsi'][m(0x202)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103m=a103d;
|
|
1
|
+
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=parseInt(j(0xcd))/0x1*(-parseInt(j(0xa0))/0x2)+parseInt(j(0xc2))/0x3*(-parseInt(j(0xa3))/0x4)+parseInt(j(0xb5))/0x5*(parseInt(j(0x9f))/0x6)+parseInt(j(0xce))/0x7*(-parseInt(j(0xc0))/0x8)+-parseInt(j(0xc4))/0x9+parseInt(j(0xb6))/0xa*(parseInt(j(0xbf))/0xb)+parseInt(j(0xcf))/0xc*(parseInt(j(0xca))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x55109));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0xb4)]()[l(0xc3)](l(0xa2))[l(0xb4)]()[l(0xb1)](a103a)[l(0xc3)](l(0xa2));});a103a();function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x9c;let f=c[d];return f;},a103d(a,b);}function a103c(){const p=['Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','import\x20\x27./register-','constructor','installNpmPackage','type','toString','5pUoJyf','290RfPCib','-dbc.','dbc/register-dbc.js','server','resourceName','maka\x20g:dbc\x20todos\x20--type=sqlite','warn','-dbc\x27;','mssql','100221qEqtWq','3823448OQdcWk','injectAtEndOfFile','3pWxvZU','search','3728799lBChqA','dbc','pgsql','index.','template','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','30251CgDAye','apply','checkNpmPackage','1AZvMdv','7tCzHRK','7404jXrDEd','fsi','conn.','dbc/config.js','pathFromApp','create','tsx','3006186JicfZR','708430POxTqQ','sqlite','(((.+)+)+)+$','2424508iRlnTF','maka\x20g:dbc\x20azure\x20--type=mssql','error','maka\x20g:dbc\x20geoserver\x20--type=pgsql','startup','dir','imports','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','better-sqlite3','withValue','engines'];a103c=function(){return p;};return a103c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a103m(0x9d)]({'name':'dbc','usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a103m(0xab),'validOpts':['dir'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103m(0xb3),'values':[a103m(0xc6),a103m(0xbe),a103m(0xa1)]}],'examples':[a103m(0xa6),a103m(0xa4),a103m(0xbb)]},async function(a,b){const n=a103m;try{const c=await this['fsi']['getProjectConfig'](),d=this[n(0xd0)][n(0x9c)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[n(0xba)]),'fileName':paramCase(b[n(0xba)]),'camelCase':camelCase(b[n(0xba)]),'type':b[n(0xb3)],'engine':c['engines']['js'],'noRename':!![]};this[n(0xd0)][n(0xad)](c,async()=>{const o=n;let h='js';c[o(0xae)]['js']===o(0x9e)&&(h='ts');b[o(0xb3)]===o(0xc6)&&!this[o(0xd0)][o(0xcc)]('pg')&&(Log[o(0xbc)](o(0xaf)),await this[o(0xd0)][o(0xb2)]('pg',{'cwd':d}));b[o(0xb3)]===o(0xbe)&&!this['fsi'][o(0xcc)](o(0xbe))&&(Log[o(0xbc)](o(0xc9)),await this[o(0xd0)][o(0xb2)](o(0xbe),{'cwd':d}));b['type']===o(0xa1)&&!this[o(0xd0)][o(0xcc)](o(0xac))&&(Log[o(0xbc)](o(0xaa)),await this[o(0xd0)]['installNpmPackage'](o(0xac),{'cwd':d}));this[o(0xd0)][o(0xc8)]({'srcPath':o(0xd2),'destPath':this[o(0xd0)]['pathFromApp']({'pathParts':[o(0xa9),o(0xa7),o(0xb9),o(0xc5),b[o(0xa8)],f,'config.'+h]}),'context':g,'config':c}),this['fsi'][o(0xc8)]({'srcPath':'dbc/conn.js','destPath':this[o(0xd0)]['pathFromApp']({'pathParts':['imports',o(0xa7),'server','dbc',b[o(0xa8)],f,o(0xd1)+h]}),'context':g,'config':c}),this[o(0xd0)][o(0xc8)]({'srcPath':o(0xb8),'destPath':this[o(0xd0)][o(0x9c)]({'pathParts':[o(0xa9),o(0xa7),o(0xb9),'register-'+f+o(0xb7)+h]}),'context':g,'config':c});const i=this[o(0xd0)][o(0x9c)]({'pathParts':[o(0xa9),o(0xa7),'server',o(0xc7)+c[o(0xae)]['js']]});this[o(0xd0)][o(0xc1)]({'filePath':i,'content':o(0xb0)+f+o(0xbd)});});}catch(h){Log[n(0xa5)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104i=a104d;function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xd6;let f=c[d];return f;},a104d(a,b);}(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0xde))/0x1+-parseInt(f(0xf3))/0x2*(-parseInt(f(0xf1))/0x3)+parseInt(f(0xea))/0x4+-parseInt(f(0xd7))/0x5*(-parseInt(f(0xf6))/0x6)+-parseInt(f(0xe6))/0x7*(-parseInt(f(0xdd))/0x8)+parseInt(f(0xe0))/0x9*(parseInt(f(0xd9))/0xa)+-parseInt(f(0xf0))/0xb*(parseInt(f(0xda))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x463bf));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0xe1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0xdc)]()['search'](h(0xec))[h(0xdc)]()[h(0xe4)](a104a)['search'](h(0xec));});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a104c(){const l=['380RmCyIs','77148yLexJP','findProjectDirectory','toString','248kYqyCZ','409343usqhvO','template','110844yMmYAj','apply','maka\x20{generate,\x20g}:dockerfile','Generate\x20an\x20updated\x20dockerfile','constructor','docker/Dockerfile','107667HbrtAV','maka\x20g:dockerfile','withValue','join','1018908LWmKsp','getProjectConfig','(((.+)+)+)+$','Dockerfile','dockerfile','cert','3223rqajRK','3NmeOeg','app.tar.gz','89966eMgDHV','isFile','error','119424onqZfa','create','130yzNcIq','fsi'];a104c=function(){return l;};return a104c();}import a104e from'path';Generator[a104i(0xd6)]({'name':a104i(0xee),'usage':a104i(0xe2),'shortDesc':a104i(0xe3),'validOpts':[],'noResource':!![],'examples':[a104i(0xe7)]},async function(){const j=a104i;try{const a=await this[j(0xd8)][j(0xeb)](),b=await this[j(0xd8)]['getGlobalConfig'](),c=this[j(0xd8)][j(0xdb)]();this[j(0xd8)][j(0xe8)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a104e['join'](c,'app'),'bundlePath':a104e['join'](c,'build',k(0xf2)),'useCert':this['fsi'][k(0xf4)](b[k(0xef)])};this['fsi'][k(0xdf)]({'srcPath':k(0xe5),'destPath':a104e[k(0xe9)](c,k(0xed)),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0xf5)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a105c(){const
|
|
1
|
+
const a105r=a105d;function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x133;let f=c[d];return f;},a105d(a,b);}(function(a,b){const o=a105d,c=a();while(!![]){try{const d=-parseInt(o(0x172))/0x1+parseInt(o(0x13c))/0x2*(-parseInt(o(0x13d))/0x3)+-parseInt(o(0x155))/0x4+parseInt(o(0x148))/0x5+parseInt(o(0x164))/0x6+-parseInt(o(0x160))/0x7*(-parseInt(o(0x16e))/0x8)+parseInt(o(0x146))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x7ca5d));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a['toString']()[q(0x154)](q(0x135))['toString']()[q(0x15c)](a105a)['search']('(((.+)+)+)+$');});a105a();function a105c(){const u=['358096YRzjrZ','string','fsi','.css','pathFromApp','export\x20{\x20','/imports/ui/hooks','constructor','hooks','components','pages','114611MfhbqT','client','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','setTemplate','3137964iDxUbF','pathFromProject','template','maka\x20g:hook\x20cool-hook','true','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','@apollo/client\x20isomorphic-fetch','withValue','startup','baseDir','304BjTARh','injectAtEndOfFile','none','layouts','971247qSzFkj','checkNpmPackage','\x27;\x0a','hook','.app-tests.js','test/test.js','imports','rewriteDestinationPathForEngine','(((.+)+)+)+$','css','theme','installNpmPackage','ssr','error','engines','616472kJDaHw','6TZLitQ','injectAtBeginningOfFile','apollo','\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','features','graphql','fileName','templates.js','react','5781951bRZQBj','hook/hook.js','2000965lufXXN','notice','resourceName','import\x20\x27./','create','dir','.js','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','apply','lib','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','cssCaseName','search'];a105c=function(){return u;};return a105c();}import a105e from'path';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[a105r(0x14c)]({'name':a105r(0x175),'aliases':['h'],'checkWhere':![],'usage':a105r(0x14f),'shortDesc':a105r(0x152),'validOpts':[{'name':a105r(0x16d),'values':[a105r(0x15d),a105r(0x15e),a105r(0x15f),a105r(0x171)]}],'examples':[a105r(0x167)],'description':a105r(0x140)},async function(a,b){const s=a105r;Log[s(0x149)]('Creating\x20'+b[s(0x14a)]+'\x20hook...');try{const c=this[s(0x157)][s(0x173)](s(0x145));if(!c){Log['error'](s(0x169));throw new UsageError();}const d=this['fsi'][s(0x159)](b),f=b[s(0x16d)]?'/imports/ui/'+b[s(0x16d)]:s(0x15b),g=this[s(0x157)]['pathFromApp']({'pathParts':[f,b[s(0x14d)],paramCase(b[s(0x14a)]),paramCase(b[s(0x14a)])]}),h=await this['fsi']['getProjectConfig']();this[s(0x157)][s(0x16b)](h,async()=>{const t=s;typeof h['template']['css']===t(0x156)&&(h[t(0x166)][t(0x136)]=h[t(0x166)][t(0x136)]==='true'?!![]:![],this[t(0x157)][t(0x163)](t(0x136),h[t(0x166)][t(0x136)]));h[t(0x13b)][t(0x142)]===t(0x13f)&&!this['fsi'][t(0x173)]('@apollo/client')&&(Log['warn'](t(0x162)),await this[t(0x157)][t(0x138)](t(0x16a),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x14a)]),'camelCaseName':camelCase(b[t(0x14a)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0x14a)]),'graphql':h[t(0x13b)]['graphql'],'theme':h[t(0x13b)][t(0x137)],'features':h[t(0x141)],'myPath':a105e['relative'](this[t(0x157)][t(0x165)]({}),g),'fileName':paramCase(b[t(0x14a)]),'isComponent':![],'isLayout':![],'withTranslations':h['features']['withTranslations']};this[t(0x157)][t(0x166)]({'srcPath':t(0x147),'destPath':g+t(0x14e),'context':i,'config':h,'framework':'react'});h[t(0x166)][t(0x136)]&&(this[t(0x157)][t(0x166)]({'srcPath':'template/template.css','destPath':g+t(0x158),'context':Object['assign']({},i,{'className':i[t(0x153)]}),'config':h}),this['fsi'][t(0x13e)]({'filePath':g+'.'+h[t(0x13b)]['js'],'content':t(0x14b)+i[t(0x143)]+'.'+h[t(0x13b)][t(0x136)]+'\x27;'}));h['engines']['test']!==t(0x170)&&this[t(0x157)][t(0x166)]({'srcPath':t(0x177),'destPath':g+t(0x176),'framework':t(0x145),'context':i,'config':h});const j=b['dir']?'/'+b[t(0x14d)]+'/':'/',k=''+f+j+i[t(0x143)]+'/'+i[t(0x143)];let l;if(h[t(0x13b)][t(0x139)]===t(0x168)){const m=this['fsi'][t(0x159)]({'pathParts':[t(0x133),t(0x16c),t(0x151),t(0x144)]});l=this['fsi'][t(0x134)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x159)]({'pathParts':[t(0x133),t(0x16c),'client','templates.js']});l=this[t(0x157)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h[t(0x13b)][t(0x161)]==='react'?this[t(0x157)][t(0x16f)]({'filePath':l,'content':t(0x15a)+i['className']+'\x20}\x20from\x20\x27'+k+t(0x174)}):this[t(0x157)][t(0x16f)]({'filePath':l,'content':'export\x20\x27'+k+'.'+h[t(0x13b)]['js']+t(0x174)});});}catch(i){Log[s(0x13a)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106k=a106d;(function(a,b){const h=a106d,c=a();while(!![]){try{const d=-parseInt(h(0x14e))/0x1+-parseInt(h(0x135))/0x2*(parseInt(h(0x150))/0x3)+parseInt(h(0x144))/0x4*(parseInt(h(0x13f))/0x5)+-parseInt(h(0x13b))/0x6*(parseInt(h(0x148))/0x7)+parseInt(h(0x147))/0x8*(-parseInt(h(0x151))/0x9)+parseInt(h(0x133))/0xa*(-parseInt(h(0x14a))/0xb)+parseInt(h(0x13e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x2ab74));function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x12e;let f=c[d];return f;},a106d(a,b);}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a106d;if(c){const e=c[i(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const j=a106d;return a106a[j(0x142)]()[j(0x131)]('(((.+)+)+)+$')[j(0x142)]()[j(0x130)](a106a)[j(0x131)](j(0x146));});function a106c(){const n=['type','48pNKlRY','map','fsi','engines','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','indexOf','282bTOjsK',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','(blank)','6192876sAOMVS','22885eJoYmt','withValue','kit','toString','notice','244MOVHyo','login','(((.+)+)+)+$','263480NULgrc','11277HKpVli','NIE','1783859nqLfjE','apply','Invalid\x20type\x20','resourceName','100748wztdaN','leaflet-map','10821DDWrgH','9hlPziC','error','maka\x20g:kit\x20--type=map','constructor','search','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','20gHtJUQ'];a106c=function(){return n;};return a106c();}a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a106k(0x141),'aliases':['k'],'usage':a106k(0x132),'shortDesc':a106k(0x139),'validOpts':[a106k(0x134)],'examples':[a106k(0x12f),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a106k;try{const c=this[l(0x137)]['getProjectConfig']();this[l(0x137)][l(0x140)](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x14d)]),'camelCase':camelCase(b[m(0x14d)]),'type':b['type'],'engine':c[m(0x138)]['js'],'noRename':!![]},f=[m(0x14f),m(0x145)];if(f[m(0x13a)](d[m(0x134)])<0x0){const g=d[m(0x134)]?d[m(0x134)]:m(0x13d);Log[m(0x12e)](m(0x14c)+g+m(0x13c));return;}b[m(0x134)]===m(0x136)&&Log[m(0x143)](m(0x149)),b[m(0x134)]===m(0x145)&&Log[m(0x143)](m(0x149));});}catch(d){Log[l(0x12e)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a107r=a107d;(function(a,b){const o=a107d,c=a();while(!![]){try{const d
|
|
1
|
+
const a107r=a107d;(function(a,b){const o=a107d,c=a();while(!![]){try{const d=-parseInt(o(0x1b0))/0x1+parseInt(o(0x1aa))/0x2+-parseInt(o(0x1a9))/0x3+parseInt(o(0x18a))/0x4+-parseInt(o(0x191))/0x5+parseInt(o(0x19c))/0x6+parseInt(o(0x1ac))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xb9ee5));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a107d;if(c){const e=c[p(0x1a2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const q=a107d;return a107a[q(0x1ae)]()[q(0x1a0)](q(0x189))[q(0x1ae)]()[q(0x184)](a107a)[q(0x1a0)]('(((.+)+)+)+$');});function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x177;let f=c[d];return f;},a107d(a,b);}a107a();import a107e from'path';function a107c(){const u=['fsi','apply','rewriteDestinationPathForEngine','Scaffolding\x20for\x20a\x20React\x20Layout.','client','templates.js','features','react','108417lkjKoa','1642178ivJFEB','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','5108068VGrYQX','split','toString','test','1521424KFUBLl','layout','ramda','relative','create','pathFromApp','css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','installNpmPackage','getProjectConfig','export\x20{\x20','maka\x20g:l\x20web/safari','startup','dir','resourceName','api','none','assign','pathFromProject','theme','injectAtEndOfFile','constructor','className','ssr','test/test.js','component/component.js','(((.+)+)+)+$','4596100WJXZmT','checkNpmPackage','true','.js','string','setTemplate','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','5191535JgEPdB','\x27;\x0a','template','.css','fileName','imports','template/template.css','maka\x20g:layout\x20mobile/iPhone8','lib','engines','withHook','3945630tuVBAz','withTranslations','import\x20\x27./','graphql','search'];a107c=function(){return u;};return a107c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a107r(0x1b4)]({'name':a107r(0x1b1),'aliases':aliases,'usage':a107r(0x190),'shortDesc':a107r(0x1a4),'validOpts':[],'examples':[a107r(0x198),a107r(0x17a)]},function(a,b){const s=a107r,c='/imports/ui/layouts',d=this[s(0x1a1)]['findAppDirectory'](),e=this[s(0x1a1)]['pathFromApp']({'pathParts':[c,b[s(0x17c)],paramCase(b[s(0x17d)]),paramCase(b[s(0x17d)])]}),f=this[s(0x1a1)][s(0x178)]();this['fsi']['withValue'](f,()=>{const t=s;typeof f['template']['test']==='string'&&(f['template']['test']=f[t(0x193)]['test']===t(0x18c)?!![]:![],this['fsi'][t(0x18f)](t(0x1af),f[t(0x193)][t(0x1af)]));typeof f[t(0x193)][t(0x1b6)]===t(0x18e)&&(f[t(0x193)]['css']=f[t(0x193)][t(0x1b6)]===t(0x18c)?!![]:![],this['fsi'][t(0x18f)]('css',f[t(0x193)][t(0x1b6)]));typeof f[t(0x193)]['js']===t(0x18e)&&(f['template']['js']=f[t(0x193)]['js']===t(0x18c)?!![]:![],this[t(0x1a1)][t(0x18f)]('js',f['template']['js']));!f[t(0x1a7)]&&(f[t(0x1a7)]={});const g=b['_']?b['_'][0x0][t(0x1ad)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x18b)](t(0x1b2))&&(Log['warn'](t(0x1ab)),this['fsi'][t(0x177)](t(0x1b2),{'cwd':d}));if(h&&!this[t(0x18b)](t(0x1a8))){Log['warn'](t(0x1b7));return;}const i={'name':pascalCase(b[t(0x17d)]),'myPath':a107e[t(0x1b3)](this[t(0x1a1)][t(0x181)]({}),e),'cssCaseName':paramCase(b[t(0x17d)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x17d)]),'fileName':paramCase(b[t(0x17d)]),'graphql':f['engines'][t(0x19f)],'features':f[t(0x1a7)],'client':f['engines'][t(0x1a5)],'api':f[t(0x19a)][t(0x17e)],'ssr':f['engines'][t(0x186)],'test':f[t(0x19a)][t(0x1af)],'theme':f['engines'][t(0x182)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1a7)][t(0x19d)]};f['features']?.['withHooks']||b[t(0x19b)]?this[t(0x1a1)][t(0x193)]({'srcPath':'hook/hook.js','destPath':e+t(0x18d),'framework':t(0x1a8),'context':i,'config':f}):this[t(0x1a1)][t(0x193)]({'srcPath':t(0x188),'destPath':e+t(0x18d),'framework':t(0x1a8),'context':i,'config':f});f['engines'][t(0x1af)]!==t(0x17f)&&this['fsi'][t(0x193)]({'srcPath':t(0x187),'destPath':e+'.app-tests.js','framework':t(0x1a8),'context':i,'config':f});f[t(0x193)][t(0x1b6)]&&(this[t(0x1a1)][t(0x193)]({'srcPath':t(0x197),'destPath':e+t(0x194),'context':Object[t(0x180)]({},i,{'className':paramCase(b[t(0x17d)])}),'config':f}),this[t(0x1a1)]['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':t(0x19e)+i['fileName']+'.'+f[t(0x19a)][t(0x1b6)]+'\x27;'}));const j=b[t(0x17c)]?'/'+b[t(0x17c)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x195)];let l;if(f['engines'][t(0x186)]===t(0x18c)){const m=this['fsi'][t(0x1b5)]({'pathParts':[t(0x196),'startup',t(0x199),t(0x1a6)]});l=this[t(0x1a1)][t(0x1a3)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x1b5)]({'pathParts':[t(0x196),t(0x17b),t(0x1a5),t(0x1a6)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f['engines'][t(0x1a5)]===t(0x1a8)?this[t(0x1a1)][t(0x183)]({'filePath':l,'content':t(0x179)+i[t(0x185)]+'\x20}\x20from\x20\x27'+k+t(0x192)}):this[t(0x1a1)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20\x27'+k+'.'+f[t(0x19a)]['js']+t(0x192)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-
|
|
1
|
+
const a108i=a108d;function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xb6;let f=c[d];return f;},a108d(a,b);}(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0xc4))/0x1*(parseInt(f(0xb7))/0x2)+parseInt(f(0xc3))/0x3+parseInt(f(0xb8))/0x4+-parseInt(f(0xbf))/0x5+-parseInt(f(0xbb))/0x6*(-parseInt(f(0xbc))/0x7)+parseInt(f(0xbe))/0x8*(-parseInt(f(0xc2))/0x9)+parseInt(f(0xb9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xa4aca));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a['toString']()['search'](h(0xc7))['toString']()[h(0xc0)](a108a)['search'](h(0xc7));});a108a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a108i(0xb6),'shortDesc':a108i(0xba),'validOpts':[],'description':a108i(0xc6),'usage':a108i(0xc8),'examples':[a108i(0xc5),a108i(0xbd)]},function(){return null;});export default MakaGen;function a108c(){const j=['(((.+)+)+)+$','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','maka','4dqbyyT','3690100ASFWBj','2855340ShFSdp','Maka!','5985498wNnZGq','7bWMXbg','maka\x20g:hook\x20cool-hook','24agSFmq','1764430ZlLYNa','constructor','apply','2652921ovBYbh','1493319LttGBU','395858WzBVpo','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'];a108c=function(){return j;};return a108c();}
|