@maka/maka-cli 4.5.27 → 4.5.29
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/.eslintrc.json +2 -1
- package/bundle/obf/package.json +24 -22
- 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/chz.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/template/template.css.scss +3 -0
- package/bundle/obf/src/templates/react/component/component.css.scss +3 -0
- package/bundle/obf/src/templates/react/hook/hook.css +3 -0
- package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -0
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +1 -1
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +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 +24 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94z=a94d;(function(a,b){const w=a94d,c=a();while(!![]){try{const d=parseInt(w(0x193))/0x1*(parseInt(w(0x1a3))/0x2)+-parseInt(w(0x185))/0x3+-parseInt(w(0x178))/0x4*(parseInt(w(0x176))/0x5)+parseInt(w(0x1a7))/0x6*(-parseInt(w(0x164))/0x7)+-parseInt(w(0x18f))/0x8+-parseInt(w(0x1a5))/0x9+parseInt(w(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x8c14b));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a94d;if(c){const e=c[x(0x15c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const y=a94d;return a94a[y(0x175)]()[y(0x1af)]('(((.+)+)+)+$')[y(0x175)]()[y(0x1a6)](a94a)['search'](y(0x186));});a94a();import{Generator}from'../generator.js';function a94c(){const C=['No\x20API\x20boundaries\x20selected','api/resolvers.js','if\x20\x5c(typeList','2448486oZtRvH','(((.+)+)+)+$','checkbox','server','apollo','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','pathFromApp','\x0aimport\x20{\x20resolvers\x20as\x20','injectIntoFile','injectAtEndOfFile','4981240utDNro','import\x20\x27./register-','maka\x20g:api\x20todos','length','7zJJQQj','template','Publications','/imports/api','test','options','typeDefs.','ddp-rate-limiter','apiAnswers','startup','withFixtures','exit','const','rest','includes','api','230158ovxbKB','api/tests.js','2232135Xwvcvm','constructor','12eQZLYV','tsx','withRest','injectAtBeginningOfFile','resolvers.','TypeDefs\x20}\x20from\x20\x27','register-','GraphQL','search','mongo','/graphql/typeDefs','fixtures.','installMeteorPackage','API\x20boundaries\x20to\x20create','apply','imports','Fixtures','withGql','api/typeDefs.js','dir','typeList.push(','publications.','327138cNHXqO','api/api.js','TypeDefs);\x0a','engines','import\x20{\x20typeDefs\x20as\x20','rewriteDestinationPathForEngine','withMethods','graphql','resolverList.push(','index.','rpc-methods.','withValue','21964830GaoNbV','REST\x20API','push','RPC\x20(Methods)','checkMeteorPackage','toString','5nTytTw','api/publications.js','2591860JPUXDX','.app-tests.','api/methods.js','withPubs','none','fsi','maka\x20{generate,\x20g}:{api}\x20<resource-name>','rest-api.','maka:check','mdg:validated-method'];a94c=function(){return C;};return a94c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a94e from'../generators/maka.gen.js';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x159;let f=c[d];return f;},a94d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'api','aliases':['a'],'usage':a94z(0x17e),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a94z(0x161)],'examples':[a94z(0x191)]},async function(a,b){const A=a94z;try{const c=this[A(0x17d)]['getProjectConfig'](),d=[{'name':A(0x173),'value':A(0x16a)},{'name':A(0x15e),'value':A(0x19d)},{'name':A(0x195),'value':A(0x17b)}];c[A(0x167)][A(0x1a2)]===A(0x1a0)&&d[A(0x172)]({'name':A(0x171),'value':A(0x1a9)});c[A(0x167)][A(0x16b)]===A(0x189)&&d[A(0x172)]({'name':A(0x1ae),'value':A(0x15f)});const f={'type':A(0x187),'name':A(0x19b),'message':A(0x15b),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x198)](f);g[A(0x192)]===0x0&&(Log['error'](A(0x182)),process[A(0x19e)](0x1)),this[A(0x17d)][A(0x16f)](c,async()=>{const B=A,h=this[B(0x17d)][B(0x18b)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x161)]?'/'+b[B(0x161)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x167)][B(0x1a2)],'graphql':c[B(0x167)][B(0x16b)],'test':c[B(0x167)][B(0x197)],'noRename':!![],'withPubs':g[B(0x1a1)]('withPubs'),'withFixtures':g[B(0x1a1)](B(0x19d)),'withMethods':g[B(0x1a1)](B(0x16a)),'withRest':g[B(0x1a1)]('withRest')};let n='js';c[B(0x167)]['js']===B(0x1a8)&&(n='ts');(!this['fsi'][B(0x174)]('maka:rest')||!this[B(0x17d)][B(0x174)](B(0x180))||!this['fsi']['checkMeteorPackage'](B(0x19a))||!this['fsi']['checkMeteorPackage'](B(0x181))||!this[B(0x17d)][B(0x174)](B(0x1b0)))&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements\x20...'),await this[B(0x17d)][B(0x15a)](B(0x18a),{'cwd':h}));const o=a94e['findGenerator']('collection');o&&await o['invoke']([j],{'config':c,'where':'server'});c[B(0x167)][B(0x1a2)]===B(0x1a0)&&(m['withRest']&&this['fsi'][B(0x194)]({'srcPath':B(0x165),'destPath':this[B(0x17d)][B(0x18b)]({'pathParts':[B(0x15d),'api',b[B(0x161)],j,B(0x17f)+n]}),'context':m,'config':c}));m[B(0x16a)]&&this[B(0x17d)][B(0x194)]({'srcPath':B(0x17a),'destPath':this[B(0x17d)]['pathFromApp']({'pathParts':['imports',B(0x1a2),b[B(0x161)],j,B(0x16e)+n]}),'context':m,'config':c});m['withFixtures']&&this['fsi'][B(0x194)]({'srcPath':'api/fixtures.js','destPath':this['fsi'][B(0x18b)]({'pathParts':[B(0x15d),B(0x1a2),b['dir'],j,B(0x159)+n]}),'context':m,'config':c});c[B(0x167)][B(0x197)]!==B(0x17c)&&this['fsi'][B(0x194)]({'srcPath':B(0x1a4),'destPath':this[B(0x17d)][B(0x18b)]({'pathParts':[B(0x15d),'api',b[B(0x161)],j,j+B(0x179)+n]}),'context':m,'config':c});m['withPubs']&&this['fsi'][B(0x194)]({'srcPath':B(0x177),'destPath':this[B(0x17d)]['pathFromApp']({'pathParts':['imports','api',b[B(0x161)],j,B(0x163)+n]}),'context':m,'config':c});if(c['engines']['graphql']===B(0x189)){if(g['includes'](B(0x15f))){const q=this[B(0x17d)]['pathFromApp']({'pathParts':[B(0x15d),B(0x19c),'server',B(0x16d)+c['engines']['js']]}),r=this[B(0x17d)][B(0x169)]({'pathParts':[q],'config':c}),s=this[B(0x17d)][B(0x18b)]({'pathParts':[B(0x15d),'api',b[B(0x161)],j,B(0x16b),B(0x199)+n]}),t='/imports/api'+l+j+B(0x1b1);this[B(0x17d)]['template']({'srcPath':B(0x160),'destPath':s,'context':m,'config':c}),this[B(0x17d)][B(0x1aa)]({'filePath':r,'content':B(0x168)+k+B(0x1ac)+t+'\x27;\x0a'}),this[B(0x17d)]['injectIntoFile']({'filePath':r,'content':B(0x162)+k+B(0x166),'begin':'const','end':B(0x184)});const u=this[B(0x17d)][B(0x18b)]({'pathParts':['imports',B(0x1a2),b[B(0x161)],j,B(0x16b),B(0x1ab)+n]}),v=B(0x196)+l+j+'/graphql/resolvers';this['fsi'][B(0x194)]({'srcPath':B(0x183),'destPath':u,'context':m,'config':c}),this[B(0x17d)][B(0x1aa)]({'filePath':r,'content':B(0x18c)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[B(0x17d)][B(0x18d)]({'filePath':r,'content':B(0x16c)+k+'Resolvers);\x0a\x0a','begin':B(0x19f),'end':B(0x184)});}}this[B(0x17d)][B(0x194)]({'srcPath':'api/register-api.js','destPath':this[B(0x17d)][B(0x18b)]({'pathParts':['imports',B(0x19c),B(0x188),B(0x1ad)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x17d)]['pathFromApp']({'pathParts':[B(0x15d),'startup',B(0x188),B(0x16d)+c[B(0x167)]['js']]});this[B(0x17d)][B(0x18e)]({'filePath':p,'content':B(0x190)+j+'-api\x27;'});});}catch(h){console['log'](h),process[A(0x19e)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95n=a95d;(function(a,b){const k=a95d,c=a();while(!![]){try{const d=-parseInt(k(0xd1))/0x1+parseInt(k(0xd4))/0x2+parseInt(k(0xe2))/0x3+parseInt(k(0xc2))/0x4*(parseInt(k(0xd5))/0x5)+parseInt(k(0xcd))/0x6*(-parseInt(k(0xba))/0x7)+-parseInt(k(0xb6))/0x8+-parseInt(k(0xbc))/0x9*(-parseInt(k(0xd2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x5b316));function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xb5;let f=c[d];return f;},a95d(a,b);}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a95d;if(c){const e=c[l(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const m=a95d;return a95a[m(0xcc)]()[m(0xd8)](m(0xb5))[m(0xcc)]()[m(0xe1)](a95a)[m(0xd8)](m(0xb5));});a95a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a95c(){const q=['mongo','col','notice','appPathPrefix','engines','index.','none','template','withValue','toString','66LJWzmk','dir','create','pathFromApp','526478ozDejF','50IbpwfW','\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','412920WpkLtH','5QLchzz','checkMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','search','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','collection','resourceName','error','collections','installMeteorPackage','collection/tests.js','where','constructor','1435734FmAQSj','(((.+)+)+)+$','1634584QoNaTa','imports','import\x20\x27./collections','fsi','91161YZMDyZ','apply','73971JlACoG','getProjectConfig','startup','maka:check','test','maka\x20g:collection\x20todos','2085788NBzzdU'];a95c=function(){return q;};return a95c();}Generator[a95n(0xcf)]({'name':a95n(0xda),'aliases':[a95n(0xc4)],'usage':a95n(0xd9),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':['dir',a95n(0xe0)],'description':a95n(0xd3),'examples':[a95n(0xc1)]},async function(a,b){const o=a95n;try{const c=this[o(0xb9)][o(0xd0)]({}),d=this[o(0xb9)][o(0xbd)]();this[o(0xb9)][o(0xcb)](d,async()=>{const p=o,f=paramCase(b[p(0xdb)]),g={'name':pascalCase(b[p(0xdb)]),'collectionName':pascalCase(b[p(0xdb)]),'fileName':f,'where':b['where'],'test':d[p(0xc7)][p(0xc0)],'noRename':!![]};let h='js';d[p(0xc7)]['js']==='tsx'&&(h='ts');!this[p(0xb9)][p(0xd6)](p(0xc3))&&(Log[p(0xc5)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this['fsi'][p(0xde)](p(0xc3),{'cwd':c}));!this['fsi'][p(0xd6)](p(0xbf))&&(Log[p(0xc5)](p(0xd7)),await this[p(0xb9)][p(0xde)](p(0xbf),{'cwd':c}));this[p(0xb9)][p(0xca)]({'srcPath':'collection/collection.js','destPath':this[p(0xb9)][p(0xd0)]({'pathParts':['imports',p(0xbe),b['appPathPrefix'],p(0xdd),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0xc7)][p(0xc0)]!==p(0xc9)&&this[p(0xb9)][p(0xca)]({'srcPath':p(0xdf),'destPath':this[p(0xb9)]['pathFromApp']({'pathParts':[p(0xb7),p(0xbe),b['appPathPrefix'],p(0xdd),b[p(0xce)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b[p(0xce)]?'/'+b[p(0xce)]+'/':'/',j=this[p(0xb9)][p(0xd0)]({'pathParts':[p(0xb7),'startup',b[p(0xc6)],p(0xc8)+d[p(0xc7)]['js']]});this[p(0xb9)]['injectAtEndOfFile']({'filePath':j,'content':p(0xb8)+i+f+'\x27;'});});}catch(f){Log[o(0xdc)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96r=a96d;(function(a,b){const o=a96d,c=a();while(!![]){try{const d=-parseInt(o(0x12a))/0x1*(-parseInt(o(0x13b))/0x2)+-parseInt(o(0x147))/0x3+-parseInt(o(0x116))/0x4*(parseInt(o(0x112))/0x5)+-parseInt(o(0x126))/0x6*(-parseInt(o(0x144))/0x7)+-parseInt(o(0x12b))/0x8*(-parseInt(o(0x148))/0x9)+-parseInt(o(0x11a))/0xa*(parseInt(o(0x10b))/0xb)+parseInt(o(0x111))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x5b7ad));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a96d;if(c){const e=c[p(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const q=a96d;return a96a['toString']()[q(0x151)](q(0x12e))[q(0x136)]()[q(0x108)](a96a)['search'](q(0x12e));});a96a();import a96e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x104;let f=c[d];return f;},a96d(a,b);}const aliases=[a96r(0x11c)];Generator[a96r(0x135)]({'name':a96r(0x133),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a96r(0x13c),'validOpts':[a96r(0x118)],'examples':[a96r(0x128)]},async function(a,b){const s=a96r;try{const c=['hooks',s(0x146),'pages',s(0x131)];if(b[s(0x118)]&&!c[s(0x10d)](b[s(0x118)])){Log[s(0x145)](s(0x127)+b[s(0x118)]+'\x22'),Log[s(0x145)](s(0x11e)+c[s(0x137)](',\x20'));throw new UsageError();}const d=this['fsi']['findAppDirectory'](),f=b['baseDir']?s(0x14a)+b['baseDir']:s(0x123),g=this[s(0x130)][s(0x121)]({'pathParts':[f,b[s(0x14c)],b[s(0x142)],paramCase(b['resourceName'])]}),h=await this['fsi'][s(0x120)]();this[s(0x130)]['withValue'](h,async()=>{const t=s;typeof h[t(0x13d)][t(0x10a)]==='string'&&(h[t(0x13d)][t(0x10a)]=h[t(0x13d)]['test']===t(0x152)?!![]:![],this['fsi']['setTemplate'](t(0x10a),h[t(0x13d)][t(0x10a)]));typeof h[t(0x13d)][t(0x134)]===t(0x12d)&&(h[t(0x13d)][t(0x134)]=h[t(0x13d)][t(0x134)]===t(0x152)?!![]:![],this['fsi']['setTemplate'](t(0x134),h[t(0x13d)]['css']));typeof h[t(0x13d)]['js']==='string'&&(h[t(0x13d)]['js']=h[t(0x13d)]['js']==='true'?!![]:![],this[t(0x130)][t(0x139)]('js',h[t(0x13d)]['js']));!h[t(0x12f)]&&(h[t(0x12f)]={});!b[t(0x11d)]&&!this['fsi']['checkNpmPackage']('ramda')&&(Log[t(0x109)](t(0x12c)),await this[t(0x130)][t(0x107)](t(0x10c),{'cwd':d}));if(!b['root']&&!this['fsi'][t(0x129)](t(0x117))){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0x142)]),'myPath':a96e[t(0x122)](this[t(0x130)][t(0x119)]({}),g),'cssCaseName':paramCase(b[t(0x142)]),'className':pascalCase(b[t(0x142)]),'camelCaseName':camelCase(b[t(0x142)]),'fileName':paramCase(b[t(0x142)]),'graphql':h[t(0x110)]['graphql'],'features':h[t(0x12f)],'client':h['engines'][t(0x113)],'api':h['engines'][t(0x10e)],'ssr':h['engines'][t(0x14f)],'test':h['engines']['test'],'theme':h[t(0x110)][t(0x114)],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0x12f)][t(0x14d)]};this[t(0x130)][t(0x13d)]({'srcPath':'component/component.js','destPath':g+t(0x141),'context':i,'framework':t(0x117),'config':h});h[t(0x110)][t(0x10a)]!==t(0x104)&&this[t(0x130)][t(0x13d)]({'srcPath':t(0x13e),'destPath':g+'.tests.js','context':i,'framework':t(0x117),'config':h});h[t(0x13d)][t(0x134)]&&(this[t(0x130)][t(0x13d)]({'srcPath':t(0x150),'destPath':g+t(0x149),'context':Object[t(0x13f)]({},i,{'className':paramCase(b['resourceName'])}),'config':h}),this[t(0x130)][t(0x125)]({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+i[t(0x13a)]+'.'+h[t(0x110)][t(0x134)]+'\x27;'}));const j=b[t(0x14c)]?'/'+b[t(0x14c)]+'/':'/',k=''+f+j+i[t(0x143)]+'/'+i[t(0x143)];let l;if(h['engines'][t(0x14f)]==='true'){const m=this[t(0x130)][t(0x121)]({'pathParts':[t(0x14e),t(0x115),t(0x124),t(0x153)]});l=this[t(0x130)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x130)][t(0x121)]({'pathParts':[t(0x14e),t(0x115),'client',t(0x153)]});l=this['fsi'][t(0x138)]({'pathParts':[n],'config':h});}h[t(0x110)][t(0x113)]==='react'||h[t(0x110)][t(0x113)]===t(0x132)?(h[t(0x110)]['js']===t(0x11b)?this['fsi'][t(0x125)]({'filePath':l,'content':'import\x20{\x20'+i['className']+'\x20}\x20from\x20\x27'+k+t(0x105)}):this[t(0x130)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x140)+i['className']+'\x20}\x20from\x20\x27'+k+'.'+h['engines']['js']+t(0x105)}),this[t(0x130)]['injectAtEndOfFile']({'filePath':l,'content':'export\x20{\x20'+i['className']+t(0x10f)})):this['fsi'][t(0x106)]({'filePath':l,'content':t(0x11f)+k+'.'+h[t(0x110)]['js']+t(0x105)});});}catch(i){Log[s(0x145)](i);}});function a96c(){const u=['relative','/imports/ui/components','lib','injectAtBeginningOfFile','9462DwjFhv','Invalid\x20directory\x20option\x20\x22','maka\x20g:comp\x20todos/todos-item','checkNpmPackage','67945VEYnuo','170776CFyDbu','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','string','(((.+)+)+)+$','features','fsi','layouts','reflux','component','css','create','toString','join','rewriteDestinationPathForEngine','setTemplate','cssCaseName','8IoWKNG','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','template','test/test.js','assign','import\x20{\x20','.js','resourceName','fileName','2310wukRAl','error','components','1793916TyMNSe','288SgSyoE','.css','/imports/ui/','apply','dir','withTranslations','imports','ssr','template/template.css','search','true','templates.js','none','\x27;\x0a','injectAtEndOfFile','installNpmPackage','constructor','warn','test','737UxAFdu','ramda','includes','api','\x20};\x0a','engines','2241924kWwXCm','2508235EavVpk','client','theme','startup','4tSjWMn','react','baseDir','pathFromProject','28030whWSjM','tsx','comp','root','Valid\x20options\x20are:\x20','import\x20\x27','getProjectConfig','pathFromApp'];a96c=function(){return u;};return a96c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97k=a97d;(function(a,b){const h=a97d,c=a();while(!![]){try{const d=-parseInt(h(0x18a))/0x1+parseInt(h(0x17f))/0x2*(parseInt(h(0x192))/0x3)+-parseInt(h(0x194))/0x4+parseInt(h(0x18b))/0x5+parseInt(h(0x195))/0x6*(parseInt(h(0x186))/0x7)+-parseInt(h(0x193))/0x8+parseInt(h(0x184))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x8b286));function a97c(){const n=['5309030qQxBic','prod','appName','maka\x20g:config\x20production','maka\x20{generate,\x20g}:{config}\x20<name>','process.env','apply','62544HEVmrn','6185096GqRRjw','1638540JZQIvx','198tgGcQY','search','development','fsi','ubuntu','template','dev','settings.json','26wZKOUG','constructor','pathFromProject','create','getProjectConfig','3168306tWLTsJ','withValue','85295tLVlyZ','isDocker','config','resourceName','334207gAwLCU'];a97c=function(){return n;};return a97c();}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a97d;if(c){const e=c[i(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const j=a97d;return a97a['toString']()[j(0x196)]('(((.+)+)+)+$')['toString']()[j(0x180)](a97a)[j(0x196)]('(((.+)+)+)+$');});a97a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x179;let f=c[d];return f;},a97d(a,b);}Generator[a97k(0x182)]({'name':a97k(0x188),'usage':a97k(0x18f),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a97k(0x187)],'examples':[a97k(0x18e)]},function(a,b){const l=a97k,c=this[l(0x17a)][l(0x183)]();this[l(0x17a)][l(0x185)](c,async()=>{const m=l,d={'app':c[m(0x18d)],'appFileCase':paramCase(c[m(0x18d)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x189)]),'userName':m(0x17b),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0x17d))e=m(0x179);else e===m(0x18c)&&(e='production');const f=this[m(0x17a)][m(0x181)]({'pathParts':[m(0x188),e,m(0x17e)]});this[m(0x17a)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x17a)][m(0x181)]({'pathParts':['config',e,m(0x190)]});this[m(0x17a)][m(0x17c)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98q=a98d;(function(a,b){const n=a98d,c=a();while(!![]){try{const d=parseInt(n(0x1a1))/0x1+-parseInt(n(0x185))/0x2+parseInt(n(0x186))/0x3*(parseInt(n(0x178))/0x4)+parseInt(n(0x19c))/0x5+parseInt(n(0x18e))/0x6+-parseInt(n(0x17c))/0x7*(parseInt(n(0x197))/0x8)+parseInt(n(0x175))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xb456e));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a98d;if(c){const e=c[o(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const p=a98d;return a98a[p(0x1a8)]()['search'](p(0x180))['toString']()[p(0x1a5)](a98a)[p(0x17e)](p(0x180));});function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x172;let f=c[d];return f;},a98d(a,b);}a98a();function a98c(){const t=['dir','import\x20\x27./register-','indexOf','constructor','apply','fsi','toString','imports','index.','tsx','20902248BrvHpW','register-','mssql','2315724avHZyG','template','server','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','133nxVqZZ','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','search','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','(((.+)+)+)+$','checkNpmPackage','pgsql','pathFromApp','maka\x20g:dbc\x20geoserver\x20--type=pgsql','2382942HypnKl','3OwJJrZ','warn','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','Invalid\x20type\x20','dbAnswer','error','type','MS\x20SQL','978192zzbyfT','dbc','-dbc.','resourceName','create','dbc/config.js','maka\x20g:dbc\x20todos\x20--type=sqlite','injectAtEndOfFile','getProjectConfig','599568eBMDWx','startup','better-sqlite3','options','conn.','794085RnuMLh','config.','(blank)','engines','installNpmPackage','130863rNwnDf'];a98c=function(){return t;};return a98c();}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[a98q(0x192)]({'name':a98q(0x18f),'usage':a98q(0x188),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':['type',a98q(0x1a2)],'examples':[a98q(0x184),'maka\x20g:dbc\x20azure\x20--type=mssql',a98q(0x194)]},async function(a,b){const r=a98q;try{const c=await this[r(0x1a7)][r(0x196)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b['resourceName']);if(!b[r(0x18c)]){const h={'type':'list','name':r(0x18a),'message':'DB\x20Driver','choices':[{'name':'PostgreSQL','value':r(0x182)},{'name':r(0x18d),'value':r(0x177)}]},{dbAnswer:i}=await Actions[r(0x19a)](h);i&&(b[r(0x18c)]=i);}const g={'name':pascalCase(b[r(0x191)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b[r(0x18c)],'engine':c[r(0x19f)]['js'],'noRename':!![]};this[r(0x1a7)]['withValue'](c,async()=>{const s=r;let j='js';c['engines']['js']===s(0x174)&&(j='ts');const k=['mssql',s(0x182)];if(k[s(0x1a4)](g[s(0x18c)])<0x0){const m=g[s(0x18c)]?g['type']:s(0x19e);Log[s(0x18b)](s(0x189)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b['type']==='pgsql'&&!this[s(0x1a7)][s(0x181)]('pg')&&(Log[s(0x187)](s(0x17d)),await this[s(0x1a7)][s(0x1a0)]('pg',{'cwd':d}));b[s(0x18c)]===s(0x177)&&!this[s(0x1a7)][s(0x181)](s(0x177))&&(Log['warn'](s(0x17f)),await this[s(0x1a7)]['installNpmPackage'](s(0x177),{'cwd':d}));b[s(0x18c)]==='sqlite'&&!this[s(0x1a7)][s(0x181)](s(0x199))&&(Log[s(0x187)](s(0x17b)),await this[s(0x1a7)]['installNpmPackage']('better-sqlite3',{'cwd':d}));this[s(0x1a7)][s(0x179)]({'srcPath':s(0x193),'destPath':this[s(0x1a7)]['pathFromApp']({'pathParts':[s(0x172),'startup',s(0x17a),s(0x18f),b[s(0x1a2)],f,s(0x19d)+j]}),'context':g,'config':c}),this[s(0x1a7)][s(0x179)]({'srcPath':'dbc/conn.js','destPath':this[s(0x1a7)][s(0x183)]({'pathParts':['imports',s(0x198),'server',s(0x18f),b[s(0x1a2)],f,s(0x19b)+j]}),'context':g,'config':c}),this[s(0x1a7)][s(0x179)]({'srcPath':'dbc/register-dbc.js','destPath':this[s(0x1a7)][s(0x183)]({'pathParts':[s(0x172),'startup',s(0x17a),s(0x176)+f+s(0x190)+j]}),'context':g,'config':c});const l=this[s(0x1a7)]['pathFromApp']({'pathParts':[s(0x172),'startup','server',s(0x173)+c[s(0x19f)]['js']]});this[s(0x1a7)][s(0x195)]({'filePath':l,'content':s(0x1a3)+f+'-dbc\x27;'});});}catch(j){Log['error'](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99i=a99d;(function(a,b){const f=a99d,c=a();while(!![]){try{const d=-parseInt(f(0xf7))/0x1*(parseInt(f(0x111))/0x2)+-parseInt(f(0x101))/0x3+-parseInt(f(0x105))/0x4+parseInt(f(0x108))/0x5+parseInt(f(0x109))/0x6*(parseInt(f(0xff))/0x7)+-parseInt(f(0x10b))/0x8*(-parseInt(f(0x113))/0x9)+-parseInt(f(0x102))/0xa*(parseInt(f(0x10c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x67408));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a99d;if(c){const e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const h=a99d;return a99a['toString']()[h(0xfe)](h(0xfb))['toString']()[h(0x103)](a99a)[h(0xfe)](h(0xfb));});a99a();function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xf7;let f=c[d];return f;},a99d(a,b);}function a99c(){const l=['findProjectDirectory','isFile','39feayPi','maka\x20{generate,\x20g}:dockerfile','getProjectConfig','dockerfile','(((.+)+)+)+$','maka\x20g:dockerfile','fsi','search','7DHgKgT','cert','1840488kmZNYL','7210gyQTch','constructor','app','2054932QGpEsB','service','withValue','2830905HDjSGA','4912380jNgwXa','appName','114832fjBVsw','2244pQJpJS','Generate\x20an\x20updated\x20dockerfile','create','join','Dockerfile','16372PLukzm','docker/Dockerfile','396dcZnUY','apply','build'];a99c=function(){return l;};return a99c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a99e from'path';Generator[a99i(0x10e)]({'name':a99i(0xfa),'usage':a99i(0xf8),'shortDesc':a99i(0x10d),'validOpts':[],'noResource':!![],'examples':[a99i(0xfc)]},async function(){const j=a99i;try{const a=await this['fsi'][j(0xf9)](),b=await this[j(0xfd)]['getGlobalConfig'](),c=this[j(0xfd)][j(0x116)]();this[j(0xfd)][j(0x107)](a,async()=>{const k=j,d={'app':b[k(0x10a)],'config':a,'appPath':a99e[k(0x10f)](c,k(0x104)),'bundlePath':a99e['join'](c,k(0x115),'app.tar.gz'),'useCert':this[k(0xfd)][k(0x117)](b[k(0x100)])};this[k(0xfd)]['template']({'srcPath':k(0x112),'destPath':a99e['join'](c,k(0x110)),'framework':k(0x106),'context':d,'config':a});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100r=a100d;(function(a,b){const p=a100d,c=a();while(!![]){try{const d=-parseInt(p(0x7a))/0x1*(parseInt(p(0x67))/0x2)+-parseInt(p(0x9f))/0x3*(parseInt(p(0xa6))/0x4)+-parseInt(p(0x68))/0x5*(-parseInt(p(0x74))/0x6)+parseInt(p(0xb5))/0x7*(-parseInt(p(0x95))/0x8)+parseInt(p(0x8c))/0x9*(parseInt(p(0xb6))/0xa)+parseInt(p(0x69))/0xb+parseInt(p(0x6c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xe27cd));const a100b=(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;};}()),a100a=a100b(this,function(){const q=a100d;return a100a[q(0x72)]()['search'](q(0x70))[q(0x72)]()[q(0x84)](a100a)[q(0x8b)]('(((.+)+)+)+$');});function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x65;let f=c[d];return f;},a100d(a,b);}a100a();import a100e 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[a100r(0x92)]({'name':a100r(0x75),'aliases':['h'],'checkWhere':![],'usage':a100r(0x8e),'shortDesc':a100r(0x9c),'validOpts':['baseDir'],'examples':[a100r(0x80)]},async function(a,b){const s=a100r;Log[s(0xb0)]('Creating\x20'+a[0x0]+s(0x65));try{const c=[s(0x76),s(0xad),'pages',s(0x73)];if(b[s(0xa3)]&&!c[s(0x99)](b['baseDir'])){Log[s(0x66)]('Invalid\x20directory\x20option\x20\x22'+b[s(0xa3)]+'\x22'),Log['error'](s(0xaf)+c[s(0xa4)](',\x20'));throw new UsageError();}const d=this[s(0xa5)][s(0x96)](s(0xaa));if(!d){Log[s(0x66)](s(0x81));throw new UsageError();}const f=this[s(0xa5)][s(0xb8)](b),g=b[s(0xa3)]?s(0x8d)+b['baseDir']:s(0x79),h=this[s(0xa5)][s(0xb8)]({'pathParts':[g,b[s(0x89)],b[s(0xb4)],paramCase(b[s(0xb4)])]}),i=await this[s(0xa5)][s(0xb7)]();this[s(0xa5)][s(0x7f)](i,async()=>{const t=s;typeof i[t(0x85)]['css']===t(0x6f)&&(i[t(0x85)][t(0x6e)]=i[t(0x85)]['css']===t(0x91)?!![]:![],this[t(0xa5)]['setTemplate'](t(0x6e),i[t(0x85)][t(0x6e)]));i[t(0x6b)][t(0x6a)]===t(0x7c)&&!this['fsi']['checkNpmPackage'](t(0x9b))&&(Log['warn'](t(0xa9)),await this[t(0xa5)][t(0xac)](t(0x93),{'cwd':f}));const j={'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0xb4)]),'name':pascalCase(b[t(0xb4)]),'graphql':i[t(0x6b)][t(0x6a)],'theme':i[t(0x6b)][t(0xa2)],'features':i['features'],'myPath':a100e[t(0xab)](this['fsi'][t(0xa1)]({}),h),'fileName':paramCase(b[t(0xb4)]),'isComponent':![],'isLayout':![],'withTranslations':i[t(0xa0)][t(0x8f)]};this['fsi'][t(0x85)]({'srcPath':t(0x87),'destPath':h+t(0x9d),'context':j,'config':i,'framework':'react'});i[t(0x85)][t(0x6e)]&&(this[t(0xa5)][t(0x85)]({'srcPath':t(0xb1),'destPath':h+t(0x78),'context':Object[t(0x8a)]({},j,{'className':j[t(0x90)]}),'config':i}),this['fsi'][t(0x98)]({'filePath':h+'.'+i[t(0x6b)]['js'],'content':t(0x77)+j['fileName']+'.'+i['engines']['css']+'\x27;'}));i[t(0x6b)][t(0xae)]!==t(0x97)&&this[t(0xa5)][t(0x85)]({'srcPath':t(0x9e),'destPath':h+t(0xa7),'framework':t(0xaa),'context':j,'config':i});const k=b['dir']?'/'+b[t(0x89)]+'/':'/',l=''+g+k+j[t(0xa8)]+'/'+j['fileName'];let m;if(i[t(0x6b)][t(0x6d)]===t(0x91)){const n=this['fsi'][t(0xb8)]({'pathParts':[t(0x88),t(0x82),t(0x83),t(0x94)]});m=this[t(0xa5)][t(0x86)]({'pathParts':[n],'config':i});}else{const o=this['fsi'][t(0xb8)]({'pathParts':[t(0x88),t(0x82),t(0x71),'templates.js']});m=this['fsi'][t(0x86)]({'pathParts':[o],'config':i});}i['engines'][t(0x71)]===t(0xaa)?(i[t(0x6b)]['js']===t(0xb3)?this[t(0xa5)][t(0x98)]({'filePath':m,'content':'import\x20{\x20'+j['className']+t(0x9a)+l+t(0x7e)}):this[t(0xa5)][t(0x98)]({'filePath':m,'content':'import\x20{\x20'+j[t(0x7d)]+t(0x9a)+l+'.'+i[t(0x6b)]['js']+t(0x7e)}),this[t(0xa5)][t(0xb2)]({'filePath':m,'content':'export\x20{\x20'+j['className']+t(0x7b)})):this[t(0xa5)][t(0xb2)]({'filePath':m,'content':'import\x20\x27'+l+'.'+i[t(0x6b)]['js']+t(0x7e)});});}catch(j){Log[s(0x66)](j);}});function a100c(){const u=['50953068IBrCxk','ssr','css','string','(((.+)+)+)+$','client','toString','layouts','2788260MHAipo','hook','hooks','import\x20\x27./','.css','/imports/ui/hooks','119753SIzIPI','\x20};\x0a','apollo','className','\x27;\x0a','withValue','maka\x20g:hook\x20cool-hook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','startup','lib','constructor','template','rewriteDestinationPathForEngine','hook/hook.js','imports','dir','assign','search','1291158eJUsGu','/imports/ui/','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','withTranslations','cssCaseName','true','create','@apollo/client\x20isomorphic-fetch','templates.js','12781672uYbjpw','checkNpmPackage','none','injectAtBeginningOfFile','includes','\x20}\x20from\x20\x27','@apollo/client','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','.js','test/test.js','45yDbhBs','features','pathFromProject','theme','baseDir','join','fsi','444428aBKhYp','.app-tests.js','fileName','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','react','relative','installNpmPackage','components','test','Valid\x20options\x20are:\x20','notice','template/template.css','injectAtEndOfFile','tsx','resourceName','7JOhzVW','10AdWMpg','getProjectConfig','pathFromApp','\x20hook...','error','26qeTQOw','10NqSzCQ','4728075yvwLIQ','graphql','engines'];a100c=function(){return u;};return a100c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101k=a101d;(function(a,b){const h=a101d,c=a();while(!![]){try{const d=-parseInt(h(0xe0))/0x1*(-parseInt(h(0xea))/0x2)+-parseInt(h(0xe2))/0x3*(parseInt(h(0xd3))/0x4)+-parseInt(h(0xeb))/0x5+parseInt(h(0xd9))/0x6+-parseInt(h(0xe5))/0x7+parseInt(h(0xd5))/0x8+parseInt(h(0xdb))/0x9*(parseInt(h(0xd1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x821ff));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a101d;if(c){const e=c[i(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const j=a101d;return a101a[j(0xec)]()['search'](j(0xd6))[j(0xec)]()['constructor'](a101a)['search'](j(0xd6));});a101a();function a101c(){const n=['engines','4156481AYfNHq','create','maka\x20g:kit\x20--type=map','type','resourceName','840194VbhZco','1429810YiLhzz','toString','withValue','indexOf','(blank)','130OmCvrT','login','245516BQKAhx','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','975600aWkbbq','(((.+)+)+)+$','Invalid\x20type\x20','fsi','2748954eKQzgb','map','370584IUQtKz','kit','notice','maka\x20g:k\x20city-map\x20--type=leaflet-map','NIE','1tDarOZ','error','6rTiZQo','apply'];a101c=function(){return n;};return a101c();}import{Generator}from'../generator.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0xcf;let f=c[d];return f;},a101d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a101k(0xe6)]({'name':a101k(0xdc),'aliases':['k'],'usage':a101k(0xd4),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a101k(0xe8)],'examples':[a101k(0xe7),a101k(0xde)]},async function(a,b){const l=a101k;try{const c=this[l(0xd8)]['getProjectConfig']();this[l(0xd8)][l(0xed)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xe9)]),'fileName':paramCase(b[m(0xe9)]),'camelCase':camelCase(b[m(0xe9)]),'type':b[m(0xe8)],'engine':c[m(0xe4)]['js'],'noRename':!![]},f=['leaflet-map','login'];if(f[m(0xcf)](d['type'])<0x0){const g=d[m(0xe8)]?d[m(0xe8)]:m(0xd0);Log[m(0xe1)](m(0xd7)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xe8)]===m(0xda)&&Log[m(0xdd)](m(0xdf)),b[m(0xe8)]===m(0xd2)&&Log['notice'](m(0xdf));});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a102r=a102d;(function(a,b){const o=a102d,c=a();while(!![]){try{const d=-parseInt(o(0x1a6))/0x1+parseInt(o(0x16e))/0x2+-parseInt(o(0x16c))/0x3*(-parseInt(o(0x18b))/0x4)+-parseInt(o(0x16b))/0x5*(parseInt(o(0x199))/0x6)+-parseInt(o(0x172))/0x7*(parseInt(o(0x1a3))/0x8)+-parseInt(o(0x192))/0x9+parseInt(o(0x18c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x3c1ba));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x163;let f=c[d];return f;},a102d(a,b);}const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a102d;if(c){const e=c[p(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const q=a102d;return a102a[q(0x1a8)]()[q(0x173)]('(((.+)+)+)+$')[q(0x1a8)]()[q(0x164)](a102a)['search'](q(0x196));});a102a();import a102e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];function a102c(){const u=['rewriteDestinationPathForEngine','.js','imports','installNpmPackage','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','ssr','create','setTemplate','maka\x20g:l\x20web/safari','layout','features','api','string','template/template.css','injectAtEndOfFile','pathFromApp','resourceName','relative','\x27;\x0a','className','checkNpmPackage','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','graphql','44DvNVtp','5367510WNXVdC','css','pathFromProject','fileName','getProjectConfig','\x20}\x20from\x20\x27','2393577xUqYYZ','dir','react','import\x20{\x20','(((.+)+)+)+$','tsx','theme','1498842qeeIul','component/component.js','Scaffolding\x20for\x20a\x20React\x20Layout.','test/test.js','withValue','engines','ramda','withHook','startup','includes','31056Xxjqci','hook/hook.js','lib','297489flAKSE','client','toString','test','withHooks','fsi','constructor','apply','injectAtBeginningOfFile','maka\x20g:layout\x20mobile/iPhone8','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','findAppDirectory','warn','5XAOVTs','106779SAkyEb','templates.js','285646NFdnCW','true','template','import\x20\x27','21fCHkFr','search'];a102c=function(){return u;};return a102c();}Generator[a102r(0x17a)]({'name':a102r(0x17d),'aliases':aliases,'usage':a102r(0x168),'shortDesc':a102r(0x19b),'validOpts':[],'examples':[a102r(0x167),a102r(0x17c)]},function(a,b){const s=a102r,c='/imports/ui/layouts',d=this[s(0x163)][s(0x169)](),e=this[s(0x163)][s(0x183)]({'pathParts':[c,b[s(0x193)],paramCase(b[s(0x184)]),paramCase(b[s(0x184)])]}),f=this[s(0x163)][s(0x190)]();this[s(0x163)][s(0x19d)](f,()=>{const t=s;typeof f['template'][t(0x1a9)]==='string'&&(f[t(0x170)][t(0x1a9)]=f[t(0x170)][t(0x1a9)]===t(0x16f)?!![]:![],this[t(0x163)]['setTemplate'](t(0x1a9),f[t(0x170)][t(0x1a9)]));typeof f[t(0x170)]['css']===t(0x180)&&(f['template'][t(0x18d)]=f[t(0x170)][t(0x18d)]===t(0x16f)?!![]:![],this[t(0x163)][t(0x17b)]('css',f[t(0x170)]['css']));typeof f['template']['js']==='string'&&(f[t(0x170)]['js']=f[t(0x170)]['js']===t(0x16f)?!![]:![],this[t(0x163)]['setTemplate']('js',f['template']['js']));!f[t(0x17e)]&&(f[t(0x17e)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[t(0x1a2)](g);h&&!this[t(0x188)](t(0x19f))&&(Log[t(0x16a)](t(0x178)),this[t(0x163)][t(0x177)](t(0x19f),{'cwd':d}));if(h&&!this[t(0x188)](t(0x194))){Log[t(0x16a)](t(0x189));return;}const i={'name':pascalCase(b[t(0x184)]),'myPath':a102e[t(0x185)](this['fsi'][t(0x18e)]({}),e),'cssCaseName':paramCase(b[t(0x184)]),'className':pascalCase(b[t(0x184)]),'camelCaseName':camelCase(b[t(0x184)]),'fileName':paramCase(b[t(0x184)]),'graphql':f[t(0x19e)][t(0x18a)],'features':f['features'],'client':f[t(0x19e)][t(0x1a7)],'api':f[t(0x19e)][t(0x17f)],'ssr':f[t(0x19e)][t(0x179)],'test':f[t(0x19e)][t(0x1a9)],'theme':f['engines'][t(0x198)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x17e)]['withTranslations']};f[t(0x17e)]?.[t(0x1aa)]||b[t(0x1a0)]?this[t(0x163)][t(0x170)]({'srcPath':t(0x1a4),'destPath':e+'.js','framework':t(0x194),'context':i,'config':f}):this[t(0x163)]['template']({'srcPath':t(0x19a),'destPath':e+t(0x175),'framework':t(0x194),'context':i,'config':f});f[t(0x19e)][t(0x1a9)]!=='none'&&this[t(0x163)][t(0x170)]({'srcPath':t(0x19c),'destPath':e+'.app-tests.js','framework':t(0x194),'context':i,'config':f});f['template'][t(0x18d)]&&(this[t(0x163)]['template']({'srcPath':t(0x181),'destPath':e+'.css','context':Object['assign']({},i,{'className':paramCase(b[t(0x184)])}),'config':f}),this[t(0x163)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x19e)]['js'],'content':'import\x20\x27./'+i[t(0x18f)]+'.'+f[t(0x19e)][t(0x18d)]+'\x27;'}));const j=b[t(0x193)]?'/'+b[t(0x193)]+'/':'/',k=''+c+j+i[t(0x18f)]+'/'+i[t(0x18f)];let l;if(f['engines']['ssr']===t(0x16f)){const m=this[t(0x163)][t(0x183)]({'pathParts':[t(0x176),t(0x1a1),t(0x1a5),'templates.js']});l=this[t(0x163)][t(0x174)]({'pathParts':[m],'config':f});}else{const n=this[t(0x163)][t(0x183)]({'pathParts':['imports',t(0x1a1),t(0x1a7),t(0x16d)]});l=this[t(0x163)][t(0x174)]({'pathParts':[n],'config':f});}f[t(0x19e)][t(0x1a7)]===t(0x194)?(f[t(0x19e)]['js']===t(0x197)?this[t(0x163)][t(0x166)]({'filePath':l,'content':t(0x195)+i[t(0x187)]+t(0x191)+k+t(0x186)}):this[t(0x163)][t(0x166)]({'filePath':l,'content':t(0x195)+i[t(0x187)]+t(0x191)+k+'.'+f[t(0x19e)]['js']+t(0x186)}),this[t(0x163)][t(0x182)]({'filePath':l,'content':'export\x20{\x20'+i['className']+'\x20};\x0a'})):this[t(0x163)]['injectAtEndOfFile']({'filePath':l,'content':t(0x171)+k+'.'+f[t(0x19e)]['js']+t(0x186)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a103c(){const j=['maka','toString','maka\x20g:hook\x20cool-hook','72oqQTlm','3846465WPqjIN','apply','Maka!','1684MZufRn','constructor','32udkXlp','2509470rwuoka','\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','25439900bCSJRb','2692485bXluME','5312484nvYZDP','search','(((.+)+)+)+$','19179IIGNjc','2136RWwgWF'];a103c=function(){return j;};return a103c();}const a103i=a103d;function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x8f;let f=c[d];return f;},a103d(a,b);}(function(a,b){const f=a103d,c=a();while(!![]){try{const d=-parseInt(f(0x8f))/0x1*(parseInt(f(0x94))/0x2)+parseInt(f(0x90))/0x3*(parseInt(f(0x98))/0x4)+-parseInt(f(0x9e))/0x5+parseInt(f(0x9f))/0x6+-parseInt(f(0x95))/0x7+parseInt(f(0x9a))/0x8*(-parseInt(f(0x9b))/0x9)+parseInt(f(0x9d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xcbf48));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a103d;if(c){const e=c[g(0x96)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const h=a103d;return a103a[h(0x92)]()['search'](h(0xa1))[h(0x92)]()[h(0x99)](a103a)[h(0xa0)]('(((.+)+)+)+$');});a103a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a103i(0x91),'shortDesc':a103i(0x97),'validOpts':[],'description':a103i(0x9c),'usage':'maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','examples':['maka\x20generate:api\x20Trucks',a103i(0x93)]},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104n=a104d;(function(a,b){const k=a104d,c=a();while(!![]){try{const d=-parseInt(k(0x1bb))/0x1*(parseInt(k(0x1da))/0x2)+parseInt(k(0x1be))/0x3*(-parseInt(k(0x1d8))/0x4)+parseInt(k(0x1ae))/0x5*(-parseInt(k(0x1b0))/0x6)+-parseInt(k(0x1d5))/0x7*(-parseInt(k(0x1b8))/0x8)+parseInt(k(0x1b5))/0x9+-parseInt(k(0x1bd))/0xa*(parseInt(k(0x1cf))/0xb)+parseInt(k(0x1d9))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x67d11));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a104d;if(c){const e=c[l(0x1b2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const m=a104d;return a104a['toString']()[m(0x1cc)](m(0x1b7))['toString']()[m(0x1bc)](a104a)[m(0x1cc)]('(((.+)+)+)+$');});a104a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1ae;let f=c[d];return f;},a104d(a,b);}function a104c(){const q=['resourceName','check\x20ddp-rate-limiter\x20mdg:validated-method','8RbDmYe','19754376pweiVL','4JtdHvS','23735XjSIGI','method/method.js','1062qoVGLv','pathFromApp','apply','dir','tsx','4183425zbvtnW','startup','(((.+)+)+)+$','648bXJdpM','fsi','appPathPrefix','126843staNcs','constructor','44330SksCMO','622437JkORqz','getProjectConfig','warn','-rpc-method\x27;','check','withValue','method','error','checkMeteorPackage','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','injectAtEndOfFile','import\x20\x27./methods','template','mdg:validated-method','search','maka\x20g:method\x20todos','imports','1892KdjOXS','maka\x20{generate,\x20g}:{method,\x20m}\x20name','index.','methods','engines','ddp-rate-limiter','50603LFhRyb'];a104c=function(){return q;};return a104c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a104n(0x1c4),'aliases':['m'],'usage':a104n(0x1d0),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':['dir'],'examples':[a104n(0x1cd)]},function(a,b){const o=a104n;try{const c=this[o(0x1b9)][o(0x1bf)]();this['fsi'][o(0x1c3)](c,async()=>{const p=o,d=paramCase(b[p(0x1d6)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x1d6)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x1d3)]['js']===p(0x1b4)&&(g='ts');const h=this[p(0x1b9)][p(0x1b1)]({});(!this[p(0x1b9)][p(0x1c6)](p(0x1c2))||!this['fsi'][p(0x1c6)](p(0x1d4))||!this['fsi'][p(0x1c6)](p(0x1cb)))&&(Log[p(0x1c0)](p(0x1c7)),this[p(0x1b9)]['installMeteorPackage'](p(0x1d7),{'cwd':h}));this['fsi'][p(0x1ca)]({'srcPath':p(0x1af),'destPath':this[p(0x1b9)][p(0x1b1)]({'pathParts':[p(0x1ce),'startup',b[p(0x1ba)],p(0x1d2),b[p(0x1b3)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x1b3)]?'/'+b[p(0x1b3)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':['imports',p(0x1b6),b['appPathPrefix'],p(0x1d1)+c[p(0x1d3)]['js']]});this[p(0x1b9)][p(0x1c8)]({'filePath':j,'content':p(0x1c9)+i+d+p(0x1c1)});});}catch(d){Log[o(0x1c5)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a105c(){const s=['pathFromApp','/package.js','graphql','template','features','noRename','hasOwnProperty','package.js','store','462287EJyCmZ','withValue','2567934xCQRUK','tests/server','forEach','(((.+)+)+)+$','10WRcsQV','layout','1527cLOpbv','ssr','fsi','546716NablNI','package/package.js','12IYgBUg','getProjectConfig','client','apply','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','5dCqExO','package','46665QUVkTw','create','maka\x20g:package\x20todos:package','component','packages','search','toString','engines','2180784HorAEd','534ZpEdWj','12773662wdayGW','resourceName','.js','constructor','dir','/client/'];a105c=function(){return s;};return a105c();}const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x15e))/0x1+-parseInt(l(0x167))/0x2*(parseInt(l(0x152))/0x3)+-parseInt(l(0x155))/0x4*(parseInt(l(0x15c))/0x5)+parseInt(l(0x157))/0x6*(-parseInt(l(0x14a))/0x7)+-parseInt(l(0x166))/0x8+-parseInt(l(0x14c))/0x9*(parseInt(l(0x150))/0xa)+parseInt(l(0x168))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x251b5));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x164)]()[n(0x163)](n(0x14f))[n(0x164)]()[n(0x16b)](a105a)[n(0x163)](n(0x14f));});a105a();import a105e from'path';import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x14a;let f=c[d];return f;},a105d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105o(0x15f)]({'name':a105o(0x15d),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a105o(0x15b),'validOpts':[a105o(0x16c)],'examples':[a105o(0x160)]},async function(a,b){const p=a105o,c=paramCase(b[p(0x169)]),d=this[p(0x154)][p(0x16e)]({'pathParts':[p(0x162),b['dir'],c]}),e=this[p(0x154)]['pathFromAppWithNoReWrite']({'pathParts':['packages',b['dir'],c,p(0x175)]}),f=this[p(0x154)][p(0x158)]();this['fsi'][p(0x14b)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a105e['relative'](this[q(0x154)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x169)]),'className':pascalCase(b[q(0x169)]),'camelCaseName':camelCase(b[q(0x169)]),'fileName':c,'client':f['engines'][q(0x159)],'graphql':f[q(0x165)][q(0x170)],'ssr':f['engines'][q(0x153)],'isComponent':b['hasOwnProperty'](q(0x161)),'isLayout':b[q(0x174)](q(0x151)),'isStore':b['hasOwnProperty'](q(0x176)),'features':f[q(0x172)],'noRename':!![],'theme':f[q(0x165)]['theme']};this[q(0x154)][q(0x171)]({'srcPath':q(0x156),'destPath':e,'context':g,'config':f}),g[q(0x173)]=![];const h=d+q(0x16d)+c+q(0x16a);this[q(0x154)][q(0x171)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=['lib','server','tests/client',q(0x14d)];i[q(0x14e)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x16a);this[r(0x154)][r(0x171)]({'srcPath':'package/'+j+r(0x16f),'destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106q=a106d;(function(a,b){const n=a106d,c=a();while(!![]){try{const d=parseInt(n(0xe3))/0x1*(-parseInt(n(0x104))/0x2)+parseInt(n(0xf1))/0x3+-parseInt(n(0x118))/0x4+-parseInt(n(0xd8))/0x5*(parseInt(n(0xff))/0x6)+-parseInt(n(0x109))/0x7*(parseInt(n(0x108))/0x8)+-parseInt(n(0xef))/0x9*(parseInt(n(0x112))/0xa)+parseInt(n(0xd7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x6a327));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a106d;if(c){const e=c[o(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const p=a106d;return a106a['toString']()[p(0x100)](p(0x11c))[p(0x10f)]()[p(0x111)](a106a)[p(0x100)](p(0x11c));});a106a();import a106e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xcb;let f=c[d];return f;},a106d(a,b);}import{UsageError}from'../error.js';function a106c(){const t=['react','maka\x20g:page\x20todos/todos-item','toString','getProjectConfig','constructor','10fcWMYD','setTemplate','injectAtBeginningOfFile','layout','imports','relative','2878732yCdPbm','templates.js','test','\x20};\x0a','(((.+)+)+)+$','pathFromProject','error','root','className','hook/hook.js','import\x20{\x20','\x20}\x20from\x20\x27','.html','assign','vanilla','withHooks','.js','startup','24499189ebXMcq','475zTIleJ','Updating\x20npm\x20packages\x20...','string','pages','true','injectAtEndOfFile','lib','pathFromApp','fsi','html','/imports/ui/','199534iXMyaR','features','rewriteDestinationPathForEngine','store','css','api','theme','apply','Invalid\x20directory\x20option\x20\x22','\x27;\x0a','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','ssr','3003102niJfgh','withHook','2064225KMryyf','installNpmPackage','fileName','components','template/template.html','resourceName','none','import\x20\x27','create','dir','template','Generate\x20a\x20page.','baseDir','hooks','17436sGXusy','search','hasOwnProperty','.app-tests.js','client','8ELqWXO','warn','tsx','import\x20\x27./','32rEdPdN','617267GGITPL','checkNpmPackage','Valid\x20options\x20are:\x20','engines'];a106c=function(){return t;};return a106c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a106q(0xf9)]({'name':'page','aliases':aliases,'usage':a106q(0xed),'shortDesc':a106q(0xfc),'validOpts':[a106q(0xfd),a106q(0xf0)],'examples':[a106q(0x10e)]},function(a,b){const r=a106q,c=[r(0xfe),r(0xf4),r(0xdb),'layouts'];if(b[r(0xfd)]&&!c['includes'](b[r(0xfd)])){Log[r(0xcb)](r(0xeb)+b[r(0xfd)]+'\x22'),Log[r(0xcb)](r(0x10b)+c['join'](',\x20'));throw new UsageError();}const d=b[r(0xfd)]?r(0xe2)+b[r(0xfd)]:'/imports/ui/pages',e=this['fsi'][r(0xdf)](b),f=this[r(0xe0)]['pathFromApp']({'pathParts':[d,b[r(0xfa)],b['resourceName'],paramCase(b[r(0xf6)])]}),g=this[r(0xe0)][r(0x110)]();this['fsi']['withValue'](g,()=>{const s=r;typeof g[s(0xfb)][s(0xe1)]==='string'&&(g[s(0xfb)][s(0xe1)]=g[s(0xfb)]['html']==='true'?!![]:![],this[s(0xe0)][s(0x113)]('html',g[s(0xfb)]['html']));typeof g[s(0xfb)][s(0x11a)]===s(0xda)&&(g['template']['test']=g[s(0xfb)][s(0x11a)]===s(0xdc)?!![]:![],this[s(0xe0)][s(0x113)](s(0x11a),g['template'][s(0x11a)]));typeof g[s(0xfb)][s(0xe7)]===s(0xda)&&(g[s(0xfb)][s(0xe7)]=g[s(0xfb)][s(0xe7)]===s(0xdc)?!![]:![],this['fsi'][s(0x113)](s(0xe7),g[s(0xfb)][s(0xe7)]));typeof g['template']['js']==='string'&&(g[s(0xfb)]['js']=g['template']['js']===s(0xdc)?!![]:![],this[s(0xe0)][s(0x113)]('js',g[s(0xfb)]['js']));!g[s(0xe4)]&&(g[s(0xe4)]={});!b[s(0xcc)]&&!this[s(0xe0)][s(0x10a)]('ramda')&&(Log[s(0x105)](s(0xd9)),this[s(0xe0)][s(0xf2)]('ramda',{'cwd':e}));const h={'name':pascalCase(b[s(0xf6)]),'myPath':a106e[s(0x117)](this['fsi'][s(0x11d)]({}),f),'cssCaseName':paramCase(b[s(0xf6)]),'className':pascalCase(b[s(0xf6)]),'camelCaseName':camelCase(b[s(0xf6)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x10c)]['graphql'],'features':g[s(0xe4)],'client':g[s(0x10c)]['client'],'api':g[s(0x10c)][s(0xe8)],'ssr':g['engines'][s(0xee)],'isStore':b['hasOwnProperty'](s(0xe6)),'isComponent':b[s(0x101)]('component'),'isLayout':b[s(0x101)](s(0x115)),'withTranslations':g[s(0xe4)]['withTranslations'],'test':g[s(0x10c)][s(0x11a)],'theme':g[s(0x10c)][s(0xe9)]};g[s(0xfb)][s(0xe1)]&&this['fsi'][s(0xfb)]({'srcPath':s(0xf5),'destPath':f+s(0xd1),'context':h,'config':g});g['features']?.[s(0xd4)]||b[s(0xf0)]?this['fsi'][s(0xfb)]({'srcPath':s(0xce),'destPath':f+'.js','framework':s(0x10d),'context':h,'config':g}):this[s(0xe0)]['template']({'srcPath':'component/component.js','destPath':f+s(0xd5),'framework':s(0x10d),'context':h,'config':g});g[s(0x10c)][s(0x11a)]!==s(0xf7)&&this['fsi'][s(0xfb)]({'srcPath':'test/test.js','destPath':f+s(0x102),'framework':s(0x10d),'context':h,'config':g});g[s(0xfb)][s(0xe7)]&&this['fsi'][s(0xfb)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[s(0xd2)]({},h,{'className':paramCase(b[s(0xf6)])}),'config':g});g[s(0x10c)]['client']!=='react'&&g[s(0x10c)][s(0x103)]!==s(0xd3)?(g[s(0xfb)][s(0xe7)]&&this[s(0xe0)][s(0x114)]({'filePath':f+'.'+g[s(0x10c)]['js'],'content':'import\x20\x27./'+h[s(0xf3)]+'.'+g['engines'][s(0xe1)]+s(0xec)+s(0x107)+h[s(0xf3)]+'.'+g['engines'][s(0xe7)]+'\x27;'}),!g[s(0xfb)][s(0xe7)]&&this[s(0xe0)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0x10c)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+g[s(0x10c)][s(0xe1)]+'\x27;'})):g[s(0xfb)]['css']&&this[s(0xe0)][s(0x114)]({'filePath':f+'.'+g[s(0x10c)]['js'],'content':s(0x107)+h[s(0xf3)]+'.'+g[s(0x10c)][s(0xe7)]+'\x27;'});const i=b['dir']?'/'+b[s(0xfa)]+'/':'/',j=''+d+i+h[s(0xf3)]+'/'+h[s(0xf3)];let k;if(g[s(0x10c)][s(0xee)]===s(0xdc)){const l=this[s(0xe0)][s(0xdf)]({'pathParts':['imports','startup',s(0xde),s(0x119)]});k=this[s(0xe0)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0xe0)]['pathFromApp']({'pathParts':[s(0x116),s(0xd6),s(0x103),'templates.js']});k=this['fsi'][s(0xe5)]({'pathParts':[m],'config':g});}g[s(0x10c)][s(0x103)]===s(0x10d)?(g['engines']['js']===s(0x106)?this[s(0xe0)][s(0x114)]({'filePath':k,'content':'import\x20{\x20'+h[s(0xcd)]+'\x20}\x20from\x20\x27'+j+s(0xec)}):this[s(0xe0)][s(0x114)]({'filePath':k,'content':s(0xcf)+h['className']+s(0xd0)+j+'.'+g[s(0x10c)]['js']+'\x27;\x0a'}),this[s(0xe0)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h[s(0xcd)]+s(0x11b)})):this['fsi'][s(0xdd)]({'filePath':k,'content':s(0xf8)+j+'.'+g[s(0x10c)]['js']+s(0xec)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107k=a107d;(function(a,b){const h=a107d,c=a();while(!![]){try{const d=-parseInt(h(0x202))/0x1*(parseInt(h(0x1f1))/0x2)+parseInt(h(0x1f3))/0x3+-parseInt(h(0x1f2))/0x4+-parseInt(h(0x1fe))/0x5*(parseInt(h(0x1f4))/0x6)+-parseInt(h(0x201))/0x7+-parseInt(h(0x1f7))/0x8+parseInt(h(0x1ff))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xd3869));function a107c(){const n=['1612084eRcmEQ','4241130PhXHLV','740562eJcnqL','engines','resourceName','8640560qnNbzY','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','search','injectAtEndOfFile','apply','tsx','(((.+)+)+)+$','5uRLCGK','33731757DvepMw','getProjectConfig','9469985FOyYPz','1335901QQjCPF','maka\x20g:publish\x20todos','constructor','toString','templateContent','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','withValue','create','fsi','2ROjRlN'];a107c=function(){return n;};return a107c();}function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a107d(a,b);}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a107d;if(c){const e=c[i(0x1fb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const j=a107d;return a107a[j(0x1eb)]()[j(0x1f9)](j(0x1fd))[j(0x1eb)]()[j(0x204)](a107a)[j(0x1f9)]('(((.+)+)+)+$');});a107a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a107k(0x1ef)]({'name':'publish','aliases':['p'],'usage':a107k(0x1f8),'shortDesc':a107k(0x1ed),'validOpts':[],'examples':[a107k(0x203)]},async function(a,b){const l=a107k,c=this[l(0x1f0)][l(0x200)]();this[l(0x1f0)][l(0x1ee)](c,async()=>{const m=l,d={'name':b[m(0x1f6)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c[m(0x1f5)]['js']===m(0x1fc)&&(e='ts');const f=this[m(0x1f0)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c['engines']['js']]}),g=this['fsi'][m(0x1ec)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x1f0)][m(0x1fa)]({'filePath':f,'content':'\x0a'+g});});});
|