@maka/maka-cli 4.3.30 → 4.3.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/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/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/actions/actions.test.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a56d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a56d,c=a();while(!![]){try{var d=parseInt(f(0x98))/0x1+-parseInt(f(0xa2))/0x2*(parseInt(f(0x9b))/0x3)+parseInt(f(0x9d))/0x4+-parseInt(f(0x95))/0x5+-parseInt(f(0xa1))/0x6*(parseInt(f(0x9e))/0x7)+parseInt(f(0x99))/0x8+-parseInt(f(0xa0))/0x9*(-parseInt(f(0x9c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x9858d));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a[h(0x96)]()[h(0x97)]('(((.+)+)+)+$')[h(0x96)]()['constructor'](a56a)[h(0x97)](h(0x9f));});a56a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';function a56c(){var i=['search','753476eNVdOH','7995056THsYTo','apply','3041373HZqbvz','380auFfZf','1435228FlFWvK','28zsHZjx','(((.+)+)+)+$','233433rWMixp','491154DWVJge','2cCROBH','5660155uRbKPF','toString'];a56c=function(){return i;};return a56c();}import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x95;var f=c[d];return f;},a56d(a,b);}import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=-parseInt(w(0x18d))/0x1*(parseInt(w(0x176))/0x2)+parseInt(w(0x14c))/0x3+parseInt(w(0x196))/0x4+parseInt(w(0x191))/0x5+parseInt(w(0x164))/0x6+-parseInt(w(0x17c))/0x7*(-parseInt(w(0x189))/0x8)+-parseInt(w(0x14e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xf0162));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a[y(0x148)]()[y(0x155)](y(0x162))[y(0x148)]()[y(0x192)](a57a)[y(0x155)](y(0x162));});a57a();import{Generator}from'../generator.js';function a57c(){const C=['mdg:validated-method','TypeDefs);\x0a','Resolvers);\x0a\x0a','1099WEDPAY','API\x20boundaries\x20to\x20create','Publications','invoke','maka:check','installMeteorPackage','injectAtEndOfFile','error','apply','Verifying\x20meteor\x20package\x20requirements\x20...','includes','test','/graphql/resolvers','43640uAJmCA','api/publications.js','collection','apollo','52484BfBXrD','checkMeteorPackage','exit','REST\x20API','6745755IqtJfy','constructor','template','options','tsx','1820600IAmFCA','withRest','RPC\x20(Methods)','imports','api/api.js','ddp-rate-limiter','withValue','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','api/register-api.js','mongo','maka\x20{generate,\x20g}:{api}\x20<resource-name>','toString','injectIntoFile','maka\x20g:api\x20todos','resolverList.push(','752454riVixO','api/resolvers.js','15947883ixyVGF','Fixtures','import\x20{\x20typeDefs\x20as\x20','register-','rest-api.','api/typeDefs.js','api/tests.js','search','startup','const','notice','/graphql/typeDefs','maka:rest','\x27;\x0a','typeDefs.','api','withGql','TypeDefs\x20}\x20from\x20\x27','.app-tests.','/imports/api','(((.+)+)+)+$','getProjectConfig','5990850PvGTiO','injectAtBeginningOfFile','withFixtures','fsi','log','server','dir','index.','pathFromApp','\x0aimport\x20{\x20resolvers\x20as\x20','rest','-api\x27;','findGenerator','resolvers.','graphql','engines','withPubs','Resolvers\x20}\x20from\x20\x27','44NVLOZB','rpc-methods.','push'];a57c=function(){return C;};return a57c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x147;let f=c[d];return f;},a57d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a57z(0x15d),'aliases':['a'],'usage':a57z(0x147),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a57z(0x16a)],'examples':[a57z(0x14a)]},async function(a,b){const A=a57z;try{const c=this['fsi'][A(0x163)](),d=[{'name':A(0x198),'value':'withMethods'},{'name':A(0x14f),'value':A(0x166)},{'name':A(0x17e),'value':A(0x174)}];c[A(0x173)][A(0x15d)]===A(0x16e)&&d[A(0x178)]({'name':A(0x190),'value':A(0x197)});c[A(0x173)][A(0x172)]===A(0x18c)&&d[A(0x178)]({'name':'GraphQL','value':A(0x15e)});const f={'type':'checkbox','name':'apiAnswers','message':A(0x17d),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x194)](f);g['length']===0x0&&(Log[A(0x183)]('No\x20API\x20boundaries\x20selected'),process[A(0x18f)](0x1)),this[A(0x167)][A(0x19c)](c,async()=>{const B=A,h=this[B(0x167)][B(0x16c)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x16a)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x173)][B(0x15d)],'graphql':c[B(0x173)][B(0x172)],'test':c[B(0x173)][B(0x187)],'noRename':!![],'withPubs':g[B(0x186)](B(0x174)),'withFixtures':g[B(0x186)](B(0x166)),'withMethods':g['includes']('withMethods'),'withRest':g[B(0x186)](B(0x197))};let n='js';c[B(0x173)]['js']===B(0x195)&&(n='ts');(!this[B(0x167)][B(0x18e)](B(0x15a))||!this['fsi'][B(0x18e)](B(0x180))||!this[B(0x167)][B(0x18e)](B(0x19b))||!this[B(0x167)][B(0x18e)](B(0x179))||!this[B(0x167)][B(0x18e)](B(0x19f)))&&(Log[B(0x158)](B(0x185)),await this['fsi'][B(0x181)](B(0x19d),{'cwd':h}));const o=a57e[B(0x170)](B(0x18b));o&&await o[B(0x17f)]([j],{'config':c,'where':B(0x169)});c['engines'][B(0x15d)]===B(0x16e)&&(m['withRest']&&this[B(0x167)][B(0x193)]({'srcPath':B(0x19a),'destPath':this['fsi'][B(0x16c)]({'pathParts':[B(0x199),'api',b[B(0x16a)],j,B(0x152)+n]}),'context':m,'config':c}));m['withMethods']&&this[B(0x167)][B(0x193)]({'srcPath':'api/methods.js','destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x199),B(0x15d),b[B(0x16a)],j,B(0x177)+n]}),'context':m,'config':c});m[B(0x166)]&&this[B(0x167)][B(0x193)]({'srcPath':'api/fixtures.js','destPath':this[B(0x167)][B(0x16c)]({'pathParts':['imports',B(0x15d),b['dir'],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x173)][B(0x187)]!=='none'&&this[B(0x167)][B(0x193)]({'srcPath':B(0x154),'destPath':this['fsi'][B(0x16c)]({'pathParts':['imports',B(0x15d),b['dir'],j,j+B(0x160)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x167)][B(0x193)]({'srcPath':B(0x18a),'destPath':this[B(0x167)][B(0x16c)]({'pathParts':[B(0x199),'api',b['dir'],j,'publications.'+n]}),'context':m,'config':c});if(c['engines'][B(0x172)]==='apollo'){if(g[B(0x186)](B(0x15e))){const q=this['fsi'][B(0x16c)]({'pathParts':[B(0x199),B(0x156),B(0x169),B(0x16b)+c['engines']['js']]}),r=this[B(0x167)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[B(0x167)][B(0x16c)]({'pathParts':['imports',B(0x15d),b[B(0x16a)],j,B(0x172),B(0x15c)+n]}),t='/imports/api'+l+j+B(0x159);this[B(0x167)][B(0x193)]({'srcPath':B(0x153),'destPath':s,'context':m,'config':c}),this[B(0x167)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0x150)+k+B(0x15f)+t+B(0x15b)}),this[B(0x167)][B(0x149)]({'filePath':r,'content':'typeList.push('+k+B(0x17a),'begin':B(0x157),'end':'if\x20\x5c('});const u=this[B(0x167)][B(0x16c)]({'pathParts':[B(0x199),B(0x15d),b['dir'],j,B(0x172),B(0x171)+n]}),v=B(0x161)+l+j+B(0x188);this['fsi'][B(0x193)]({'srcPath':B(0x14d),'destPath':u,'context':m,'config':c}),this[B(0x167)][B(0x165)]({'filePath':r,'content':B(0x16d)+k+B(0x175)+v+'\x27;'}),this[B(0x167)]['injectIntoFile']({'filePath':r,'content':B(0x14b)+k+B(0x17b),'begin':B(0x157),'end':'if\x20\x5c('});}}this[B(0x167)]['template']({'srcPath':B(0x19e),'destPath':this[B(0x167)][B(0x16c)]({'pathParts':[B(0x199),B(0x156),B(0x169),B(0x151)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x167)][B(0x16c)]({'pathParts':['imports','startup',B(0x169),B(0x16b)+c['engines']['js']]});this['fsi'][B(0x182)]({'filePath':p,'content':'import\x20\x27./register-'+j+B(0x16f)});});}catch(h){console[A(0x168)](h),process[A(0x18f)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58m=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0xf3))/0x1+-parseInt(k(0xf5))/0x2*(parseInt(k(0xed))/0x3)+-parseInt(k(0x108))/0x4+-parseInt(k(0xe6))/0x5*(-parseInt(k(0xf4))/0x6)+parseInt(k(0x109))/0x7*(-parseInt(k(0xe2))/0x8)+parseInt(k(0xe8))/0x9*(-parseInt(k(0x10e))/0xa)+parseInt(k(0xee))/0xb*(parseInt(k(0xe3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x88d00));const a58b=(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;};}()),a58a=a58b(this,function(){const l=a58d;return a58a['toString']()[l(0x10d)](l(0x10c))[l(0xf9)]()[l(0xf0)](a58a)['search']('(((.+)+)+)+$');});function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0xe2;let f=c[d];return f;},a58d(a,b);}a58a();import{paramCase,pascalCase}from'change-case';function a58c(){const p=['Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','dir','fsi','resourceName','maka\x20g:collection\x20todos','tsx','collection','collection/collection.js','.app-tests.','template','366532XaLZde','31451DuzCDo','import\x20\x27./collections','appPathPrefix','(((.+)+)+)+$','search','3400330LmtEWb','528plOCTZ','113580VNiJrc','imports','engines','5194705UQmJjh','create','18ofVQQZ','injectAtEndOfFile','checkMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','getProjectConfig','88119ETAVSU','2442JmGMBf','mongo','constructor','installMeteorPackage','maka:check','689106AQYEim','6xLFaLZ','56naMRwi','test','notice','pathFromApp','toString','index.','startup','where','collections'];a58c=function(){return p;};return a58c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a58m(0xe7)]({'name':a58m(0x104),'aliases':['col'],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>\x20[--where]','checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a58m(0xff),a58m(0xfc)],'description':'\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','examples':[a58m(0x102)]},async function(a,b){const n=a58m;try{const c=this['fsi'][n(0xf8)]({}),d=this[n(0x100)][n(0xec)]();this[n(0x100)]['withValue'](d,async()=>{const o=n,f=paramCase(b[o(0x101)]),g={'name':pascalCase(b[o(0x101)]),'collectionName':pascalCase(b[o(0x101)]),'fileName':f,'where':b[o(0xfc)],'test':d[o(0xe5)][o(0xf6)],'noRename':!![]};let h='js';d[o(0xe5)]['js']===o(0x103)&&(h='ts');!this[o(0x100)][o(0xea)](o(0xef))&&(Log[o(0xf7)](o(0xfe)),await this['fsi']['installMeteorPackage'](o(0xef),{'cwd':c}));!this[o(0x100)]['checkMeteorPackage'](o(0xf2))&&(Log['notice'](o(0xeb)),await this[o(0x100)][o(0xf1)](o(0xf2),{'cwd':c}));this['fsi'][o(0x107)]({'srcPath':o(0x105),'destPath':this[o(0x100)][o(0xf8)]({'pathParts':[o(0xe4),o(0xfb),b[o(0x10b)],o(0xfd),b[o(0xff)],f+'.'+h]}),'context':g,'config':d});d[o(0xe5)][o(0xf6)]!=='none'&&this[o(0x100)]['template']({'srcPath':'collection/tests.js','destPath':this[o(0x100)]['pathFromApp']({'pathParts':['imports','startup',b[o(0x10b)],'collections',b[o(0xff)],f+o(0x106)+h]}),'context':g,'config':d});const i=b[o(0xff)]?'/'+b['dir']+'/':'/',j=this[o(0x100)]['pathFromApp']({'pathParts':[o(0xe4),o(0xfb),b[o(0x10b)],o(0xfa)+d[o(0xe5)]['js']]});this[o(0x100)][o(0xe9)]({'filePath':j,'content':o(0x10a)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59q=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=parseInt(n(0x174))/0x1+-parseInt(n(0x17b))/0x2+-parseInt(n(0x175))/0x3*(-parseInt(n(0x19b))/0x4)+parseInt(n(0x170))/0x5+-parseInt(n(0x16a))/0x6*(parseInt(n(0x17c))/0x7)+-parseInt(n(0x177))/0x8*(-parseInt(n(0x18f))/0x9)+-parseInt(n(0x157))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xc068a));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a59d;if(c){const e=c[o(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const p=a59d;return a59a[p(0x188)]()[p(0x167)](p(0x16b))['toString']()[p(0x195)](a59a)[p(0x167)]('(((.+)+)+)+$');});a59a();function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x155;let f=c[d];return f;},a59d(a,b);}import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a59q(0x15f)];function a59c(){const t=['pathFromProject','startup','injectAtBeginningOfFile','96498ClmXxS','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','api','graphql','ramda','templates.js','constructor','true','template','lib','getProjectConfig','tsx','5284wkkePh','string','error','import\x20\x27./','15885880wOuIHl','className','import\x20\x27','features','rewriteDestinationPathForEngine','warn','fileName','client','comp','react','\x20}\x20from\x20\x27','theme','imports','injectAtEndOfFile','dir','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','search','relative','maka\x20g:comp\x20todos/todos-item','738maBUyM','(((.+)+)+)+$','reflux','test','.css','fsi','3048875teJgxZ','ssr','assign','apply','790934bIWryk','2424LNrjTq','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','1048qzgyyb','findAppDirectory','checkNpmPackage','engines','2870406zbiCNg','3458ecLMRJ','component','export\x20{\x20','withValue','none','setTemplate','/imports/ui/components','test/test.js','import\x20{\x20','root','resourceName','pathFromApp','toString','installNpmPackage','component/component.js','css'];a59c=function(){return t;};return a59c();}Generator['create']({'name':a59q(0x17d),'aliases':aliases,'usage':a59q(0x176),'shortDesc':a59q(0x190),'validOpts':['dir'],'examples':[a59q(0x169)]},async function(a,b){const r=a59q;try{const c=this['fsi'][r(0x178)](),d=r(0x182),f=this[r(0x16f)][r(0x187)]({'pathParts':[d,b[r(0x165)],paramCase(b[r(0x186)]),paramCase(b['resourceName'])]}),g=await this[r(0x16f)][r(0x199)]();this[r(0x16f)][r(0x17f)](g,async()=>{const s=r;typeof g[s(0x197)][s(0x16d)]===s(0x19c)&&(g[s(0x197)][s(0x16d)]=g[s(0x197)][s(0x16d)]==='true'?!![]:![],this[s(0x16f)][s(0x181)]('test',g['template'][s(0x16d)]));typeof g[s(0x197)][s(0x18b)]===s(0x19c)&&(g[s(0x197)]['css']=g[s(0x197)][s(0x18b)]===s(0x196)?!![]:![],this[s(0x16f)][s(0x181)](s(0x18b),g[s(0x197)][s(0x18b)]));typeof g[s(0x197)]['js']===s(0x19c)&&(g[s(0x197)]['js']=g[s(0x197)]['js']===s(0x196)?!![]:![],this[s(0x16f)][s(0x181)]('js',g[s(0x197)]['js']));!g[s(0x15a)]&&(g[s(0x15a)]={});!b['root']&&!this[s(0x16f)][s(0x179)](s(0x193))&&(Log[s(0x15c)](s(0x166)),await this[s(0x16f)][s(0x189)](s(0x193),{'cwd':c}));if(!b[s(0x185)]&&!this['fsi'][s(0x179)](s(0x160))){Log[s(0x155)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[s(0x186)]),'myPath':a59e[s(0x168)](this[s(0x16f)][s(0x18c)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x186)]),'fileName':paramCase(b[s(0x186)]),'graphql':g[s(0x17a)][s(0x192)],'features':g[s(0x15a)],'client':g['engines'][s(0x15e)],'api':g[s(0x17a)][s(0x191)],'ssr':g[s(0x17a)][s(0x171)],'test':g['engines'][s(0x16d)],'theme':g['engines'][s(0x162)],'isLayout':![],'isComponent':!![],'withTranslations':g['features']['withTranslations']};this[s(0x16f)][s(0x197)]({'srcPath':s(0x18a),'destPath':f+'.js','context':h,'framework':'react','config':g});g[s(0x17a)][s(0x16d)]!==s(0x180)&&this['fsi'][s(0x197)]({'srcPath':s(0x183),'destPath':f+'.tests.js','context':h,'framework':s(0x160),'config':g});g[s(0x197)][s(0x18b)]&&(this[s(0x16f)][s(0x197)]({'srcPath':'template/template.css','destPath':f+s(0x16e),'context':Object[s(0x172)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[s(0x16f)][s(0x18e)]({'filePath':f+'.'+g[s(0x17a)]['js'],'content':s(0x156)+h['cssCaseName']+'.'+g['engines'][s(0x18b)]+'\x27;'}));const i=b[s(0x165)]?'/'+b['dir']+'/':'/',j=''+d+i+h[s(0x15d)]+'/'+h[s(0x15d)];let k;if(g[s(0x17a)]['ssr']===s(0x196)){const l=this[s(0x16f)]['pathFromApp']({'pathParts':[s(0x163),s(0x18d),s(0x198),'templates.js']});k=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x16f)][s(0x187)]({'pathParts':[s(0x163),s(0x18d),s(0x15e),s(0x194)]});k=this['fsi'][s(0x15b)]({'pathParts':[m],'config':g});}g['engines'][s(0x15e)]===s(0x160)||g[s(0x17a)][s(0x15e)]===s(0x16c)?(g[s(0x17a)]['js']===s(0x19a)?this[s(0x16f)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x184)+h[s(0x158)]+'\x20}\x20from\x20\x27'+j+'\x27;\x0a'}):this[s(0x16f)][s(0x18e)]({'filePath':k,'content':s(0x184)+h[s(0x158)]+s(0x161)+j+'.'+g['engines']['js']+'\x27;\x0a'}),this[s(0x16f)][s(0x164)]({'filePath':k,'content':s(0x17e)+h['className']+'\x20};\x0a'})):this[s(0x16f)]['injectAtEndOfFile']({'filePath':k,'content':s(0x159)+j+'.'+g['engines']['js']+'\x27;\x0a'});});}catch(h){Log[r(0x155)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=-parseInt(h(0x13c))/0x1+-parseInt(h(0x140))/0x2+-parseInt(h(0x13a))/0x3+-parseInt(h(0x14f))/0x4+-parseInt(h(0x152))/0x5+parseInt(h(0x14e))/0x6+parseInt(h(0x156))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x8ec3c));function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x139;let f=c[d];return f;},a60d(a,b);}const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a[j(0x155)]()[j(0x13f)](j(0x14b))[j(0x155)]()[j(0x149)](a60a)[j(0x13f)]('(((.+)+)+)+$');});a60a();function a60c(){const n=['maka\x20g:config\x20production','search','675366rcUEgP','pathFromProject','prod','production','apply','template','settings.json','config/process.env','Generate\x20configuration\x20settings.','constructor','maka\x20{generate,\x20g}:{config}\x20<name>','(((.+)+)+)+$','config/settings.json','isDocker','132804OKvDqc','1110100XsXJMR','getProjectConfig','process.env','2389750iByQBD','appName','config','toString','21041314oEfJzY','resourceName','fsi','1740450emVVLg','create','769964SptgIF','ubuntu'];a60c=function(){return n;};return a60c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a60k(0x13b)]({'name':a60k(0x154),'usage':a60k(0x14a),'shortDesc':a60k(0x148),'validOpts':[a60k(0x14d)],'examples':[a60k(0x13e)]},function(a,b){const l=a60k,c=this[l(0x139)][l(0x150)]();this[l(0x139)]['withValue'](c,()=>{const m=l,d={'app':c[m(0x153)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x157)]),'camelCase':camelCase(b[m(0x157)]),'userName':m(0x13d),'isDocker':b[m(0x14d)]};let e=a[0x0];if(e==='dev')e='development';else e===m(0x142)&&(e=m(0x143));const f=this[m(0x139)]['pathFromProject']({'pathParts':[m(0x154),e,m(0x146)]});this[m(0x139)][m(0x145)]({'srcPath':m(0x14c),'destPath':f,'context':d,'config':c});if(!b[m(0x14d)]){const g=this[m(0x139)][m(0x141)]({'pathParts':[m(0x154),e,m(0x151)]});this[m(0x139)][m(0x145)]({'srcPath':m(0x147),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a61c(){const t=['list','startup','pathFromApp','446935VtOsjS','78Qnfqph','constructor','create','tsx','indexOf','46903747DCeEJH','14552694UvUgUL','pgsql','4509284DbAJNE','PostgreSQL','conn.','index.','(((.+)+)+)+$','10JuvVsj','dir','3LVqVjT','type','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','installNpmPackage','sqlite','DB\x20Driver','mssql','injectAtEndOfFile','server','engines','error','8YpdDOq',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','Invalid\x20type\x20','dbc','fsi','withValue','search','1322802PqSjMO','template','-dbc.','checkNpmPackage','12UzTSmN','imports','getProjectConfig','(blank)','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','12293365nOgzxZ','warn','import\x20\x27./register-','config.','dbc/config.js','better-sqlite3','toString','apply','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','2575884aiPQLz','resourceName','dbc/register-dbc.js','dbc/conn.js','maka\x20g:dbc\x20geoserver\x20--type=pgsql'];a61c=function(){return t;};return a61c();}function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0xa5;let f=c[d];return f;},a61d(a,b);}const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=-parseInt(n(0xc3))/0x1+-parseInt(n(0xd5))/0x2*(-parseInt(n(0xb1))/0x3)+-parseInt(n(0xaa))/0x4+parseInt(n(0xdd))/0x5*(parseInt(n(0xde))/0x6)+parseInt(n(0xcc))/0x7*(-parseInt(n(0xbc))/0x8)+parseInt(n(0xa8))/0x9*(-parseInt(n(0xaf))/0xa)+-parseInt(n(0xa7))/0xb*(-parseInt(n(0xc7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0xd972a));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a[p(0xd2)]()[p(0xc2)](p(0xae))[p(0xd2)]()[p(0xdf)](a61a)[p(0xc2)](p(0xae));});a61a();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';Generator[a61q(0xe0)]({'name':a61q(0xbf),'usage':a61q(0xcb),'shortDesc':a61q(0xd4),'validOpts':['type',a61q(0xb0)],'examples':[a61q(0xd9)]},async function(a,b){const r=a61q;try{const c=await this[r(0xc0)][r(0xc9)](),d=this[r(0xc0)][r(0xdc)]({}),f=paramCase(b[r(0xd6)]);if(!b['type']){const h={'type':r(0xda),'name':'dbAnswer','message':r(0xb6),'choices':[{'name':r(0xab),'value':r(0xa9)},{'name':'MS\x20SQL','value':'mssql'}]},{dbAnswer:i}=await Actions['options'](h);i&&(b['type']=i);}const g={'name':pascalCase(b[r(0xd6)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[r(0xd6)]),'type':b[r(0xb2)],'engine':c[r(0xba)]['js'],'noRename':!![]};this['fsi'][r(0xc1)](c,async()=>{const s=r;let j='js';c[s(0xba)]['js']===s(0xa5)&&(j='ts');const k=['mssql',s(0xa9)];if(k[s(0xa6)](g[s(0xb2)])<0x0){const m=g[s(0xb2)]?g[s(0xb2)]:s(0xca);Log[s(0xbb)](s(0xbe)+m+s(0xbd));return;}b[s(0xb2)]===s(0xa9)&&!this[s(0xc0)][s(0xc6)]('pg')&&(Log[s(0xcd)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[s(0xc0)][s(0xb4)]('pg',{'cwd':d}));b[s(0xb2)]===s(0xb7)&&!this['fsi']['checkNpmPackage'](s(0xb7))&&(Log[s(0xcd)](s(0xb3)),await this['fsi']['installNpmPackage'](s(0xb7),{'cwd':d}));b['type']===s(0xb5)&&!this['fsi'][s(0xc6)](s(0xd1))&&(Log[s(0xcd)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0xc0)]['installNpmPackage'](s(0xd1),{'cwd':d}));this[s(0xc0)]['template']({'srcPath':s(0xd0),'destPath':this[s(0xc0)][s(0xdc)]({'pathParts':['imports',s(0xdb),s(0xb9),s(0xbf),b[s(0xb0)],f,s(0xcf)+j]}),'context':g,'config':c}),this[s(0xc0)][s(0xc4)]({'srcPath':s(0xd8),'destPath':this[s(0xc0)][s(0xdc)]({'pathParts':[s(0xc8),'startup','server',s(0xbf),b[s(0xb0)],f,s(0xac)+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0xd7),'destPath':this['fsi'][s(0xdc)]({'pathParts':[s(0xc8),s(0xdb),s(0xb9),'register-'+f+s(0xc5)+j]}),'context':g,'config':c});const l=this['fsi'][s(0xdc)]({'pathParts':[s(0xc8),s(0xdb),s(0xb9),s(0xad)+c[s(0xba)]['js']]});this['fsi'][s(0xb8)]({'filePath':l,'content':s(0xce)+f+'-dbc\x27;'});});}catch(j){Log['error'](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=parseInt(f(0x134))/0x1*(parseInt(f(0x135))/0x2)+parseInt(f(0x12f))/0x3+parseInt(f(0x143))/0x4*(parseInt(f(0x132))/0x5)+-parseInt(f(0x13f))/0x6*(-parseInt(f(0x144))/0x7)+parseInt(f(0x146))/0x8*(parseInt(f(0x13e))/0x9)+parseInt(f(0x142))/0xa*(parseInt(f(0x130))/0xb)+-parseInt(f(0x136))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x7795d));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x14a)]()[h(0x141)](h(0x13a))[h(0x14a)]()['constructor'](a62a)[h(0x141)]('(((.+)+)+)+$');});function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x12a;let f=c[d];return f;},a62d(a,b);}a62a();function a62c(){const l=['(((.+)+)+)+$','app.tar.gz','getGlobalConfig','join','9Sjvjup','6DLTyiP','maka\x20g:dockerfile','search','2795570WTexFQ','542944mQLNEp','4181359LTpybR','withValue','2559520aGDHXg','appName','apply','dockerfile','toString','fsi','Generate\x20an\x20updated\x20dockerfile','cert','findProjectDirectory','docker/Dockerfile','isFile','2883708GkzqwZ','11kWdqud','create','25LrVhyo','maka\x20{generate,\x20g}:dockerfile','202613HpAnbb','2FFTqdx','30594504ZxuTNG','service','error','app'];a62c=function(){return l;};return a62c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a62e from'path';Generator[a62i(0x131)]({'name':a62i(0x149),'usage':a62i(0x133),'shortDesc':a62i(0x12a),'validOpts':[],'noResource':!![],'examples':[a62i(0x140)]},async function(){const j=a62i;try{const a=await this['fsi']['getProjectConfig'](),b=await this[j(0x14b)][j(0x13c)](),c=this[j(0x14b)][j(0x12c)]();this[j(0x14b)][j(0x145)](a,async()=>{const k=j,d={'app':b[k(0x147)],'config':a,'appPath':a62e[k(0x13d)](c,k(0x139)),'bundlePath':a62e[k(0x13d)](c,'build',k(0x13b)),'useCert':this[k(0x14b)][k(0x12e)](b[k(0x12b)])};this[k(0x14b)]['template']({'srcPath':k(0x12d),'destPath':a62e['join'](c,'Dockerfile'),'framework':k(0x137),'context':d,'config':a});});}catch(d){Log[j(0x138)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a63r=a63d;(function(a,b){const o=a63d,c=a();while(!![]){try{const d=-parseInt(o(0x1cf))/0x1*(-parseInt(o(0x1aa))/0x2)+-parseInt(o(0x1bd))/0x3+-parseInt(o(0x1c4))/0x4*(parseInt(o(0x1cc))/0x5)+-parseInt(o(0x1be))/0x6*(parseInt(o(0x1ae))/0x7)+parseInt(o(0x1c6))/0x8*(parseInt(o(0x1ca))/0x9)+-parseInt(o(0x1a7))/0xa*(-parseInt(o(0x1b0))/0xb)+parseInt(o(0x1d0))/0xc*(parseInt(o(0x1c9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x3bcdb));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a['toString']()[q(0x1ba)](q(0x1af))[q(0x1b4)]()[q(0x1df)](a63a)[q(0x1ba)](q(0x1af));});function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x19a;let f=c[d];return f;},a63d(a,b);}a63a();import a63e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a63r(0x1a8)]({'name':a63r(0x1bf),'aliases':['h'],'checkWhere':![],'usage':a63r(0x19e),'shortDesc':a63r(0x1a1),'validOpts':[a63r(0x1a9)],'examples':[a63r(0x1b9)]},async function(a,b){const s=a63r;try{const c=this['fsi']['checkNpmPackage'](s(0x1b2));if(!c){Log[s(0x1ce)](s(0x1d7));throw new UsageError();}const d=this[s(0x1ac)]['pathFromApp'](b),f=s(0x1b3),g=this[s(0x1ac)][s(0x1db)]({'pathParts':[f,b['dir'],paramCase(b[s(0x1b8)]),paramCase(b['resourceName'])]}),h=await this['fsi'][s(0x1c2)]();this[s(0x1ac)]['withValue'](h,async()=>{const t=s;typeof h[t(0x1d4)][t(0x1a3)]===t(0x1d2)&&(h['template'][t(0x1a3)]=h[t(0x1d4)][t(0x1a3)]===t(0x1c5)?!![]:![],this['fsi'][t(0x1b5)](t(0x1a3),h[t(0x1d4)][t(0x1a3)]));h[t(0x1cd)]['graphql']==='apollo'&&!this[t(0x19b)]('@apollo/client')&&(Log[t(0x19d)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x1ac)][t(0x1d3)](t(0x1d5),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1b8)]),'className':pascalCase(b[t(0x1b8)]),'name':pascalCase(b['resourceName']),'graphql':h['engines'][t(0x1c3)],'theme':h['engines'][t(0x19f)],'features':h[t(0x1dd)],'myPath':a63e[t(0x1bb)](this[t(0x1ac)][t(0x19c)]({}),g),'fileName':paramCase(b[t(0x1b8)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x1dd)][t(0x1ab)]};this[t(0x1ac)]['template']({'srcPath':t(0x1bc),'destPath':g+'.js','context':i,'config':h,'framework':'react'});h['template'][t(0x1a3)]&&(this[t(0x1ac)][t(0x1d4)]({'srcPath':t(0x1d6),'destPath':g+t(0x1c8),'context':Object['assign']({},i,{'className':i[t(0x1c1)]}),'config':h}),this['fsi'][t(0x1a0)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x1b6)+i[t(0x1cb)]+'.'+h[t(0x1cd)][t(0x1a3)]+'\x27;'}));h[t(0x1cd)]['test']!==t(0x1dc)&&this['fsi'][t(0x1d4)]({'srcPath':t(0x1c0),'destPath':g+t(0x19a),'framework':t(0x1b2),'context':i,'config':h});const j=b[t(0x1a9)]?'/'+b['dir']+'/':'/',k=''+f+j+i[t(0x1cb)]+'/'+i[t(0x1cb)];let l;if(h['engines']['ssr']===t(0x1c5)){const m=this[t(0x1ac)][t(0x1db)]({'pathParts':[t(0x1d9),'startup',t(0x1a2),t(0x1a5)]});l=this[t(0x1ac)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x1db)]({'pathParts':[t(0x1d9),t(0x1ad),t(0x1c7),t(0x1a5)]});l=this[t(0x1ac)][t(0x1da)]({'pathParts':[n],'config':h});}h[t(0x1cd)][t(0x1c7)]===t(0x1b2)?(h[t(0x1cd)]['js']===t(0x1b7)?this[t(0x1ac)][t(0x1a0)]({'filePath':l,'content':t(0x1a4)+i[t(0x1de)]+t(0x1d8)+k+t(0x1a6)}):this[t(0x1ac)][t(0x1a0)]({'filePath':l,'content':t(0x1a4)+i[t(0x1de)]+t(0x1d8)+k+'.'+h[t(0x1cd)]['js']+t(0x1a6)}),this[t(0x1ac)][t(0x1b1)]({'filePath':l,'content':'export\x20{\x20'+i['className']+'\x20};\x0a'})):this[t(0x1ac)][t(0x1b1)]({'filePath':l,'content':'import\x20\x27'+k+'.'+h['engines']['js']+t(0x1a6)});});}catch(i){Log[s(0x1ce)](i);}});function a63c(){const u=['graphql','1397024CNfwOw','true','2131872FYYYdc','client','.css','5821192enrQuQ','9Kmgbqp','fileName','5gQkwFv','engines','error','158941RAJuHl','12GmKICr','apply','string','installNpmPackage','template','@apollo/client\x20isomorphic-fetch','template/template.css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','\x20}\x20from\x20\x27','imports','rewriteDestinationPathForEngine','pathFromApp','none','features','className','constructor','.app-tests.js','checkNpmPackage','pathFromProject','warn','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','theme','injectAtBeginningOfFile','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','lib','css','import\x20{\x20','templates.js','\x27;\x0a','10VrlNsH','create','dir','4gqMuFD','withTranslations','fsi','startup','12761IfORlp','(((.+)+)+)+$','2813635bydgaU','injectAtEndOfFile','react','/imports/ui/hooks','toString','setTemplate','import\x20\x27./','tsx','resourceName','maka\x20g:hook\x20cool-hook','search','relative','hook/hook.js','1003779sutZkb','1182PtCVyT','hook','test/test.js','cssCaseName','getProjectConfig'];a63c=function(){return u;};return a63c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a64c(){const n=['type','error','1165068ZJaWoP','4361730nvljdz','(blank)','engines','1967192svRbtT','toString','map','resourceName','20UkEYEa','Invalid\x20type\x20','maka\x20{generate,\x20g}:{kit}\x20<kit-name>\x20--type=map','16IXhhld','13341vrqFwB','1768842VJeKdI','apply','notice','search','2701098nKGYvh','90yBpTTi','maka\x20g:k\x20city-map\x20--type=leaflet-map','(((.+)+)+)+$','withValue','login','getProjectConfig','NIE','1817942LxqGba','fsi'];a64c=function(){return n;};return a64c();}const a64k=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=-parseInt(h(0xc8))/0x1+parseInt(h(0xbd))/0x2*(parseInt(h(0xd4))/0x3)+parseInt(h(0xcc))/0x4+parseInt(h(0xc9))/0x5+parseInt(h(0xb8))/0x6+-parseInt(h(0xc4))/0x7*(-parseInt(h(0xd3))/0x8)+-parseInt(h(0xbc))/0x9*(parseInt(h(0xd0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x95b2e));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a64d;if(c){const e=c[i(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const j=a64d;return a64a[j(0xcd)]()[j(0xbb)]('(((.+)+)+)+$')[j(0xcd)]()['constructor'](a64a)[j(0xbb)](j(0xbf));});a64a();function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0xb8;let f=c[d];return f;},a64d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'kit','aliases':['k'],'usage':a64k(0xd2),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a64k(0xc6)],'examples':['maka\x20g:kit\x20--type=map',a64k(0xbe)]},async function(a,b){const l=a64k;try{const c=this['fsi'][l(0xc2)]();this[l(0xc5)][l(0xc0)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xcf)]),'fileName':paramCase(b[m(0xcf)]),'camelCase':camelCase(b[m(0xcf)]),'type':b['type'],'engine':c[m(0xcb)]['js'],'noRename':!![]},f=['leaflet-map',m(0xc1)];if(f['indexOf'](d[m(0xc6)])<0x0){const g=d[m(0xc6)]?d[m(0xc6)]:m(0xca);Log[m(0xc7)](m(0xd1)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xc6)]===m(0xce)&&Log[m(0xba)](m(0xc3)),b[m(0xc6)]===m(0xc1)&&Log['notice'](m(0xc3));});}catch(d){Log[l(0xc7)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a65r=a65d;(function(a,b){const o=a65d,c=a();while(!![]){try{const d=-parseInt(o(0x1fd))/0x1+parseInt(o(0x1fc))/0x2+parseInt(o(0x1c8))/0x3*(parseInt(o(0x1f7))/0x4)+-parseInt(o(0x1e8))/0x5+-parseInt(o(0x1d4))/0x6*(parseInt(o(0x205))/0x7)+-parseInt(o(0x1d2))/0x8+parseInt(o(0x1d3))/0x9*(parseInt(o(0x1ea))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x8342b));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x1e0)]()[q(0x1d6)]('(((.+)+)+)+$')[q(0x1e0)]()[q(0x1f9)](a65a)[q(0x1d6)](q(0x207));});a65a();import a65e from'path';import{Generator}from'../generator.js';function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a65d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a65c(){const u=['create','rewriteDestinationPathForEngine','apply','resourceName','string','/imports/ui/layouts','2874945BxWleD','withValue','5834540JzlnhR','test/test.js','features','className','ramda','checkNpmPackage','relative','react','template','export\x20{\x20','Scaffolding\x20for\x20a\x20React\x20Layout.','import\x20\x27','test','260veCiyT','dir','constructor','.js','fileName','1218862kGtPSn','863182GuwceZ','imports','warn','true','assign','.css','\x27;\x0a','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','14TJPJZd','getProjectConfig','(((.+)+)+)+$','withTranslations','import\x20{\x20','maka\x20g:layout\x20mobile/iPhone8','startup','layout','lib','injectAtBeginningOfFile','css','3855FNFLnF','withHook','templates.js','client','installNpmPackage','pathFromProject','import\x20\x27./','injectAtEndOfFile','template/template.css','graphql','2296896dVgvYO','36DtlkDw','2291538VBFlEb','engines','search','hook/hook.js','fsi','withHooks','theme','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','\x20}\x20from\x20\x27','ssr','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','pathFromApp','toString','setTemplate'];a65c=function(){return u;};return a65c();}const aliases=['l'];Generator[a65r(0x1e2)]({'name':a65r(0x20c),'aliases':aliases,'usage':a65r(0x204),'shortDesc':a65r(0x1f4),'validOpts':[],'examples':[a65r(0x20a),'maka\x20g:l\x20web/safari']},function(a,b){const s=a65r,c=s(0x1e7),d=this[s(0x1d8)]['findAppDirectory'](),e=this[s(0x1d8)][s(0x1df)]({'pathParts':[c,b[s(0x1f8)],paramCase(b[s(0x1e5)]),paramCase(b[s(0x1e5)])]}),f=this[s(0x1d8)][s(0x206)]();this[s(0x1d8)][s(0x1e9)](f,()=>{const t=s;typeof f[t(0x1f2)][t(0x1f6)]===t(0x1e6)&&(f[t(0x1f2)][t(0x1f6)]=f[t(0x1f2)]['test']==='true'?!![]:![],this[t(0x1d8)][t(0x1e1)](t(0x1f6),f[t(0x1f2)][t(0x1f6)]));typeof f[t(0x1f2)][t(0x1c7)]===t(0x1e6)&&(f[t(0x1f2)]['css']=f[t(0x1f2)][t(0x1c7)]==='true'?!![]:![],this[t(0x1d8)][t(0x1e1)](t(0x1c7),f['template'][t(0x1c7)]));typeof f[t(0x1f2)]['js']===t(0x1e6)&&(f['template']['js']=f[t(0x1f2)]['js']==='true'?!![]:![],this[t(0x1d8)][t(0x1e1)]('js',f['template']['js']));!f[t(0x1ec)]&&(f[t(0x1ec)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](t(0x1ee))&&(Log[t(0x1ff)](t(0x1db)),this[t(0x1d8)][t(0x1cc)](t(0x1ee),{'cwd':d}));if(h&&!this[t(0x1ef)](t(0x1f1))){Log[t(0x1ff)](t(0x1de));return;}const i={'name':pascalCase(b[t(0x1e5)]),'myPath':a65e[t(0x1f0)](this['fsi'][t(0x1cd)]({}),e),'cssCaseName':paramCase(b[t(0x1e5)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[t(0x1e5)]),'fileName':paramCase(b[t(0x1e5)]),'graphql':f[t(0x1d5)][t(0x1d1)],'features':f['features'],'client':f[t(0x1d5)]['client'],'api':f[t(0x1d5)]['api'],'ssr':f[t(0x1d5)][t(0x1dd)],'test':f[t(0x1d5)][t(0x1f6)],'theme':f[t(0x1d5)][t(0x1da)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1ec)][t(0x208)]};f[t(0x1ec)]?.[t(0x1d9)]||b[t(0x1c9)]?this[t(0x1d8)][t(0x1f2)]({'srcPath':t(0x1d7),'destPath':e+t(0x1fa),'framework':t(0x1f1),'context':i,'config':f}):this['fsi']['template']({'srcPath':'component/component.js','destPath':e+t(0x1fa),'framework':t(0x1f1),'context':i,'config':f});f['engines']['test']!=='none'&&this['fsi'][t(0x1f2)]({'srcPath':t(0x1eb),'destPath':e+'.app-tests.js','framework':t(0x1f1),'context':i,'config':f});f['template'][t(0x1c7)]&&(this['fsi'][t(0x1f2)]({'srcPath':t(0x1d0),'destPath':e+t(0x202),'context':Object[t(0x201)]({},i,{'className':paramCase(b[t(0x1e5)])}),'config':f}),this[t(0x1d8)][t(0x20e)]({'filePath':e+'.'+f[t(0x1d5)]['js'],'content':t(0x1ce)+i[t(0x1fb)]+'.'+f['engines'][t(0x1c7)]+'\x27;'}));const j=b[t(0x1f8)]?'/'+b[t(0x1f8)]+'/':'/',k=''+c+j+i[t(0x1fb)]+'/'+i[t(0x1fb)];let l;if(f[t(0x1d5)]['ssr']===t(0x200)){const m=this[t(0x1d8)]['pathFromApp']({'pathParts':['imports',t(0x20b),t(0x20d),t(0x1ca)]});l=this[t(0x1d8)][t(0x1e3)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1d8)]['pathFromApp']({'pathParts':[t(0x1fe),t(0x20b),t(0x1cb),'templates.js']});l=this['fsi'][t(0x1e3)]({'pathParts':[n],'config':f});}f[t(0x1d5)][t(0x1cb)]===t(0x1f1)?(f['engines']['js']==='tsx'?this[t(0x1d8)][t(0x20e)]({'filePath':l,'content':t(0x209)+i['className']+t(0x1dc)+k+'\x27;\x0a'}):this[t(0x1d8)][t(0x20e)]({'filePath':l,'content':t(0x209)+i[t(0x1ed)]+t(0x1dc)+k+'.'+f[t(0x1d5)]['js']+t(0x203)}),this['fsi'][t(0x1cf)]({'filePath':l,'content':t(0x1f3)+i[t(0x1ed)]+'\x20};\x0a'})):this[t(0x1d8)][t(0x1cf)]({'filePath':l,'content':t(0x1f5)+k+'.'+f['engines']['js']+'\x27;\x0a'});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66i=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=-parseInt(f(0xc2))/0x1+parseInt(f(0xbe))/0x2+-parseInt(f(0xbb))/0x3+-parseInt(f(0xb9))/0x4+parseInt(f(0xbc))/0x5*(parseInt(f(0xc7))/0x6)+-parseInt(f(0xba))/0x7*(parseInt(f(0xbd))/0x8)+parseInt(f(0xb7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x1d5d0));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a66d;if(c){const e=c[g(0xb8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const h=a66d;return a66a[h(0xc4)]()['search'](h(0xc0))[h(0xc4)]()[h(0xc8)](a66a)[h(0xc3)](h(0xc0));});a66a();function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0xb6;let f=c[d];return f;},a66d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a66i(0xbf),'shortDesc':a66i(0xc5),'validOpts':[],'description':a66i(0xb6),'usage':a66i(0xc6),'examples':['maka\x20generate:api\x20Trucks',a66i(0xc1)]},function(){return null;});function a66c(){const j=['141417pmXoDO','search','toString','Maka!','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','21786CCRhaN','constructor','\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','4933395voUFaL','apply','104736XiwoGY','36491uMJTua','423336ykBqvt','5XKdQGZ','192kCLmNx','4622HBOIFa','maka','(((.+)+)+)+$','maka\x20g:hook\x20cool-hook'];a66c=function(){return j;};return a66c();}export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67m=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0x8a))/0x1+-parseInt(k(0x76))/0x2*(-parseInt(k(0x8d))/0x3)+-parseInt(k(0x7e))/0x4+-parseInt(k(0x7f))/0x5+parseInt(k(0x94))/0x6+parseInt(k(0x82))/0x7*(parseInt(k(0x72))/0x8)+-parseInt(k(0x89))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xd2b35));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 l=a67d;return a67a[l(0x77)]()['search'](l(0x87))['toString']()[l(0x70)](a67a)[l(0x78)](l(0x87));});a67a();import{Generator}from'../generator.js';function a67c(){const p=['toString','search','imports','check','method/method.js','maka\x20g:method\x20todos','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','4081512lPWHIg','106780ctGgip','getProjectConfig','methods','17857GMXJOL','tsx','pathFromApp','check\x20ddp-rate-limiter\x20mdg:validated-method','import\x20\x27./methods','(((.+)+)+)+$','fsi','3345093XaHkFV','31067oDQxSo','create','dir','1572FhJwFU','ddp-rate-limiter','-rpc-method\x27;','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','template','index.','appPathPrefix','5765844DtHZrg','checkMeteorPackage','installMeteorPackage','resourceName','startup','maka\x20{generate,\x20g}:{method,\x20m}\x20name','engines','constructor','warn','3272BPccam','injectAtEndOfFile','mdg:validated-method','withValue','920vrmDSL'];a67c=function(){return p;};return a67c();}function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x6a;let f=c[d];return f;},a67d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67m(0x8b)]({'name':'method','aliases':['m'],'usage':a67m(0x6e),'checkWhere':!![],'shortDesc':a67m(0x90),'validOpts':[a67m(0x8c)],'examples':[a67m(0x7c)]},function(a,b){const n=a67m;try{const c=this[n(0x88)][n(0x80)]();this[n(0x88)][n(0x75)](c,async()=>{const o=n,d=paramCase(b[o(0x6c)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x6c)]),'noRename':!![]};let g='js';c[o(0x6f)]['js']===o(0x83)&&(g='ts');const h=this[o(0x88)]['pathFromApp']({});(!this[o(0x88)]['checkMeteorPackage'](o(0x7a))||!this[o(0x88)]['checkMeteorPackage'](o(0x8e))||!this[o(0x88)][o(0x6a)](o(0x74)))&&(Log[o(0x71)](o(0x7d)),this[o(0x88)][o(0x6b)](o(0x85),{'cwd':h}));this[o(0x88)][o(0x91)]({'srcPath':o(0x7b),'destPath':this[o(0x88)][o(0x84)]({'pathParts':[o(0x79),o(0x6d),b['appPathPrefix'],o(0x81),b['dir'],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[o(0x8c)]?'/'+b[o(0x8c)]+'/':'/',j=this[o(0x88)]['pathFromApp']({'pathParts':['imports',o(0x6d),b[o(0x93)],o(0x92)+c[o(0x6f)]['js']]});this[o(0x88)][o(0x73)]({'filePath':j,'content':o(0x86)+i+d+o(0x8f)});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a68o=a68d;(function(a,b){const l=a68d,c=a();while(!![]){try{const d
|
|
1
|
+
const a68o=a68d;function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0xd0;let f=c[d];return f;},a68d(a,b);}(function(a,b){const l=a68d,c=a();while(!![]){try{const d=-parseInt(l(0xf0))/0x1+parseInt(l(0xe3))/0x2+-parseInt(l(0xed))/0x3*(parseInt(l(0xef))/0x4)+-parseInt(l(0xe0))/0x5*(-parseInt(l(0xde))/0x6)+-parseInt(l(0xf2))/0x7*(parseInt(l(0xd3))/0x8)+-parseInt(l(0xe7))/0x9+parseInt(l(0xe4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x4a304));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a[n(0xf7)]()[n(0xd1)](n(0xfc))[n(0xf7)]()[n(0xe5)](a68a)['search']('(((.+)+)+)+$');});a68a();import a68e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68o(0xf1)]({'name':a68o(0xea),'aliases':['p'],'usage':a68o(0xdf),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':[a68o(0xd0)]},async function(a,b){const p=a68o,c=paramCase(b[p(0xe2)]),d=this[p(0xdd)][p(0xee)]({'pathParts':['packages',b[p(0xfb)],c]}),e=this['fsi']['pathFromAppWithNoReWrite']({'pathParts':[p(0xf4),b[p(0xfb)],c,p(0xf6)]}),f=this[p(0xdd)][p(0xe9)]();this[p(0xdd)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0xe2)]),'myPath':a68e[q(0xda)](this[q(0xdd)][q(0xf5)]({}),d),'cssCaseName':paramCase(b[q(0xe2)]),'className':pascalCase(b[q(0xe2)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0xf8)][q(0xfa)],'graphql':f[q(0xf8)][q(0xf9)],'ssr':f[q(0xf8)][q(0xdc)],'isComponent':b[q(0xd2)](q(0xd5)),'isLayout':b['hasOwnProperty'](q(0xd4)),'isStore':b['hasOwnProperty'](q(0xdb)),'features':f[q(0xd8)],'noRename':!![],'theme':f['engines']['theme']};this[q(0xdd)][q(0xd7)]({'srcPath':q(0xf3),'destPath':e,'context':g,'config':f}),g[q(0xe1)]=![];const h=d+q(0xd6)+c+q(0xe6);this[q(0xdd)][q(0xd7)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[q(0xe8),'server','tests/client',q(0xd9)];i[q(0xeb)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xe6);this[r(0xdd)][r(0xd7)]({'srcPath':'package/'+j+'/package.js','destPath':k,'context':g,'config':f});});});});function a68c(){const s=['ssr','fsi','6hdmPFP','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','422945YlGAfO','noRename','resourceName','795264PEdAKQ','15651920KTKzpG','constructor','.js','5321583lIvVDA','lib','getProjectConfig','package','forEach','apply','3dfOyJn','pathFromApp','1747964ttnYUZ','528493VdRRLH','create','653681RCEIda','package/package.js','packages','pathFromProject','package.js','toString','engines','graphql','client','dir','(((.+)+)+)+$','maka\x20g:package\x20todos:package','search','hasOwnProperty','16NhdDdB','layout','component','/client/','template','features','tests/server','relative','store'];a68c=function(){return s;};return a68c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a69p=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d
|
|
1
|
+
const a69p=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=-parseInt(m(0x18b))/0x1+-parseInt(m(0x18a))/0x2*(parseInt(m(0x178))/0x3)+-parseInt(m(0x168))/0x4*(parseInt(m(0x177))/0x5)+-parseInt(m(0x172))/0x6+parseInt(m(0x151))/0x7*(parseInt(m(0x17b))/0x8)+parseInt(m(0x154))/0x9+parseInt(m(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x39fd0));function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x14b;let f=c[d];return f;},a69d(a,b);}const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a69d;if(c){const e=c[n(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const o=a69d;return a69a['toString']()[o(0x152)]('(((.+)+)+)+$')[o(0x173)]()[o(0x198)](a69a)[o(0x152)](o(0x167));});a69a();import a69e from'path';import{Generator}from'../generator.js';function a69c(){const s=['graphql','1678074IOophd','toString','withHook','test/test.js','hook/hook.js','5onSNwA','48DZTgKb','page','installNpmPackage','24zlskCa','component/component.js','maka\x20g:page\x20todos/todos-item','create','template','injectAtBeginningOfFile','engines','rewriteDestinationPathForEngine','css','Updating\x20npm\x20packages\x20...','fileName','lib','templates.js','react','.js','27406pJgvOy','133582KnsAbl','component','\x27;\x0a','theme','vanilla','import\x20\x27./','getProjectConfig','Generate\x20a\x20page.','store','withValue','import\x20{\x20','startup','setTemplate','constructor','client','assign','import\x20\x27','\x20}\x20from\x20\x27','export\x20{\x20','withHooks','811118ERwTUt','search','test','1119375BCogNP','true','warn','\x20};\x0a','/imports/ui/pages','tsx','resourceName','.app-tests.js','layout','none','imports','fsi','ramda','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','pathFromApp','apply','features','hasOwnProperty','relative','(((.+)+)+)+$','1004140jcsoBo','injectAtEndOfFile','className','ssr','string','html','dir','template/template.css','6490670QBEfTD'];a69c=function(){return s;};return a69c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a69p(0x17e)]({'name':a69p(0x179),'aliases':aliases,'usage':a69p(0x161),'shortDesc':a69p(0x192),'validOpts':[a69p(0x16e),a69p(0x174)],'examples':[a69p(0x17d)]},function(a,b){const q=a69p,c=q(0x158),d=this['fsi']['pathFromApp'](b),e=this[q(0x15f)]['pathFromApp']({'pathParts':[c,b[q(0x16e)],paramCase(b[q(0x15a)]),paramCase(b[q(0x15a)])]}),f=this[q(0x15f)][q(0x191)]();this[q(0x15f)][q(0x194)](f,()=>{const r=q;typeof f[r(0x17f)]['html']===r(0x16c)&&(f['template'][r(0x16d)]=f[r(0x17f)][r(0x16d)]===r(0x155)?!![]:![],this[r(0x15f)][r(0x197)]('html',f[r(0x17f)][r(0x16d)]));typeof f[r(0x17f)][r(0x153)]==='string'&&(f[r(0x17f)][r(0x153)]=f['template'][r(0x153)]===r(0x155)?!![]:![],this[r(0x15f)][r(0x197)](r(0x153),f[r(0x17f)]['test']));typeof f[r(0x17f)][r(0x183)]==='string'&&(f[r(0x17f)][r(0x183)]=f['template']['css']===r(0x155)?!![]:![],this['fsi']['setTemplate'](r(0x183),f['template']['css']));typeof f[r(0x17f)]['js']===r(0x16c)&&(f['template']['js']=f[r(0x17f)]['js']===r(0x155)?!![]:![],this[r(0x15f)][r(0x197)]('js',f[r(0x17f)]['js']));!f[r(0x164)]&&(f['features']={});!b['root']&&!this[r(0x15f)]['checkNpmPackage'](r(0x160))&&(Log[r(0x156)](r(0x184)),this[r(0x15f)][r(0x17a)](r(0x160),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a69e[r(0x166)](this[r(0x15f)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[r(0x15a)]),'className':pascalCase(b[r(0x15a)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[r(0x15a)]),'graphql':f['engines'][r(0x171)],'features':f[r(0x164)],'client':f[r(0x181)]['client'],'api':f[r(0x181)]['api'],'ssr':f[r(0x181)][r(0x16b)],'isStore':b[r(0x165)](r(0x193)),'isComponent':b[r(0x165)](r(0x18c)),'isLayout':b['hasOwnProperty'](r(0x15c)),'withTranslations':f['features']['withTranslations'],'test':f[r(0x181)]['test'],'theme':f[r(0x181)][r(0x18e)]};f[r(0x17f)][r(0x16d)]&&this[r(0x15f)][r(0x17f)]({'srcPath':'template/template.html','destPath':e+'.html','context':g,'config':f});f[r(0x164)]?.[r(0x150)]||b[r(0x174)]?this[r(0x15f)][r(0x17f)]({'srcPath':r(0x176),'destPath':e+r(0x189),'framework':'react','context':g,'config':f}):this[r(0x15f)][r(0x17f)]({'srcPath':r(0x17c),'destPath':e+'.js','framework':r(0x188),'context':g,'config':f});f[r(0x181)]['test']!==r(0x15d)&&this[r(0x15f)][r(0x17f)]({'srcPath':r(0x175),'destPath':e+r(0x15b),'framework':'react','context':g,'config':f});f[r(0x17f)][r(0x183)]&&this[r(0x15f)][r(0x17f)]({'srcPath':r(0x16f),'destPath':e+'.css','context':Object[r(0x14c)]({},g,{'className':paramCase(b[r(0x15a)])}),'config':f});f['engines'][r(0x14b)]!=='react'&&f['engines'][r(0x14b)]!==r(0x18f)?(f[r(0x17f)][r(0x183)]&&this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x181)]['js'],'content':r(0x190)+g[r(0x185)]+'.'+f[r(0x181)][r(0x16d)]+r(0x18d)+r(0x190)+g[r(0x185)]+'.'+f[r(0x181)][r(0x183)]+'\x27;'}),!f[r(0x17f)]['css']&&this[r(0x15f)][r(0x180)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x190)+g[r(0x185)]+'.'+f['engines'][r(0x16d)]+'\x27;'})):f[r(0x17f)]['css']&&this[r(0x15f)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x181)]['js'],'content':r(0x190)+g[r(0x185)]+'.'+f['engines'][r(0x183)]+'\x27;'});const h=b['dir']?'/'+b['dir']+'/':'/',i=''+c+h+g[r(0x185)]+'/'+g['fileName'];let j;if(f[r(0x181)][r(0x16b)]===r(0x155)){const k=this[r(0x15f)][r(0x162)]({'pathParts':[r(0x15e),r(0x196),r(0x186),r(0x187)]});j=this[r(0x15f)][r(0x182)]({'pathParts':[k],'config':f});}else{const l=this[r(0x15f)][r(0x162)]({'pathParts':[r(0x15e),r(0x196),'client',r(0x187)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x181)]['client']===r(0x188)?(f[r(0x181)]['js']===r(0x159)?this[r(0x15f)][r(0x180)]({'filePath':j,'content':r(0x195)+g['className']+r(0x14e)+i+r(0x18d)}):this[r(0x15f)][r(0x180)]({'filePath':j,'content':'import\x20{\x20'+g['className']+r(0x14e)+i+'.'+f['engines']['js']+'\x27;\x0a'}),this[r(0x15f)][r(0x169)]({'filePath':j,'content':r(0x14f)+g[r(0x16a)]+r(0x157)})):this[r(0x15f)][r(0x169)]({'filePath':j,'content':r(0x14d)+i+'.'+f[r(0x181)]['js']+r(0x18d)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70k=a70d;
|
|
1
|
+
const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=parseInt(h(0x1ea))/0x1+parseInt(h(0x1d6))/0x2*(-parseInt(h(0x1ec))/0x3)+parseInt(h(0x1db))/0x4+-parseInt(h(0x1df))/0x5+-parseInt(h(0x1e9))/0x6*(-parseInt(h(0x1e2))/0x7)+parseInt(h(0x1ed))/0x8*(-parseInt(h(0x1e8))/0x9)+parseInt(h(0x1e0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x48d13));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x1e3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a['toString']()[j(0x1e5)]('(((.+)+)+)+$')['toString']()[j(0x1d8)](a70a)['search'](j(0x1e1));});function a70c(){const n=['fsi','constructor','engines','withValue','1976548HMGlDW','publish/publish.','publish','templateContent','2610160rKVxJf','3700510UYjosF','(((.+)+)+)+$','35YpjNBu','apply','server/publish.','search','resourceName','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','4189347BEyEZF','359574ncQpWk','269780VTrWkP','injectAtEndOfFile','1767iTemUJ','8HqwIiK','502rfuGEl'];a70c=function(){return n;};return a70c();}a70a();import{paramCase}from'change-case';function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a70d(a,b);}import{Generator}from'../generator.js';Generator['create']({'name':a70k(0x1dd),'aliases':['p'],'usage':a70k(0x1e7),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a70k,c=this['fsi']['getProjectConfig']();this[l(0x1d7)][l(0x1da)](c,async()=>{const m=l,d={'name':b[m(0x1e6)],'collection':paramCase(b[m(0x1e6)]),'noRename':!![]};let e='js';c[m(0x1d9)]['js']==='tsx'&&(e='ts');const f=this[m(0x1d7)]['rewriteDestinationPathForEngine']({'pathParts':[m(0x1e4)+c[m(0x1d9)]['js']]}),g=this[m(0x1d7)][m(0x1de)]({'srcPath':m(0x1dc)+e,'context':d,'config':c});this[m(0x1d7)][m(0x1eb)]({'filePath':f,'content':'\x0a'+g});});});
|