@maka/maka-cli 5.0.35 → 5.0.39
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 +3 -3
- 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/cecr.sub.cmd.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/decr.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/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.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/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.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/register.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/_index.js +1 -0
- package/bundle/obf/src/commands/test/jest.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/test/mocha.sub.cmd.js +1 -0
- package/bundle/obf/src/commands/test/test.command.js +1 -0
- package/bundle/obf/src/commands/undo.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/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.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/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.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/project/gitignore +2 -1
- package/bundle/obf/src/templates/react/test/test.js.jsx +32 -35
- package/bundle/obf/src/templates/react/test/test.js.tsx +32 -35
- package/bundle/obf/src/templates/service/eslint/babel.config.js +15 -0
- package/bundle/obf/src/templates/service/test/jest/jest.config.js +6 -0
- package/bundle/obf/src/templates/service/test/jest/jest.setup.js +7 -0
- 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/cfg/cfg.class.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/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +3 -3
- package/bundle/obf/src/commands/test.js +0 -1
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +0 -9
- package/bundle/obf/src/templates/service/eslint/babelrc +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a137u=a137d;(function(a,b){const r=a137d,c=a();while(!![]){try{const d=-parseInt(r(0x1fd))/0x1*(-parseInt(r(0x209))/0x2)+-parseInt(r(0x1e4))/0x3+parseInt(r(0x20d))/0x4*(-parseInt(r(0x223))/0x5)+-parseInt(r(0x207))/0x6*(parseInt(r(0x1f1))/0x7)+-parseInt(r(0x1e8))/0x8+-parseInt(r(0x1ed))/0x9+-parseInt(r(0x224))/0xa*(-parseInt(r(0x1e1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xa0054));function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x1d1;let f=c[d];return f;},a137d(a,b);}const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a137d;if(c){const e=c[s(0x203)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const t=a137d;return a137a[t(0x1ef)]()['search'](t(0x1d4))['toString']()['constructor'](a137a)['search']('(((.+)+)+)+$');});a137a();import a137e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a137c(){const w=['checkNpmPackage','hook/hook.js','html','store','<Route\x20path=\x22','graphql','findProjectDirectory','string','15EuLwvy','40gvQXay','injectIntoFile','relative','dir','.js','join','(((.+)+)+)+$','import\x20\x27./','component/component.js','template','toLowerCase','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','scaffold','private','<Route\x20path=\x22*\x22','create','url','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','features','10729202jnvlkv','startup','page','3399264qVYwxc','substring','css','hasOwnProperty','2769408oKtQzi','split','root','includes','react','7283367JUesuH','fileName','toString','ramda','146244kQrybf','meteor','setTemplate','\x22\x20element={<Component.','template/template.css','maka\x20g:page\x20todos/todos-item','client','api','injectTemplateModule','indexOf','routes.','error','11425nwuPyZ','/>}/>\x0a','theme','className','endsWith','<Route\x20index','apply','ssr','/imports/ui/pages','withTranslations','180xOBXFY','replace','68sIZrXZ','<Route\x20element={<PrivateRoute\x20/>}>','Updating\x20npm\x20packages\x20...','none','958996pKyiLb','resourceName','.html','pkg','</Route>','cfg','replaceAll','engines','test','Generate\x20a\x20page.','injectAtBeginningOfFile','assign','trim','.css'];a137c=function(){return w;};return a137c();}import{UsageError}from'../error.js';import{camelCase,kebabCase,pascalCase}from'change-case';const aliases=['p'];Generator[a137u(0x1dd)]({'name':a137u(0x1e3),'aliases':aliases,'usage':a137u(0x1df),'shortDesc':a137u(0x216),'mustBeInMakaProject':!![],'validOpts':[{'name':a137u(0x1db),'boolFlag':!![]},{'name':a137u(0x1de)}],'examples':[a137u(0x1f6)]},async function(a,b){const v=a137u,c=v(0x205),d=this['fsi']['findAppDirectory'](),e=b['resourceName'][v(0x1eb)](':')?b[v(0x20e)][v(0x1e9)](':')[0x0][v(0x219)]():b['resourceName'][v(0x219)](),f=b[v(0x1d1)][v(0x213)]('/','_')+'_'+e[v(0x213)]('/','_'),g=this['scaffold']['pathFromApp']({'pathParts':[c,b['dir'],kebabCase(f),kebabCase(f)]}),h=this['projectConfig'];let i='';typeof h[v(0x1d7)][v(0x21d)]==='string'&&this[v(0x212)][v(0x1f3)](v(0x21d),h[v(0x1d7)][v(0x21d)]);typeof h['template']['test']===v(0x222)&&this[v(0x212)][v(0x1f3)](v(0x215),h['template']['test']);typeof h[v(0x1d7)][v(0x1e6)]===v(0x222)&&this[v(0x212)][v(0x1f3)](v(0x1e6),h[v(0x1d7)][v(0x1e6)]);typeof h[v(0x1d7)]['js']===v(0x222)&&this[v(0x212)][v(0x1f3)]('js',h[v(0x1d7)]['js']);!b[v(0x1ea)]&&!this[v(0x210)][v(0x21b)](v(0x1f0))&&(Log['warn'](v(0x20b)),this[v(0x210)]['installNpmPackage'](v(0x1f0),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a137e[v(0x226)](this['fsi'][v(0x221)](),g),'cssCaseName':kebabCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':kebabCase(f),'graphql':h[v(0x214)][v(0x220)],'features':h[v(0x1e0)],'client':h[v(0x214)][v(0x1f7)],'api':h[v(0x214)][v(0x1f8)],'ssr':h[v(0x214)][v(0x204)],'isStore':b[v(0x1e7)](v(0x21e)),'isComponent':b['hasOwnProperty']('component'),'isLayout':b[v(0x1e7)]('layout'),'withTranslations':h['features'][v(0x206)],'test':h[v(0x214)][v(0x215)],'theme':h['engines'][v(0x1ff)]};h[v(0x1d7)][v(0x21d)]&&await this[v(0x1da)][v(0x1d7)]({'srcPath':'template/template.html','destPath':g+v(0x20f),'context':j,'config':h});h[v(0x1e0)]?.['withHooks']?await this[v(0x1da)][v(0x1d7)]({'srcPath':v(0x21c),'destPath':g+v(0x1d2),'framework':v(0x1ec),'context':j,'config':h}):await this[v(0x1da)]['template']({'srcPath':v(0x1d6),'destPath':g+v(0x1d2),'framework':v(0x1ec),'context':j,'config':h});h['engines'][v(0x215)]!==v(0x20c)&&await this['scaffold'][v(0x1d7)]({'srcPath':'test/test.js','destPath':g+'.app-tests.js','framework':v(0x1ec),'context':j,'config':h});h[v(0x1d7)][v(0x1e6)]&&await this[v(0x1da)][v(0x1d7)]({'srcPath':v(0x1f5),'destPath':g+v(0x21a),'context':Object[v(0x218)]({},j,{'className':kebabCase(b['resourceName'])}),'config':h});h['engines'][v(0x1f7)]!==v(0x1ec)&&h[v(0x214)][v(0x1f7)]!=='vanilla'?(h[v(0x1d7)][v(0x1e6)]&&await this['scaffold'][v(0x217)]({'filePath':g+'.'+h[v(0x214)]['js'],'content':'import\x20\x27./'+j['fileName']+'.'+h[v(0x214)][v(0x21d)]+'\x27;\x0a'+v(0x1d5)+j[v(0x1ee)]+'.'+h[v(0x214)][v(0x1e6)]+'\x27;'}),!h[v(0x1d7)][v(0x1e6)]&&await this['scaffold'][v(0x217)]({'filePath':g+'.'+h[v(0x214)]['js'],'content':v(0x1d5)+j[v(0x1ee)]+'.'+h['engines'][v(0x21d)]+'\x27;'})):h['template'][v(0x1e6)]&&await this['scaffold'][v(0x217)]({'filePath':g+'.'+h[v(0x214)]['js'],'content':'import\x20\x27./'+j[v(0x1ee)]+'.'+h['engines'][v(0x1e6)]+'\x27;'});const k=b['dir']?'/'+b[v(0x1d1)]+'/':'/';i=''+c+k+j[v(0x1ee)]+'/'+j['fileName'],await this['scaffold'][v(0x1f9)](j[v(0x200)],h,i);if(!b[v(0x1ea)]){const l=b['private']??![];if(!f){Log[v(0x1fc)](v(0x1d9));throw new UsageError();}let m=b[v(0x1de)]?b['url']:'/'+b[v(0x1d1)][v(0x219)]()+'/'+b[v(0x20e)][v(0x219)]()[v(0x208)](/\\/g,'/')[v(0x208)](/\/+$/,'')[v(0x1d8)]();const n=b[v(0x20e)][v(0x1fa)](':');n!==-0x1&&(m+='/'+b[v(0x20e)][v(0x1e5)](0x0,n)['trim']());m[v(0x201)]('/')&&(m=m['slice'](0x0,-0x1));m=m['replace'](/\/\//g,'/');const o=h['engines']['js'],p=h[v(0x214)][v(0x204)]===v(0x1f2)?'lib':v(0x1f7),q=a137e[v(0x1d3)](d,'imports',v(0x1e2),p,v(0x1fb)+o);l?await this[v(0x1da)][v(0x225)]({'filePath':q,'content':v(0x21f)+m+v(0x1f4)+pascalCase(f)+v(0x1fe),'begin':[v(0x20a)],'end':[v(0x211)]}):await this[v(0x1da)]['injectIntoFile']({'filePath':q,'content':'<Route\x20path=\x22'+m+v(0x1f4)+pascalCase(f)+'/>}/>\x0a','begin':[v(0x202)],'end':[v(0x1dc)]});}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a138r=a138d;(function(a,b){const o=a138d,c=a();while(!![]){try{const d=-parseInt(o(0xe2))/0x1+-parseInt(o(0xe4))/0x2+parseInt(o(0xea))/0x3*(-parseInt(o(0xfa))/0x4)+parseInt(o(0x101))/0x5+parseInt(o(0xe0))/0x6*(-parseInt(o(0xf2))/0x7)+parseInt(o(0xe6))/0x8*(parseInt(o(0xdf))/0x9)+-parseInt(o(0xee))/0xa*(-parseInt(o(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x51e89));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a138d;if(c){const e=c[p(0xf0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const q=a138d;return a138a['toString']()[q(0xec)](q(0xe3))[q(0xf3)]()[q(0xf1)](a138a)[q(0xec)](q(0xe3));});a138a();import{kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0xdf;let f=c[d];return f;},a138d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a138r(0xf9)]({'name':a138r(0xe8),'aliases':['p'],'usage':a138r(0xff),'shortDesc':a138r(0xe7),'validOpts':[a138r(0xe1)],'requiredOpts':[a138r(0x100)],'mustBeInMakaProject':!![],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const s=a138r;try{const {projectConfig:c,scaffold:d}=this,f=b[s(0xe1)]||![],g=s(0xe5),h=kebabCase(b['resourceName']),i=d[s(0xfe)]({'pathParts':[g,b['dir'],'',h]});let j='js';c[s(0xfc)]['js']===s(0xe9)&&(j='ts');const k={'name':b[s(0xeb)],'collection':pascalCase(b[s(0xeb)]),'noRename':!![],'globalPublish':b[s(0x100)]};await d[s(0xfb)]({'srcPath':s(0xfd),'destPath':i+'.'+j,'context':k,'config':c,'force':f});const l=d[s(0xfe)]({'pathParts':[s(0xed),'startup','server',b[s(0xf4)],s(0xf6)+c[s(0xfc)]['js']]}),m=b[s(0xf5)]?'/'+b['dir']+'/':'/';await d['injectAtEndOfFile']({'filePath':l,'content':s(0xef)+m+h+'\x27;'});}catch(n){Log[s(0xf8)](n),process['exit'](0x1);}});function a138c(){const t=['toString','appPathPrefix','dir','index.','1500631JQuWZv','error','create','40AQXyoL','template','engines','publish/publish.js','pathFromApp','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','globalPublish','2566295OLVfbW','5784246zrRHeD','1494GQPomX','force','273268hvzvhO','(((.+)+)+)+$','880246WmNcxs','/imports/startup/server/publications','8pOqYXN','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','publish','tsx','23445uybtTW','resourceName','search','imports','10XWpWXX','import\x20\x27./publications','apply','constructor','4648WAPePz'];a138c=function(){return t;};return a138c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a139r=a139d;function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a139d(a,b);}(function(a,b){const o=a139d,c=a();while(!![]){try{const d=parseInt(o(0x1dd))/0x1+-parseInt(o(0x1f3))/0x2+parseInt(o(0x1e8))/0x3+parseInt(o(0x1d8))/0x4+parseInt(o(0x1e0))/0x5+-parseInt(o(0x1d7))/0x6+parseInt(o(0x1ed))/0x7*(-parseInt(o(0x1f9))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0xbb9f3));const a139b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a139d;if(c){const e=c[p(0x1e6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){const q=a139d;return a139a[q(0x1e5)]()[q(0x1ec)]('(((.+)+)+)+$')[q(0x1e5)]()[q(0x1f8)](a139a)[q(0x1ec)](q(0x1ee));});a139a();function a139c(){const t=['5000780HWqsUH','ssr','routes.','private','join','toString','apply','<Route\x20element={<PrivateRoute\x20/>}>','2396412gwlyJq','imports','</Route>','length','search','7tbPobV','(((.+)+)+)+$','<Route\x20path=\x22','none','startup','error','2910746XEMxVP','resourceName','lib','client','replace','constructor','4227592tMQQOu','injectIntoFile','pop','<Route\x20path=\x22*\x22','create','exit','2991618kaIwUv','3291548WzFcju','Scaffolding\x20for\x20a\x20Route.','\x22\x20element={<Component.','/>}/>\x0a','toLowerCase','629077uzdxuc','route','engines'];a139c=function(){return t;};return a139c();}import a139e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];Generator[a139r(0x1d5)]({'name':'route','mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a139r(0x1e3),'boolFlag':!![]},{'name':a139r(0x1de)}],'usage':'maka\x20{generate,\x20g}:{route,\x20r}','shortDesc':a139r(0x1d9),'examples':[]},async function(a,b){const s=a139r,{fsi:c,scaffold:d,projectConfig:f}=this;try{const g=c['findAppDirectory'](),h=b[s(0x1e3)]??![];let i=b[s(0x1f4)]['split']('/')[s(0x1fb)]();if(!i){Log[s(0x1f2)]('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}i=pascalCase(i);let j=b[s(0x1de)]?'/'+b[s(0x1de)]:'/'+b['resourceName'][s(0x1f7)](/\\/g,'/')[s(0x1dc)]();a[s(0x1eb)]>0x1&&(j='/'+a['filter'](function(n){return n!=='/';})[s(0x1e4)]('/')['toLowerCase']());j=j[s(0x1f7)](/\/\//g,'/');const k=f[s(0x1df)]['js'],l=f[s(0x1df)][s(0x1e1)]!==s(0x1f0)?s(0x1f5):s(0x1f6),m=a139e[s(0x1e4)](g,s(0x1e9),s(0x1f1),l,s(0x1e2)+k);h?await d['injectIntoFile']({'filePath':m,'content':s(0x1ef)+j+s(0x1da)+i+s(0x1db),'begin':[s(0x1e7)],'end':[s(0x1ea)]}):await d[s(0x1fa)]({'filePath':m,'content':'<Route\x20path=\x22'+j+s(0x1da)+i+'/>}/>\x0a','begin':['<Route\x20index'],'end':[s(0x1fc)]});}catch(n){Log[s(0x1f2)](n),process[s(0x1d6)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a140r=a140d;(function(a,b){const o=a140d,c=a();while(!![]){try{const d=-parseInt(o(0x12d))/0x1*(-parseInt(o(0x121))/0x2)+parseInt(o(0x134))/0x3*(-parseInt(o(0x138))/0x4)+parseInt(o(0x136))/0x5+parseInt(o(0x118))/0x6+-parseInt(o(0x129))/0x7*(parseInt(o(0x11b))/0x8)+parseInt(o(0x11e))/0x9*(parseInt(o(0x127))/0xa)+parseInt(o(0x12b))/0xb*(parseInt(o(0x12a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x8139f));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a140d;if(c){const e=c[p(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const q=a140d;return a140a[q(0x128)]()[q(0x126)](q(0x125))['toString']()[q(0x11c)](a140a)[q(0x126)](q(0x125));});a140a();function a140c(){const t=['5150971gofLlB','2556aPQcCI','11077xzyQPt','type','23EXhJgK','checkNpmPackage','projectConfig','create','template','winston\x20setimmediate','pathFromApp','160449NnhOrg','error','3987405sXGDmO','service/logger/logger.js','52yTCJXE','startup','resourceName','maka\x20g:svc\x20service-logger\x20--type=logger','imports','lib','379230okHtWO','apply','Installing\x20winston','8PCAwVy','constructor','installNpmPackage','9OMzZOQ','maka\x20{generate,\x20g}:{service}\x20<resource-name>','tsx','63598FESPHJ','services','logger','findAppDirectory','(((.+)+)+)+$','search','1538890gLgDBD','toString'];a140c=function(){return t;};return a140c();}import{camelCase,kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x118;let f=c[d];return f;},a140d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a140r(0x130)]({'name':'service','aliases':['svc'],'usage':a140r(0x11f),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','mustBeInMakaProject':!![],'requiredOpts':[{'name':a140r(0x12c),'values':[a140r(0x123)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a140r(0x13b)]},async function(a,b){const s=a140r,{cfg:c,fsi:d,pkg:f,scaffold:g}=this;try{const h=this[s(0x12f)],i=d[s(0x124)](),j=kebabCase(b[s(0x13a)]),k={'name':pascalCase(b['resourceName']),'fileName':j,'camelCase':camelCase(b[s(0x13a)]),'type':b[s(0x12c)],'engine':h['engines']['js'],'noRename':!![]};let l='js';h['engines']['js']===s(0x120)&&(l='ts');if(b[s(0x12c)]==='logger'){!f[s(0x12e)]('winston')&&await f[s(0x11d)](s(0x132),{'cwd':i,'msg':s(0x11a)});const m=g[s(0x133)]({'pathParts':[s(0x13c),s(0x139),s(0x13d),s(0x122),j+'.'+l]});await g[s(0x131)]({'srcPath':s(0x137),'destPath':m,'context':k,'config':h});}}catch(n){Log[s(0x135)](n);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a141d,c=a();while(!![]){try{var d=parseInt(f(0x1a9))/0x1*(parseInt(f(0x1ac))/0x2)+-parseInt(f(0x1b6))/0x3*(parseInt(f(0x1ad))/0x4)+-parseInt(f(0x1ab))/0x5*(parseInt(f(0x1b3))/0x6)+parseInt(f(0x1b4))/0x7*(-parseInt(f(0x1b1))/0x8)+parseInt(f(0x1a8))/0x9+-parseInt(f(0x1af))/0xa*(parseInt(f(0x1b8))/0xb)+parseInt(f(0x1b2))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x9142e));function a141c(){var i=['12786895cIyCSf','4137408qPoDrJ','4649PGyIqu','(((.+)+)+)+$','612355sHzrMy','292WRQmxf','17540iadkBL','search','10FIuCTN','toString','4504ReXYFh','27075948vQxzGz','18UObZfK','1778LsddHZ','apply','771SdgdVp','constructor'];a141c=function(){return i;};return a141c();}var a141b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a141d;if(c){var e=c[g(0x1b5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){var h=a141d;return a141a[h(0x1b0)]()[h(0x1ae)](h(0x1aa))[h(0x1b0)]()[h(0x1b7)](a141a)[h(0x1ae)](h(0x1aa));});a141a();import'./translation.js';function a141d(a,b){var c=a141c();return a141d=function(d,e){d=d-0x1a8;var f=c[d];return f;},a141d(a,b);}import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a142k=a142d;(function(a,b){const i=a142d,c=a();while(!![]){try{const d=parseInt(i(0x100))/0x1+-parseInt(i(0x107))/0x2+-parseInt(i(0x108))/0x3+parseInt(i(0x104))/0x4*(parseInt(i(0x105))/0x5)+parseInt(i(0x101))/0x6+-parseInt(i(0x109))/0x7*(parseInt(i(0x10d))/0x8)+-parseInt(i(0xfa))/0x9*(-parseInt(i(0xfb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x2a323));const a142b=(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;};}()),a142a=a142b(this,function(){const j=a142d;return a142a[j(0x10c)]()[j(0x110)](j(0x102))[j(0x10c)]()['constructor'](a142a)[j(0x110)](j(0x102));});a142a();function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0xf9;let f=c[d];return f;},a142d(a,b);}import{Generator}from'../../generator.js';function a142c(){const m=['77488SevaRu','945636PEoXdC','(((.+)+)+)+$','maka\x20g:sslconfig\x20--env\x20dev','25684EkHlyY','235QptYDX','cfg','501620RuNfuY','661932IxhXyP','35JzGfNB','_keys','getMakaProjectConfig','toString','175896VDaLrP','openssl.conf','sslconfig','search','join','Generate\x20a\x20new\x20openssl\x20config\x20file','32067klyiDf','610QHZAEy','maka\x20{generate,\x20g}:sslconfig','appName','env','service'];a142c=function(){return m;};return a142c();}import{Log}from'../../tools/log/log.class.js';import a142e from'path';Generator['create']({'name':a142k(0x10f),'usage':a142k(0xfc),'shortDesc':a142k(0xf9),'resourceNameRequired':![],'requiredOpts':[a142k(0xfe)],'examples':[a142k(0x103)],'validOpts':[]},async function(a,b){const l=a142k;try{const c=this[l(0x106)][l(0x10b)](),d=this[l(0x106)]['getAppConfigPath'](b[l(0xfe)]),f=a142e[l(0x111)](d,l(0x10a),l(0x10e)),g={'app':c[l(0xfd)],'noRename':!![]};await this['scaffold']['template']({'srcPath':'openssl/openssl.conf','destPath':f,'framework':l(0xff),'context':g,'config':c});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a143D=a143d;(function(a,b){const A=a143d,c=a();while(!![]){try{const d=-parseInt(A(0x176))/0x1*(parseInt(A(0x191))/0x2)+parseInt(A(0x192))/0x3*(-parseInt(A(0x177))/0x4)+-parseInt(A(0x1ad))/0x5*(parseInt(A(0x179))/0x6)+-parseInt(A(0x1b3))/0x7*(-parseInt(A(0x19b))/0x8)+-parseInt(A(0x19e))/0x9*(-parseInt(A(0x1a5))/0xa)+-parseInt(A(0x1a4))/0xb*(parseInt(A(0x183))/0xc)+parseInt(A(0x1a0))/0xd*(parseInt(A(0x172))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xad02e));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a143d;if(c){const e=c[B(0x1a2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const C=a143d;return a143a[C(0x197)]()[C(0x1b4)]('(((.+)+)+)+$')[C(0x197)]()[C(0x17e)](a143a)[C(0x1b4)](C(0x171));});a143a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a143e from'fs';function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x171;let f=c[d];return f;},a143d(a,b);}function a143c(){const F=['exit','apply','features.withTranslations','1078MKniEl','610OmKpFO','scaffold','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','default\x20as\x20','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','startup','Locale\x20already\x20exported:\x20','client','10qdDyrx','services','translations','warn','service','template','56PkMuPB','search','(((.+)+)+)+$','14vlvQFs','create','checkNpmPackage','locales','11651uoBsND','5397968MzvxGz','engines','3181404WChole','appName','rewriteDestinationPathForEngine','export\x20{\x20default\x20as\x20','root','constructor','meteor','maka\x20g:translation\x20--lang=fr','.js','maka\x20g:translation\x20--lang=de','13116fkXcMG','lib','index.','maka\x20{generate,\x20g}:translation','injectAtEndOfFile','server','grep','error','i18next','Generate\x20a\x20new\x20locale\x20translation','i18n.js','setProjectConfig','Locale\x20already\x20defined:\x20','\x20}\x20from\x20\x27./','36eWatUc','3etccrt','lang','translation','maka\x20g:translation\x20--lang=en\x20(default)','i18next\x20i18next-browser-languagedetector\x20react-i18next','toString','import\x20\x27../lib/services/translations/i18n\x27;\x0a','imports','injectAtBeginningOfFile','86104BZjdOK','pathFromApp','installNpmPackage','103869bAlMDI','findAppDirectory','34389433nbwRyv'];a143c=function(){return F;};return a143c();}Generator[a143D(0x173)]({'name':a143D(0x194),'usage':a143D(0x186),'aliases':['t'],'resourceNameRequired':![],'requiredOpts':[{'name':a143D(0x193),'boolFlag':![],'regex':/^[a-z]{2}$/}],'mustBeInMakaProject':!![],'shortDesc':a143D(0x18c),'description':a143D(0x1a7),'examples':[a143D(0x195),a143D(0x180),a143D(0x182)],'validOpts':[]},async function(a,b){const E=a143D;try{const {fsi:c,scaffold:d,pkg:f,cfg:g,projectConfig:h}=this,i=c[E(0x19f)]();!b[E(0x193)]&&(b[E(0x193)]='en');!b[E(0x17d)]&&!f[E(0x174)](E(0x18b))&&(Log['warn'](E(0x1a9)),f[E(0x19d)](E(0x196),{'cwd':i}),g[E(0x18e)](E(0x1a3),!![]));const j=d[E(0x19c)]({'pathParts':[E(0x199),E(0x1aa),E(0x1ac),'index.js']}),k=d[E(0x17b)]({'pathParts':[j],'config':h}),l=c['grep'](a143e['readFileSync'](k)[E(0x197)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(h[E(0x178)]['ssr']===E(0x17f)){!l&&d[E(0x19a)]({'filePath':k,'content':E(0x198)});const w=d['pathFromApp']({'pathParts':['imports',E(0x1aa),E(0x188),'index.js']}),x=d[E(0x17b)]({'pathParts':[w],'config':h}),y=c[E(0x189)](a143e['readFileSync'](x)[E(0x197)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!y&&d[E(0x19a)]({'filePath':x,'content':E(0x198)});}else!l&&d['injectAtBeginningOfFile']({'filePath':k,'content':E(0x198)});const m={'app':h[E(0x17a)],'config':h},n=d['pathFromApp']({'pathParts':['imports',E(0x1aa),E(0x184),'services',E(0x1af),E(0x18d)]}),o=c['isFile'](d[E(0x17b)]({'pathParts':[n],'config':h}));!o&&await d['template']({'srcPath':'i18n/i18n.js','destPath':n,'framework':'service','context':m,'config':h});const p=d[E(0x19c)]({'pathParts':[E(0x199),E(0x1aa),'lib',E(0x1ae),E(0x1af),'locales',b['lang']+E(0x181)]}),q=d[E(0x17b)]({'pathParts':[p],'config':h}),r=c['isFile'](q);!r?await this[E(0x1a6)][E(0x1b2)]({'srcPath':'i18n/locales.js','destPath':p,'framework':E(0x1b1),'context':m,'config':h}):Log[E(0x1b0)](E(0x18f)+q);const s=d[E(0x19c)]({'pathParts':[E(0x199),E(0x1aa),E(0x184),E(0x1ae),E(0x1af),E(0x175),E(0x185)+h[E(0x178)]['js']]}),t=d[E(0x17b)]({'pathParts':[s],'config':h}),u=c['isFile'](t);!u&&await d['template']({'srcPath':'i18n/index.js','destPath':s,'framework':'service','context':m,'config':h});const v=c['grep'](a143e['readFileSync'](s)[E(0x197)](),E(0x1a8)+b[E(0x193)])[0x0]&&!![];!v?await d[E(0x187)]({'filePath':s,'content':E(0x17c)+b['lang']+E(0x190)+b['lang']+'\x27;'}):Log[E(0x1b0)](E(0x1ab)+s);}catch(z){Log[E(0x18a)](z),process[E(0x1a1)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144m=a144d;function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x173;let f=c[d];return f;},a144d(a,b);}(function(a,b){const j=a144d,c=a();while(!![]){try{const d=parseInt(j(0x17f))/0x1*(-parseInt(j(0x17d))/0x2)+-parseInt(j(0x17e))/0x3*(parseInt(j(0x18d))/0x4)+-parseInt(j(0x173))/0x5*(parseInt(j(0x179))/0x6)+-parseInt(j(0x180))/0x7*(-parseInt(j(0x184))/0x8)+-parseInt(j(0x17c))/0x9+parseInt(j(0x17a))/0xa+parseInt(j(0x188))/0xb*(parseInt(j(0x18b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x99414));const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a144d;if(c){const e=c[k(0x175)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const l=a144d;return a144a['toString']()[l(0x18c)](l(0x182))[l(0x185)]()['constructor'](a144a)[l(0x18c)](l(0x182));});a144a();import a144e from'minimist';import a144f from'os';import a144g from'path';function a144c(){const n=['5219590KUrHgt','dirname','1100277HitXve','2ZWXrdC','641268SUZysC','491159UkflNx','664321mAIKZy','camelizeKeys','(((.+)+)+)+$','floor','104HNJjie','toString','url','--max-old-space-size=','11XntFBY','env','stringify','6404052RWgBJE','search','16ycmghH','966005dyYmNC','slice','apply','TOOL_NODE_FLAGS','run','NODE_NO_WARNINGS','6nOoVVZ'];a144c=function(){return n;};return a144c();}import a144h from'humps';import a144i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a144m(0x186)]),__dirname=a144g[a144m(0x17b)](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a144f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a144m(0x183)](total_mem_in_mb),process[a144m(0x189)][a144m(0x176)]=a144m(0x187)+total_mem_in_mb,process['env']['BROWSERSLIST_IGNORE_OLD_DATA']='1',process[a144m(0x189)][a144m(0x178)]='1';const argv=a144e(process['argv'][a144m(0x174)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a144m(0x18a)](argv));delete deepCopyArgv['_'];const opts=a144h[a144m(0x181)](deepCopyArgv);a144i[a144m(0x177)](args,opts);
|
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { render } from '@testing-library/react';
|
|
2
|
+
<% if (test === 'mocha') { %>import { expect } from 'chai';<% } %>
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
query: gql`query { trucks }`, // consider importing the query from the actual component
|
|
13
|
-
variables: {
|
|
14
|
-
sample: 'variable'
|
|
15
|
-
},
|
|
4
|
+
<% if(graphql === 'apollo') { %>
|
|
5
|
+
import { MockedProvider } from '@apollo/react-testing';
|
|
6
|
+
import gql from 'graphql-tag';
|
|
7
|
+
const mocks = [
|
|
8
|
+
{
|
|
9
|
+
request: {
|
|
10
|
+
query: gql`query { trucks }`, // consider importing the query from the actual component
|
|
11
|
+
variables: {
|
|
12
|
+
sample: 'variable'
|
|
16
13
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
},
|
|
15
|
+
result: {
|
|
16
|
+
data: {
|
|
17
|
+
trucks: 'hello trucks'
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
}
|
|
21
|
+
];
|
|
22
|
+
<% } %>
|
|
23
|
+
const { <%=className%>%> } = require('./<%= fileName %>');
|
|
24
|
+
describe('<<%= className %>/>', function() {
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
});
|
|
26
|
+
it('did render', () => {
|
|
27
|
+
<%if(graphql === 'apollo') { %>
|
|
28
|
+
const <%=camelCaseName%> = render(
|
|
29
|
+
<MockedProvider mocks={mocks} addTypename={false}>
|
|
30
|
+
<<%= className %>/>
|
|
31
|
+
</MockedProvider>
|
|
32
|
+
);<% } else { %>
|
|
33
|
+
const <%=camelCaseName%> = render(<<%= className %>/>);<% } %>
|
|
34
|
+
const testMessage = <% if (isLayout) { %>''<% } else { %>'<h2>Find me in <%= myPath %></h2>'<% } %>
|
|
35
|
+
const node = <%=camelCaseName%>.container.querySelector('#<%=cssCaseName%>');
|
|
36
|
+
<% if (test === 'mocha') { %>expect(node.innerHTML).equals(testMessage);<% } else { %>expect(node.innerHTML).toBe(testMessage);<% } %>
|
|
40
37
|
});
|
|
41
|
-
}
|
|
38
|
+
});
|
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { render } from '@testing-library/react';
|
|
2
|
+
<% if (test === 'mocha') { %>import { expect } from 'chai';<% } %>
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
query: gql`query { trucks }`, // consider importing the query from the actual component
|
|
13
|
-
variables: {
|
|
14
|
-
sample: 'variable'
|
|
15
|
-
},
|
|
4
|
+
<% if(graphql === 'apollo') { %>
|
|
5
|
+
import { MockedProvider } from '@apollo/react-testing';
|
|
6
|
+
import gql from 'graphql-tag';
|
|
7
|
+
const mocks = [
|
|
8
|
+
{
|
|
9
|
+
request: {
|
|
10
|
+
query: gql`query { trucks }`, // consider importing the query from the actual component
|
|
11
|
+
variables: {
|
|
12
|
+
sample: 'variable'
|
|
16
13
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
},
|
|
15
|
+
result: {
|
|
16
|
+
data: {
|
|
17
|
+
trucks: 'hello trucks'
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
}
|
|
21
|
+
];
|
|
22
|
+
<% } %>
|
|
23
|
+
const { <%=className%>%> } = require('./<%= fileName %>');
|
|
24
|
+
describe('<<%= className %>/>', function() {
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
});
|
|
26
|
+
it('did render', () => {
|
|
27
|
+
<%if(graphql === 'apollo') { %>
|
|
28
|
+
const <%=camelCaseName%> = render(
|
|
29
|
+
<MockedProvider mocks={mocks} addTypename={false}>
|
|
30
|
+
<<%= className %>/>
|
|
31
|
+
</MockedProvider>
|
|
32
|
+
);<% } else { %>
|
|
33
|
+
const <%=camelCaseName%> = render(<<%= className %>/>);<% } %>
|
|
34
|
+
const testMessage = <% if (isLayout) { %>''<% } else { %>'<h2>Find me in <%= myPath %></h2>'<% } %>
|
|
35
|
+
const node = <%=camelCaseName%>.container.querySelector('#<%=cssCaseName%>');
|
|
36
|
+
<% if (test === 'mocha') { %>expect(node.innerHTML).equals(testMessage);<% } else { %>expect(node.innerHTML).toBe(testMessage);<% } %>
|
|
40
37
|
});
|
|
41
|
-
}
|
|
38
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// babel.config.js
|
|
2
|
+
module.exports = {
|
|
3
|
+
presets: [
|
|
4
|
+
'meteor',
|
|
5
|
+
'@babel/preset-env',
|
|
6
|
+
['@babel/preset-react', { runtime: 'automatic' }],
|
|
7
|
+
],
|
|
8
|
+
plugins: [
|
|
9
|
+
'@babel/plugin-syntax-jsx',
|
|
10
|
+
'@loadable/babel-plugin',
|
|
11
|
+
['@babel/plugin-transform-runtime', { regenerator: true }],
|
|
12
|
+
['@babel/plugin-transform-react-jsx', { runtime: 'automatic' }],
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a145y=a145d;(function(a,b){const w=a145d,c=a();while(!![]){try{const d=-parseInt(w(0xde))/0x1+parseInt(w(0xda))/0x2+parseInt(w(0xf0))/0x3*(-parseInt(w(0x116))/0x4)+parseInt(w(0x10e))/0x5+-parseInt(w(0xdb))/0x6+parseInt(w(0xe2))/0x7+parseInt(w(0xe5))/0x8*(parseInt(w(0xd6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x3b3d5));const a145b=(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;};}()),a145a=a145b(this,function(){const x=a145d;return a145a['toString']()['search'](x(0xec))[x(0x100)]()[x(0xd8)](a145a)[x(0xdf)](x(0xec));});a145a();function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0xc3;let f=c[d];return f;},a145d(a,b);}import a145e from'path';import a145f from'os';import a145g from'fs';import{Docker}from'./tools/docker/docker.class.js';import{AWS}from'./tools/aws/aws.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{CFG}from'./tools/cfg/cfg.class.js';function a145c(){const Q=['mpi','shortDesc','platform','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20command.','assign','scaffold','dir','Invalid\x20value\x20for\x20','config','pkg','indexOf','existsSync','includes','error','toString','Please\x20provide\x20a\x20value\x20for\x20','find','description','Please\x20choose\x20a\x20valid\x20value\x20for\x20','usage','ask','root','keys','None','homedir','resourceName','Please\x20provide\x20a\x20resource\x20name:','AppData','1803710VgLhkm','experimental','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','push','validateInputOptions','Please\x20choose\x20a\x20value\x20for\x20','cwd','\x20installed\x20to\x20use\x20this\x20command.','4ljndlw','validateEngines','filter','engines','validateParams','validateUserIsLoggedIn','askForOption','Invalid\x20argument:\x20','Please\x20choose\x20an\x20environment','getShortName','NIE','getAppProjectConfigs','findProjectDirectory','fsi','select','cfg','join','getInstance','options','name','string','.meteor','map','match','docker','233955QgSsRo','local','constructor','env','839028LaKNXA','187962MyerKx','concat','length','448508FQBTuU','search','parent','help','556661SzvbQR','validateMakaProject','formatToNamedParam','16RhCaIl','remapShortToLong','getMakaProjectConfig','charAt','aliases','every','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','(((.+)+)+)+$','aws','You\x20must\x20have\x20','win32','567867gxOGXo','examples'];a145c=function(){return Q;};return a145c();}import{MPI}from'./tools/mpi/mpi.class.js';import{Log}from'./tools/log/log.class.js';import{PKG}from'./tools/pkg/pkg.class.js';import{Scaffold}from'./tools/scaffold/scaffold.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError}from'./error.js';const homeDir=a145f[a145y(0x10a)]();export class Tool{[a145y(0xd5)];['fsi'];['cfg'];[a145y(0xf2)];[a145y(0xfb)];[a145y(0xed)];[a145y(0xf7)];['options'];[a145y(0xd0)];[a145y(0xe0)];['_handler'];constructor(){const z=a145y;this[z(0xd5)]=new Docker(),this[z(0xca)]=FSI[z(0xce)](),this['cfg']=CFG[z(0xce)](this[z(0xca)]),this[z(0xfb)]=PKG['getInstance'](this[z(0xca)]),this[z(0xf2)]=MPI['getInstance'](this[z(0xca)],this[z(0xcc)],this['pkg']),this[z(0xed)]=AWS['getInstance'](this['fsi'],this['cfg'],this[z(0xf7)]),this[z(0xf7)]=Scaffold['getInstance'](this[z(0xca)],this[z(0xf2)]);}['getShortName'](a){const A=a145y;return a[A(0xe8)](0x0);}[a145y(0xe6)](a,b){const B=a145y,c=this[B(0xe4)](b),d={...a};for(const e of c){const f=this[B(0xc6)](e[B(0xd0)]);a[f]&&(d[e[B(0xd0)]]=a[f],delete d[f]);}return d;}[a145y(0xe4)](a){const C=a145y;if(a[C(0xea)](b=>typeof b===C(0xd1)))return a[C(0xd3)](b=>({'name':b}));return a;}[a145y(0xd4)](a){const D=a145y,b=[this[D(0xd0)]][D(0xdc)](this[D(0xcf)][D(0xe9)]||[]);return this['parent']&&b[D(0x111)](this[D(0xe0)]),b[D(0xfe)](a);}[a145y(0xe3)](){const E=a145y,a=this['fsi'][E(0xc9)]();return a!==undefined;}async[a145y(0x11b)](){return!![];}['validateMeteorInstall'](){const F=a145y,a=process[F(0xf4)]===F(0xef),b=a?a145e[F(0xcd)](homeDir,F(0x10d),'Local',F(0xd2)):a145e['join'](homeDir,F(0xd2));return a145g[F(0xfd)](b);}async[a145y(0x117)](a){const G=a145y,b=this[G(0xcc)][G(0xe7)]();if(!b)throw MustBeInProjectError;const c=b[G(0x119)],d=Object[G(0x108)](a);if(d[G(0xdd)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[G(0xff)](G(0xee)+e+'\x20version\x20'+a[e]+G(0x115));throw UsageError;}}}async[a145y(0x11a)](a,b,c){const H=a145y,{requiredOpts:d,validArgs:e,validOpts:f,resourceNameRequired:g,mustBeInMakaProject:h}=c;if(h&&!this[H(0xe3)]()){Log[H(0xff)](H(0xf5));throw MustBeInProjectError;}b[H(0x10b)]===undefined&&g===!![]&&(b[H(0x10b)]=await Actions[H(0x106)](H(0x10c)));let i=[],j=b;if(d){i=this[H(0xe4)](d),j=this[H(0xe6)](b,i);for(const m of i){const {name:n,values:o,regex:p}=m;if(!Object[H(0x108)](j)['includes'](n)){if(n===H(0xd9)){const q=this[H(0xcc)][H(0xc8)]()[H(0x118)](r=>r!==H(0xd7))[H(0xd3)](r=>({'name':r,'value':r}));q['length']===0x0&&(Log[H(0xff)](H(0x110)),process['exit'](0x1)),b[H(0xd9)]=await Actions['select']({'name':H(0xd9),'message':H(0xc5),'choices':q});}else b[n]=await this[H(0xc3)](n,o,p);}else{if(o&&!o['includes'](j[n])){Log['error'](H(0xf9)+n+':\x20'+j[n]);throw new UsageError();}}}}let k=this[H(0xe4)](f),l=b;if(k&&k[H(0xdd)]>0x0){k=k[H(0xdc)](i||[]),k['push']({'name':H(0x10b),'hidden':!![]}),k['push']({'name':H(0xe1),'boolFlag':!![]}),k['push']({'name':H(0xf8),'hidden':!![]}),k[H(0x111)]({'name':H(0x114),'hidden':!![]}),k['push']({'name':H(0x107),'hidden':!![]}),k[H(0x111)]({'name':H(0xfa),'hidden':!![]}),l=this[H(0xe6)](b,k);for(const r of k){const {name:s,values:t}=r,u=l[s];u!==undefined&&t&&!t[H(0xfe)](u)&&(l[s]=await Actions[H(0xcb)]({'name':s,'message':H(0x104)+s,'choices':t[H(0xd3)](v=>({'name':v,'value':v}))})),this[H(0x112)](l,k);}}if(e&&e[H(0xdd)]>0x0)for(const v of a){!e[H(0xfe)](v)&&(Log[H(0xff)](H(0xc4)+v),a[a[H(0xfc)](v)]=await Actions['ask'](H(0xeb)+v));}return Object[H(0xf6)](j,l);}async[a145y(0xc3)](a,b,c){const I=a145y;if(b)return Actions[I(0xcb)]({'name':a,'message':I(0x113)+a,'choices':b[I(0xd3)](d=>({'name':d,'value':d}))});else{if(c){const d=await Actions[I(0x106)](I(0x101)+a);if(d[I(0xd4)](c))return d;else{Log[I(0xff)]('Invalid\x20value\x20for\x20'+a+':\x20'+d);throw new UsageError();}}else return Actions['ask'](I(0x101)+a);}}['validateInputOptions'](a,b){const J=a145y;for(const c of Object[J(0x108)](a)){const d=b[J(0x102)](e=>e[J(0xd0)]===c);if(!d){Log[J(0xff)]('Invalid\x20option:\x20'+c);throw new UsageError();}}}[a145y(0x103)](){const K=a145y;return this[K(0xcf)][K(0x103)]||this['options'][K(0xf3)]||'No\x20description\x20provided.';}['shortDesc'](){const L=a145y;return this[L(0xcf)][L(0xf3)]||L(0xc7);}[a145y(0x105)](){const M=a145y;return this[M(0xcf)][M(0x105)]||'No\x20usage\x20provided.';}[a145y(0xf1)](){const N=a145y;return this[N(0xcf)][N(0xf1)]||[];}[a145y(0xe9)](){const O=a145y;return this[O(0xcf)][O(0xe9)]||O(0x109);}[a145y(0x10f)](){const P=a145y;return this['options'][P(0x10f)]||![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a146h=a146d;(function(a,b){const f=a146d,c=a();while(!![]){try{const d=-parseInt(f(0xec))/0x1+parseInt(f(0xf5))/0x2+-parseInt(f(0xf1))/0x3+parseInt(f(0xf3))/0x4*(-parseInt(f(0xe8))/0x5)+parseInt(f(0xf0))/0x6+parseInt(f(0xed))/0x7*(-parseInt(f(0xee))/0x8)+parseInt(f(0xf2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x419c3));function a146c(){const k=['702174MKClNL','confirm','message','10hQTVMY','ask','checkbox','toString','279929CBimsW','7MVNjdO','1183864bGuRwY','search','2536338hBesMT','741333REudYt','2656134WwBdNI','250348ciyXat','select'];a146c=function(){return k;};return a146c();}const a146b=(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;};}()),a146a=a146b(this,function(){const g=a146d;return a146a[g(0xeb)]()[g(0xef)]('(((.+)+)+)+$')[g(0xeb)]()['constructor'](a146a)[g(0xef)]('(((.+)+)+)+$');});a146a();function a146d(a,b){const c=a146c();return a146d=function(d,e){d=d-0xe7;let f=c[d];return f;},a146d(a,b);}import{input,confirm,password,select,checkbox}from'@inquirer/prompts';export class Actions{static async[a146h(0xe9)](a,b){const c=await(b?password({'message':a}):input({'message':a}));return c;}static async[a146h(0xf6)](a,b=![]){const c=await confirm({'message':a,'default':b});return c;}static async[a146h(0xf4)](a){const i=a146h,b=await select({'message':a[i(0xe7)],'choices':a['choices']});return b;}static async[a146h(0xea)](a){const j=a146h,b=await checkbox({'message':a[j(0xe7)],'choices':a['choices']});return b;}}
|