@maka/maka-cli 4.5.34 → 4.5.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.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/app/server/main.js +4 -1
- package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +4 -1
- package/bundle/obf/src/templates/meteor/app/server/main.js.ts +4 -1
- package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +4 -1
- package/bundle/obf/src/templates/meteor/config/settings.json +2 -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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a95z=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=-parseInt(w(0xbe))/0x1*(-parseInt(w(0xb8))/0x2)+-parseInt(w(0x90))/0x3*(parseInt(w(0x9c))/0x4)+-parseInt(w(0xa5))/0x5*(-parseInt(w(0xc5))/0x6)+-parseInt(w(0x88))/0x7*(-parseInt(w(0x9e))/0x8)+parseInt(w(0xa7))/0x9*(parseInt(w(0xc4))/0xa)+parseInt(w(0xb1))/0xb*(parseInt(w(0x8d))/0xc)+-parseInt(w(0xb9))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x62db7));function a95c(){const C=['/graphql/resolvers','pathFromApp','search','injectAtBeginningOfFile','typeList.push(','api/fixtures.js','graphql','/graphql/typeDefs','log','TypeDefs);\x0a','withValue','exit','No\x20API\x20boundaries\x20selected','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','apiAnswers','apollo','withGql','14fbrcBX','test','import\x20{\x20typeDefs\x20as\x20','\x0aimport\x20{\x20resolvers\x20as\x20','maka:check','9276bZjYvN','withFixtures','api/typeDefs.js','3gSEDXc','rest','index.','length','api/resolvers.js','api/register-api.js','api/tests.js','withRest','Fixtures','rewriteDestinationPathForEngine','startup','engines','1594772KRjHis','server','1777544qrllXK','create','-api\x27;','includes','apply','push','template','201515RrUtlA','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','27lYiRFT','checkMeteorPackage','RPC\x20(Methods)','injectIntoFile','GraphQL','withPubs','API\x20boundaries\x20to\x20create','typeDefs.','api/methods.js','mdg:validated-method','6281EKdYss','withMethods','-api.','/imports/api','error','Verifying\x20meteor\x20package\x20requirements\x20...','api/api.js','587094DMMoic','17554264CyDXwI','maka\x20{generate,\x20g}:{api}\x20<resource-name>','api','(((.+)+)+)+$','if\x20\x5c(typeList','1OvrIDq','imports','rest-api.','publications.','const','ddp-rate-limiter','1770970XALHtv','66ooyeIx','collection','register-','fsi','injectAtEndOfFile','dir','REST\x20API','mongo','rpc-methods.'];a95c=function(){return C;};return a95c();}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a['toString']()[y(0xd0)](y(0xbc))['toString']()['constructor'](a95a)[y(0xd0)]('(((.+)+)+)+$');});a95a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x7c;let f=c[d];return f;},a95d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95z(0x9f)]({'name':'api','aliases':['a'],'usage':a95z(0xba),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a95z(0xca)],'examples':['maka\x20g:api\x20Todos'],'description':a95z(0x84)},async function(a,b){const A=a95z;try{const c=this['fsi']['getProjectConfig'](),d=[{'name':A(0xa9),'value':A(0xb2)},{'name':A(0x98),'value':A(0x8e)},{'name':'Publications','value':A(0xac)}];c[A(0x9b)]['api']===A(0x91)&&d[A(0xa3)]({'name':A(0xcb),'value':A(0x97)});c[A(0x9b)]['graphql']===A(0x86)&&d['push']({'name':A(0xab),'value':A(0x87)});const f={'type':'checkbox','name':A(0x85),'message':A(0xad),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[A(0x93)]===0x0&&(Log[A(0xb5)](A(0x83)),process['exit'](0x1)),this[A(0xc8)][A(0x81)](c,async()=>{const B=A,h=this[B(0xc8)][B(0xcf)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0xca)]?'/'+b[B(0xca)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0xbb)],'graphql':c[B(0x9b)][B(0x7d)],'test':c[B(0x9b)][B(0x89)],'noRename':!![],'withPubs':g['includes'](B(0xac)),'withFixtures':g[B(0xa1)](B(0x8e)),'withMethods':g[B(0xa1)](B(0xb2)),'withRest':g[B(0xa1)](B(0x97))};let n='js';c[B(0x9b)]['js']==='tsx'&&(n='ts');(!this[B(0xc8)][B(0xa8)]('maka:rest')||!this[B(0xc8)][B(0xa8)](B(0x8c))||!this[B(0xc8)]['checkMeteorPackage'](B(0xc3))||!this['fsi'][B(0xa8)](B(0xb0))||!this['fsi']['checkMeteorPackage'](B(0xcc)))&&(Log['notice'](B(0xb6)),await this[B(0xc8)]['installMeteorPackage'](B(0xa6),{'cwd':h}));const o=a95e['findGenerator'](B(0xc6));o&&await o['invoke']([j],{'config':c,'where':'server'});c['engines'][B(0xbb)]===B(0x91)&&(m[B(0x97)]&&this[B(0xc8)][B(0xa4)]({'srcPath':B(0xb7),'destPath':this[B(0xc8)][B(0xcf)]({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,B(0xc0)+n]}),'context':m,'config':c}));m[B(0xb2)]&&this[B(0xc8)]['template']({'srcPath':B(0xaf),'destPath':this[B(0xc8)][B(0xcf)]({'pathParts':['imports',B(0xbb),b[B(0xca)],j,B(0xcd)+n]}),'context':m,'config':c});m[B(0x8e)]&&this[B(0xc8)][B(0xa4)]({'srcPath':B(0x7c),'destPath':this[B(0xc8)][B(0xcf)]({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x9b)][B(0x89)]!=='none'&&this[B(0xc8)][B(0xa4)]({'srcPath':B(0x96),'destPath':this[B(0xc8)]['pathFromApp']({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m['withPubs']&&this[B(0xc8)][B(0xa4)]({'srcPath':'api/publications.js','destPath':this[B(0xc8)][B(0xcf)]({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,B(0xc1)+n]}),'context':m,'config':c});if(c[B(0x9b)][B(0x7d)]===B(0x86)){if(g[B(0xa1)]('withGql')){const q=this[B(0xc8)][B(0xcf)]({'pathParts':[B(0xbf),'startup',B(0x9d),B(0x92)+c[B(0x9b)]['js']]}),r=this[B(0xc8)][B(0x99)]({'pathParts':[q],'config':c}),s=this[B(0xc8)][B(0xcf)]({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,'graphql',B(0xae)+n]}),t=B(0xb4)+l+j+B(0x7e);this[B(0xc8)][B(0xa4)]({'srcPath':B(0x8f),'destPath':s,'context':m,'config':c}),this[B(0xc8)][B(0xd1)]({'filePath':r,'content':B(0x8a)+k+'TypeDefs\x20}\x20from\x20\x27'+t+'\x27;\x0a'}),this[B(0xc8)][B(0xaa)]({'filePath':r,'content':B(0xd2)+k+B(0x80),'begin':'const','end':B(0xbd)});const u=this['fsi']['pathFromApp']({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,B(0x7d),'resolvers.'+n]}),v=B(0xb4)+l+j+B(0xce);this[B(0xc8)][B(0xa4)]({'srcPath':B(0x94),'destPath':u,'context':m,'config':c}),this[B(0xc8)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0x8b)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[B(0xc8)][B(0xaa)]({'filePath':r,'content':'resolverList.push('+k+'Resolvers);\x0a\x0a','begin':B(0xc2),'end':B(0xbd)});}}this[B(0xc8)]['template']({'srcPath':B(0x95),'destPath':this['fsi'][B(0xcf)]({'pathParts':[B(0xbf),B(0x9a),'server',B(0xc7)+j+B(0xb3)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0xc8)]['pathFromApp']({'pathParts':[B(0xbf),'startup','server',B(0x92)+c[B(0x9b)]['js']]});this[B(0xc8)][B(0xc9)]({'filePath':p,'content':'import\x20\x27./register-'+j+B(0xa0)});});}catch(h){console[A(0x7f)](h),process[A(0x82)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x1e0))/0x1+-parseInt(k(0x1cf))/0x2*(-parseInt(k(0x1c8))/0x3)+-parseInt(k(0x1bf))/0x4*(parseInt(k(0x1d8))/0x5)+parseInt(k(0x1dd))/0x6+-parseInt(k(0x1e5))/0x7*(-parseInt(k(0x1c3))/0x8)+-parseInt(k(0x1df))/0x9+parseInt(k(0x1c9))/0xa*(parseInt(k(0x1d5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x6f917));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x1d0)]()[m(0x1cb)](m(0x1cd))[m(0x1d0)]()[m(0x1bb)](a96a)[m(0x1cb)](m(0x1cd));});a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a96n(0x1c1)]({'name':a96n(0x1e4),'aliases':['col'],'usage':a96n(0x1e6),'checkWhere':!![],'shortDesc':a96n(0x1c0),'validOpts':[a96n(0x1ca),a96n(0x1e3)],'description':a96n(0x1db),'examples':[a96n(0x1c6)]},async function(a,b){const o=a96n;try{const c=this[o(0x1e8)][o(0x1de)]({}),d=this[o(0x1e8)][o(0x1c4)]();this['fsi']['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0x1d4)]),g={'name':pascalCase(b[p(0x1d4)]),'collectionName':pascalCase(b[p(0x1d4)]),'fileName':f,'where':b[p(0x1e3)],'test':d[p(0x1d7)]['test'],'noRename':!![]};let h='js';d['engines']['js']===p(0x1d9)&&(h='ts');!this[p(0x1e8)]['checkMeteorPackage'](p(0x1e1))&&(Log[p(0x1be)](p(0x1c5)),await this[p(0x1e8)]['installMeteorPackage'](p(0x1e1),{'cwd':c}));!this['fsi']['checkMeteorPackage'](p(0x1e2))&&(Log[p(0x1be)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[p(0x1e8)][p(0x1e7)](p(0x1e2),{'cwd':c}));this[p(0x1e8)][p(0x1c2)]({'srcPath':'collection/collection.js','destPath':this[p(0x1e8)]['pathFromApp']({'pathParts':[p(0x1cc),p(0x1dc),b[p(0x1c7)],'collections',b[p(0x1ca)],f+'.'+h]}),'context':g,'config':d});d[p(0x1d7)][p(0x1da)]!=='none'&&this[p(0x1e8)]['template']({'srcPath':p(0x1d6),'destPath':this['fsi'][p(0x1de)]({'pathParts':[p(0x1cc),p(0x1dc),b[p(0x1c7)],'collections',b[p(0x1ca)],f+p(0x1d2)+h]}),'context':g,'config':d});const i=b[p(0x1ca)]?'/'+b[p(0x1ca)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':['imports',p(0x1dc),b[p(0x1c7)],p(0x1ce)+d[p(0x1d7)]['js']]});this[p(0x1e8)][p(0x1bd)]({'filePath':j,'content':p(0x1bc)+i+f+'\x27;'});});}catch(f){Log[o(0x1d3)](f);}});function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a96d(a,b);}function a96c(){const q=['.app-tests.','error','resourceName','6950977yBVCwF','collection/tests.js','engines','100NuTYMZ','tsx','test','\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','startup','1979190TCIZvb','pathFromApp','6589521xSfHeT','852008neyial','mongo','maka:check','where','collection','497AASBih','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','installMeteorPackage','fsi','constructor','import\x20\x27./collections','injectAtEndOfFile','notice','44076eCkaYW','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','create','template','33112dTleeM','getProjectConfig','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','maka\x20g:collection\x20todos','appPathPrefix','18wrXWQg','20JrkFtl','dir','search','imports','(((.+)+)+)+$','index.','124664OtsPbz','toString','apply'];a96c=function(){return q;};return a96c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97r=a97d;(function(a,b){const o=a97d,c=a();while(!![]){try{const d=-parseInt(o(
|
|
1
|
+
function a97c(){const u=['components','injectAtBeginningOfFile','includes','20lJAMQO','\x27;\x0a','join','test','true','.js','className','/imports/ui/','layouts','getProjectConfig','setTemplate','/imports/ui/components','withTranslations','maka\x20g:comp\x20todos/todos-item','60015NOhHhE','import\x20{\x20','component/component.js','css','3405753xfbgGa','(((.+)+)+)+$','react','none','pathFromApp','.tests.js','toString','withValue','1435290zrQWXA','fsi','string','93503PmJZIu','assign','resourceName','imports','import\x20\x27./','test/test.js','features','startup','create','warn','engines','export\x20{\x20','template','baseDir','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','comp','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','354376TDOBHL','hooks','lib','pathFromProject','reflux','\x20};\x0a','dir','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','client','ssr','537285UdZLSf','ramda','installNpmPackage','fileName','injectAtEndOfFile','\x20}\x20from\x20\x27','search','relative','graphql','error','242505TAbubX','Invalid\x20directory\x20option\x20\x22','2PWHhRk','component','root','templates.js','apply'];a97c=function(){return u;};return a97c();}const a97r=a97d;(function(a,b){const o=a97d,c=a();while(!![]){try{const d=-parseInt(o(0xc4))/0x1*(parseInt(o(0xeb))/0x2)+-parseInt(o(0xb5))/0x3+-parseInt(o(0xf3))/0x4*(-parseInt(o(0xe9))/0x5)+-parseInt(o(0xc1))/0x6+-parseInt(o(0xdf))/0x7+-parseInt(o(0xd5))/0x8+parseInt(o(0xb9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x23ecb));function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xae;let f=c[d];return f;},a97d(a,b);}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a97d;if(c){const e=c[p(0xef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const q=a97d;return a97a[q(0xbf)]()[q(0xe5)](q(0xba))['toString']()['constructor'](a97a)[q(0xe5)](q(0xba));});a97a();import a97e 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';const aliases=[a97r(0xd3)];Generator[a97r(0xcc)]({'name':a97r(0xec),'aliases':aliases,'usage':a97r(0xd2),'shortDesc':a97r(0xdc),'validOpts':['baseDir'],'examples':[a97r(0xb4)]},async function(a,b){const s=a97r;try{const c=[s(0xd6),s(0xf0),'pages',s(0xaf)];if(b[s(0xd1)]&&!c[s(0xf2)](b['baseDir'])){Log[s(0xe8)](s(0xea)+b[s(0xd1)]+'\x22'),Log['error']('Valid\x20options\x20are:\x20'+c[s(0xf5)](',\x20'));throw new UsageError();}const d=this[s(0xc2)]['findAppDirectory'](),f=b[s(0xd1)]?s(0xae)+b[s(0xd1)]:s(0xb2),g=this['fsi'][s(0xbd)]({'pathParts':[f,b[s(0xdb)],paramCase(b[s(0xc6)]),paramCase(b[s(0xc6)])]}),h=await this[s(0xc2)][s(0xb0)]();this[s(0xc2)][s(0xc0)](h,async()=>{const t=s;typeof h[t(0xd0)][t(0xf6)]===t(0xc3)&&(h[t(0xd0)][t(0xf6)]=h['template'][t(0xf6)]===t(0xf7)?!![]:![],this[t(0xc2)][t(0xb1)](t(0xf6),h[t(0xd0)][t(0xf6)]));typeof h[t(0xd0)][t(0xb8)]==='string'&&(h[t(0xd0)]['css']=h[t(0xd0)][t(0xb8)]===t(0xf7)?!![]:![],this[t(0xc2)][t(0xb1)](t(0xb8),h[t(0xd0)][t(0xb8)]));typeof h[t(0xd0)]['js']===t(0xc3)&&(h['template']['js']=h[t(0xd0)]['js']===t(0xf7)?!![]:![],this[t(0xc2)][t(0xb1)]('js',h[t(0xd0)]['js']));!h[t(0xca)]&&(h[t(0xca)]={});!b[t(0xed)]&&!this[t(0xc2)]['checkNpmPackage'](t(0xe0))&&(Log[t(0xcd)](t(0xd4)),await this[t(0xc2)][t(0xe1)](t(0xe0),{'cwd':d}));if(!b['root']&&!this[t(0xc2)]['checkNpmPackage']('react')){Log[t(0xe8)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b[t(0xc6)]),'myPath':a97e[t(0xe6)](this[t(0xc2)][t(0xd8)]({}),g),'cssCaseName':paramCase(b[t(0xc6)]),'className':pascalCase(b[t(0xc6)]),'camelCaseName':camelCase(b[t(0xc6)]),'fileName':paramCase(b[t(0xc6)]),'graphql':h[t(0xce)][t(0xe7)],'features':h[t(0xca)],'client':h['engines']['client'],'api':h[t(0xce)]['api'],'ssr':h[t(0xce)][t(0xde)],'test':h[t(0xce)][t(0xf6)],'theme':h[t(0xce)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':h[t(0xca)][t(0xb3)]};this[t(0xc2)]['template']({'srcPath':t(0xb7),'destPath':g+t(0xf8),'context':i,'framework':'react','config':h});h['engines'][t(0xf6)]!==t(0xbc)&&this['fsi'][t(0xd0)]({'srcPath':t(0xc9),'destPath':g+t(0xbe),'context':i,'framework':t(0xbb),'config':h});h[t(0xd0)][t(0xb8)]&&(this[t(0xc2)][t(0xd0)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[t(0xc5)]({},i,{'className':paramCase(b['resourceName'])}),'config':h}),this[t(0xc2)][t(0xf1)]({'filePath':g+'.'+h[t(0xce)]['js'],'content':t(0xc8)+i['cssCaseName']+'.'+h[t(0xce)][t(0xb8)]+'\x27;'}));const j=b[t(0xdb)]?'/'+b[t(0xdb)]+'/':'/',k=''+f+j+i[t(0xe2)]+'/'+i[t(0xe2)];let l;if(h['engines'][t(0xde)]===t(0xf7)){const m=this[t(0xc2)][t(0xbd)]({'pathParts':[t(0xc7),t(0xcb),t(0xd7),'templates.js']});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0xbd)]({'pathParts':[t(0xc7),t(0xcb),t(0xdd),t(0xee)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h[t(0xce)]['client']===t(0xbb)||h['engines'][t(0xdd)]===t(0xd9)?(h[t(0xce)]['js']==='tsx'?this[t(0xc2)][t(0xf1)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xf9)]+t(0xe4)+k+t(0xf4)}):this['fsi']['injectAtBeginningOfFile']({'filePath':l,'content':t(0xb6)+i[t(0xf9)]+t(0xe4)+k+'.'+h['engines']['js']+t(0xf4)}),this[t(0xc2)][t(0xe3)]({'filePath':l,'content':t(0xcf)+i['className']+t(0xda)})):this[t(0xc2)][t(0xe3)]({'filePath':l,'content':'import\x20\x27'+k+'.'+h['engines']['js']+t(0xf4)});});}catch(i){Log[s(0xe8)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d
|
|
1
|
+
const a98k=a98d;(function(a,b){const h=a98d,c=a();while(!![]){try{const d=-parseInt(h(0xd9))/0x1*(parseInt(h(0xf6))/0x2)+-parseInt(h(0xf3))/0x3+-parseInt(h(0xee))/0x4*(parseInt(h(0xf5))/0x5)+-parseInt(h(0xfa))/0x6+parseInt(h(0xdb))/0x7*(parseInt(h(0xdf))/0x8)+parseInt(h(0xf1))/0x9*(parseInt(h(0xf2))/0xa)+parseInt(h(0xf8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x3ae1b));function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xd9;let f=c[d];return f;},a98d(a,b);}const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a98d;if(c){const e=c[i(0xda)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const j=a98d;return a98a[j(0xf9)]()['search'](j(0xe2))[j(0xf9)]()['constructor'](a98a)[j(0xe4)](j(0xe2));});a98a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a98c(){const n=['3968QCOFBx','config/settings.json','template','(((.+)+)+)+$','getProjectConfig','search','appName','settings.json','create','config','isDocker','withValue','ubuntu','process.env','maka\x20{generate,\x20g}:{config}\x20<name>','1996uTQYzI','development','dev','3163419VHbGCN','10VSbPtg','646662ctUeTx','fsi','245daZCrU','1844wChRjz','pathFromProject','1788930JZxPWR','toString','326778HPZFmb','17NpLvuh','apply','525bYQzDT','resourceName','prod','config/process.env'];a98c=function(){return n;};return a98c();}Generator[a98k(0xe7)]({'name':'config','usage':a98k(0xed),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a98k(0xe9)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a98k,c=this['fsi'][l(0xe3)]();this[l(0xf4)][l(0xea)](c,async()=>{const m=l,d={'app':c[m(0xe5)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0xdc)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0xdc)]),'userName':m(0xeb),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0xf0))e=m(0xef);else e===m(0xdd)&&(e='production');const f=this[m(0xf4)][m(0xf7)]({'pathParts':['config',e,m(0xe6)]});this[m(0xf4)][m(0xe1)]({'srcPath':m(0xe0),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0xf4)][m(0xf7)]({'pathParts':[m(0xe8),e,m(0xec)]});this[m(0xf4)][m(0xe1)]({'srcPath':m(0xde),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99q=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d
|
|
1
|
+
function a99c(){const t=['3759PVAFUj','imports','dbc','MS\x20SQL','3689550NilWah','dbAnswer','maka\x20g:dbc\x20azure\x20--type=mssql','withValue','PostgreSQL','create','maka\x20g:dbc\x20geoserver\x20--type=pgsql','pgsql','maka\x20g:dbc\x20todos\x20--type=sqlite','resourceName','checkNpmPackage','pathFromApp','dbc/conn.js','type','engines','8046210vTHuEn','template','675000Gbxpmv','error','conn.','toString','constructor','2325696oweJHY','tsx','1516aMkFqE','dbc/register-dbc.js','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','dir','search','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','DB\x20Driver','startup','getProjectConfig','18yvnvXK','register-','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','config.','server','warn','10fkxodZ','apply','mssql','(blank)','indexOf','(((.+)+)+)+$','4710RtALcJ','fsi','better-sqlite3','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','import\x20\x27./register-','sqlite','119440wRFjPt','-dbc\x27;','list','installNpmPackage','injectAtEndOfFile'];a99c=function(){return t;};return a99c();}const a99q=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=-parseInt(n(0x17a))/0x1*(-parseInt(n(0x186))/0x2)+parseInt(n(0x169))/0x3+-parseInt(n(0x16b))/0x4+-parseInt(n(0x18f))/0x5+-parseInt(n(0x180))/0x6*(-parseInt(n(0x18b))/0x7)+-parseInt(n(0x164))/0x8*(-parseInt(n(0x174))/0x9)+-parseInt(n(0x162))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x667e9));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x167)]()[p(0x16f)](p(0x17f))[p(0x167)]()[p(0x168)](a99a)['search']('(((.+)+)+)+$');});function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x15b;let f=c[d];return f;},a99d(a,b);}a99a();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[a99q(0x194)]({'name':a99q(0x18d),'usage':a99q(0x170),'shortDesc':a99q(0x183),'validOpts':['type',a99q(0x16e)],'examples':[a99q(0x195),a99q(0x191),a99q(0x15b)]},async function(a,b){const r=a99q;try{const c=await this[r(0x181)][r(0x173)](),d=this[r(0x181)]['pathFromApp']({}),f=paramCase(b[r(0x15c)]);if(!b[r(0x160)]){const h={'type':r(0x188),'name':r(0x190),'message':r(0x171),'choices':[{'name':r(0x193),'value':'pgsql'},{'name':r(0x18e),'value':'mssql'}]},{dbAnswer:i}=await Actions['options'](h);i&&(b[r(0x160)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[r(0x15c)]),'type':b['type'],'engine':c[r(0x161)]['js'],'noRename':!![]};this['fsi'][r(0x192)](c,async()=>{const s=r;let j='js';c[s(0x161)]['js']===s(0x16a)&&(j='ts');const k=[s(0x17c),s(0x196)];if(k[s(0x17e)](g[s(0x160)])<0x0){const m=g[s(0x160)]?g['type']:s(0x17d);Log[s(0x165)]('Invalid\x20type\x20'+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x160)]===s(0x196)&&!this[s(0x181)][s(0x15d)]('pg')&&(Log[s(0x179)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[s(0x181)][s(0x189)]('pg',{'cwd':d}));b[s(0x160)]==='mssql'&&!this[s(0x181)][s(0x15d)](s(0x17c))&&(Log['warn'](s(0x16d)),await this[s(0x181)]['installNpmPackage']('mssql',{'cwd':d}));b[s(0x160)]===s(0x185)&&!this[s(0x181)][s(0x15d)](s(0x182))&&(Log[s(0x179)](s(0x176)),await this[s(0x181)][s(0x189)](s(0x182),{'cwd':d}));this['fsi'][s(0x163)]({'srcPath':'dbc/config.js','destPath':this[s(0x181)]['pathFromApp']({'pathParts':[s(0x18c),s(0x172),s(0x178),s(0x18d),b[s(0x16e)],f,s(0x177)+j]}),'context':g,'config':c}),this[s(0x181)][s(0x163)]({'srcPath':s(0x15f),'destPath':this[s(0x181)]['pathFromApp']({'pathParts':[s(0x18c),'startup','server',s(0x18d),b[s(0x16e)],f,s(0x166)+j]}),'context':g,'config':c}),this['fsi'][s(0x163)]({'srcPath':s(0x16c),'destPath':this[s(0x181)][s(0x15e)]({'pathParts':[s(0x18c),s(0x172),s(0x178),s(0x175)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this['fsi']['pathFromApp']({'pathParts':[s(0x18c),s(0x172),s(0x178),'index.'+c[s(0x161)]['js']]});this[s(0x181)][s(0x18a)]({'filePath':l,'content':s(0x184)+f+s(0x187)});});}catch(j){Log['error'](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100i=a100d;(function(a,b){const f=a100d,c=a();while(!![]){try{const d
|
|
1
|
+
const a100i=a100d;function a100c(){const l=['2VrPtPI','error','Dockerfile','maka\x20g:dockerfile','(((.+)+)+)+$','dockerfile','getGlobalConfig','docker/Dockerfile','appName','findProjectDirectory','service','4HcQaKM','create','135012KyASpJ','6hZFmTw','join','isFile','680115TMeNvc','app.tar.gz','Generate\x20an\x20updated\x20dockerfile','2956671BRkBrA','app','fsi','4010152bzLHYA','maka\x20{generate,\x20g}:dockerfile','apply','3204080oLLUyn','cert','toString','search','3629230ORKjEz','getProjectConfig','build','1543402rzxXEp','40jMBilC'];a100c=function(){return l;};return a100c();}(function(a,b){const f=a100d,c=a();while(!![]){try{const d=parseInt(f(0xcc))/0x1+-parseInt(f(0xbb))/0x2*(-parseInt(f(0xc8))/0x3)+-parseInt(f(0xc6))/0x4*(parseInt(f(0xd5))/0x5)+-parseInt(f(0xc9))/0x6*(parseInt(f(0xb9))/0x7)+-parseInt(f(0xd2))/0x8+-parseInt(f(0xcf))/0x9+parseInt(f(0xba))/0xa*(parseInt(f(0xd9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x565d5));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a100d;if(c){const e=c[g(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const h=a100d;return a100a[h(0xd7)]()[h(0xd8)]('(((.+)+)+)+$')[h(0xd7)]()['constructor'](a100a)['search'](h(0xbf));});function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xb8;let f=c[d];return f;},a100d(a,b);}a100a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a100e from'path';Generator[a100i(0xc7)]({'name':a100i(0xc0),'usage':a100i(0xd3),'shortDesc':a100i(0xce),'validOpts':[],'noResource':!![],'examples':[a100i(0xbe)]},async function(){const j=a100i;try{const a=await this[j(0xd1)][j(0xda)](),b=await this[j(0xd1)][j(0xc1)](),c=this[j(0xd1)][j(0xc4)]();this[j(0xd1)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0xc3)],'config':a,'appPath':a100e[k(0xca)](c,k(0xd0)),'bundlePath':a100e[k(0xca)](c,k(0xb8),k(0xcd)),'useCert':this['fsi'][k(0xcb)](b[k(0xd6)])};this[k(0xd1)]['template']({'srcPath':k(0xc2),'destPath':a100e[k(0xca)](c,k(0xbd)),'framework':k(0xc5),'context':d,'config':a});});}catch(d){Log[j(0xbc)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101r=a101d;(function(a,b){const p=a101d,c=a();while(!![]){try{const d=parseInt(p(0x8d))/0x1+-parseInt(p(0xd0))/0x2*(parseInt(p(0xb2))/0x3)+parseInt(p(0xc6))/0x4*(-parseInt(p(0x7f))/0x5)+parseInt(p(0xaf))/0x6*(-parseInt(p(0xbe))/0x7)+parseInt(p(0xa7))/0x8*(-parseInt(p(0xae))/0x9)+-parseInt(p(0xb8))/0xa*(-parseInt(p(0xa0))/0xb)+-parseInt(p(0x9b))/0xc*(-parseInt(p(0x8c))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xcf8eb));function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x7f;let f=c[d];return f;},a101d(a,b);}const a101b=(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;};}()),a101a=a101b(this,function(){const q=a101d;return a101a[q(0xad)]()[q(0xb3)](q(0x9e))[q(0xad)]()[q(0x8a)](a101a)[q(0xb3)](q(0x9e));});a101a();import a101e from'path';import{paramCase,pascalCase,camelCase}from'change-case';function a101c(){const u=['@apollo/client\x20isomorphic-fetch','constructor','withTranslations','41674035zunfKg','648314HbPNdU','css','layouts','react','setTemplate','test/test.js','includes','create','injectAtEndOfFile','Creating\x20','\x20}\x20from\x20\x27','imports','join','true','12kBnICN','none','graphql','(((.+)+)+)+$','rewriteDestinationPathForEngine','11KHDBkT','ssr','tsx','template/template.css','/imports/ui/hooks','apollo','pathFromApp','16OuiCqs','baseDir','theme','\x20};\x0a','dir','pages','toString','4590279mFCAGo','12hLUZVr','warn','startup','3niqQuH','search','error','assign','engines','withValue','5459730LHCWlr','.js','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','@apollo/client','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','notice','3326778OUfSXH','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','import\x20\x27./','hook','getProjectConfig','injectAtBeginningOfFile','fsi','170680tCWcnS','.css','fileName','template','string','components','import\x20{\x20','client','.app-tests.js','hooks','2817154wyuKBN','Valid\x20options\x20are:\x20','import\x20\x27','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Invalid\x20directory\x20option\x20\x22','lib','maka\x20g:hook\x20cool-hook','20DnDYxN','className','templates.js','features','checkNpmPackage','resourceName','/imports/ui/','cssCaseName','\x20hook...','\x27;\x0a'];a101c=function(){return u;};return a101c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a101r(0x94)]({'name':a101r(0xc2),'aliases':['h'],'checkWhere':![],'usage':a101r(0xba),'shortDesc':a101r(0xc0),'validOpts':['baseDir'],'examples':[a101r(0xd6)],'description':a101r(0xbf)},async function(a,b){const s=a101r;Log[s(0xbd)](s(0x96)+a[0x0]+s(0x87));try{const c=[s(0xcf),s(0xcb),s(0xac),s(0x8f)];if(b['baseDir']&&!c[s(0x93)](b[s(0xa8)])){Log[s(0xb4)](s(0xd4)+b[s(0xa8)]+'\x22'),Log[s(0xb4)](s(0xd1)+c[s(0x99)](',\x20'));throw new UsageError();}const d=this[s(0xc5)][s(0x83)]('react');if(!d){Log[s(0xb4)](s(0xd3));throw new UsageError();}const f=this[s(0xc5)]['pathFromApp'](b),g=b[s(0xa8)]?s(0x85)+b[s(0xa8)]:s(0xa4),h=this[s(0xc5)]['pathFromApp']({'pathParts':[g,b['dir'],paramCase(b[s(0x84)]),paramCase(b[s(0x84)])]}),i=await this[s(0xc5)][s(0xc3)]();this[s(0xc5)][s(0xb7)](i,async()=>{const t=s;typeof i['template'][t(0x8e)]===t(0xca)&&(i[t(0xc9)][t(0x8e)]=i[t(0xc9)]['css']===t(0x9a)?!![]:![],this[t(0xc5)][t(0x91)]('css',i['template']['css']));i['engines'][t(0x9d)]===t(0xa5)&&!this[t(0xc5)][t(0x83)](t(0xbb))&&(Log[t(0xb0)](t(0xbc)),await this['fsi']['installNpmPackage'](t(0x89),{'cwd':f}));const j={'cssCaseName':paramCase(b[t(0x84)]),'camelCaseName':camelCase(b[t(0x84)]),'className':pascalCase(b[t(0x84)]),'name':pascalCase(b[t(0x84)]),'graphql':i[t(0xb6)][t(0x9d)],'theme':i[t(0xb6)][t(0xa9)],'features':i[t(0x82)],'myPath':a101e['relative'](this['fsi']['pathFromProject']({}),h),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':i[t(0x82)][t(0x8b)]};this[t(0xc5)][t(0xc9)]({'srcPath':'hook/hook.js','destPath':h+t(0xb9),'context':j,'config':i,'framework':t(0x90)});i[t(0xc9)][t(0x8e)]&&(this[t(0xc5)][t(0xc9)]({'srcPath':t(0xa3),'destPath':h+t(0xc7),'context':Object[t(0xb5)]({},j,{'className':j[t(0x86)]}),'config':i}),this[t(0xc5)][t(0xc4)]({'filePath':h+'.'+i[t(0xb6)]['js'],'content':t(0xc1)+j[t(0xc8)]+'.'+i[t(0xb6)][t(0x8e)]+'\x27;'}));i[t(0xb6)]['test']!==t(0x9c)&&this[t(0xc5)][t(0xc9)]({'srcPath':t(0x92),'destPath':h+t(0xce),'framework':t(0x90),'context':j,'config':i});const k=b[t(0xab)]?'/'+b[t(0xab)]+'/':'/',l=''+g+k+j['fileName']+'/'+j[t(0xc8)];let m;if(i['engines'][t(0xa1)]===t(0x9a)){const n=this[t(0xc5)][t(0xa6)]({'pathParts':['imports',t(0xb1),t(0xd5),t(0x81)]});m=this['fsi'][t(0x9f)]({'pathParts':[n],'config':i});}else{const o=this[t(0xc5)][t(0xa6)]({'pathParts':[t(0x98),'startup',t(0xcd),'templates.js']});m=this[t(0xc5)][t(0x9f)]({'pathParts':[o],'config':i});}i[t(0xb6)][t(0xcd)]===t(0x90)?(i[t(0xb6)]['js']===t(0xa2)?this[t(0xc5)][t(0xc4)]({'filePath':m,'content':t(0xcc)+j[t(0x80)]+t(0x97)+l+t(0x88)}):this[t(0xc5)]['injectAtBeginningOfFile']({'filePath':m,'content':t(0xcc)+j[t(0x80)]+'\x20}\x20from\x20\x27'+l+'.'+i['engines']['js']+t(0x88)}),this[t(0xc5)][t(0x95)]({'filePath':m,'content':'export\x20{\x20'+j[t(0x80)]+t(0xaa)})):this['fsi']['injectAtEndOfFile']({'filePath':m,'content':t(0xd2)+l+'.'+i[t(0xb6)]['js']+t(0x88)});});}catch(j){Log[s(0xb4)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102j=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x11e))/0x1*(parseInt(h(0x11f))/0x2)+parseInt(h(0x110))/0x3+-parseInt(h(0x107))/0x4+-parseInt(h(0x113))/0x5*(-parseInt(h(0x10c))/0x6)+-parseInt(h(0x112))/0x7*(-parseInt(h(0x105))/0x8)+-parseInt(h(0x117))/0x9*(parseInt(h(0x102))/0xa)+-parseInt(h(0x11a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xef491));function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x100;let f=c[d];return f;},a102d(a,b);}const a102b=(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;};}()),a102a=a102b(this,function(){const i=a102d;return a102a[i(0x11d)]()[i(0x111)]('(((.+)+)+)+$')[i(0x11d)]()[i(0x106)](a102a)[i(0x111)](i(0x114));});a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a102c(){const m=['maka\x20g:kit\x20--type=map','leaflet-map','3634152CRNrav','constructor','2697660LvfDlO','maka\x20g:k\x20city-map\x20--type=leaflet-map',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','error','resourceName','194034FUMPHn','kit','fsi','NIE','3996201GGcoHT','search','28OubMsW','205cvfwQS','(((.+)+)+)+$','type','engines','6714mKUdBR','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','26164985ShHBmJ','getProjectConfig','withValue','toString','457tFSoJx','5598gQmHbb','notice','map','23070dyIsEP'];a102c=function(){return m;};return a102c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a102j(0x10d),'aliases':['k'],'usage':a102j(0x119),'shortDesc':a102j(0x118),'validOpts':[a102j(0x115)],'examples':[a102j(0x103),a102j(0x108)]},async function(a,b){const k=a102j;try{const c=this[k(0x10e)][k(0x11b)]();this['fsi'][k(0x11c)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x10b)]),'fileName':paramCase(b[l(0x10b)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[l(0x116)]['js'],'noRename':!![]},f=[l(0x104),'login'];if(f['indexOf'](d[l(0x115)])<0x0){const g=d[l(0x115)]?d[l(0x115)]:'(blank)';Log['error']('Invalid\x20type\x20'+g+l(0x109));return;}b['type']===l(0x101)&&Log[l(0x100)](l(0x10f)),b[l(0x115)]==='login'&&Log['notice']('NIE');});}catch(d){Log[k(0x10a)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a103r=a103d;(function(a,b){const o=a103d,c=a();while(!![]){try{const d=-parseInt(o(0x18d))/0x1*(-parseInt(o(0x189))/0x2)+-parseInt(o(0x1b6))/0x3+-parseInt(o(0x1bd))/0x4*(parseInt(o(0x180))/0x5)+-parseInt(o(0x1b5))/0x6+-parseInt(o(0x188))/0x7*(-parseInt(o(0x1be))/0x8)+-parseInt(o(0x19e))/0x9+-parseInt(o(0x1ac))/0xa*(-parseInt(o(0x190))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x33aaa));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a103d;if(c){const e=c[p(0x1b3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const q=a103d;return a103a[q(0x1c3)]()[q(0x193)](q(0x17c))[q(0x1c3)]()[q(0x18b)](a103a)[q(0x193)](q(0x17c));});a103a();import a103e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a103c(){const u=['import\x20{\x20','withTranslations','\x20}\x20from\x20\x27','50WmcSkH','engines','string','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','Scaffolding\x20for\x20a\x20React\x20Layout.','hook/hook.js','pathFromApp','apply','graphql','2262228ktDNzM','304152HzShzZ','client','fsi','split','import\x20\x27','component/component.js','injectAtEndOfFile','8VfTMaU','48fNoOzE','template/template.css','lib','templates.js','pathFromProject','toString','checkNpmPackage','relative','/imports/ui/layouts','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','(((.+)+)+)+$','startup','template','.app-tests.js','437495bppTvz','.css','warn','imports','layout','maka\x20g:l\x20web/safari','css','true','470827qkSVjW','91660rnTNAH','theme','constructor','className','6TzXCHy','none','rewriteDestinationPathForEngine','1052579LFzRDS','installNpmPackage','resourceName','search','fileName','test/test.js','api','maka\x20g:layout\x20mobile/iPhone8','withValue','injectAtBeginningOfFile','ramda','setTemplate','features','export\x20{\x20','2627505MKZsYi','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','ssr','assign','dir','test','create','includes','.js','react','\x27;\x0a'];a103c=function(){return u;};return a103c();}function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x17b;let f=c[d];return f;},a103d(a,b);}const aliases=['l'];Generator[a103r(0x1a4)]({'name':a103r(0x184),'aliases':aliases,'usage':a103r(0x19f),'shortDesc':a103r(0x1b0),'validOpts':[],'examples':[a103r(0x197),a103r(0x185)]},function(a,b){const s=a103r,c=s(0x1c6),d=this[s(0x1b8)]['findAppDirectory'](),e=this[s(0x1b8)]['pathFromApp']({'pathParts':[c,b[s(0x1a2)],paramCase(b[s(0x192)]),paramCase(b[s(0x192)])]}),f=this[s(0x1b8)]['getProjectConfig']();this[s(0x1b8)][s(0x198)](f,()=>{const t=s;typeof f[t(0x17e)][t(0x1a3)]===t(0x1ae)&&(f[t(0x17e)][t(0x1a3)]=f[t(0x17e)][t(0x1a3)]===t(0x187)?!![]:![],this[t(0x1b8)]['setTemplate'](t(0x1a3),f[t(0x17e)][t(0x1a3)]));typeof f[t(0x17e)][t(0x186)]===t(0x1ae)&&(f[t(0x17e)]['css']=f[t(0x17e)][t(0x186)]==='true'?!![]:![],this[t(0x1b8)][t(0x19b)]('css',f[t(0x17e)]['css']));typeof f[t(0x17e)]['js']===t(0x1ae)&&(f[t(0x17e)]['js']=f[t(0x17e)]['js']===t(0x187)?!![]:![],this[t(0x1b8)]['setTemplate']('js',f[t(0x17e)]['js']));!f['features']&&(f[t(0x19c)]={});const g=b['_']?b['_'][0x0][t(0x1b9)](':')[0x1]:![],h=b['_']&&aliases[t(0x1a5)](g);h&&!this[t(0x1c4)](t(0x19a))&&(Log[t(0x182)](t(0x1af)),this['fsi'][t(0x191)](t(0x19a),{'cwd':d}));if(h&&!this[t(0x1c4)]('react')){Log[t(0x182)](t(0x17b));return;}const i={'name':pascalCase(b[t(0x192)]),'myPath':a103e[t(0x1c5)](this[t(0x1b8)][t(0x1c2)]({}),e),'cssCaseName':paramCase(b[t(0x192)]),'className':pascalCase(b[t(0x192)]),'camelCaseName':camelCase(b[t(0x192)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x1ad)][t(0x1b4)],'features':f[t(0x19c)],'client':f[t(0x1ad)][t(0x1b7)],'api':f[t(0x1ad)][t(0x196)],'ssr':f['engines'][t(0x1a0)],'test':f['engines'][t(0x1a3)],'theme':f[t(0x1ad)][t(0x18a)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x19c)][t(0x1aa)]};f[t(0x19c)]?.['withHooks']||b['withHook']?this[t(0x1b8)][t(0x17e)]({'srcPath':t(0x1b1),'destPath':e+'.js','framework':t(0x1a7),'context':i,'config':f}):this[t(0x1b8)][t(0x17e)]({'srcPath':t(0x1bb),'destPath':e+t(0x1a6),'framework':t(0x1a7),'context':i,'config':f});f[t(0x1ad)]['test']!==t(0x18e)&&this[t(0x1b8)][t(0x17e)]({'srcPath':t(0x195),'destPath':e+t(0x17f),'framework':'react','context':i,'config':f});f[t(0x17e)]['css']&&(this[t(0x1b8)][t(0x17e)]({'srcPath':t(0x1bf),'destPath':e+t(0x181),'context':Object[t(0x1a1)]({},i,{'className':paramCase(b[t(0x192)])}),'config':f}),this['fsi'][t(0x199)]({'filePath':e+'.'+f[t(0x1ad)]['js'],'content':'import\x20\x27./'+i['fileName']+'.'+f[t(0x1ad)][t(0x186)]+'\x27;'}));const j=b[t(0x1a2)]?'/'+b[t(0x1a2)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x194)];let l;if(f[t(0x1ad)][t(0x1a0)]===t(0x187)){const m=this['fsi']['pathFromApp']({'pathParts':[t(0x183),t(0x17d),t(0x1c0),t(0x1c1)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[t(0x1b8)][t(0x1b2)]({'pathParts':['imports','startup','client','templates.js']});l=this[t(0x1b8)][t(0x18f)]({'pathParts':[n],'config':f});}f[t(0x1ad)][t(0x1b7)]===t(0x1a7)?(f[t(0x1ad)]['js']==='tsx'?this['fsi'][t(0x199)]({'filePath':l,'content':t(0x1a9)+i[t(0x18c)]+t(0x1ab)+k+t(0x1a8)}):this[t(0x1b8)][t(0x199)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x18c)]+t(0x1ab)+k+'.'+f['engines']['js']+t(0x1a8)}),this[t(0x1b8)][t(0x1bc)]({'filePath':l,'content':t(0x19d)+i['className']+'\x20};\x0a'})):this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0x1ba)+k+'.'+f['engines']['js']+t(0x1a8)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x176))/0x1*(parseInt(f(0x184))/0x2)+parseInt(f(0x182))/0x3*(-parseInt(f(0x177))/0x4)+parseInt(f(0x185))/0x5*(-parseInt(f(0x183))/0x6)+parseInt(f(0x17e))/0x7*(parseInt(f(0x175))/0x8)+parseInt(f(0x172))/0x9+-parseInt(f(0x174))/0xa*(-parseInt(f(0x186))/0xb)+-parseInt(f(0x17d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x2aefb));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a['toString']()[h(0x179)](h(0x17a))[h(0x173)]()[h(0x180)](a104a)['search'](h(0x17a));});a104a();function a104c(){const j=['646520etqSif','2270zQGcdD','248524XvEXvB','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','search','(((.+)+)+)+$','maka\x20generate:api\x20Trucks','apply','5224344jFDGeT','7yNvGiQ','\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','constructor','Maka!','3krFXem','84nHViQZ','194ywjOBY','19405PbGyrJ','11qAOUiU','maka','1717389MvXghR','toString','2358680LBEKQr'];a104c=function(){return j;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x172;let f=c[d];return f;},a104d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a104i(0x187),'shortDesc':a104i(0x181),'validOpts':[],'description':a104i(0x17f),'usage':a104i(0x178),'examples':[a104i(0x17b),'maka\x20g:hook\x20cool-hook']},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105n=a105d;(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x1fb))/0x1*(parseInt(k(0x1f2))/0x2)+-parseInt(k(0x1d7))/0x3*(-parseInt(k(0x1e6))/0x4)+parseInt(k(0x1d9))/0x5*(-parseInt(k(0x1d6))/0x6)+parseInt(k(0x1ec))/0x7+-parseInt(k(0x1d8))/0x8*(parseInt(k(0x1f3))/0x9)+-parseInt(k(0x1f4))/0xa*(parseInt(k(0x1f9))/0xb)+parseInt(k(0x1f7))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xbdcb2));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a['toString']()[m(0x1e7)](m(0x1f0))[m(0x1f6)]()['constructor'](a105a)[m(0x1e7)]('(((.+)+)+)+$');});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a105d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a105n(0x1dc)]({'name':a105n(0x1e0),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a105n(0x1e8),'validOpts':[a105n(0x1d5)],'examples':[a105n(0x1db)]},function(a,b){const o=a105n;try{const c=this['fsi'][o(0x1e1)]();this[o(0x1f1)]['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x1df)]),f={'name':b[p(0x1df)],'fileName':d,'className':pascalCase(b[p(0x1df)]),'camelCase':camelCase(b[p(0x1df)]),'noRename':!![]};let g='js';c[p(0x1dd)]['js']==='tsx'&&(g='ts');const h=this[p(0x1f1)][p(0x1de)]({});(!this[p(0x1f1)][p(0x1eb)]('check')||!this[p(0x1f1)][p(0x1eb)](p(0x1e2))||!this[p(0x1f1)][p(0x1eb)](p(0x1ed)))&&(Log['warn'](p(0x1ef)),this[p(0x1f1)][p(0x1ea)](p(0x1d4),{'cwd':h}));this['fsi'][p(0x1ee)]({'srcPath':p(0x1da),'destPath':this[p(0x1f1)][p(0x1de)]({'pathParts':[p(0x1e9),p(0x1e5),b[p(0x1f8)],p(0x1fa),b[p(0x1d5)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[p(0x1d5)]?'/'+b[p(0x1d5)]+'/':'/',j=this[p(0x1f1)][p(0x1de)]({'pathParts':['imports',p(0x1e5),b[p(0x1f8)],'index.'+c[p(0x1dd)]['js']]});this['fsi'][p(0x1e4)]({'filePath':j,'content':p(0x1e3)+i+d+'-rpc-method\x27;'});});}catch(d){Log['error'](d);}});function a105c(){const q=['10dwSLoI','apply','toString','18220560lgCDqF','appPathPrefix','4933621zqiprK','methods','862305OiCJwy','check\x20ddp-rate-limiter\x20mdg:validated-method','dir','15618IfIQSQ','3450498KADjSQ','314040lOgXOQ','2345NuFOet','method/method.js','maka\x20g:method\x20todos','create','engines','pathFromApp','resourceName','method','getProjectConfig','ddp-rate-limiter','import\x20\x27./methods','injectAtEndOfFile','startup','4jAcuuU','search','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','imports','installMeteorPackage','checkMeteorPackage','8879857GtNqnd','mdg:validated-method','template','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','(((.+)+)+)+$','fsi','2crdfgt','144jzfpbY'];a105c=function(){return q;};return a105c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d
|
|
1
|
+
function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xf7;let f=c[d];return f;},a106d(a,b);}const a106o=a106d;(function(a,b){const l=a106d,c=a();while(!![]){try{const d=-parseInt(l(0x106))/0x1*(-parseInt(l(0x109))/0x2)+-parseInt(l(0x119))/0x3*(-parseInt(l(0xfd))/0x4)+parseInt(l(0x112))/0x5*(-parseInt(l(0x108))/0x6)+-parseInt(l(0x10c))/0x7*(parseInt(l(0x10d))/0x8)+parseInt(l(0xf7))/0x9+-parseInt(l(0x10f))/0xa+parseInt(l(0x11e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x52565));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a106d;if(c){const e=c[m(0x124)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const n=a106d;return a106a[n(0x125)]()[n(0x11f)]('(((.+)+)+)+$')['toString']()[n(0x11c)](a106a)[n(0x11f)](n(0xfc));});a106a();function a106c(){const s=['noRename','863735BaTvAM','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','graphql','create','template','/client/','tests/server','174KhfHxs','pathFromApp','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','constructor','features','2808399zeCKnW','search','packages','fsi','server','package/package.js','apply','toString','component','4161924HKKfQu','package/','forEach','.js','relative','(((.+)+)+)+$','5996WDuDQr','layout','tests/client','getProjectConfig','template/template.js','pathFromProject','hasOwnProperty','client','lib','1CnFiIn','pathFromAppWithNoReWrite','6QQquyN','579986vJfXzK','engines','theme','35yAidko','264744HRIZvV','dir','4192150whAKXG','resourceName'];a106c=function(){return s;};return a106c();}import a106e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106o(0x115)]({'name':'package','aliases':['p'],'usage':a106o(0x113),'shortDesc':a106o(0x11b),'validOpts':['dir'],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a106o,c=paramCase(b['resourceName']),d=this[p(0x121)][p(0x11a)]({'pathParts':[p(0x120),b[p(0x10e)],c]}),e=this['fsi'][p(0x107)]({'pathParts':['packages',b[p(0x10e)],c,'package.js']}),f=this['fsi'][p(0x100)]();this[p(0x121)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x110)]),'myPath':a106e[q(0xfb)](this['fsi'][q(0x102)]({}),d),'cssCaseName':paramCase(b[q(0x110)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x110)]),'fileName':c,'client':f[q(0x10a)][q(0x104)],'graphql':f[q(0x10a)][q(0x114)],'ssr':f[q(0x10a)]['ssr'],'isComponent':b[q(0x103)](q(0x126)),'isLayout':b[q(0x103)](q(0xfe)),'isStore':b[q(0x103)]('store'),'features':f[q(0x11d)],'noRename':!![],'theme':f[q(0x10a)][q(0x10b)]};this[q(0x121)][q(0x116)]({'srcPath':q(0x123),'destPath':e,'context':g,'config':f}),g[q(0x111)]=![];const h=d+q(0x117)+c+q(0xfa);this[q(0x121)][q(0x116)]({'srcPath':q(0x101),'destPath':h,'context':g,'config':f});const i=[q(0x105),q(0x122),q(0xff),q(0x118)];i[q(0xf9)](j=>{const r=q,k=d+'/'+j+'/'+c+'.js';this[r(0x121)]['template']({'srcPath':r(0xf8)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107p=a107d;(function(a,b){const n=a107d,c=a();while(!![]){try{const d=-parseInt(n(0xa7))/0x1*(-parseInt(n(0xb4))/0x2)+parseInt(n(0xc1))/0x3+-parseInt(n(0xac))/0x4*(parseInt(n(0xdf))/0x5)+parseInt(n(0x9e))/0x6*(parseInt(n(0xce))/0x7)+-parseInt(n(0xc2))/0x8+parseInt(n(0xca))/0x9*(-parseInt(n(0xc9))/0xa)+parseInt(n(0xb0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xe0a58));const a107b=(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;};}()),a107a=a107b(this,function(){const o=a107d;return a107a[o(0xd3)]()['search']('(((.+)+)+)+$')[o(0xd3)]()['constructor'](a107a)[o(0xb5)](o(0xa5));});a107a();import a107e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a107p(0xb2)]({'name':'page','aliases':aliases,'usage':a107p(0x9a),'shortDesc':a107p(0xd5),'validOpts':[a107p(0xea),a107p(0xb3)],'examples':[a107p(0xd2)]},function(a,b){const q=a107p,c=[q(0xae),'components','pages','layouts'];if(b['baseDir']&&!c[q(0xbc)](b[q(0xea)])){Log[q(0xa8)]('Invalid\x20directory\x20option\x20\x22'+b[q(0xea)]+'\x22'),Log['error'](q(0xbb)+c[q(0xcd)](',\x20'));throw new UsageError();}const d=b[q(0xea)]?q(0xe5)+b[q(0xea)]:q(0xaa),e=this[q(0xc4)][q(0xdb)](b),f=this[q(0xc4)][q(0xdb)]({'pathParts':[d,b['dir'],paramCase(b[q(0xab)]),paramCase(b['resourceName'])]}),g=this[q(0xc4)]['getProjectConfig']();this[q(0xc4)][q(0xd9)](g,()=>{const r=q;typeof g['template']['html']===r(0xa4)&&(g[r(0xdc)][r(0xd0)]=g[r(0xdc)][r(0xd0)]==='true'?!![]:![],this[r(0xc4)][r(0xba)](r(0xd0),g[r(0xdc)][r(0xd0)]));typeof g[r(0xdc)][r(0xcb)]===r(0xa4)&&(g[r(0xdc)]['test']=g[r(0xdc)][r(0xcb)]===r(0xcf)?!![]:![],this[r(0xc4)][r(0xba)](r(0xcb),g['template'][r(0xcb)]));typeof g[r(0xdc)][r(0xd7)]===r(0xa4)&&(g[r(0xdc)][r(0xd7)]=g[r(0xdc)]['css']===r(0xcf)?!![]:![],this['fsi'][r(0xba)](r(0xd7),g[r(0xdc)][r(0xd7)]));typeof g[r(0xdc)]['js']==='string'&&(g['template']['js']=g[r(0xdc)]['js']===r(0xcf)?!![]:![],this[r(0xc4)][r(0xba)]('js',g['template']['js']));!g[r(0x9c)]&&(g['features']={});!b[r(0xb9)]&&!this[r(0xc4)][r(0x9d)](r(0xe0))&&(Log[r(0xe2)]('Updating\x20npm\x20packages\x20...'),this['fsi'][r(0xb1)](r(0xe0),{'cwd':e}));const h={'name':pascalCase(b['resourceName']),'myPath':a107e[r(0xa1)](this[r(0xc4)][r(0xc0)]({}),f),'cssCaseName':paramCase(b[r(0xab)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0xab)]),'fileName':paramCase(b[r(0xab)]),'graphql':g['engines'][r(0xb8)],'features':g[r(0x9c)],'client':g[r(0xd6)][r(0xd4)],'api':g[r(0xd6)]['api'],'ssr':g[r(0xd6)][r(0xa3)],'isStore':b[r(0xd1)](r(0xd8)),'isComponent':b['hasOwnProperty'](r(0xec)),'isLayout':b[r(0xd1)](r(0xc7)),'withTranslations':g[r(0x9c)][r(0xe4)],'test':g[r(0xd6)][r(0xcb)],'theme':g[r(0xd6)][r(0xc5)]};g['template'][r(0xd0)]&&this['fsi'][r(0xdc)]({'srcPath':r(0xb6),'destPath':f+r(0xbd),'context':h,'config':g});g['features']?.[r(0xc3)]||b['withHook']?this[r(0xc4)][r(0xdc)]({'srcPath':r(0xc8),'destPath':f+r(0xe6),'framework':'react','context':h,'config':g}):this['fsi']['template']({'srcPath':r(0xe8),'destPath':f+r(0xe6),'framework':r(0xbe),'context':h,'config':g});g[r(0xd6)][r(0xcb)]!==r(0xa6)&&this[r(0xc4)][r(0xdc)]({'srcPath':r(0xde),'destPath':f+r(0xaf),'framework':'react','context':h,'config':g});g['template'][r(0xd7)]&&this[r(0xc4)][r(0xdc)]({'srcPath':r(0xc6),'destPath':f+r(0xcc),'context':Object[r(0xa0)]({},h,{'className':paramCase(b[r(0xab)])}),'config':g});g[r(0xd6)][r(0xd4)]!==r(0xbe)&&g[r(0xd6)]['client']!=='vanilla'?(g[r(0xdc)][r(0xd7)]&&this[r(0xc4)][r(0xa9)]({'filePath':f+'.'+g['engines']['js'],'content':'import\x20\x27./'+h[r(0xa2)]+'.'+g[r(0xd6)][r(0xd0)]+r(0xda)+r(0xbf)+h['fileName']+'.'+g[r(0xd6)][r(0xd7)]+'\x27;'}),!g['template'][r(0xd7)]&&this['fsi'][r(0xa9)]({'filePath':f+'.'+g[r(0xd6)]['js'],'content':r(0xbf)+h[r(0xa2)]+'.'+g[r(0xd6)]['html']+'\x27;'})):g['template'][r(0xd7)]&&this[r(0xc4)][r(0xa9)]({'filePath':f+'.'+g[r(0xd6)]['js'],'content':'import\x20\x27./'+h[r(0xa2)]+'.'+g['engines']['css']+'\x27;'});const i=b[r(0xe7)]?'/'+b[r(0xe7)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[r(0xa2)];let k;if(g[r(0xd6)]['ssr']===r(0xcf)){const l=this[r(0xc4)]['pathFromApp']({'pathParts':['imports',r(0x9b),'lib',r(0xeb)]});k=this[r(0xc4)][r(0xe9)]({'pathParts':[l],'config':g});}else{const m=this['fsi']['pathFromApp']({'pathParts':[r(0xb7),r(0x9b),r(0xd4),r(0xeb)]});k=this[r(0xc4)][r(0xe9)]({'pathParts':[m],'config':g});}g[r(0xd6)][r(0xd4)]==='react'?(g[r(0xd6)]['js']===r(0x9f)?this[r(0xc4)][r(0xa9)]({'filePath':k,'content':r(0xe1)+h[r(0xad)]+'\x20}\x20from\x20\x27'+j+r(0xda)}):this['fsi'][r(0xa9)]({'filePath':k,'content':r(0xe1)+h[r(0xad)]+'\x20}\x20from\x20\x27'+j+'.'+g[r(0xd6)]['js']+r(0xda)}),this[r(0xc4)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h[r(0xad)]+'\x20};\x0a'})):this[r(0xc4)][r(0xe3)]({'filePath':k,'content':r(0xdd)+j+'.'+g[r(0xd6)]['js']+r(0xda)});});});function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x9a;let f=c[d];return f;},a107d(a,b);}function a107c(){const s=['react','import\x20\x27./','pathFromProject','1731357kPVPmD','4976232uCrhZh','withHooks','fsi','theme','template/template.css','layout','hook/hook.js','3423410IQEtVL','27DjXqFv','test','.css','join','11578zWLOjW','true','html','hasOwnProperty','maka\x20g:page\x20todos/todos-item','toString','client','Generate\x20a\x20page.','engines','css','store','withValue','\x27;\x0a','pathFromApp','template','import\x20\x27','test/test.js','1256485CGeIQJ','ramda','import\x20{\x20','warn','injectAtEndOfFile','withTranslations','/imports/ui/','.js','dir','component/component.js','rewriteDestinationPathForEngine','baseDir','templates.js','component','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','startup','features','checkNpmPackage','2898hNiLoD','tsx','assign','relative','fileName','ssr','string','(((.+)+)+)+$','none','1149preKvu','error','injectAtBeginningOfFile','/imports/ui/pages','resourceName','4IuxnnQ','className','hooks','.app-tests.js','5664549khLESx','installNpmPackage','create','withHook','1618eWwmCY','search','template/template.html','imports','graphql','root','setTemplate','Valid\x20options\x20are:\x20','includes','.html'];a107c=function(){return s;};return a107c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108j=a108d;function a108c(){const m=['search','10VkVjYz','create','toString','860334VpAYjY','engines','8zpaOPJ','maka\x20g:publish\x20todos','(((.+)+)+)+$','publish/publish.','2901680hkXSPj','480114HLIUAP','2120853RJYDms','resourceName','templateContent','publish','rewriteDestinationPathForEngine','81333PGMHeT','120IWbKPb','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','server/publish.','fsi','40430ZkNRAp','withValue','35632lQetse'];a108c=function(){return m;};return a108c();}(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0xfd))/0x1+-parseInt(h(0xfb))/0x2+-parseInt(h(0xf0))/0x3*(-parseInt(h(0xeb))/0x4)+parseInt(h(0xff))/0x5*(-parseInt(h(0x102))/0x6)+parseInt(h(0xf1))/0x7+parseInt(h(0xf7))/0x8*(parseInt(h(0xf6))/0x9)+-parseInt(h(0xef))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x301d9));function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xea;let f=c[d];return f;},a108d(a,b);}const a108b=(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;};}()),a108a=a108b(this,function(){const i=a108d;return a108a[i(0x101)]()[i(0xfe)](i(0xed))['toString']()['constructor'](a108a)[i(0xfe)]('(((.+)+)+)+$');});a108a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a108j(0x100)]({'name':a108j(0xf4),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a108j(0xf8),'validOpts':[],'examples':[a108j(0xec)]},async function(a,b){const k=a108j,c=this[k(0xfa)]['getProjectConfig']();this[k(0xfa)][k(0xfc)](c,async()=>{const l=k,d={'name':b['resourceName'],'collection':paramCase(b[l(0xf2)]),'noRename':!![]};let e='js';c[l(0xea)]['js']==='tsx'&&(e='ts');const f=this[l(0xfa)][l(0xf5)]({'pathParts':[l(0xf9)+c['engines']['js']]}),g=this['fsi'][l(0xf3)]({'srcPath':l(0xee)+e,'context':d,'config':c});this[l(0xfa)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
|