@maka/maka-cli 4.5.11 → 4.5.13
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 +2 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/dbc/conn.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +2 -1
- package/bundle/obf/src/commands/install.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56z=a56d;(function(a,b){const w=a56d,c=a();while(!![]){try{const d=-parseInt(w(0x234))/0x1*(-parseInt(w(0x208))/0x2)+parseInt(w(0x221))/0x3+parseInt(w(0x1ec))/0x4*(-parseInt(w(0x230))/0x5)+-parseInt(w(0x20f))/0x6*(parseInt(w(0x21f))/0x7)+parseInt(w(0x204))/0x8*(-parseInt(w(0x210))/0x9)+-parseInt(w(0x219))/0xa*(parseInt(w(0x241))/0xb)+parseInt(w(0x211))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x67953));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a56d;if(c){const e=c[x(0x209)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const y=a56d;return a56a['toString']()[y(0x222)]('(((.+)+)+)+$')[y(0x22c)]()[y(0x23d)](a56a)['search'](y(0x20e));});a56a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a56d(a,b);}import a56e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a56c(){const C=['maka:check','776ZekBGk','installMeteorPackage','test','API\x20boundaries\x20to\x20create','5318LReGAJ','apply','invoke','api/typeDefs.js','resolverList.push(','injectAtBeginningOfFile','(((.+)+)+)+$','744Qcwycv','74034ciraya','21073320iSsLKZ','exit','/imports/api','ddp-rate-limiter','withValue','getProjectConfig','mongo','Fixtures','10BNgcfn','Resolvers\x20}\x20from\x20\x27','graphql','Verifying\x20meteor\x20package\x20requirements\x20...','collection','-api.','29596mdFdnJ','\x27;\x0a','488322ZFPpeA','search','imports','dir','resolvers.','Resolvers);\x0a\x0a','tsx','maka\x20{generate,\x20g}:{api}\x20<resource-name>','publications.','maka:rest','-api\x27;','toString','injectAtEndOfFile','.app-tests.','typeList.push(','1409510xGhkJP','injectIntoFile','template','api/methods.js','296WMXfsN','GraphQL','withFixtures','fsi','options','fixtures.','rest-api.','rewriteDestinationPathForEngine','includes','constructor','log','index.','none','4352425bLcVoX','if\x20\x5c(typeList','No\x20API\x20boundaries\x20selected','const','rpc-methods.','api/fixtures.js','apollo','REST\x20API','rest','withMethods','pathFromApp','import\x20\x27./register-','8DYoSiO','withRest','typeDefs.','api/register-api.js','engines','api','startup','checkMeteorPackage','withPubs','/graphql/resolvers','notice','RPC\x20(Methods)','\x0aimport\x20{\x20resolvers\x20as\x20','findGenerator','maka\x20g:api\x20todos','TypeDefs\x20}\x20from\x20\x27','/graphql/typeDefs','push','withGql','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','register-','server','Publications'];a56c=function(){return C;};return a56c();}Generator['create']({'name':a56z(0x1f1),'aliases':['a'],'usage':a56z(0x228),'shortDesc':a56z(0x1ff),'validOpts':[a56z(0x224)],'examples':[a56z(0x1fa)]},async function(a,b){const A=a56z;try{const c=this[A(0x237)][A(0x216)](),d=[{'name':A(0x1f7),'value':A(0x1e9)},{'name':A(0x218),'value':A(0x236)},{'name':A(0x202),'value':A(0x1f4)}];c[A(0x1f0)][A(0x1f1)]===A(0x1e8)&&d[A(0x1fd)]({'name':A(0x1e7),'value':A(0x1ed)});c['engines'][A(0x21b)]===A(0x1e6)&&d[A(0x1fd)]({'name':A(0x235),'value':'withGql'});const f={'type':'checkbox','name':'apiAnswers','message':A(0x207),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x238)](f);g['length']===0x0&&(Log['error'](A(0x243)),process[A(0x212)](0x1)),this[A(0x237)][A(0x215)](c,async()=>{const B=A,h=this[B(0x237)][B(0x1ea)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x224)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x1f1)],'graphql':c[B(0x1f0)][B(0x21b)],'test':c[B(0x1f0)][B(0x206)],'noRename':!![],'withPubs':g[B(0x23c)](B(0x1f4)),'withFixtures':g[B(0x23c)](B(0x236)),'withMethods':g[B(0x23c)](B(0x1e9)),'withRest':g['includes'](B(0x1ed))};let n='js';c[B(0x1f0)]['js']===B(0x227)&&(n='ts');(!this[B(0x237)][B(0x1f3)](B(0x22a))||!this[B(0x237)][B(0x1f3)](B(0x203))||!this['fsi'][B(0x1f3)](B(0x214))||!this['fsi']['checkMeteorPackage']('mdg:validated-method')||!this[B(0x237)][B(0x1f3)](B(0x217)))&&(Log[B(0x1f6)](B(0x21c)),await this['fsi'][B(0x205)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a56e[B(0x1f9)](B(0x21d));o&&await o[B(0x20a)]([j],{'config':c,'where':B(0x201)});c[B(0x1f0)]['api']===B(0x1e8)&&(m['withRest']&&this[B(0x237)][B(0x232)]({'srcPath':'api/api.js','destPath':this[B(0x237)][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f1),b[B(0x224)],j,B(0x23a)+n]}),'context':m,'config':c}));m[B(0x1e9)]&&this[B(0x237)][B(0x232)]({'srcPath':B(0x233),'destPath':this[B(0x237)][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f1),b['dir'],j,B(0x1e4)+n]}),'context':m,'config':c});m[B(0x236)]&&this[B(0x237)][B(0x232)]({'srcPath':B(0x1e5),'destPath':this[B(0x237)][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f1),b['dir'],j,B(0x239)+n]}),'context':m,'config':c});c[B(0x1f0)][B(0x206)]!==B(0x240)&&this[B(0x237)][B(0x232)]({'srcPath':'api/tests.js','destPath':this['fsi'][B(0x1ea)]({'pathParts':['imports',B(0x1f1),b['dir'],j,j+B(0x22e)+n]}),'context':m,'config':c});m[B(0x1f4)]&&this['fsi'][B(0x232)]({'srcPath':'api/publications.js','destPath':this[B(0x237)][B(0x1ea)]({'pathParts':['imports',B(0x1f1),b[B(0x224)],j,B(0x229)+n]}),'context':m,'config':c});if(c[B(0x1f0)][B(0x21b)]===B(0x1e6)){if(g[B(0x23c)](B(0x1fe))){const q=this['fsi'][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f2),B(0x201),'index.'+c[B(0x1f0)]['js']]}),r=this['fsi'][B(0x23b)]({'pathParts':[q],'config':c}),s=this[B(0x237)]['pathFromApp']({'pathParts':[B(0x223),B(0x1f1),b[B(0x224)],j,'graphql',B(0x1ee)+n]}),t=B(0x213)+l+j+B(0x1fc);this[B(0x237)]['template']({'srcPath':B(0x20b),'destPath':s,'context':m,'config':c}),this[B(0x237)]['injectAtBeginningOfFile']({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+B(0x1fb)+t+B(0x220)}),this[B(0x237)][B(0x231)]({'filePath':r,'content':B(0x22f)+k+'TypeDefs);\x0a','begin':B(0x1e3),'end':B(0x242)});const u=this['fsi']['pathFromApp']({'pathParts':[B(0x223),B(0x1f1),b[B(0x224)],j,B(0x21b),B(0x225)+n]}),v=B(0x213)+l+j+B(0x1f5);this[B(0x237)][B(0x232)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this['fsi'][B(0x20d)]({'filePath':r,'content':B(0x1f8)+k+B(0x21a)+v+'\x27;'}),this[B(0x237)]['injectIntoFile']({'filePath':r,'content':B(0x20c)+k+B(0x226),'begin':'const','end':B(0x242)});}}this['fsi'][B(0x232)]({'srcPath':B(0x1ef),'destPath':this[B(0x237)]['pathFromApp']({'pathParts':[B(0x223),'startup',B(0x201),B(0x200)+j+B(0x21e)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x237)]['pathFromApp']({'pathParts':[B(0x223),B(0x1f2),B(0x201),B(0x23f)+c[B(0x1f0)]['js']]});this[B(0x237)][B(0x22d)]({'filePath':p,'content':B(0x1eb)+j+B(0x22b)});});}catch(h){console[A(0x23e)](h),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a57n=a57d;(function(a,b){const k=a57d,c=a();while(!![]){try{const d=parseInt(k(0x20d))/0x1+parseInt(k(0x1f4))/0x2+parseInt(k(0x1f8))/0x3+parseInt(k(0x213))/0x4*(parseInt(k(0x1fc))/0x5)+-parseInt(k(0x211))/0x6*(parseInt(k(0x1fb))/0x7)+-parseInt(k(0x217))/0x8+parseInt(k(0x20c))/0x9*(-parseInt(k(0x1f9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x54eae));function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a57d(a,b);}const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a57d;if(c){const e=c[l(0x21b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const m=a57d;return a57a[m(0x1f1)]()[m(0x1f5)](m(0x212))[m(0x1f1)]()[m(0x201)](a57a)['search']('(((.+)+)+)+$');});a57a();function a57c(){const q=['engines','\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','3082221lnufHM','337172fVUooO','collections','appPathPrefix','import\x20\x27./collections','18qilzjL','(((.+)+)+)+$','1136jJfoYT','imports','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','where','5530184ncsmdk','checkMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','tsx','apply','toString','template','mongo','1214988sESWIk','search','dir','notice','1091631CPhUoJ','10Cmiqpp','pathFromApp','890547Ruaund','8005Wuoejm','none','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','injectAtEndOfFile','col','constructor','fsi','collection/collection.js','installMeteorPackage','maka:check','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','test','getProjectConfig','startup'];a57c=function(){return q;};return a57c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'collection','aliases':[a57n(0x200)],'usage':a57n(0x215),'checkWhere':!![],'shortDesc':a57n(0x206),'validOpts':[a57n(0x1f6),'where'],'description':a57n(0x20b),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a57n;try{const c=this[o(0x202)]['pathFromApp']({}),d=this['fsi'][o(0x208)]();this[o(0x202)]['withValue'](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x216)],'test':d[p(0x20a)][p(0x207)],'noRename':!![]};let h='js';d[p(0x20a)]['js']===p(0x21a)&&(h='ts');!this['fsi']['checkMeteorPackage'](p(0x1f3))&&(Log['notice'](p(0x219)),await this['fsi'][p(0x204)]('mongo',{'cwd':c}));!this[p(0x202)][p(0x218)](p(0x205))&&(Log[p(0x1f7)](p(0x1fe)),await this[p(0x202)][p(0x204)](p(0x205),{'cwd':c}));this[p(0x202)][p(0x1f2)]({'srcPath':p(0x203),'destPath':this[p(0x202)][p(0x1fa)]({'pathParts':['imports',p(0x209),b[p(0x20f)],p(0x20e),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x20a)][p(0x207)]!==p(0x1fd)&&this[p(0x202)][p(0x1f2)]({'srcPath':'collection/tests.js','destPath':this[p(0x202)][p(0x1fa)]({'pathParts':[p(0x214),p(0x209),b[p(0x20f)],'collections',b[p(0x1f6)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b[p(0x1f6)]?'/'+b[p(0x1f6)]+'/':'/',j=this[p(0x202)][p(0x1fa)]({'pathParts':[p(0x214),p(0x209),b[p(0x20f)],'index.'+d[p(0x20a)]['js']]});this[p(0x202)][p(0x1ff)]({'filePath':j,'content':p(0x210)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58q=a58d;(function(a,b){const n=a58d,c=a();while(!![]){try{const d=-parseInt(n(0x18a))/0x1+-parseInt(n(0x191))/0x2*(parseInt(n(0x197))/0x3)+parseInt(n(0x18e))/0x4+parseInt(n(0x193))/0x5+parseInt(n(0x170))/0x6+parseInt(n(0x184))/0x7*(-parseInt(n(0x166))/0x8)+parseInt(n(0x161))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x27623));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a58d;if(c){const e=c[o(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const p=a58d;return a58a[p(0x195)]()[p(0x159)]('(((.+)+)+)+$')[p(0x195)]()[p(0x171)](a58a)[p(0x159)](p(0x199));});function a58c(){const t=['98lCtUnP','create','client','rewriteDestinationPathForEngine','installNpmPackage','assign','207176xFGovp','graphql','fsi','string','216380otvsUR','reflux','engines','1070JXnszr','imports','1384670aFpCin','component','toString','warn','1137RPGCYh','comp','(((.+)+)+)+$','template','fileName','withValue','css','search','setTemplate','tsx','import\x20\x27./','\x20};\x0a','true','withTranslations','resourceName','3746826JjOcQS','.js','component/component.js','react','lib','177760bZBMqH','ramda','\x27;\x0a','.css','\x20}\x20from\x20\x27','none','root','theme','import\x20\x27','startup','809958HaYbuH','constructor','pathFromProject','.tests.js','injectAtBeginningOfFile','injectAtEndOfFile','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','pathFromApp','checkNpmPackage','relative','apply','features','ssr','import\x20{\x20','test/test.js','dir','templates.js','test','className','cssCaseName'];a58c=function(){return t;};return a58c();}a58a();import a58e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x158;let f=c[d];return f;},a58d(a,b);}import{Log}from'../tools/log/log.class.js';const aliases=[a58q(0x198)];Generator[a58q(0x185)]({'name':a58q(0x194),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[a58q(0x17f)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a58q;try{const c=this['fsi']['findAppDirectory'](),d='/imports/ui/components',f=this['fsi'][r(0x177)]({'pathParts':[d,b[r(0x17f)],paramCase(b['resourceName']),paramCase(b[r(0x160)])]}),g=await this[r(0x18c)]['getProjectConfig']();this['fsi'][r(0x19c)](g,async()=>{const s=r;typeof g[s(0x19a)][s(0x181)]===s(0x18d)&&(g['template'][s(0x181)]=g['template'][s(0x181)]===s(0x15e)?!![]:![],this[s(0x18c)]['setTemplate']('test',g[s(0x19a)]['test']));typeof g[s(0x19a)][s(0x158)]===s(0x18d)&&(g[s(0x19a)][s(0x158)]=g[s(0x19a)][s(0x158)]===s(0x15e)?!![]:![],this[s(0x18c)][s(0x15a)](s(0x158),g[s(0x19a)][s(0x158)]));typeof g[s(0x19a)]['js']===s(0x18d)&&(g[s(0x19a)]['js']=g[s(0x19a)]['js']===s(0x15e)?!![]:![],this['fsi'][s(0x15a)]('js',g[s(0x19a)]['js']));!g[s(0x17b)]&&(g['features']={});!b[s(0x16c)]&&!this[s(0x18c)]['checkNpmPackage'](s(0x167))&&(Log[s(0x196)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0x18c)][s(0x188)](s(0x167),{'cwd':c}));if(!b[s(0x16c)]&&!this['fsi'][s(0x178)]('react')){Log['error'](s(0x176));return;}const h={'name':pascalCase(b[s(0x160)]),'myPath':a58e[s(0x179)](this['fsi'][s(0x172)]({}),f),'cssCaseName':paramCase(b[s(0x160)]),'className':pascalCase(b[s(0x160)]),'camelCaseName':camelCase(b[s(0x160)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x190)][s(0x18b)],'features':g[s(0x17b)],'client':g['engines'][s(0x186)],'api':g[s(0x190)]['api'],'ssr':g[s(0x190)][s(0x17c)],'test':g[s(0x190)][s(0x181)],'theme':g[s(0x190)][s(0x16d)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][s(0x15f)]};this['fsi']['template']({'srcPath':s(0x163),'destPath':f+s(0x162),'context':h,'framework':'react','config':g});g[s(0x190)][s(0x181)]!==s(0x16b)&&this['fsi']['template']({'srcPath':s(0x17e),'destPath':f+s(0x173),'context':h,'framework':s(0x164),'config':g});g[s(0x19a)][s(0x158)]&&(this['fsi']['template']({'srcPath':'template/template.css','destPath':f+s(0x169),'context':Object[s(0x189)]({},h,{'className':paramCase(b[s(0x160)])}),'config':g}),this[s(0x18c)][s(0x174)]({'filePath':f+'.'+g[s(0x190)]['js'],'content':s(0x15c)+h[s(0x183)]+'.'+g[s(0x190)]['css']+'\x27;'}));const i=b[s(0x17f)]?'/'+b[s(0x17f)]+'/':'/',j=''+d+i+h[s(0x19b)]+'/'+h[s(0x19b)];let k;if(g[s(0x190)]['ssr']===s(0x15e)){const l=this[s(0x18c)]['pathFromApp']({'pathParts':[s(0x192),s(0x16f),s(0x165),'templates.js']});k=this[s(0x18c)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x18c)][s(0x177)]({'pathParts':[s(0x192),s(0x16f),s(0x186),s(0x180)]});k=this[s(0x18c)][s(0x187)]({'pathParts':[m],'config':g});}g['engines'][s(0x186)]==='react'||g[s(0x190)][s(0x186)]===s(0x18f)?(g['engines']['js']===s(0x15b)?this[s(0x18c)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[s(0x182)]+s(0x16a)+j+s(0x168)}):this[s(0x18c)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x17d)+h[s(0x182)]+s(0x16a)+j+'.'+g[s(0x190)]['js']+s(0x168)}),this['fsi'][s(0x175)]({'filePath':k,'content':'export\x20{\x20'+h['className']+s(0x15d)})):this[s(0x18c)][s(0x175)]({'filePath':k,'content':s(0x16e)+j+'.'+g[s(0x190)]['js']+s(0x168)});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59k=a59d;(function(a,b){const h=a59d,c=a();while(!![]){try{const d=parseInt(h(0x1cf))/0x1*(parseInt(h(0x1d0))/0x2)+-parseInt(h(0x1d1))/0x3+-parseInt(h(0x1e4))/0x4*(-parseInt(h(0x1e0))/0x5)+-parseInt(h(0x1e7))/0x6*(-parseInt(h(0x1cc))/0x7)+parseInt(h(0x1c9))/0x8*(parseInt(h(0x1d3))/0x9)+parseInt(h(0x1d4))/0xa*(parseInt(h(0x1e3))/0xb)+-parseInt(h(0x1de))/0xc*(parseInt(h(0x1dd))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xe973b));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a59d;if(c){const e=c[i(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const j=a59d;return a59a[j(0x1dc)]()[j(0x1ce)](j(0x1d6))[j(0x1dc)]()[j(0x1e6)](a59a)[j(0x1ce)](j(0x1d6));});function a59c(){const n=['11BgBlzT','8508AqcXnu','prod','constructor','402DvUawO','apply','231464Ctmzcw','template','isDocker','74893AbZEDE','config','search','31442ZVVPuU','100EhPUoX','4877664hmXwWK','pathFromProject','342oBRkWK','16000610ywUpcS','getProjectConfig','(((.+)+)+)+$','create','config/settings.json','process.env','production','settings.json','toString','581633vLhbUG','804vkPvbc','resourceName','1390mWffxP','fsi','appName'];a59c=function(){return n;};return a59c();}function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x1c9;let f=c[d];return f;},a59d(a,b);}a59a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a59k(0x1d7)]({'name':a59k(0x1cd),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a59k(0x1cb)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a59k,c=this[l(0x1e1)][l(0x1d5)]();this['fsi']['withValue'](c,async()=>{const m=l,d={'app':c[m(0x1e2)],'appFileCase':paramCase(c[m(0x1e2)]),'name':pascalCase(b[m(0x1df)]),'fileName':paramCase(b[m(0x1df)]),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b['isDocker']};let e=a[0x0];if(e==='dev')e='development';else e===m(0x1e5)&&(e=m(0x1da));const f=this[m(0x1e1)][m(0x1d2)]({'pathParts':[m(0x1cd),e,m(0x1db)]});this[m(0x1e1)][m(0x1ca)]({'srcPath':m(0x1d8),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x1e1)][m(0x1d2)]({'pathParts':[m(0x1cd),e,m(0x1d9)]});this['fsi'][m(0x1ca)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a60p=a60d;(function(a,b){const n=a60d,c=a();while(!![]){try{const d=-parseInt(n(0x21a))/0x1+-parseInt(n(0x20c))/0x2*(-parseInt(n(0x218))/0x3)+parseInt(n(0x21c))/0x4+-parseInt(n(0x21f))/0x5+-parseInt(n(0x21b))/0x6+-parseInt(n(0x20d))/0x7*(-parseInt(n(0x228))/0x8)+-parseInt(n(0x1f3))/0x9*(-parseInt(n(0x1fa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x62c89));const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const o=a60d;return a60a['toString']()[o(0x214)](o(0x220))[o(0x210)]()[o(0x215)](a60a)['search'](o(0x220));});function a60c(){const s=['withValue','installNpmPackage','toString','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','index.','imports','search','constructor','config.','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','438oOlRWT','create','282604XMkNdl','830712vbWRsU','74904ilYLLm','maka\x20g:dbc\x20geoserver\x20--type=pgsql','startup','1698425owzDJV','(((.+)+)+)+$','import\x20\x27./register-','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','dir','checkNpmPackage','resourceName','Invalid\x20type\x20','template','1184mxQKki','pgsql','getProjectConfig','dbAnswer','better-sqlite3','mssql','pathFromApp','sqlite','1414386FFLpwI','dbc/register-dbc.js','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20todos\x20--type=sqlite','DB\x20Driver','MS\x20SQL','injectAtEndOfFile','30wZcBCP','(blank)','-dbc.','warn','PostgreSQL','fsi','tsx','engines','options','server','type','dbc/config.js','indexOf','dbc',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','-dbc\x27;','conn.','error','1042RZXlhB','28336DCoNRq'];a60c=function(){return s;};return a60c();}a60a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a60d(a,b);}Generator[a60p(0x219)]({'name':a60p(0x207),'usage':a60p(0x211),'shortDesc':a60p(0x217),'validOpts':['type',a60p(0x223)],'examples':[a60p(0x21d),'maka\x20g:dbc\x20azure\x20--type=mssql',a60p(0x1f6)]},async function(a,b){const q=a60p;try{const c=await this[q(0x1ff)][q(0x22a)](),d=this[q(0x1ff)][q(0x1f1)]({}),f=paramCase(b['resourceName']);if(!b['type']){const h={'type':'list','name':q(0x22b),'message':q(0x1f7),'choices':[{'name':q(0x1fe),'value':q(0x229)},{'name':q(0x1f8),'value':'mssql'}]},{dbAnswer:i}=await Actions[q(0x202)](h);i&&(b['type']=i);}const g={'name':pascalCase(b[q(0x225)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[q(0x225)]),'type':b['type'],'engine':c[q(0x201)]['js'],'noRename':!![]};this[q(0x1ff)][q(0x20e)](c,async()=>{const r=q;let j='js';c[r(0x201)]['js']===r(0x200)&&(j='ts');const k=[r(0x22d),'pgsql'];if(k[r(0x206)](g[r(0x204)])<0x0){const m=g[r(0x204)]?g[r(0x204)]:r(0x1fb);Log[r(0x20b)](r(0x226)+m+r(0x208));return;}b[r(0x204)]===r(0x229)&&!this[r(0x1ff)][r(0x224)]('pg')&&(Log['warn'](r(0x222)),await this['fsi']['installNpmPackage']('pg',{'cwd':d}));b['type']==='mssql'&&!this[r(0x1ff)][r(0x224)](r(0x22d))&&(Log['warn']('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[r(0x1ff)][r(0x20f)]('mssql',{'cwd':d}));b[r(0x204)]===r(0x1f2)&&!this[r(0x1ff)][r(0x224)](r(0x22c))&&(Log[r(0x1fd)](r(0x1f5)),await this[r(0x1ff)]['installNpmPackage'](r(0x22c),{'cwd':d}));this[r(0x1ff)]['template']({'srcPath':r(0x205),'destPath':this[r(0x1ff)]['pathFromApp']({'pathParts':[r(0x213),r(0x21e),r(0x203),'dbc',b[r(0x223)],f,r(0x216)+j]}),'context':g,'config':c}),this['fsi'][r(0x227)]({'srcPath':'dbc/conn.js','destPath':this['fsi']['pathFromApp']({'pathParts':[r(0x213),r(0x21e),r(0x203),r(0x207),b[r(0x223)],f,r(0x20a)+j]}),'context':g,'config':c}),this[r(0x1ff)][r(0x227)]({'srcPath':r(0x1f4),'destPath':this[r(0x1ff)][r(0x1f1)]({'pathParts':[r(0x213),'startup',r(0x203),'register-'+f+r(0x1fc)+j]}),'context':g,'config':c});const l=this[r(0x1ff)][r(0x1f1)]({'pathParts':[r(0x213),r(0x21e),'server',r(0x212)+c[r(0x201)]['js']]});this[r(0x1ff)][r(0x1f9)]({'filePath':l,'content':r(0x221)+f+r(0x209)});});}catch(j){Log[q(0x20b)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61i=a61d;(function(a,b){const f=a61d,c=a();while(!![]){try{const d=-parseInt(f(0xbe))/0x1*(-parseInt(f(0xd4))/0x2)+parseInt(f(0xc1))/0x3*(-parseInt(f(0xba))/0x4)+parseInt(f(0xcd))/0x5*(-parseInt(f(0xbf))/0x6)+-parseInt(f(0xd1))/0x7*(-parseInt(f(0xdc))/0x8)+-parseInt(f(0xca))/0x9*(-parseInt(f(0xd3))/0xa)+parseInt(f(0xdb))/0xb*(-parseInt(f(0xc9))/0xc)+parseInt(f(0xc0))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x2cba2));function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0xba;let f=c[d];return f;},a61d(a,b);}const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a61d;if(c){const e=c[g(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const h=a61d;return a61a[h(0xc6)]()[h(0xd5)](h(0xd2))[h(0xc6)]()[h(0xbd)](a61a)[h(0xd5)]('(((.+)+)+)+$');});a61a();function a61c(){const l=['99564xeGOGE','join','apply','constructor','21001fAlgus','1005234cHBbzY','2852057LaJSQX','27noSmVK','Dockerfile','fsi','service','findProjectDirectory','toString','template','create','238956fMNHEt','147816pAPObv','docker/Dockerfile','isFile','5ZumirW','error','maka\x20{generate,\x20g}:dockerfile','getProjectConfig','7mTHruU','(((.+)+)+)+$','10IlSLnS','2wXzUel','search','cert','Generate\x20an\x20updated\x20dockerfile','dockerfile','build','appName','22FGJaGY','2862176qyWvKr','app.tar.gz','maka\x20g:dockerfile'];a61c=function(){return l;};return a61c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a61e from'path';Generator[a61i(0xc8)]({'name':a61i(0xd8),'usage':a61i(0xcf),'shortDesc':a61i(0xd7),'validOpts':[],'noResource':!![],'examples':[a61i(0xde)]},async function(){const j=a61i;try{const a=await this[j(0xc3)][j(0xd0)](),b=await this['fsi']['getGlobalConfig'](),c=this[j(0xc3)][j(0xc5)]();this[j(0xc3)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0xda)],'config':a,'appPath':a61e['join'](c,'app'),'bundlePath':a61e[k(0xbb)](c,k(0xd9),k(0xdd)),'useCert':this[k(0xc3)][k(0xcc)](b[k(0xd6)])};this[k(0xc3)][k(0xc7)]({'srcPath':k(0xcb),'destPath':a61e[k(0xbb)](c,k(0xc2)),'framework':k(0xc4),'context':d,'config':a});});}catch(d){Log[j(0xce)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62r=a62d;(function(a,b){const o=a62d,c=a();while(!![]){try{const d=-parseInt(o(0x1ba))/0x1*(parseInt(o(0x19e))/0x2)+-parseInt(o(0x1b9))/0x3*(parseInt(o(0x1ac))/0x4)+-parseInt(o(0x195))/0x5+parseInt(o(0x1af))/0x6*(parseInt(o(0x1b2))/0x7)+-parseInt(o(0x17e))/0x8+parseInt(o(0x1bc))/0x9*(-parseInt(o(0x1a9))/0xa)+parseInt(o(0x1b4))/0xb*(parseInt(o(0x180))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x2a761));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a62d;if(c){const e=c[p(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const q=a62d;return a62a[q(0x194)]()['search'](q(0x1b7))[q(0x194)]()[q(0x1ad)](a62a)[q(0x1bb)](q(0x1b7));});a62a();import a62e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x17b;let f=c[d];return f;},a62d(a,b);}Generator[a62r(0x186)]({'name':a62r(0x1ae),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a62r(0x17b),'validOpts':[a62r(0x184)],'examples':[a62r(0x1a3)]},async function(a,b){const s=a62r;try{const c=this[s(0x181)][s(0x1a5)](s(0x187));if(!c){Log[s(0x19b)](s(0x1a0));throw new UsageError();}const d=this[s(0x181)][s(0x1bd)](b),f='/imports/ui/hooks',g=this[s(0x181)][s(0x1bd)]({'pathParts':[f,b[s(0x184)],paramCase(b[s(0x19a)]),paramCase(b[s(0x19a)])]}),h=await this['fsi'][s(0x17d)]();this['fsi'][s(0x18a)](h,async()=>{const t=s;typeof h['template'][t(0x185)]==='string'&&(h['template'][t(0x185)]=h['template'][t(0x185)]===t(0x1b5)?!![]:![],this[t(0x181)][t(0x1a7)]('css',h[t(0x18d)]['css']));h[t(0x1be)][t(0x1a4)]==='apollo'&&!this[t(0x1a5)](t(0x191))&&(Log[t(0x1a6)](t(0x18c)),await this[t(0x181)][t(0x19c)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x19a)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0x19a)]),'graphql':h[t(0x1be)][t(0x1a4)],'theme':h[t(0x1be)]['theme'],'features':h[t(0x199)],'myPath':a62e[t(0x190)](this[t(0x181)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0x19a)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x199)][t(0x1a1)]};this[t(0x181)]['template']({'srcPath':t(0x196),'destPath':g+t(0x1b1),'context':i,'config':h,'framework':'react'});h[t(0x18d)][t(0x185)]&&(this[t(0x181)][t(0x18d)]({'srcPath':t(0x19f),'destPath':g+'.css','context':Object['assign']({},i,{'className':i[t(0x17f)]}),'config':h}),this[t(0x181)][t(0x197)]({'filePath':g+'.'+h[t(0x1be)]['js'],'content':'import\x20\x27./'+i[t(0x1ab)]+'.'+h[t(0x1be)][t(0x185)]+'\x27;'}));h[t(0x1be)][t(0x1a8)]!==t(0x18e)&&this['fsi'][t(0x18d)]({'srcPath':'test/test.js','destPath':g+t(0x19d),'framework':t(0x187),'context':i,'config':h});const j=b[t(0x184)]?'/'+b[t(0x184)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x1ab)];let l;if(h['engines'][t(0x18b)]===t(0x1b5)){const m=this[t(0x181)][t(0x1bd)]({'pathParts':[t(0x18f),t(0x17c),'lib',t(0x1a2)]});l=this['fsi'][t(0x188)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x1bd)]({'pathParts':[t(0x18f),'startup',t(0x192),t(0x1a2)]});l=this['fsi'][t(0x188)]({'pathParts':[n],'config':h});}h[t(0x1be)][t(0x192)]===t(0x187)?(h[t(0x1be)]['js']===t(0x1b3)?this['fsi'][t(0x197)]({'filePath':l,'content':t(0x1b0)+i['className']+t(0x1aa)+k+'\x27;\x0a'}):this['fsi'][t(0x197)]({'filePath':l,'content':t(0x1b0)+i[t(0x183)]+t(0x1aa)+k+'.'+h[t(0x1be)]['js']+'\x27;\x0a'}),this[t(0x181)][t(0x193)]({'filePath':l,'content':t(0x182)+i[t(0x183)]+t(0x1b6)})):this[t(0x181)][t(0x193)]({'filePath':l,'content':t(0x1b8)+k+'.'+h[t(0x1be)]['js']+t(0x198)});});}catch(i){Log[s(0x19b)](i);}});function a62c(){const u=['export\x20{\x20','className','dir','css','create','react','rewriteDestinationPathForEngine','apply','withValue','ssr','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','template','none','imports','relative','@apollo/client','client','injectAtEndOfFile','toString','1663360CQRvRO','hook/hook.js','injectAtBeginningOfFile','\x27;\x0a','features','resourceName','error','installNpmPackage','.app-tests.js','2IKHstu','template/template.css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','withTranslations','templates.js','maka\x20g:hook\x20cool-hook','graphql','checkNpmPackage','warn','setTemplate','test','10PDlyjW','\x20}\x20from\x20\x27','fileName','3188IIRbkL','constructor','hook','222EXcNGX','import\x20{\x20','.js','25263xRIhej','tsx','35519vbDigB','true','\x20};\x0a','(((.+)+)+)+$','import\x20\x27','501nTYKRk','106200mhciuH','search','180909JDjZRb','pathFromApp','engines','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','startup','getProjectConfig','1940792RCBqmP','cssCaseName','3252neFkTr','fsi'];a62c=function(){return u;};return a62c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x78;let f=c[d];return f;},a63d(a,b);}const a63j=a63d;(function(a,b){const h=a63d,c=a();while(!![]){try{const d=parseInt(h(0x86))/0x1*(-parseInt(h(0x81))/0x2)+parseInt(h(0x78))/0x3+-parseInt(h(0x88))/0x4+-parseInt(h(0x7f))/0x5*(parseInt(h(0x91))/0x6)+-parseInt(h(0x92))/0x7+parseInt(h(0x7c))/0x8+parseInt(h(0x95))/0x9*(parseInt(h(0x8f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x45e04));const a63b=(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;};}()),a63a=a63b(this,function(){const i=a63d;return a63a[i(0x89)]()[i(0x79)](i(0x82))[i(0x89)]()['constructor'](a63a)['search'](i(0x82));});a63a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a63c(){const m=[',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','10448577wjoDrO','773811yqQwhI','search','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20g:k\x20city-map\x20--type=leaflet-map','2661968UyeCDu','fsi','NIE','72125pjTzCP','login','24IMHVkI','(((.+)+)+)+$','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','error','type','28087uchQhe','create','1336660lJHwSA','toString','notice','leaflet-map','maka\x20g:kit\x20--type=map','resourceName','getProjectConfig','10fBrcLc','indexOf','228BrBVbE','1722455CwSxMP','(blank)'];a63c=function(){return m;};return a63c();}Generator[a63j(0x87)]({'name':'kit','aliases':['k'],'usage':a63j(0x83),'shortDesc':a63j(0x7a),'validOpts':[a63j(0x85)],'examples':[a63j(0x8c),a63j(0x7b)]},async function(a,b){const k=a63j;try{const c=this['fsi'][k(0x8e)]();this[k(0x7d)]['withValue'](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x8d)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[l(0x8d)]),'type':b[l(0x85)],'engine':c['engines']['js'],'noRename':!![]},f=[l(0x8b),l(0x80)];if(f[l(0x90)](d[l(0x85)])<0x0){const g=d[l(0x85)]?d['type']:l(0x93);Log[l(0x84)]('Invalid\x20type\x20'+g+l(0x94));return;}b[l(0x85)]==='map'&&Log[l(0x8a)](l(0x7e)),b['type']===l(0x80)&&Log[l(0x8a)](l(0x7e));});}catch(d){Log[k(0x84)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a64r=a64d;(function(a,b){const o=a64d,c=a();while(!![]){try{const d=-parseInt(o(0x14c))/0x1*(parseInt(o(0x163))/0x2)+parseInt(o(0x146))/0x3*(-parseInt(o(0x153))/0x4)+-parseInt(o(0x165))/0x5*(-parseInt(o(0x11e))/0x6)+parseInt(o(0x122))/0x7*(parseInt(o(0x14e))/0x8)+parseInt(o(0x128))/0x9*(-parseInt(o(0x132))/0xa)+-parseInt(o(0x15b))/0xb*(-parseInt(o(0x13b))/0xc)+parseInt(o(0x126))/0xd*(parseInt(o(0x11d))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x3f235));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a64d;if(c){const e=c[p(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const q=a64d;return a64a[q(0x134)]()[q(0x125)]('(((.+)+)+)+$')['toString']()[q(0x121)](a64a)['search'](q(0x11f));});function a64c(){const u=['graphql','search','429GhrTbT','withHook','9LTyoOK','component/component.js','css','.app-tests.js','tsx','create','className','relative','fsi','resourceName','2410130gxBiFW','imports','toString','Scaffolding\x20for\x20a\x20React\x20Layout.','withTranslations','setTemplate','api','\x20}\x20from\x20\x27','layout','12VqyHMU','features','string','injectAtEndOfFile','import\x20\x27./','/imports/ui/layouts','react','test','getProjectConfig','template','engines','549nJCgUJ','template/template.css','pathFromApp','none','maka\x20g:l\x20web/safari','true','17zgvdIi','pathFromProject','120HAGXDp','theme','templates.js','.js','export\x20{\x20','4268tmMAeB','ramda','maka\x20g:layout\x20mobile/iPhone8','findAppDirectory','client','test/test.js','ssr','startup','3681007SrbGcx','installNpmPackage','apply','fileName','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','import\x20{\x20','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','38788qCYOUv','withHooks','12805AEmxzH','dir','rewriteDestinationPathForEngine','checkNpmPackage','withValue','\x27;\x0a','82474XEBWua','780vQJLsG','(((.+)+)+)+$','includes','constructor','75887CiqQLp','warn'];a64c=function(){return u;};return a64c();}a64a();import a64e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x11a;let f=c[d];return f;},a64d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a64r(0x12d)]({'name':a64r(0x13a),'aliases':aliases,'usage':a64r(0x162),'shortDesc':a64r(0x135),'validOpts':[],'examples':[a64r(0x155),a64r(0x14a)]},function(a,b){const s=a64r,c=s(0x140),d=this[s(0x130)][s(0x156)](),e=this[s(0x130)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[s(0x131)]),paramCase(b['resourceName'])]}),f=this['fsi'][s(0x143)]();this[s(0x130)][s(0x11b)](f,()=>{const t=s;typeof f['template']['test']==='string'&&(f[t(0x144)][t(0x142)]=f[t(0x144)][t(0x142)]===t(0x14b)?!![]:![],this[t(0x130)]['setTemplate'](t(0x142),f[t(0x144)][t(0x142)]));typeof f[t(0x144)][t(0x12a)]===t(0x13d)&&(f[t(0x144)][t(0x12a)]=f[t(0x144)][t(0x12a)]==='true'?!![]:![],this[t(0x130)]['setTemplate']('css',f[t(0x144)][t(0x12a)]));typeof f[t(0x144)]['js']===t(0x13d)&&(f['template']['js']=f[t(0x144)]['js']===t(0x14b)?!![]:![],this[t(0x130)][t(0x137)]('js',f[t(0x144)]['js']));!f[t(0x13c)]&&(f[t(0x13c)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[t(0x120)](g);h&&!this[t(0x11a)]('ramda')&&(Log[t(0x123)](t(0x15f)),this[t(0x130)][t(0x15c)](t(0x154),{'cwd':d}));if(h&&!this[t(0x11a)](t(0x141))){Log[t(0x123)](t(0x160));return;}const i={'name':pascalCase(b[t(0x131)]),'myPath':a64e[t(0x12f)](this[t(0x130)][t(0x14d)]({}),e),'cssCaseName':paramCase(b[t(0x131)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0x131)]),'graphql':f[t(0x145)][t(0x124)],'features':f[t(0x13c)],'client':f[t(0x145)]['client'],'api':f[t(0x145)][t(0x138)],'ssr':f[t(0x145)][t(0x159)],'test':f[t(0x145)][t(0x142)],'theme':f[t(0x145)][t(0x14f)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x13c)][t(0x136)]};f[t(0x13c)]?.[t(0x164)]||b[t(0x127)]?this['fsi'][t(0x144)]({'srcPath':'hook/hook.js','destPath':e+t(0x151),'framework':t(0x141),'context':i,'config':f}):this[t(0x130)][t(0x144)]({'srcPath':t(0x129),'destPath':e+t(0x151),'framework':'react','context':i,'config':f});f['engines'][t(0x142)]!==t(0x149)&&this['fsi']['template']({'srcPath':t(0x158),'destPath':e+t(0x12b),'framework':t(0x141),'context':i,'config':f});f['template']['css']&&(this[t(0x130)][t(0x144)]({'srcPath':t(0x147),'destPath':e+'.css','context':Object['assign']({},i,{'className':paramCase(b[t(0x131)])}),'config':f}),this[t(0x130)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x145)]['js'],'content':t(0x13f)+i['fileName']+'.'+f[t(0x145)][t(0x12a)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x166)]+'/':'/',k=''+c+j+i[t(0x15e)]+'/'+i[t(0x15e)];let l;if(f[t(0x145)][t(0x159)]===t(0x14b)){const m=this[t(0x130)][t(0x148)]({'pathParts':['imports',t(0x15a),'lib',t(0x150)]});l=this[t(0x130)][t(0x167)]({'pathParts':[m],'config':f});}else{const n=this[t(0x130)][t(0x148)]({'pathParts':[t(0x133),t(0x15a),t(0x157),t(0x150)]});l=this[t(0x130)][t(0x167)]({'pathParts':[n],'config':f});}f[t(0x145)][t(0x157)]===t(0x141)?(f[t(0x145)]['js']===t(0x12c)?this[t(0x130)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x161)+i[t(0x12e)]+t(0x139)+k+t(0x11c)}):this[t(0x130)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x161)+i[t(0x12e)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x145)]['js']+t(0x11c)}),this[t(0x130)]['injectAtEndOfFile']({'filePath':l,'content':t(0x152)+i[t(0x12e)]+'\x20};\x0a'})):this[t(0x130)][t(0x13e)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0x145)]['js']+t(0x11c)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a65i=a65d;(function(a,b){const f=a65d,c=a();while(!![]){try{const d=parseInt(f(0xb8))/0x1+parseInt(f(0xaa))/0x2+-parseInt(f(0xb0))/0x3+parseInt(f(0xb2))/0x4+-parseInt(f(0xb7))/0x5+-parseInt(f(0xab))/0x6+parseInt(f(0xae))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x5ab70));function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0xa9;let f=c[d];return f;},a65d(a,b);}const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a65d;if(c){const e=c[g(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const h=a65d;return a65a['toString']()['search'](h(0xa9))[h(0xba)]()[h(0xac)](a65a)[h(0xb5)]('(((.+)+)+)+$');});a65a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a65i(0xad),'shortDesc':a65i(0xb1),'validOpts':[],'description':a65i(0xb4),'usage':a65i(0xb9),'examples':[a65i(0xb6),a65i(0xb3)]},function(){return null;});function a65c(){const j=['Maka!','1914092zGVMEE','maka\x20g:hook\x20cool-hook','\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','search','maka\x20generate:api\x20Trucks','2037825tdZIKz','175074bixwtN','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','toString','(((.+)+)+)+$','1292320xzLBEK','3758652SoKlgr','constructor','maka','1708035PVukUl','apply','414561eRgEPM'];a65c=function(){return j;};return a65c();}export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66n=a66d;(function(a,b){const k=a66d,c=a();while(!![]){try{const d=-parseInt(k(0xfb))/0x1+-parseInt(k(0xff))/0x2+parseInt(k(0xf3))/0x3*(parseInt(k(0xdf))/0x4)+-parseInt(k(0x106))/0x5+-parseInt(k(0x104))/0x6+parseInt(k(0xf6))/0x7+parseInt(k(0xf7))/0x8*(parseInt(k(0xf2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x2aecc));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a66d;if(c){const e=c[l(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const m=a66d;return a66a[m(0xee)]()[m(0xe9)](m(0xe1))[m(0xee)]()[m(0xf8)](a66a)[m(0xe9)](m(0xe1));});a66a();function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0xdc;let f=c[d];return f;},a66d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a66c(){const q=['-rpc-method\x27;','688524akkpHU','index.','startup','template','resourceName','1653276qYojau','appPathPrefix','1619195VnjJZp','dir','installMeteorPackage','import\x20\x27./methods','4UREROY','apply','(((.+)+)+)+$','methods','-rpc-method.','mdg:validated-method','checkMeteorPackage','method','maka\x20g:method\x20todos','pathFromApp','search','check','create','ddp-rate-limiter','fsi','toString','method/method.js','engines','imports','1697778cVZUGy','974904ulHrMj','injectAtEndOfFile','check\x20ddp-rate-limiter\x20mdg:validated-method','2181179vkXgBn','24GzERcy','constructor','error','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','83024vCYIcz','withValue','tsx'];a66c=function(){return q;};return a66c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a66n(0xeb)]({'name':a66n(0xe6),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a66n(0xfa),'validOpts':[a66n(0xdc)],'examples':[a66n(0xe7)]},function(a,b){const o=a66n;try{const c=this['fsi']['getProjectConfig']();this[o(0xed)][o(0xfc)](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b[p(0x103)],'fileName':d,'className':pascalCase(b[p(0x103)]),'camelCase':camelCase(b[p(0x103)]),'noRename':!![]};let g='js';c[p(0xf0)]['js']===p(0xfd)&&(g='ts');const h=this['fsi'][p(0xe8)]({});(!this[p(0xed)][p(0xe5)](p(0xea))||!this[p(0xed)][p(0xe5)](p(0xec))||!this[p(0xed)]['checkMeteorPackage'](p(0xe4)))&&(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(0xed)][p(0xdd)](p(0xf5),{'cwd':h}));this[p(0xed)][p(0x102)]({'srcPath':p(0xef),'destPath':this[p(0xed)][p(0xe8)]({'pathParts':[p(0xf1),p(0x101),b[p(0x105)],p(0xe2),b['dir'],d+p(0xe3)+g]}),'context':f,'config':c});const i=b[p(0xdc)]?'/'+b[p(0xdc)]+'/':'/',j=this[p(0xed)][p(0xe8)]({'pathParts':[p(0xf1),p(0x101),b['appPathPrefix'],p(0x100)+c[p(0xf0)]['js']]});this[p(0xed)][p(0xf4)]({'filePath':j,'content':p(0xde)+i+d+p(0xfe)});});}catch(d){Log[o(0xf9)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67n=a67d;(function(a,b){const l=a67d,c=a();while(!![]){try{const d=parseInt(l(0x178))/0x1*(-parseInt(l(0x189))/0x2)+-parseInt(l(0x183))/0x3*(-parseInt(l(0x174))/0x4)+-parseInt(l(0x187))/0x5*(-parseInt(l(0x180))/0x6)+parseInt(l(0x182))/0x7*(-parseInt(l(0x177))/0x8)+-parseInt(l(0x18c))/0x9*(-parseInt(l(0x17f))/0xa)+parseInt(l(0x190))/0xb+-parseInt(l(0x198))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xe00ab));const a67b=(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;};}()),a67a=a67b(this,function(){const m=a67d;return a67a['toString']()['search'](m(0x17b))[m(0x188)]()['constructor'](a67a)['search'](m(0x17b));});function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x171;let f=c[d];return f;},a67d(a,b);}a67a();import a67e from'path';import{Generator}from'../generator.js';function a67c(){const r=['engines','graphql','5970710eKXsLU','80502QTDItA','template/template.js','4334449FAKpFP','219gynDWG','theme','pathFromProject','package.js','305cPWkbY','toString','271426fllXfO','.js','fsi','9HvAtMD','resourceName','layout','create','8410633FuUvHs','relative','tests/client','forEach','tests/server','hasOwnProperty','pathFromApp','/client/','3538152InuVsF','template','features','/package.js','store','getProjectConfig','lib','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','package/','22276LynjXi','pathFromAppWithNoReWrite','ssr','16yObWFp','1sZWQcc','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','packages','(((.+)+)+)+$','maka\x20g:package\x20todos:package'];a67c=function(){return r;};return a67c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0x18f)]({'name':'package','aliases':['p'],'usage':a67n(0x179),'shortDesc':a67n(0x172),'validOpts':['dir'],'examples':[a67n(0x17c)]},async function(a,b){const o=a67n,c=paramCase(b[o(0x18d)]),d=this[o(0x18b)][o(0x196)]({'pathParts':['packages',b['dir'],c]}),e=this[o(0x18b)][o(0x175)]({'pathParts':[o(0x17a),b['dir'],c,o(0x186)]}),f=this[o(0x18b)][o(0x19d)]();this[o(0x18b)]['withValue'](f,async()=>{const p=o,g={'name':paramCase(b[p(0x18d)]),'myPath':a67e[p(0x191)](this[p(0x18b)][p(0x185)]({}),d),'cssCaseName':paramCase(b[p(0x18d)]),'className':pascalCase(b[p(0x18d)]),'camelCaseName':camelCase(b[p(0x18d)]),'fileName':c,'client':f[p(0x17d)]['client'],'graphql':f['engines'][p(0x17e)],'ssr':f['engines'][p(0x176)],'isComponent':b[p(0x195)]('component'),'isLayout':b['hasOwnProperty'](p(0x18e)),'isStore':b[p(0x195)](p(0x19c)),'features':f[p(0x19a)],'noRename':!![],'theme':f[p(0x17d)][p(0x184)]};this['fsi'][p(0x199)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+p(0x197)+c+'.js';this[p(0x18b)][p(0x199)]({'srcPath':p(0x181),'destPath':h,'context':g,'config':f});const i=[p(0x171),'server',p(0x192),p(0x194)];i[p(0x193)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x18a);this[q(0x18b)][q(0x199)]({'srcPath':q(0x173)+j+q(0x19b),'destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x100;let f=c[d];return f;},a68d(a,b);}const a68p=a68d;(function(a,b){const m=a68d,c=a();while(!![]){try{const d=-parseInt(m(0x134))/0x1+parseInt(m(0x145))/0x2*(parseInt(m(0x149))/0x3)+-parseInt(m(0x146))/0x4*(parseInt(m(0x129))/0x5)+-parseInt(m(0x107))/0x6*(-parseInt(m(0x117))/0x7)+parseInt(m(0x116))/0x8*(-parseInt(m(0x119))/0x9)+-parseInt(m(0x138))/0xa*(-parseInt(m(0x13d))/0xb)+parseInt(m(0x139))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x9a2f0));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a68d;if(c){const e=c[n(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const o=a68d;return a68a[o(0x12a)]()[o(0x147)](o(0x132))[o(0x12a)]()[o(0x12b)](a68a)['search'](o(0x132));});a68a();import a68e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a68c(){const s=['client','\x20};\x0a','\x27;\x0a','606234DTXGuK','theme','import\x20\x27','api','rewriteDestinationPathForEngine','apply','.js','ssr','Updating\x20npm\x20packages\x20...','ramda','imports','.app-tests.js','getProjectConfig','injectAtEndOfFile','templates.js','402352JQPqNb','14XaXyyP','setTemplate','9siLqWh','test/test.js','export\x20{\x20','features','withValue','className','withHook','.css','test','injectAtBeginningOfFile','hasOwnProperty','import\x20{\x20','withTranslations','none','vanilla','component','5YHnvdJ','toString','constructor','dir','component/component.js','template/template.css','\x20}\x20from\x20\x27','fileName','true','(((.+)+)+)+$','css','391500JHqovw','root','startup','template','10KEnWEP','9887688CNfZMk','pathFromProject','layout','string','5748633JqrIxn','fsi','hook/hook.js','engines','import\x20\x27./','resourceName','template/template.html','page','93510ucvEUK','3397460UFLFpc','search','relative','24rfMsBV','html','maka\x20g:page\x20todos/todos-item','pathFromApp','react'];a68c=function(){return s;};return a68c();}Generator['create']({'name':a68p(0x144),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[a68p(0x12c),a68p(0x11f)],'examples':[a68p(0x101)]},function(a,b){const q=a68p,c='/imports/ui/pages',d=this[q(0x13e)][q(0x102)](b),e=this[q(0x13e)][q(0x102)]({'pathParts':[c,b[q(0x12c)],paramCase(b[q(0x142)]),paramCase(b['resourceName'])]}),f=this[q(0x13e)][q(0x113)]();this['fsi'][q(0x11d)](f,()=>{const r=q;typeof f['template'][r(0x100)]===r(0x13c)&&(f[r(0x137)][r(0x100)]=f[r(0x137)]['html']===r(0x131)?!![]:![],this[r(0x13e)][r(0x118)]('html',f['template']['html']));typeof f['template']['test']===r(0x13c)&&(f[r(0x137)]['test']=f[r(0x137)][r(0x121)]===r(0x131)?!![]:![],this[r(0x13e)]['setTemplate']('test',f[r(0x137)]['test']));typeof f['template'][r(0x133)]==='string'&&(f['template']['css']=f[r(0x137)]['css']===r(0x131)?!![]:![],this['fsi'][r(0x118)](r(0x133),f[r(0x137)][r(0x133)]));typeof f[r(0x137)]['js']==='string'&&(f[r(0x137)]['js']=f[r(0x137)]['js']==='true'?!![]:![],this[r(0x13e)]['setTemplate']('js',f[r(0x137)]['js']));!f[r(0x11c)]&&(f[r(0x11c)]={});!b[r(0x135)]&&!this[r(0x13e)]['checkNpmPackage'](r(0x110))&&(Log['warn'](r(0x10f)),this[r(0x13e)]['installNpmPackage'](r(0x110),{'cwd':d}));const g={'name':pascalCase(b[r(0x142)]),'myPath':a68e[r(0x148)](this['fsi'][r(0x13a)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[r(0x142)]),'camelCaseName':camelCase(b[r(0x142)]),'fileName':paramCase(b['resourceName']),'graphql':f['engines']['graphql'],'features':f['features'],'client':f[r(0x140)][r(0x104)],'api':f['engines'][r(0x10a)],'ssr':f['engines'][r(0x10e)],'isStore':b['hasOwnProperty']('store'),'isComponent':b[r(0x123)](r(0x128)),'isLayout':b[r(0x123)](r(0x13b)),'withTranslations':f[r(0x11c)][r(0x125)],'test':f[r(0x140)][r(0x121)],'theme':f[r(0x140)][r(0x108)]};f[r(0x137)][r(0x100)]&&this[r(0x13e)][r(0x137)]({'srcPath':r(0x143),'destPath':e+'.html','context':g,'config':f});f[r(0x11c)]?.['withHooks']||b['withHook']?this[r(0x13e)][r(0x137)]({'srcPath':r(0x13f),'destPath':e+r(0x10d),'framework':r(0x103),'context':g,'config':f}):this[r(0x13e)][r(0x137)]({'srcPath':r(0x12d),'destPath':e+r(0x10d),'framework':r(0x103),'context':g,'config':f});f[r(0x140)][r(0x121)]!==r(0x126)&&this[r(0x13e)][r(0x137)]({'srcPath':r(0x11a),'destPath':e+r(0x112),'framework':r(0x103),'context':g,'config':f});f[r(0x137)][r(0x133)]&&this['fsi'][r(0x137)]({'srcPath':r(0x12e),'destPath':e+r(0x120),'context':Object['assign']({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0x140)][r(0x104)]!==r(0x103)&&f[r(0x140)]['client']!==r(0x127)?(f[r(0x137)][r(0x133)]&&this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x140)]['js'],'content':'import\x20\x27./'+g[r(0x130)]+'.'+f[r(0x140)][r(0x100)]+r(0x106)+'import\x20\x27./'+g[r(0x130)]+'.'+f[r(0x140)][r(0x133)]+'\x27;'}),!f[r(0x137)][r(0x133)]&&this[r(0x13e)][r(0x122)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[r(0x140)][r(0x100)]+'\x27;'})):f[r(0x137)][r(0x133)]&&this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x140)]['js'],'content':r(0x141)+g[r(0x130)]+'.'+f[r(0x140)]['css']+'\x27;'});const h=b[r(0x12c)]?'/'+b[r(0x12c)]+'/':'/',i=''+c+h+g['fileName']+'/'+g['fileName'];let j;if(f[r(0x140)]['ssr']===r(0x131)){const k=this['fsi'][r(0x102)]({'pathParts':[r(0x111),r(0x136),'lib',r(0x115)]});j=this[r(0x13e)][r(0x10b)]({'pathParts':[k],'config':f});}else{const l=this[r(0x13e)][r(0x102)]({'pathParts':[r(0x111),r(0x136),r(0x104),r(0x115)]});j=this[r(0x13e)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x140)][r(0x104)]===r(0x103)?(f[r(0x140)]['js']==='tsx'?this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0x124)+g[r(0x11e)]+r(0x12f)+i+r(0x106)}):this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0x124)+g[r(0x11e)]+r(0x12f)+i+'.'+f[r(0x140)]['js']+r(0x106)}),this['fsi'][r(0x114)]({'filePath':j,'content':r(0x11b)+g[r(0x11e)]+r(0x105)})):this[r(0x13e)][r(0x114)]({'filePath':j,'content':r(0x109)+i+'.'+f['engines']['js']+r(0x106)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a69c(){const m=['withValue','getProjectConfig','server/publish.','1169399PhnSXg','39582sfSKKZ','templateContent','644768zUtYMB','595696wOxfkl','181653DjZdxG','(((.+)+)+)+$','create','2427597xWRiTd','2UCwLBY','fsi','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','120183YEuHcg','search','toString','constructor','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','injectAtEndOfFile','110EbcRvi','resourceName','publish/publish.','rewriteDestinationPathForEngine','maka\x20g:publish\x20todos','engines'];a69c=function(){return m;};return a69c();}const a69j=a69d;(function(a,b){const h=a69d,c=a();while(!![]){try{const d=parseInt(h(0x180))/0x1+-parseInt(h(0x17d))/0x2*(parseInt(h(0x194))/0x3)+parseInt(h(0x192))/0x4+-parseInt(h(0x186))/0x5*(parseInt(h(0x190))/0x6)+-parseInt(h(0x18f))/0x7+-parseInt(h(0x193))/0x8+parseInt(h(0x197))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x195e0));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const i=a69d;return a69a[i(0x182)]()['search'](i(0x195))[i(0x182)]()[i(0x183)](a69a)[i(0x181)]('(((.+)+)+)+$');});a69a();import{paramCase}from'change-case';function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x17d;let f=c[d];return f;},a69d(a,b);}import{Generator}from'../generator.js';Generator[a69j(0x196)]({'name':'publish','aliases':['p'],'usage':a69j(0x17f),'shortDesc':a69j(0x184),'validOpts':[],'examples':[a69j(0x18a)]},async function(a,b){const k=a69j,c=this[k(0x17e)][k(0x18d)]();this[k(0x17e)][k(0x18c)](c,async()=>{const l=k,d={'name':b[l(0x187)],'collection':paramCase(b[l(0x187)]),'noRename':!![]};let e='js';c[l(0x18b)]['js']==='tsx'&&(e='ts');const f=this[l(0x17e)][l(0x189)]({'pathParts':[l(0x18e)+c['engines']['js']]}),g=this[l(0x17e)][l(0x191)]({'srcPath':l(0x188)+e,'context':d,'config':c});this[l(0x17e)][l(0x185)]({'filePath':f,'content':'\x0a'+g});});});
|