@maka/maka-cli 4.6.14 → 4.6.16
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/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 -0
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -0
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -0
- 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 +1 -1
- package/bundle/obf/src/commands/deploy.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99y=a99d;(function(a,b){const w=a99d,c=a();while(!![]){try{const d=-parseInt(w(0x81))/0x1+parseInt(w(0xad))/0x2*(parseInt(w(0xcf))/0x3)+-parseInt(w(0xd2))/0x4+parseInt(w(0xcd))/0x5*(-parseInt(w(0xbf))/0x6)+-parseInt(w(0xb2))/0x7*(-parseInt(w(0xbd))/0x8)+-parseInt(w(0x9a))/0x9*(parseInt(w(0xc4))/0xa)+parseInt(w(0x9b))/0xb*(parseInt(w(0x92))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xcde96));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x7b;let f=c[d];return f;},a99d(a,b);}const a99b=(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;};}()),a99a=a99b(this,function(){const x=a99d;return a99a[x(0xb9)]()[x(0xc8)](x(0xcc))[x(0xb9)]()[x(0x7c)](a99a)[x(0xc8)](x(0xcc));});a99a();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';function a99c(){const B=['register-','(((.+)+)+)+$','395PWKyFe','includes','114dtTQuK','pathFromApp','api/methods.js','6191248WiFGtJ','template','index.','create','graphql','publications.','injectIntoFile','-api\x27;','api/tests.js','REST\x20API','constructor','mdg:validated-method','rpc-methods.','api','resolvers.','684844dukvmX','injectAtBeginningOfFile','withMethods','-api.','resolverList.push(','engines','import\x20{\x20typeDefs\x20as\x20','api/api.js','/graphql/typeDefs','Resolvers);\x0a\x0a','const','options','collection','api/publications.js','api/fixtures.js','server','Publications','1918068GSECbY','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','fixtures.','checkbox','/imports/api','maka:check','ddp-rate-limiter','TypeDefs\x20}\x20from\x20\x27','18jDjaFN','231evzDqb','import\x20\x27./register-','\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','withPubs','exit','No\x20API\x20boundaries\x20selected','mongo','maka:rest','withGql','rest','resourceName','Fixtures','maka\x20g:api\x20Todos','length','withValue','getProjectConfig','findGenerator','fsi','47890mncQJX','notice','apollo','error','typeList.push(','7uDvLcJ','if\x20\x5c(typeList','Verifying\x20meteor\x20package\x20requirements\x20...','installMeteorPackage','withRest','injectAtEndOfFile','push','toString','API\x20boundaries\x20to\x20create','.app-tests.','RPC\x20(Methods)','3037728HddDzA','test','64830nlSWQu','startup','\x0aimport\x20{\x20resolvers\x20as\x20','dir','withFixtures','3582900vIPPQL','maka\x20{generate,\x20g}:{api}\x20<resource-name>','imports','checkMeteorPackage','search','invoke','tsx'];a99c=function(){return B;};return a99c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99y(0xd5)]({'name':a99y(0x7f),'aliases':['a'],'usage':a99y(0xc5),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':['dir'],'examples':[a99y(0xa7)],'description':a99y(0x9d)},async function(a,b){const z=a99y;try{const c=this['fsi'][z(0xaa)](),d=[{'name':z(0xbc),'value':z(0x83)},{'name':z(0xa6),'value':'withFixtures'},{'name':z(0x91),'value':z(0x9e)}];c[z(0x86)][z(0x7f)]===z(0xa4)&&d[z(0xb8)]({'name':z(0x7b),'value':z(0xb6)});c[z(0x86)][z(0xd6)]===z(0xaf)&&d[z(0xb8)]({'name':'GraphQL','value':z(0xa3)});const f={'type':z(0x95),'name':'apiAnswers','message':z(0xba),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x8c)](f);g[z(0xa8)]===0x0&&(Log[z(0xb0)](z(0xa0)),process[z(0x9f)](0x1)),this[z(0xac)][z(0xa9)](c,async()=>{const A=z,h=this[A(0xac)][A(0xd0)]({}),i=b[A(0xa5)],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[A(0xc2)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x86)]['api'],'graphql':c['engines'][A(0xd6)],'test':c['engines'][A(0xbe)],'noRename':!![],'withPubs':g[A(0xce)](A(0x9e)),'withFixtures':g[A(0xce)](A(0xc3)),'withMethods':g[A(0xce)](A(0x83)),'withRest':g[A(0xce)](A(0xb6))};let n='js';c[A(0x86)]['js']===A(0xca)&&(n='ts');(!this[A(0xac)][A(0xc7)](A(0xa2))||!this['fsi'][A(0xc7)](A(0x97))||!this[A(0xac)][A(0xc7)](A(0x98))||!this[A(0xac)]['checkMeteorPackage'](A(0x7d))||!this[A(0xac)][A(0xc7)](A(0xa1)))&&(Log[A(0xae)](A(0xb4)),await this[A(0xac)][A(0xb5)](A(0x93),{'cwd':h}));const o=a99e[A(0xab)](A(0x8d));o&&await o[A(0xc9)]([j],{'config':c,'where':A(0x90)});c[A(0x86)][A(0x7f)]==='rest'&&(m[A(0xb6)]&&this['fsi']['template']({'srcPath':A(0x88),'destPath':this[A(0xac)][A(0xd0)]({'pathParts':[A(0xc6),'api',b['dir'],j,'rest-api.'+n]}),'context':m,'config':c}));m[A(0x83)]&&this[A(0xac)][A(0xd3)]({'srcPath':A(0xd1),'destPath':this[A(0xac)][A(0xd0)]({'pathParts':['imports',A(0x7f),b[A(0xc2)],j,A(0x7e)+n]}),'context':m,'config':c});m[A(0xc3)]&&this['fsi'][A(0xd3)]({'srcPath':A(0x8f),'destPath':this[A(0xac)][A(0xd0)]({'pathParts':[A(0xc6),'api',b[A(0xc2)],j,A(0x94)+n]}),'context':m,'config':c});c['engines']['test']!=='none'&&this[A(0xac)]['template']({'srcPath':A(0xda),'destPath':this[A(0xac)][A(0xd0)]({'pathParts':['imports',A(0x7f),b['dir'],j,j+A(0xbb)+n]}),'context':m,'config':c});m[A(0x9e)]&&this['fsi'][A(0xd3)]({'srcPath':A(0x8e),'destPath':this['fsi'][A(0xd0)]({'pathParts':[A(0xc6),A(0x7f),b[A(0xc2)],j,A(0xd7)+n]}),'context':m,'config':c});if(c[A(0x86)][A(0xd6)]===A(0xaf)){if(g[A(0xce)](A(0xa3))){const q=this[A(0xac)][A(0xd0)]({'pathParts':[A(0xc6),A(0xc0),'server',A(0xd4)+c[A(0x86)]['js']]}),r=this[A(0xac)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[A(0xac)]['pathFromApp']({'pathParts':[A(0xc6),A(0x7f),b[A(0xc2)],j,'graphql','typeDefs.'+n]}),t=A(0x96)+l+j+A(0x89);this[A(0xac)][A(0xd3)]({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this['fsi'][A(0x82)]({'filePath':r,'content':A(0x87)+k+A(0x99)+t+'\x27;\x0a'}),this[A(0xac)]['injectIntoFile']({'filePath':r,'content':A(0xb1)+k+'TypeDefs);\x0a','begin':A(0x8b),'end':A(0xb3)});const u=this['fsi'][A(0xd0)]({'pathParts':[A(0xc6),A(0x7f),b[A(0xc2)],j,A(0xd6),A(0x80)+n]}),v='/imports/api'+l+j+'/graphql/resolvers';this['fsi'][A(0xd3)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[A(0xac)][A(0x82)]({'filePath':r,'content':A(0xc1)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this['fsi'][A(0xd8)]({'filePath':r,'content':A(0x85)+k+A(0x8a),'begin':A(0x8b),'end':A(0xb3)});}}this[A(0xac)][A(0xd3)]({'srcPath':'api/register-api.js','destPath':this[A(0xac)][A(0xd0)]({'pathParts':[A(0xc6),A(0xc0),A(0x90),A(0xcb)+j+A(0x84)+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0xac)]['pathFromApp']({'pathParts':[A(0xc6),A(0xc0),A(0x90),A(0xd4)+c['engines']['js']]});this['fsi'][A(0xb7)]({'filePath':p,'content':A(0x9c)+j+A(0xd9)});});}catch(h){console['error'](h),process[z(0x9f)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100n=a100d;(function(a,b){const k=a100d,c=a();while(!![]){try{const d=-parseInt(k(0x13a))/0x1+-parseInt(k(0x13c))/0x2*(-parseInt(k(0x12f))/0x3)+-parseInt(k(0x12d))/0x4*(parseInt(k(0x139))/0x5)+-parseInt(k(0x14e))/0x6*(-parseInt(k(0x149))/0x7)+-parseInt(k(0x147))/0x8*(-parseInt(k(0x156))/0x9)+-parseInt(k(0x136))/0xa*(parseInt(k(0x140))/0xb)+parseInt(k(0x13b))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x6a23b));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a100d;if(c){const e=c[l(0x151)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const m=a100d;return a100a['toString']()['search'](m(0x155))[m(0x142)]()['constructor'](a100a)[m(0x143)](m(0x155));});a100a();function a100c(){const q=['mongo','6155992KmcUcP','where','61460tQtHkY','collections','import\x20\x27./collections','col','collection/tests.js','180NpTYLX','resourceName','engines','apply','notice','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','test','(((.+)+)+)+$','9SqAslq','withValue','checkMeteorPackage','\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','tsx','26528KKdioE','index.','70995Pphijg','installMeteorPackage','pathFromApp','template','.app-tests.','maka:check','getProjectConfig','6460KRLGBT','error','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','435YfHhom','252347YpAkQZ','6321492HztykO','36NBjGsK','none','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','startup','12287uwhATt','fsi','toString','search','imports','dir'];a100c=function(){return q;};return a100c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x12c;let f=c[d];return f;},a100d(a,b);}Generator['create']({'name':'collection','aliases':[a100n(0x14c)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a100n(0x138),'validOpts':[a100n(0x145),a100n(0x148)],'description':a100n(0x159),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a100n;try{const c=this[o(0x141)][o(0x131)]({}),d=this['fsi'][o(0x135)]();this['fsi'][o(0x157)](d,async()=>{const p=o,f=paramCase(b[p(0x14f)]),g={'name':pascalCase(b[p(0x14f)]),'collectionName':pascalCase(b[p(0x14f)]),'fileName':f,'where':b[p(0x148)],'test':d[p(0x150)]['test'],'noRename':!![]};let h='js';d[p(0x150)]['js']===p(0x12c)&&(h='ts');!this['fsi'][p(0x158)]('mongo')&&(Log[p(0x152)](p(0x153)),await this[p(0x141)][p(0x130)](p(0x146),{'cwd':c}));!this[p(0x141)][p(0x158)](p(0x134))&&(Log['notice'](p(0x13e)),await this[p(0x141)]['installMeteorPackage'](p(0x134),{'cwd':c}));this[p(0x141)][p(0x132)]({'srcPath':'collection/collection.js','destPath':this[p(0x141)][p(0x131)]({'pathParts':[p(0x144),p(0x13f),b['appPathPrefix'],p(0x14a),b[p(0x145)],f+'.'+h]}),'context':g,'config':d});d[p(0x150)][p(0x154)]!==p(0x13d)&&this[p(0x141)][p(0x132)]({'srcPath':p(0x14d),'destPath':this[p(0x141)][p(0x131)]({'pathParts':['imports',p(0x13f),b['appPathPrefix'],p(0x14a),b['dir'],f+p(0x133)+h]}),'context':g,'config':d});const i=b[p(0x145)]?'/'+b[p(0x145)]+'/':'/',j=this[p(0x141)][p(0x131)]({'pathParts':[p(0x144),'startup',b['appPathPrefix'],p(0x12e)+d[p(0x150)]['js']]});this[p(0x141)]['injectAtEndOfFile']({'filePath':j,'content':p(0x14b)+i+f+'\x27;'});});}catch(f){Log[o(0x137)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101q=a101d;(function(a,b){const n=a101d,c=a();while(!![]){try{const d=parseInt(n(0x17a))/0x1*(-parseInt(n(0x1ad))/0x2)+-parseInt(n(0x195))/0x3*(-parseInt(n(0x18c))/0x4)+-parseInt(n(0x1b9))/0x5*(-parseInt(n(0x19d))/0x6)+parseInt(n(0x1b3))/0x7+parseInt(n(0x1c3))/0x8+parseInt(n(0x182))/0x9*(-parseInt(n(0x19a))/0xa)+parseInt(n(0x1ae))/0xb*(-parseInt(n(0x185))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x959dd));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a101d;if(c){const e=c[o(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const p=a101d;return a101a['toString']()[p(0x18f)]('(((.+)+)+)+$')[p(0x193)]()[p(0x179)](a101a)[p(0x18f)](p(0x1af));});function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x178;let f=c[d];return f;},a101d(a,b);}a101a();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=['comp'];function a101c(){const t=['rewriteDestinationPathForEngine','withTranslations','/imports/ui/components','root','features','test','apply','pages','startup','templates.js','className','true','css','imports','180aqnupo','33PqYxyK','(((.+)+)+)+$','assign','create','lib','1510229rWszEa','maka\x20g:comp\x20todos/todos-item','getProjectConfig','\x27;\x0a','none','fsi','3399050Eqyjzq','template','ramda','dir','component/component.js','.js','findAppDirectory','test/test.js','export\x20\x27','checkNpmPackage','1623864LMTYde','error','constructor','107EjgWmU','installNpmPackage','import\x20\x27./','/imports/ui/','engines','ssr','template/template.css','reflux','1210023RwSHUu','resourceName','theme','4025640LTvYsC','components','component','relative','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','client','injectAtEndOfFile','15828bpumeU','baseDir','warn','search','.tests.js','injectAtBeginningOfFile','export\x20{\x20','toString','fileName','504LRjjVO','\x20}\x20from\x20\x27','hooks','react','string','10NeXzfO','api','pathFromApp','6wIcaJM','setTemplate'];a101c=function(){return t;};return a101c();}Generator[a101q(0x1b1)]({'name':a101q(0x187),'aliases':aliases,'usage':a101q(0x189),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':'baseDir','values':[a101q(0x197),a101q(0x186),a101q(0x1a6),'layouts']}],'examples':[a101q(0x1b4)]},async function(a,b){const r=a101q;try{const c=this[r(0x1b8)][r(0x1bf)](),d=b[r(0x18d)]?r(0x17d)+b[r(0x18d)]:r(0x1a1),f=this['fsi'][r(0x19c)]({'pathParts':[d,b['dir'],paramCase(b[r(0x183)]),paramCase(b[r(0x183)])]}),g=await this[r(0x1b8)][r(0x1b5)]();this[r(0x1b8)]['withValue'](g,async()=>{const s=r;typeof g['template'][s(0x1a4)]==='string'&&(g['template'][s(0x1a4)]=g['template'][s(0x1a4)]===s(0x1aa)?!![]:![],this['fsi'][s(0x19e)](s(0x1a4),g[s(0x1ba)][s(0x1a4)]));typeof g[s(0x1ba)][s(0x1ab)]===s(0x199)&&(g[s(0x1ba)]['css']=g['template'][s(0x1ab)]==='true'?!![]:![],this[s(0x1b8)][s(0x19e)](s(0x1ab),g[s(0x1ba)][s(0x1ab)]));typeof g[s(0x1ba)]['js']===s(0x199)&&(g[s(0x1ba)]['js']=g['template']['js']===s(0x1aa)?!![]:![],this[s(0x1b8)]['setTemplate']('js',g[s(0x1ba)]['js']));!g[s(0x1a3)]&&(g['features']={});!b[s(0x1a2)]&&!this[s(0x1b8)]['checkNpmPackage']('ramda')&&(Log[s(0x18e)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0x1b8)][s(0x17b)](s(0x1bb),{'cwd':c}));if(!b[s(0x1a2)]&&!this['fsi'][s(0x1c2)](s(0x198))){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[s(0x183)]),'myPath':a101e[s(0x188)](this[s(0x1b8)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[s(0x183)]),'className':pascalCase(b[s(0x183)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[s(0x183)]),'graphql':g[s(0x17e)]['graphql'],'features':g['features'],'client':g[s(0x17e)][s(0x18a)],'api':g[s(0x17e)][s(0x19b)],'ssr':g['engines'][s(0x17f)],'test':g[s(0x17e)][s(0x1a4)],'theme':g['engines'][s(0x184)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x1a3)][s(0x1a0)]};this['fsi']['template']({'srcPath':s(0x1bd),'destPath':f+s(0x1be),'context':h,'framework':s(0x198),'config':g});g[s(0x17e)]['test']!==s(0x1b7)&&this[s(0x1b8)][s(0x1ba)]({'srcPath':s(0x1c0),'destPath':f+s(0x190),'context':h,'framework':s(0x198),'config':g});g[s(0x1ba)][s(0x1ab)]&&(this[s(0x1b8)][s(0x1ba)]({'srcPath':s(0x180),'destPath':f+'.css','context':Object[s(0x1b0)]({},h,{'className':paramCase(b[s(0x183)])}),'config':g}),this[s(0x1b8)][s(0x191)]({'filePath':f+'.'+g[s(0x17e)]['js'],'content':s(0x17c)+h['cssCaseName']+'.'+g[s(0x17e)][s(0x1ab)]+'\x27;'}));const i=b[s(0x1bc)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x194)]+'/'+h[s(0x194)];let k;if(g[s(0x17e)][s(0x17f)]==='true'){const l=this[s(0x1b8)]['pathFromApp']({'pathParts':['imports','startup',s(0x1b2),s(0x1a8)]});k=this[s(0x1b8)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x1b8)]['pathFromApp']({'pathParts':[s(0x1ac),s(0x1a7),s(0x18a),s(0x1a8)]});k=this[s(0x1b8)][s(0x19f)]({'pathParts':[m],'config':g});}g[s(0x17e)][s(0x18a)]===s(0x198)||g[s(0x17e)][s(0x18a)]===s(0x181)?this['fsi'][s(0x18b)]({'filePath':k,'content':s(0x192)+h[s(0x1a9)]+s(0x196)+j+'\x27;\x0a'}):this[s(0x1b8)]['injectAtEndOfFile']({'filePath':k,'content':s(0x1c1)+j+'.'+g['engines']['js']+s(0x1b6)});});}catch(h){Log[r(0x178)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102k=a102d;function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x147;let f=c[d];return f;},a102d(a,b);}(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x15c))/0x1+-parseInt(h(0x14b))/0x2*(parseInt(h(0x15d))/0x3)+-parseInt(h(0x161))/0x4+-parseInt(h(0x15b))/0x5+-parseInt(h(0x151))/0x6+-parseInt(h(0x155))/0x7+parseInt(h(0x163))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xb0220));function a102c(){const n=['4QpofMA','prod','development','dev','config/process.env','getProjectConfig','1499220nECZZP','template','config','pathFromProject','9984695bYsvoZ','production','constructor','fsi','toString','ubuntu','6061435IWLzjy','552127kgrxJC','964770UnMsBR','appName','(((.+)+)+)+$','create','2563200LVxtWu','isDocker','34734680Tkvovr','withValue','config/settings.json','maka\x20g:config\x20production','resourceName','apply','settings.json','Generate\x20configuration\x20settings.'];a102c=function(){return n;};return a102c();}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x159)]()['search'](j(0x15f))[j(0x159)]()[j(0x157)](a102a)['search']('(((.+)+)+)+$');});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102k(0x160)]({'name':a102k(0x153),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a102k(0x14a),'validOpts':['isDocker'],'examples':[a102k(0x166)]},function(a,b){const l=a102k,c=this[l(0x158)][l(0x150)]();this['fsi'][l(0x164)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0x15e)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'userName':m(0x15a),'isDocker':b[m(0x162)]};let e=b[m(0x147)];if(e===m(0x14e))e=m(0x14d);else e===m(0x14c)&&(e=m(0x156));const f=this[m(0x158)][m(0x154)]({'pathParts':['config',e,m(0x149)]});this[m(0x158)][m(0x152)]({'srcPath':m(0x165),'destPath':f,'context':d,'config':c});if(!b[m(0x162)]){const g=this['fsi']['pathFromProject']({'pathParts':['config',e,'process.env']});this['fsi'][m(0x152)]({'srcPath':m(0x14f),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x129;let f=c[d];return f;},a103d(a,b);}function a103c(){const p=['conn.','dbc/config.js','maka\x20g:dbc\x20geoserver\x20--type=pgsql','-dbc.','5005286pnoHtf','sqlite','240411qwXqYo','320KeoVYo','config.','4468680InXJrX','toString','register-','dbc/conn.js','fsi','dbc','-dbc\x27;','apply','withValue','startup','12naMgwo','template','warn','12114VqnqyM','dir','dbc/register-dbc.js','2eNpnte','injectAtEndOfFile','engines','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','server','index.','type','maka\x20g:dbc\x20azure\x20--type=mssql','search','5zsONBR','mssql','(((.+)+)+)+$','pathFromApp','179912cnRNCe','error','maka\x20g:dbc\x20todos\x20--type=sqlite','import\x20\x27./register-','2069501BcVUpZ','imports','checkNpmPackage','pgsql','better-sqlite3','tsx','constructor','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','162316uLunuR','installNpmPackage','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','getProjectConfig','resourceName'];a103c=function(){return p;};return a103c();}const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x12f))/0x1*(parseInt(j(0x14d))/0x2)+parseInt(j(0x13a))/0x3+parseInt(j(0x15b))/0x4*(parseInt(j(0x157))/0x5)+parseInt(j(0x147))/0x6*(-parseInt(j(0x15f))/0x7)+parseInt(j(0x13b))/0x8*(parseInt(j(0x14a))/0x9)+parseInt(j(0x13d))/0xa+parseInt(j(0x138))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x4fe4f));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a['toString']()['search'](l(0x159))[l(0x13e)]()[l(0x12d)](a103a)[l(0x156)](l(0x159));});a103a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'dbc','usage':a103m(0x12e),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a103m(0x14b)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':[a103m(0x12a),a103m(0x158),a103m(0x139)]}],'examples':[a103m(0x136),a103m(0x155),a103m(0x15d)]},async function(a,b){const n=a103m;try{const c=await this['fsi'][n(0x132)](),d=this[n(0x141)][n(0x15a)]({}),f=paramCase(b[n(0x133)]),g={'name':pascalCase(b[n(0x133)]),'fileName':paramCase(b[n(0x133)]),'camelCase':camelCase(b[n(0x133)]),'type':b[n(0x154)],'engine':c[n(0x14f)]['js'],'noRename':!![]};this[n(0x141)][n(0x145)](c,async()=>{const o=n;let h='js';c[o(0x14f)]['js']===o(0x12c)&&(h='ts');b[o(0x154)]==='pgsql'&&!this[o(0x141)][o(0x129)]('pg')&&(Log[o(0x149)](o(0x131)),await this[o(0x141)][o(0x130)]('pg',{'cwd':d}));b['type']===o(0x158)&&!this[o(0x141)][o(0x129)](o(0x158))&&(Log['warn'](o(0x151)),await this['fsi'][o(0x130)](o(0x158),{'cwd':d}));b[o(0x154)]==='sqlite'&&!this[o(0x141)][o(0x129)](o(0x12b))&&(Log['warn'](o(0x150)),await this[o(0x141)]['installNpmPackage']('better-sqlite3',{'cwd':d}));this[o(0x141)][o(0x148)]({'srcPath':o(0x135),'destPath':this[o(0x141)][o(0x15a)]({'pathParts':[o(0x160),o(0x146),o(0x152),'dbc',b[o(0x14b)],f,o(0x13c)+h]}),'context':g,'config':c}),this[o(0x141)][o(0x148)]({'srcPath':o(0x140),'destPath':this[o(0x141)][o(0x15a)]({'pathParts':['imports',o(0x146),o(0x152),o(0x142),b['dir'],f,o(0x134)+h]}),'context':g,'config':c}),this['fsi'][o(0x148)]({'srcPath':o(0x14c),'destPath':this[o(0x141)][o(0x15a)]({'pathParts':[o(0x160),o(0x146),o(0x152),o(0x13f)+f+o(0x137)+h]}),'context':g,'config':c});const i=this['fsi']['pathFromApp']({'pathParts':[o(0x160),o(0x146),o(0x152),o(0x153)+c[o(0x14f)]['js']]});this[o(0x141)][o(0x14e)]({'filePath':i,'content':o(0x15e)+f+o(0x143)});});}catch(h){Log[n(0x15c)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104i=a104d;function a104c(){const l=['build','cert','error','toString','search','384kTFyuZ','(((.+)+)+)+$','getProjectConfig','getGlobalConfig','7809016HPyQOb','docker/Dockerfile','Dockerfile','dockerfile','18FvaPxK','appName','13039710qpWCNI','Generate\x20an\x20updated\x20dockerfile','123035vsBTYx','10944731EVIFhp','service','maka\x20g:dockerfile','680321yJgBQU','4yNNyMg','40764339voEqAi','create','template','apply','fsi','isFile','join','21XGeRwX','843928NnnbwK','withValue'];a104c=function(){return l;};return a104c();}(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0xab))/0x1*(parseInt(f(0xac))/0x2)+parseInt(f(0xb4))/0x3*(-parseInt(f(0xb5))/0x4)+-parseInt(f(0xa7))/0x5*(parseInt(f(0x9b))/0x6)+-parseInt(f(0xa8))/0x7+parseInt(f(0x9f))/0x8*(parseInt(f(0xa3))/0x9)+parseInt(f(0xa5))/0xa+parseInt(f(0xad))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xf0c41));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x99)]()[h(0x9a)](h(0x9c))[h(0x99)]()['constructor'](a104a)[h(0x9a)](h(0x9c));});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x97;let f=c[d];return f;},a104d(a,b);}a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';Generator[a104i(0xae)]({'name':a104i(0xa2),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a104i(0xa6),'validOpts':[],'noResource':!![],'examples':[a104i(0xaa)]},async function(){const j=a104i;try{const a=await this['fsi'][j(0x9d)](),b=await this['fsi'][j(0x9e)](),c=this['fsi']['findProjectDirectory']();this[j(0xb1)][j(0xb6)](a,async()=>{const k=j,d={'app':b[k(0xa4)],'config':a,'appPath':a104e[k(0xb3)](c,'app'),'bundlePath':a104e['join'](c,k(0xb7),'app.tar.gz'),'useCert':this[k(0xb1)][k(0xb2)](b[k(0x97)])};this[k(0xb1)][k(0xaf)]({'srcPath':k(0xa0),'destPath':a104e[k(0xb3)](c,k(0xa1)),'framework':k(0xa9),'context':d,'config':a});});}catch(d){Log[j(0x98)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x107;let f=c[d];return f;},a105d(a,b);}const a105r=a105d;(function(a,b){const o=a105d,c=a();while(!![]){try{const d=-parseInt(o(0x113))/0x1*(-parseInt(o(0x145))/0x2)+parseInt(o(0x129))/0x3*(-parseInt(o(0x126))/0x4)+-parseInt(o(0x10c))/0x5+parseInt(o(0x118))/0x6+-parseInt(o(0x139))/0x7+parseInt(o(0x14a))/0x8*(parseInt(o(0x120))/0x9)+-parseInt(o(0x10f))/0xa*(parseInt(o(0x13f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xdc30e));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a105d;if(c){const e=c[p(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const q=a105d;return a105a[q(0x11a)]()[q(0x140)](q(0x12a))['toString']()[q(0x144)](a105a)[q(0x140)]('(((.+)+)+)+$');});a105a();function a105c(){const u=['6430936GHamnc','startup','setTemplate','.css','layouts','css','relative','export\x20\x27','hook','client','4144685liSXIx','template','engines','20CqABJb','baseDir','\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','pathFromApp','10XWeFLo','Creating\x20','templates.js','ssr','checkNpmPackage','8018412DcpNld','assign','toString','fsi','dir','string','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','@apollo/client\x20isomorphic-fetch','18qMKKUI','test','resourceName','/imports/ui/hooks','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','lib','1156VeyXZf','fileName','warn','2436TckfpI','(((.+)+)+)+$','\x20hook...','test/test.js','react','none','pathFromProject','graphql','/imports/ui/','pages','components','hooks','true','features','notice','cssCaseName','6322855tDMQWr','apollo','withValue','injectAtBeginningOfFile','rewriteDestinationPathForEngine','error','9959147tJcIzR','search','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','@apollo/client','imports','constructor','347078TkGJFr','apply','.js','create','injectAtEndOfFile'];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(0x148)]({'name':a105r(0x10a),'aliases':['h'],'checkWhere':![],'usage':a105r(0x11e),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':a105r(0x110),'values':[a105r(0x134),a105r(0x133),a105r(0x132),a105r(0x14e)]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a105r(0x111)},async function(a,b){const s=a105r;Log[s(0x137)](s(0x114)+b['resourceName']+s(0x12b));try{const c=this[s(0x11b)][s(0x117)](s(0x12d));if(!c){Log[s(0x13e)](s(0x141));throw new UsageError();}const d=this[s(0x11b)]['pathFromApp'](b),f=b[s(0x110)]?s(0x131)+b[s(0x110)]:s(0x123),g=this[s(0x11b)][s(0x112)]({'pathParts':[f,b[s(0x11c)],paramCase(b[s(0x122)]),paramCase(b[s(0x122)])]}),h=await this[s(0x11b)]['getProjectConfig']();this['fsi'][s(0x13b)](h,async()=>{const t=s;typeof h[t(0x10d)][t(0x107)]===t(0x11d)&&(h[t(0x10d)]['css']=h[t(0x10d)][t(0x107)]===t(0x135)?!![]:![],this[t(0x11b)][t(0x14c)]('css',h[t(0x10d)]['css']));h[t(0x10e)]['graphql']===t(0x13a)&&!this[t(0x11b)][t(0x117)](t(0x142))&&(Log[t(0x128)](t(0x124)),await this[t(0x11b)]['installNpmPackage'](t(0x11f),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x122)]),'camelCaseName':camelCase(b[t(0x122)]),'className':pascalCase(b[t(0x122)]),'name':pascalCase(b[t(0x122)]),'graphql':h[t(0x10e)][t(0x130)],'theme':h[t(0x10e)]['theme'],'features':h['features'],'myPath':a105e[t(0x108)](this['fsi'][t(0x12f)]({}),g),'fileName':paramCase(b[t(0x122)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x136)]['withTranslations']};this[t(0x11b)]['template']({'srcPath':'hook/hook.js','destPath':g+t(0x147),'context':i,'config':h,'framework':t(0x12d)});h[t(0x10d)][t(0x107)]&&(this[t(0x11b)][t(0x10d)]({'srcPath':'template/template.css','destPath':g+t(0x14d),'context':Object[t(0x119)]({},i,{'className':i[t(0x138)]}),'config':h}),this[t(0x11b)][t(0x13c)]({'filePath':g+'.'+h[t(0x10e)]['js'],'content':'import\x20\x27./'+i[t(0x127)]+'.'+h[t(0x10e)]['css']+'\x27;'}));h[t(0x10e)][t(0x121)]!==t(0x12e)&&this['fsi'][t(0x10d)]({'srcPath':t(0x12c),'destPath':g+'.app-tests.js','framework':t(0x12d),'context':i,'config':h});const j=b[t(0x11c)]?'/'+b[t(0x11c)]+'/':'/',k=''+f+j+i[t(0x127)]+'/'+i['fileName'];let l;if(h[t(0x10e)][t(0x116)]==='true'){const m=this[t(0x11b)][t(0x112)]({'pathParts':[t(0x143),t(0x14b),t(0x125),t(0x115)]});l=this[t(0x11b)][t(0x13d)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x112)]({'pathParts':[t(0x143),t(0x14b),t(0x10b),t(0x115)]});l=this[t(0x11b)][t(0x13d)]({'pathParts':[n],'config':h});}h[t(0x10e)][t(0x10b)]===t(0x12d)?this['fsi'][t(0x149)]({'filePath':l,'content':'export\x20{\x20'+i['className']+'\x20}\x20from\x20\x27'+k+'\x27;\x0a'}):this[t(0x11b)][t(0x149)]({'filePath':l,'content':t(0x109)+k+'.'+h[t(0x10e)]['js']+'\x27;\x0a'});});}catch(i){Log[s(0x13e)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106j=a106d;(function(a,b){const h=a106d,c=a();while(!![]){try{const d=-parseInt(h(0xcd))/0x1+-parseInt(h(0xd9))/0x2+parseInt(h(0xd6))/0x3*(parseInt(h(0xd1))/0x4)+-parseInt(h(0xe1))/0x5*(-parseInt(h(0xe3))/0x6)+parseInt(h(0xc9))/0x7*(parseInt(h(0xde))/0x8)+parseInt(h(0xd4))/0x9+-parseInt(h(0xd8))/0xa*(parseInt(h(0xe0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x484c0));const a106b=(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;};}()),a106a=a106b(this,function(){const i=a106d;return a106a[i(0xd2)]()[i(0xc8)](i(0xe5))[i(0xd2)]()[i(0xda)](a106a)[i(0xc8)]('(((.+)+)+)+$');});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xc7;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106j(0xd3)]({'name':'kit','aliases':['k'],'usage':a106j(0xdb),'shortDesc':a106j(0xd5),'validOpts':[a106j(0xe2)],'examples':[a106j(0xcc),a106j(0xd0)]},async function(a,b){const k=a106j;try{const c=this[k(0xcb)][k(0xca)]();this['fsi']['withValue'](c,async()=>{const l=k,d={'name':pascalCase(b[l(0xc7)]),'fileName':paramCase(b[l(0xc7)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[l(0xe6)]['js'],'noRename':!![]},f=['leaflet-map',l(0xe4)];if(f[l(0xdd)](d['type'])<0x0){const g=d[l(0xe2)]?d['type']:l(0xd7);Log['error'](l(0xce)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[l(0xe2)]===l(0xcf)&&Log[l(0xdf)](l(0xdc)),b[l(0xe2)]===l(0xe4)&&Log['notice'](l(0xdc));});}catch(d){Log['error'](d);}});function a106c(){const m=['login','(((.+)+)+)+$','engines','resourceName','search','2156YEWrjl','getProjectConfig','fsi','maka\x20g:kit\x20--type=map','470035CjHqHn','Invalid\x20type\x20','map','maka\x20g:k\x20city-map\x20--type=leaflet-map','12HxKRSg','toString','create','1263285DwkTLd','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','524922Fvkegg','(blank)','10JrZqGO','621756boCzTv','constructor','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','NIE','indexOf','11912xrNoqZ','notice','2097458KdVuGK','42300yrGJBa','type','102qkZGlz'];a106c=function(){return m;};return a106c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107r=a107d;function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x137;let f=c[d];return f;},a107d(a,b);}(function(a,b){const o=a107d,c=a();while(!![]){try{const d=parseInt(o(0x167))/0x1*(-parseInt(o(0x170))/0x2)+parseInt(o(0x159))/0x3+-parseInt(o(0x172))/0x4*(parseInt(o(0x16f))/0x5)+parseInt(o(0x154))/0x6+-parseInt(o(0x16b))/0x7*(-parseInt(o(0x142))/0x8)+-parseInt(o(0x160))/0x9*(parseInt(o(0x163))/0xa)+-parseInt(o(0x13b))/0xb*(-parseInt(o(0x169))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xda7ad));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a107d;if(c){const e=c[p(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const q=a107d;return a107a[q(0x166)]()['search'](q(0x15e))[q(0x166)]()['constructor'](a107a)[q(0x165)](q(0x15e));});a107a();import a107e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a107c(){const u=['/imports/ui/layouts','296139BbxROd','fsi','injectAtEndOfFile','templates.js','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','(((.+)+)+)+$','imports','805383Zsjdup','.css','injectAtBeginningOfFile','200DvfySf','fileName','search','toString','3NuRpPq','export\x20{\x20','996UvNVKn','ramda','11928TLRxty','pathFromApp','checkNpmPackage','className','5neCLqv','975902jkhIfH','startup','254152sUnIhX','getProjectConfig','apply','component/component.js','theme','\x20}\x20from\x20\x27','pathFromProject','withHooks','findAppDirectory','317229BNTOgO','client','resourceName','setTemplate','ssr','create','features','7312Ssessh','engines','test','dir','api','maka\x20g:layout\x20mobile/iPhone8','layout','string','withTranslations','css','hook/hook.js','true','react','\x27;\x0a','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','export\x20\x27','.js','withHook','973308OgWstd','installNpmPackage','template','rewriteDestinationPathForEngine'];a107c=function(){return u;};return a107c();}Generator[a107r(0x140)]({'name':a107r(0x148),'aliases':aliases,'usage':a107r(0x15d),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a107r(0x147),'maka\x20g:l\x20web/safari']},function(a,b){const s=a107r,c=s(0x158),d=this[s(0x15a)][s(0x13a)](),e=this[s(0x15a)][s(0x16c)]({'pathParts':[c,b[s(0x145)],paramCase(b[s(0x13d)]),paramCase(b['resourceName'])]}),f=this[s(0x15a)][s(0x173)]();this[s(0x15a)]['withValue'](f,()=>{const t=s;typeof f[t(0x156)][t(0x144)]===t(0x149)&&(f[t(0x156)]['test']=f['template']['test']===t(0x14d)?!![]:![],this[t(0x15a)][t(0x13e)]('test',f[t(0x156)][t(0x144)]));typeof f[t(0x156)][t(0x14b)]===t(0x149)&&(f[t(0x156)][t(0x14b)]=f['template'][t(0x14b)]===t(0x14d)?!![]:![],this['fsi']['setTemplate'](t(0x14b),f[t(0x156)]['css']));typeof f[t(0x156)]['js']===t(0x149)&&(f[t(0x156)]['js']=f['template']['js']===t(0x14d)?!![]:![],this[t(0x15a)]['setTemplate']('js',f[t(0x156)]['js']));!f['features']&&(f[t(0x141)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x16d)](t(0x16a))&&(Log['warn']('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this[t(0x15a)][t(0x155)](t(0x16a),{'cwd':d}));if(h&&!this[t(0x16d)](t(0x14e))){Log['warn'](t(0x150));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a107e['relative'](this[t(0x15a)][t(0x138)]({}),e),'cssCaseName':paramCase(b[t(0x13d)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x13d)]),'fileName':paramCase(b[t(0x13d)]),'graphql':f['engines']['graphql'],'features':f[t(0x141)],'client':f['engines'][t(0x13c)],'api':f[t(0x143)][t(0x146)],'ssr':f[t(0x143)][t(0x13f)],'test':f['engines']['test'],'theme':f['engines'][t(0x176)],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][t(0x14a)]};f[t(0x141)]?.[t(0x139)]||b[t(0x153)]?this[t(0x15a)]['template']({'srcPath':t(0x14c),'destPath':e+t(0x152),'framework':'react','context':i,'config':f}):this['fsi'][t(0x156)]({'srcPath':t(0x175),'destPath':e+t(0x152),'framework':'react','context':i,'config':f});f[t(0x143)][t(0x144)]!=='none'&&this[t(0x15a)][t(0x156)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':t(0x14e),'context':i,'config':f});f['template'][t(0x14b)]&&(this['fsi'][t(0x156)]({'srcPath':'template/template.css','destPath':e+t(0x161),'context':Object['assign']({},i,{'className':paramCase(b[t(0x13d)])}),'config':f}),this[t(0x15a)][t(0x162)]({'filePath':e+'.'+f[t(0x143)]['js'],'content':'import\x20\x27./'+i[t(0x164)]+'.'+f[t(0x143)][t(0x14b)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x145)]+'/':'/',k=''+c+j+i[t(0x164)]+'/'+i[t(0x164)];let l;if(f[t(0x143)][t(0x13f)]===t(0x14d)){const m=this[t(0x15a)][t(0x16c)]({'pathParts':['imports',t(0x171),'lib',t(0x15c)]});l=this['fsi'][t(0x157)]({'pathParts':[m],'config':f});}else{const n=this[t(0x15a)][t(0x16c)]({'pathParts':[t(0x15f),'startup',t(0x13c),t(0x15c)]});l=this['fsi'][t(0x157)]({'pathParts':[n],'config':f});}f[t(0x143)][t(0x13c)]===t(0x14e)?this[t(0x15a)][t(0x15b)]({'filePath':l,'content':t(0x168)+i[t(0x16e)]+t(0x137)+k+t(0x14f)}):this['fsi'][t(0x15b)]({'filePath':l,'content':t(0x151)+k+'.'+f[t(0x143)]['js']+'\x27;\x0a'});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108i=a108d;function a108c(){const j=['1491300xoXRkn','8TWiqLW','\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','5rdTSvf','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','(((.+)+)+)+$','2461203KaxKei','search','constructor','maka\x20generate:api\x20Trucks','2947132rEMhyP','2499780lCkpdQ','1195486FXEpEr','3873540vaXnti','apply','6027091ERJuzI','1XmQXvp','toString'];a108c=function(){return j;};return a108c();}(function(a,b){const f=a108d,c=a();while(!![]){try{const d=parseInt(f(0x1a1))/0x1*(parseInt(f(0x19d))/0x2)+parseInt(f(0x197))/0x3+-parseInt(f(0x19b))/0x4*(parseInt(f(0x194))/0x5)+-parseInt(f(0x19c))/0x6+parseInt(f(0x1a0))/0x7*(parseInt(f(0x192))/0x8)+-parseInt(f(0x191))/0x9+-parseInt(f(0x19e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x8bd12));function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x191;let f=c[d];return f;},a108d(a,b);}const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0x1a2)]()[h(0x198)](h(0x196))[h(0x1a2)]()[h(0x199)](a108a)['search'](h(0x196));});a108a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':'Maka!','validOpts':[],'description':a108i(0x193),'usage':a108i(0x195),'examples':[a108i(0x19a),'maka\x20g:hook\x20cool-hook']},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109n=a109d;(function(a,b){const k=a109d,c=a();while(!![]){try{const d=parseInt(k(0x197))/0x1+-parseInt(k(0x18e))/0x2+parseInt(k(0x190))/0x3+parseInt(k(0x176))/0x4*(-parseInt(k(0x19b))/0x5)+-parseInt(k(0x17e))/0x6*(-parseInt(k(0x199))/0x7)+-parseInt(k(0x196))/0x8+-parseInt(k(0x183))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xe6db9));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a109d;if(c){const e=c[l(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const m=a109d;return a109a[m(0x177)]()[m(0x18a)](m(0x180))[m(0x177)]()[m(0x17f)](a109a)[m(0x18a)](m(0x180));});function a109c(){const q=['template','mdg:validated-method','2099586DGZDpG','constructor','(((.+)+)+)+$','apply','pathFromApp','586197AkvenU','methods','-rpc-method.','getProjectConfig','dir','startup','create','search','injectAtEndOfFile','maka\x20g:method\x20todos','maka\x20{generate,\x20g}:{method,\x20m}\x20name','1079096Fvckny','withValue','5312286asauBY','method/method.js','resourceName','tsx','installMeteorPackage','engines','9920240pxGdBL','383385nDlwrI','checkMeteorPackage','21zQXbDO','-rpc-method\x27;','5ToYCmA','1654544nGswZP','toString','method','fsi','check','appPathPrefix'];a109c=function(){return q;};return a109c();}a109a();import{Generator}from'../generator.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x176;let f=c[d];return f;},a109d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a109n(0x189)]({'name':a109n(0x178),'aliases':['m'],'usage':a109n(0x18d),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':['dir'],'examples':[a109n(0x18c)]},function(a,b){const o=a109n;try{const c=this[o(0x179)][o(0x186)]();this['fsi'][o(0x18f)](c,async()=>{const p=o,d=paramCase(b[p(0x192)]),f={'name':b[p(0x192)],'fileName':d,'className':pascalCase(b[p(0x192)]),'camelCase':camelCase(b[p(0x192)]),'noRename':!![]};let g='js';c[p(0x195)]['js']===p(0x193)&&(g='ts');const h=this[p(0x179)]['pathFromApp']({});(!this[p(0x179)][p(0x198)](p(0x17a))||!this[p(0x179)][p(0x198)]('ddp-rate-limiter')||!this['fsi']['checkMeteorPackage'](p(0x17d)))&&(Log['warn']('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[p(0x179)][p(0x194)]('check\x20ddp-rate-limiter\x20mdg:validated-method',{'cwd':h}));this['fsi'][p(0x17c)]({'srcPath':p(0x191),'destPath':this[p(0x179)][p(0x182)]({'pathParts':['imports',p(0x188),b[p(0x17b)],p(0x184),b[p(0x187)],d+p(0x185)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b[p(0x187)]+'/':'/',j=this[p(0x179)]['pathFromApp']({'pathParts':['imports','startup',b['appPathPrefix'],'index.'+c[p(0x195)]['js']]});this[p(0x179)][p(0x18b)]({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0x19a)});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a110c(){const r=['260RkgOLH','9DdXLPv','100595wnUpZi','template','hasOwnProperty','20hKWEkq','1308phvsmJ','component','fsi','engines','packages','.js','dir','forEach','theme','/client/','layout','(((.+)+)+)+$','pathFromProject','ssr','package/','constructor','1873416fHpLbC','resourceName','542lgasgz','278340DyoYYv','33WAugJP','2877sWwWge','4333voSOzK','maka\x20g:package\x20todos:package','1092540TrvuQB','noRename','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','server','28740Lddcwd','lib','toString','withValue','tests/server','tests/client','pathFromApp','features'];a110c=function(){return r;};return a110c();}const a110n=a110d;(function(a,b){const l=a110d,c=a();while(!![]){try{const d=-parseInt(l(0x1e9))/0x1+parseInt(l(0x1d5))/0x2*(parseInt(l(0x1d8))/0x3)+parseInt(l(0x1df))/0x4*(-parseInt(l(0x1ec))/0x5)+-parseInt(l(0x1ed))/0x6*(-parseInt(l(0x1d9))/0x7)+parseInt(l(0x1d3))/0x8*(-parseInt(l(0x1e8))/0x9)+parseInt(l(0x1db))/0xa*(-parseInt(l(0x1d7))/0xb)+-parseInt(l(0x1d6))/0xc*(-parseInt(l(0x1e7))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x28e21));const a110b=(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;};}()),a110a=a110b(this,function(){const m=a110d;return a110a[m(0x1e1)]()['search'](m(0x1f8))[m(0x1e1)]()[m(0x1fc)](a110a)['search'](m(0x1f8));});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x1d3;let f=c[d];return f;},a110d(a,b);}a110a();import a110e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'package','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a110n(0x1dd),'validOpts':['dir'],'examples':[a110n(0x1da)]},async function(a,b){const o=a110n,c=paramCase(b['resourceName']),d=this[o(0x1ef)][o(0x1e5)]({'pathParts':['packages',b['dir'],c]}),e=this[o(0x1ef)]['pathFromAppWithNoReWrite']({'pathParts':[o(0x1f1),b[o(0x1f3)],c,'package.js']}),f=this[o(0x1ef)]['getProjectConfig']();this[o(0x1ef)][o(0x1e2)](f,async()=>{const p=o,g={'name':paramCase(b[p(0x1d4)]),'myPath':a110e['relative'](this[p(0x1ef)][p(0x1f9)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[p(0x1d4)]),'camelCaseName':camelCase(b[p(0x1d4)]),'fileName':c,'client':f[p(0x1f0)]['client'],'graphql':f['engines']['graphql'],'ssr':f['engines'][p(0x1fa)],'isComponent':b[p(0x1eb)](p(0x1ee)),'isLayout':b['hasOwnProperty'](p(0x1f7)),'isStore':b['hasOwnProperty']('store'),'features':f[p(0x1e6)],'noRename':!![],'theme':f[p(0x1f0)][p(0x1f5)]};this[p(0x1ef)][p(0x1ea)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[p(0x1dc)]=![];const h=d+p(0x1f6)+c+p(0x1f2);this[p(0x1ef)][p(0x1ea)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[p(0x1e0),p(0x1de),p(0x1e4),p(0x1e3)];i[p(0x1f4)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x1f2);this[q(0x1ef)][q(0x1ea)]({'srcPath':q(0x1fb)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111p=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d=-parseInt(m(0x20c))/0x1*(parseInt(m(0x239))/0x2)+parseInt(m(0x203))/0x3+parseInt(m(0x226))/0x4+parseInt(m(0x236))/0x5*(parseInt(m(0x1f7))/0x6)+-parseInt(m(0x1ef))/0x7+-parseInt(m(0x200))/0x8+-parseInt(m(0x207))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x6b72b));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a111d;if(c){const e=c[n(0x211)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const o=a111d;return a111a[o(0x1f0)]()[o(0x206)](o(0x210))[o(0x1f0)]()['constructor'](a111a)['search']('(((.+)+)+)+$');});a111a();import a111e from'path';import{Generator}from'../generator.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a111d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a111c(){const s=['vanilla','1456344AARvrN','maka\x20g:page\x20todos/todos-item','page','search','4527630FznfbR','pages','getProjectConfig','imports','dir','143771KZVNDQ','/imports/ui/pages','baseDir','.css','(((.+)+)+)+$','apply','api','resourceName','injectAtEndOfFile','className','layouts','startup','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','\x20}\x20from\x20\x27','fsi','ramda','template','assign','import\x20\x27./','lib','fileName','graphql','templates.js','pathFromProject','withHooks','export\x20\x27','3037236jHpzSo','injectAtBeginningOfFile','components','rewriteDestinationPathForEngine','pathFromApp','\x27;\x0a','template/template.css','checkNpmPackage','true','engines','theme','component','ssr','layout','.html','setTemplate','5RVwkJa','string','withValue','2LaMAyR','html','hasOwnProperty','client','4797198BTcuza','toString','hook/hook.js','withHook','test','Generate\x20a\x20page.','Updating\x20npm\x20packages\x20...','installNpmPackage','3204828CIRfDg','react','.app-tests.js','css','store','features','hooks','withTranslations','none','53064HkmZxg','root'];a111c=function(){return s;};return a111c();}const aliases=['p'];Generator['create']({'name':a111p(0x205),'aliases':aliases,'usage':a111p(0x218),'shortDesc':a111p(0x1f4),'validOpts':[{'name':a111p(0x20e),'values':[a111p(0x1fd),a111p(0x228),a111p(0x208),a111p(0x216)]},{'name':a111p(0x1f2),'boolFlag':!![]}],'examples':[a111p(0x204)]},function(a,b){const q=a111p,c=b[q(0x20e)]?'/imports/ui/'+b[q(0x20e)]:q(0x20d),d=this[q(0x21a)][q(0x22a)](b),e=this['fsi']['pathFromApp']({'pathParts':[c,b[q(0x20b)],paramCase(b[q(0x213)]),paramCase(b[q(0x213)])]}),f=this[q(0x21a)][q(0x209)]();this[q(0x21a)][q(0x238)](f,()=>{const r=q;typeof f['template']['html']===r(0x237)&&(f[r(0x21c)]['html']=f[r(0x21c)][r(0x23a)]===r(0x22e)?!![]:![],this[r(0x21a)][r(0x235)](r(0x23a),f['template'][r(0x23a)]));typeof f[r(0x21c)][r(0x1f3)]===r(0x237)&&(f[r(0x21c)][r(0x1f3)]=f[r(0x21c)][r(0x1f3)]===r(0x22e)?!![]:![],this[r(0x21a)]['setTemplate'](r(0x1f3),f[r(0x21c)][r(0x1f3)]));typeof f[r(0x21c)][r(0x1fa)]===r(0x237)&&(f[r(0x21c)][r(0x1fa)]=f[r(0x21c)][r(0x1fa)]===r(0x22e)?!![]:![],this[r(0x21a)][r(0x235)](r(0x1fa),f[r(0x21c)]['css']));typeof f['template']['js']===r(0x237)&&(f[r(0x21c)]['js']=f[r(0x21c)]['js']===r(0x22e)?!![]:![],this[r(0x21a)][r(0x235)]('js',f[r(0x21c)]['js']));!f[r(0x1fc)]&&(f[r(0x1fc)]={});!b[r(0x201)]&&!this[r(0x21a)][r(0x22d)](r(0x21b))&&(Log['warn'](r(0x1f5)),this[r(0x21a)][r(0x1f6)](r(0x21b),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a111e['relative'](this[r(0x21a)][r(0x223)]({}),e),'cssCaseName':paramCase(b[r(0x213)]),'className':pascalCase(b[r(0x213)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x213)]),'graphql':f[r(0x22f)][r(0x221)],'features':f[r(0x1fc)],'client':f[r(0x22f)][r(0x1ee)],'api':f[r(0x22f)][r(0x212)],'ssr':f[r(0x22f)][r(0x232)],'isStore':b[r(0x23b)](r(0x1fb)),'isComponent':b[r(0x23b)](r(0x231)),'isLayout':b[r(0x23b)](r(0x233)),'withTranslations':f['features'][r(0x1fe)],'test':f[r(0x22f)][r(0x1f3)],'theme':f[r(0x22f)][r(0x230)]};f['template'][r(0x23a)]&&this[r(0x21a)][r(0x21c)]({'srcPath':'template/template.html','destPath':e+r(0x234),'context':g,'config':f});f['features']?.[r(0x224)]||b[r(0x1f2)]?this[r(0x21a)][r(0x21c)]({'srcPath':r(0x1f1),'destPath':e+'.js','framework':r(0x1f8),'context':g,'config':f}):this[r(0x21a)][r(0x21c)]({'srcPath':'component/component.js','destPath':e+'.js','framework':r(0x1f8),'context':g,'config':f});f['engines'][r(0x1f3)]!==r(0x1ff)&&this[r(0x21a)][r(0x21c)]({'srcPath':'test/test.js','destPath':e+r(0x1f9),'framework':r(0x1f8),'context':g,'config':f});f['template'][r(0x1fa)]&&this[r(0x21a)][r(0x21c)]({'srcPath':r(0x22c),'destPath':e+r(0x20f),'context':Object[r(0x21d)]({},g,{'className':paramCase(b[r(0x213)])}),'config':f});f['engines'][r(0x1ee)]!==r(0x1f8)&&f[r(0x22f)][r(0x1ee)]!==r(0x202)?(f[r(0x21c)][r(0x1fa)]&&this[r(0x21a)][r(0x227)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x21e)+g[r(0x220)]+'.'+f['engines']['html']+r(0x22b)+'import\x20\x27./'+g[r(0x220)]+'.'+f[r(0x22f)]['css']+'\x27;'}),!f['template']['css']&&this['fsi'][r(0x227)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x21e)+g[r(0x220)]+'.'+f[r(0x22f)][r(0x23a)]+'\x27;'})):f[r(0x21c)][r(0x1fa)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x22f)]['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f['engines'][r(0x1fa)]+'\x27;'});const h=b[r(0x20b)]?'/'+b[r(0x20b)]+'/':'/',i=''+c+h+g[r(0x220)]+'/'+g[r(0x220)];let j;if(f['engines']['ssr']===r(0x22e)){const k=this[r(0x21a)][r(0x22a)]({'pathParts':['imports',r(0x217),r(0x21f),r(0x222)]});j=this['fsi'][r(0x229)]({'pathParts':[k],'config':f});}else{const l=this['fsi']['pathFromApp']({'pathParts':[r(0x20a),r(0x217),r(0x1ee),r(0x222)]});j=this[r(0x21a)][r(0x229)]({'pathParts':[l],'config':f});}f['engines']['client']===r(0x1f8)?this[r(0x21a)][r(0x214)]({'filePath':j,'content':'export\x20{\x20'+g[r(0x215)]+r(0x219)+i+r(0x22b)}):this[r(0x21a)][r(0x214)]({'filePath':j,'content':r(0x225)+i+'.'+f[r(0x22f)]['js']+'\x27;\x0a'});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a112d(a,b);}const a112k=a112d;(function(a,b){const h=a112d,c=a();while(!![]){try{const d=parseInt(h(0x1ec))/0x1*(parseInt(h(0x1e0))/0x2)+-parseInt(h(0x1eb))/0x3+parseInt(h(0x1e1))/0x4*(-parseInt(h(0x1e4))/0x5)+parseInt(h(0x1ee))/0x6+-parseInt(h(0x1ed))/0x7*(parseInt(h(0x1de))/0x8)+parseInt(h(0x1dd))/0x9+-parseInt(h(0x1e3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xe65f5));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a112d;if(c){const e=c[i(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const j=a112d;return a112a[j(0x1e2)]()[j(0x1db)]('(((.+)+)+)+$')[j(0x1e2)]()[j(0x1df)](a112a)[j(0x1db)](j(0x1e9));});a112a();import{paramCase}from'change-case';function a112c(){const m=['templateContent','search','server/publish.','12565404oRHexp','16uxjhVH','constructor','35254jtnhYN','172CVJmzW','toString','10618590JGZkPA','44765YMalwr','publish/publish.','resourceName','injectAtEndOfFile','apply','(((.+)+)+)+$','create','28803yIPQhh','36OGPHYU','724276IoxIbS','3457512klFPlz','fsi','engines'];a112c=function(){return m;};return a112c();}import{Generator}from'../generator.js';Generator[a112k(0x1ea)]({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const c=this['fsi']['getProjectConfig']();this['fsi']['withValue'](c,async()=>{const l=a112d,d={'name':b[l(0x1e6)],'collection':paramCase(b[l(0x1e6)]),'noRename':!![]};let e='js';c[l(0x1d9)]['js']==='tsx'&&(e='ts');const f=this[l(0x1d8)]['rewriteDestinationPathForEngine']({'pathParts':[l(0x1dc)+c[l(0x1d9)]['js']]}),g=this[l(0x1d8)][l(0x1da)]({'srcPath':l(0x1e5)+e,'context':d,'config':c});this[l(0x1d8)][l(0x1e7)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113A=a113d;(function(a,b){const x=a113d,c=a();while(!![]){try{const d=parseInt(x(0xde))/0x1*(parseInt(x(0xb7))/0x2)+-parseInt(x(0xd1))/0x3+-parseInt(x(0xc0))/0x4*(parseInt(x(0xbd))/0x5)+-parseInt(x(0xb2))/0x6+parseInt(x(0xd3))/0x7+parseInt(x(0xad))/0x8+-parseInt(x(0xc5))/0x9*(-parseInt(x(0xaa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x37555));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a113d;if(c){const e=c[y(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const z=a113d;return a113a[z(0xa6)]()['search'](z(0xd6))[z(0xa6)]()[z(0xa4)](a113a)['search'](z(0xd6));});function a113c(){const J=['Valid\x20options\x20are:\x20','readFileLines','private','\x0a\x09\x09','imports','url','1EDsUhw','filter','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','error','fsi','</Router>','root','layouts','injectAfterLineNumber','rewriteDestinationPathForEngine','join','baseDir','dir','constructor','injectIntoFile','toString','layout','lib','withTranslations','1038090DwXbHv','<Route','includes','2319432YMkofB','client','\x22*\x22','length','warn','2668560IzcIep','pages','route/route.js','toLowerCase','apply','600702AAyIhM','invoke','pathFromApp','engines','const\x20publicRoutes\x20=\x20(<>','react','15pMdPJO','map','maka\x20g:route\x20todosIndex\x20todos','261012XUdece','page','indexOf','const\x20privateRoutes\x20=\x20(<>','hooks','36GBMjCC','components','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','withValue','withHook','cwd','/imports/ui/pages','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','maka\x20g:route\x20pages/about','templateName','startup','templateContent','1150800EZgKfE','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','1716736MtQtEg','resourceName','maka\x20g:route\x20todosEdit\x20todos/:id/edit','(((.+)+)+)+$','routes.js'];a113c=function(){return J;};return a113c();}a113a();import a113e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a113f from'../generators/maka.gen.js';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xa3;let f=c[d];return f;},a113d(a,b);}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':'route','aliases':aliases,'validOpts':[a113A(0xda),a113A(0xa7),'only',a113A(0xca),'config',a113A(0xe4),a113A(0xc9),a113A(0xdd),'baseDir'],'usage':a113A(0xe0),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a113A(0xbf),a113A(0xd5),a113A(0xd2),'maka\x20g:route\x20pages/lists/listIndex\x20lists',a113A(0xcd)]},function(a,b){const B=a113A;try{const c=[B(0xc4),B(0xc6),B(0xb3),B(0xe5)];if(b[B(0xe9)]&&!c['includes'](b['baseDir'])){Log[B(0xe1)]('Invalid\x20directory\x20option\x20\x22'+b[B(0xe9)]+'\x22'),Log[B(0xe1)](B(0xd8)+c[B(0xe8)](',\x20'));throw new UsageError();}const d=this['fsi']['getProjectConfig']();this[B(0xe2)][B(0xc8)](d,async()=>{const C=B,f=b['private']??![];let g=paramCase(b[C(0xd4)]),h='/'+g;a['length']>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})['join']('/')[C(0xb5)]());g=camelCase(g);b['layout']&&(b['layout']=camelCase(b[C(0xa7)]));const i=b[C(0xe9)]?'/imports/ui/'+b[C(0xe9)]:C(0xcb),j=a113e[C(0xe8)](i,b[C(0xa3)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0xa7)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d[C(0xba)][C(0xae)],'newForm':![],'withTranslations':d['features'][C(0xa9)]};f&&(k[C(0xa7)]='PrivateLayout');if(!b['root']){const n=a113f['findGenerator'](C(0xc1));n&&await n[C(0xb8)](a,b);}let l,m;if(d[C(0xba)][C(0xae)]===C(0xbc)){if(d[C(0xba)]['ssr']==='true'){const r=this['fsi'][C(0xb9)]({'pathParts':[C(0xdc),C(0xcf),C(0xa8),C(0xd7)]});l=this['fsi'][C(0xe7)]({'pathParts':[r],'config':d});}else{const s=this[C(0xe2)][C(0xb9)]({'pathParts':[C(0xdc),C(0xcf),'client',C(0xd7)]});l=this[C(0xe2)][C(0xe7)]({'pathParts':[s],'config':d});}const o=this[C(0xe2)][C(0xd9)](l)[C(0xbe)]((t,u)=>{const D=C;return t[D(0xac)](D(0xcc))?u+0x1:null;})[C(0xdf)](t=>t!==null);let p=this[C(0xe2)]['readFileLines'](l)[C(0xbe)]((t,u)=>{const E=C;return t[E(0xac)](E(0xbb))?u+0x1:null;})[C(0xdf)](t=>t!==null),q=this['fsi']['readFileLines'](l)[C(0xbe)]((t,u)=>{const F=C;return t['includes'](F(0xc3))?u+0x1:null;})['filter'](t=>t!==null);p[C(0xb0)]>0x0&&q[C(0xb0)]>0x0&&(k['newForm']=!![]);m=this[C(0xe2)][C(0xd0)]({'srcPath':C(0xb4),'framework':C(0xbc),'context':k,'config':d});if(p['length']>0x0||q[C(0xb0)]>0x0){this[C(0xe2)][C(0xe6)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xb0)]>0x0)q=this[C(0xe2)]['readFileLines'](l)['map']((t,u)=>{const G=C;return t[G(0xac)](G(0xc3))?u+0x1:null;})[C(0xdf)](t=>t!==null),this['fsi'][C(0xe6)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[C(0xe2)]['readFileLines'](l)['map']((t,u)=>{const H=C;return t[H(0xac)](H(0xbb))?u+0x1:null;})[C(0xdf)](t=>t!==null),this[C(0xe2)][C(0xe6)]({'filePath':l,'content':'\x09{'+k[C(0xce)]+'}','lineNumber':p[0x0]})):Log[C(0xb1)](C(0xc7)+l);}else{const t=this[C(0xe2)][C(0xd9)](l)[C(0xbe)](w=>{const I=C;return w['includes'](I(0xaf));}),u=t[C(0xc2)](!![])>-0x1,v=u?C(0xab):C(0xe3);this[C(0xe2)][C(0xa5)]({'filePath':l,'content':C(0xdb)+m+C(0xdb),'begin':'<Router','end':v});}}else{if(d[C(0xba)][C(0xae)]==='vanilla'){const w=this['fsi'][C(0xb9)]({'pathParts':[C(0xdc),'startup',C(0xae),C(0xd7)]});l=this['fsi'][C(0xe7)]({'pathParts':[w],'config':d}),m=this[C(0xe2)][C(0xd0)]({'srcPath':C(0xb4),'context':k}),this['fsi']['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0xe1)](f);}});
|