@maka/maka-cli 5.0.35 → 5.0.40
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(0x16f))/0x1+parseInt(r(0x13c))/0x2+-parseInt(r(0x146))/0x3+parseInt(r(0x144))/0x4*(-parseInt(r(0x168))/0x5)+parseInt(r(0x163))/0x6*(parseInt(r(0x179))/0x7)+-parseInt(r(0x145))/0x8+parseInt(r(0x16a))/0x9*(parseInt(r(0x130))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xc6eb8));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a137d;if(c){const e=c[s(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const t=a137d;return a137a[t(0x12f)]()[t(0x17b)](t(0x13d))['toString']()[t(0x15f)](a137a)[t(0x17b)]('(((.+)+)+)+$');});a137a();function a137c(){const w=['withHooks','substring','component','<Route\x20path=\x22*\x22','injectAtBeginningOfFile','.html','features','fsi','constructor','ssr','create','injectIntoFile','1092972YfTGlb','routes.','\x27;\x0a','error','private','1961135iTyBEu','ramda','6813dARFbq','projectConfig','component/component.js','html','setTemplate','995264KBxEcH','vanilla','injectTemplateModule','pathFromApp','pkg','engines','assign','.app-tests.js','root','slice','14qjTwGR','replaceAll','search','none','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','string','replace','withTranslations','scaffold','import\x20\x27./','imports','join','className','includes','toString','47390NBnPWP','/>}/>\x0a','resourceName','graphql','url','findAppDirectory','css','\x22\x20element={<Component.','maka\x20g:page\x20todos/todos-item','indexOf','cfg','findProjectDirectory','1218750ZLtvjx','(((.+)+)+)+$','checkNpmPackage','.js','Updating\x20npm\x20packages\x20...','/imports/ui/pages','test/test.js','fileName','4KtqHsL','6132368HSymXy','4776927acbxEM','trim','<Route\x20path=\x22','dir','test','hook/hook.js','meteor','page','endsWith','apply','client','toLowerCase','store','react','hasOwnProperty','startup','template'];a137c=function(){return w;};return a137c();}import a137e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x124;let f=c[d];return f;},a137d(a,b);}import{camelCase,kebabCase,pascalCase}from'change-case';const aliases=['p'];Generator[a137u(0x161)]({'name':a137u(0x14d),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','mustBeInMakaProject':!![],'validOpts':[{'name':a137u(0x167),'boolFlag':!![]},{'name':a137u(0x134)}],'examples':[a137u(0x138)]},async function(a,b){const v=a137u,c=v(0x141),d=this[v(0x15e)][v(0x135)](),e=b[v(0x132)][v(0x12e)](':')?b[v(0x132)]['split'](':')[0x0]['trim']():b[v(0x132)]['trim'](),f=b[v(0x149)][v(0x17a)]('/','_')+'_'+e[v(0x17a)]('/','_'),g=this[v(0x129)][v(0x172)]({'pathParts':[c,b[v(0x149)],kebabCase(f),kebabCase(f)]}),h=this[v(0x16b)];let i='';typeof h[v(0x156)][v(0x16d)]==='string'&&this[v(0x13a)][v(0x16e)](v(0x16d),h['template'][v(0x16d)]);typeof h[v(0x156)]['test']===v(0x126)&&this['cfg'][v(0x16e)]('test',h[v(0x156)][v(0x14a)]);typeof h[v(0x156)][v(0x136)]===v(0x126)&&this[v(0x13a)][v(0x16e)]('css',h[v(0x156)]['css']);typeof h['template']['js']===v(0x126)&&this[v(0x13a)][v(0x16e)]('js',h[v(0x156)]['js']);!b[v(0x177)]&&!this[v(0x173)][v(0x13e)]('ramda')&&(Log['warn'](v(0x140)),this[v(0x173)]['installNpmPackage'](v(0x169),{'cwd':d}));const j={'name':pascalCase(f),'myPath':a137e['relative'](this['fsi'][v(0x13b)](),g),'cssCaseName':kebabCase(f),'className':pascalCase(f),'camelCaseName':camelCase(f),'fileName':kebabCase(f),'graphql':h['engines'][v(0x133)],'features':h[v(0x15d)],'client':h['engines'][v(0x150)],'api':h['engines']['api'],'ssr':h[v(0x174)]['ssr'],'isStore':b['hasOwnProperty'](v(0x152)),'isComponent':b['hasOwnProperty'](v(0x159)),'isLayout':b[v(0x154)]('layout'),'withTranslations':h[v(0x15d)][v(0x128)],'test':h[v(0x174)][v(0x14a)],'theme':h[v(0x174)]['theme']};h[v(0x156)][v(0x16d)]&&await this[v(0x129)][v(0x156)]({'srcPath':'template/template.html','destPath':g+v(0x15c),'context':j,'config':h});h['features']?.[v(0x157)]?await this[v(0x129)][v(0x156)]({'srcPath':v(0x14b),'destPath':g+v(0x13f),'framework':'react','context':j,'config':h}):await this['scaffold'][v(0x156)]({'srcPath':v(0x16c),'destPath':g+v(0x13f),'framework':v(0x153),'context':j,'config':h});h['engines'][v(0x14a)]!==v(0x124)&&await this[v(0x129)]['template']({'srcPath':v(0x142),'destPath':g+v(0x176),'framework':v(0x153),'context':j,'config':h});h[v(0x156)][v(0x136)]&&await this[v(0x129)][v(0x156)]({'srcPath':'template/template.css','destPath':g+'.css','context':Object[v(0x175)]({},j,{'className':kebabCase(b[v(0x132)])}),'config':h});h[v(0x174)]['client']!==v(0x153)&&h[v(0x174)][v(0x150)]!==v(0x170)?(h[v(0x156)]['css']&&await this[v(0x129)][v(0x15b)]({'filePath':g+'.'+h[v(0x174)]['js'],'content':'import\x20\x27./'+j[v(0x143)]+'.'+h['engines'][v(0x16d)]+v(0x165)+v(0x12a)+j[v(0x143)]+'.'+h[v(0x174)][v(0x136)]+'\x27;'}),!h[v(0x156)]['css']&&await this[v(0x129)][v(0x15b)]({'filePath':g+'.'+h['engines']['js'],'content':v(0x12a)+j[v(0x143)]+'.'+h[v(0x174)][v(0x16d)]+'\x27;'})):h[v(0x156)][v(0x136)]&&await this[v(0x129)][v(0x15b)]({'filePath':g+'.'+h[v(0x174)]['js'],'content':v(0x12a)+j[v(0x143)]+'.'+h[v(0x174)][v(0x136)]+'\x27;'});const k=b[v(0x149)]?'/'+b[v(0x149)]+'/':'/';i=''+c+k+j['fileName']+'/'+j[v(0x143)],await this[v(0x129)][v(0x171)](j[v(0x12d)],h,i);if(!b[v(0x177)]){const l=b['private']??![];if(!f){Log[v(0x166)](v(0x125));throw new UsageError();}let m=b['url']?b[v(0x134)]:'/'+b[v(0x149)]['trim']()+'/'+b['resourceName'][v(0x147)]()[v(0x127)](/\\/g,'/')[v(0x127)](/\/+$/,'')[v(0x151)]();const n=b[v(0x132)][v(0x139)](':');n!==-0x1&&(m+='/'+b[v(0x132)][v(0x158)](0x0,n)[v(0x147)]());m[v(0x14e)]('/')&&(m=m[v(0x178)](0x0,-0x1));m=m['replace'](/\/\//g,'/');const o=h[v(0x174)]['js'],p=h[v(0x174)][v(0x160)]===v(0x14c)?'lib':v(0x150),q=a137e[v(0x12c)](d,v(0x12b),v(0x155),p,v(0x164)+o);l?await this[v(0x129)][v(0x162)]({'filePath':q,'content':v(0x148)+m+v(0x137)+pascalCase(f)+'/>}/>\x0a','begin':['<Route\x20element={<PrivateRoute\x20/>}>'],'end':['</Route>']}):await this['scaffold'][v(0x162)]({'filePath':q,'content':v(0x148)+m+v(0x137)+pascalCase(f)+v(0x131),'begin':['<Route\x20index'],'end':[v(0x15a)]});}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x1da;let f=c[d];return f;},a138d(a,b);}const a138q=a138d;(function(a,b){const o=a138d,c=a();while(!![]){try{const d=parseInt(o(0x1dc))/0x1*(parseInt(o(0x1f1))/0x2)+parseInt(o(0x1de))/0x3+parseInt(o(0x1df))/0x4*(-parseInt(o(0x1f5))/0x5)+parseInt(o(0x1dd))/0x6*(parseInt(o(0x1f0))/0x7)+parseInt(o(0x1ee))/0x8+parseInt(o(0x1e7))/0x9+-parseInt(o(0x1f6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x75edc));const a138b=(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;};}()),a138a=a138b(this,function(){const p=a138d;return a138a['toString']()[p(0x1ec)](p(0x1e4))['toString']()['constructor'](a138a)[p(0x1ec)](p(0x1e4));});function a138c(){const s=['2004480TqgQmq','pathFromApp','399VmkmfY','2JBkjqx','dir','exit','publish/publish.js','15KRRaiA','5037700UQPtEZ','engines','appPathPrefix','/imports/startup/server/publications','133987UdzUZX','52410vHyybr','1446645LAyqlB','932024fJckWs','import\x20\x27./publications','injectAtEndOfFile','resourceName','globalPublish','(((.+)+)+)+$','imports','server','2890503JODAys','force','maka\x20g:publish\x20todos','publish','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','search','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html'];a138c=function(){return s;};return a138c();}a138a();import{kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a138q(0x1ea),'aliases':['p'],'usage':a138q(0x1eb),'shortDesc':a138q(0x1ed),'validOpts':[a138q(0x1e8)],'requiredOpts':[a138q(0x1e3)],'mustBeInMakaProject':!![],'examples':[a138q(0x1e9)]},async function(a,b){const r=a138q;try{const {projectConfig:c,scaffold:d}=this,f=b[r(0x1e8)]||![],g=r(0x1db),h=kebabCase(b['resourceName']),i=d[r(0x1ef)]({'pathParts':[g,b['dir'],'',h]});let j='js';c[r(0x1f7)]['js']==='tsx'&&(j='ts');const k={'name':b[r(0x1e2)],'collection':pascalCase(b['resourceName']),'noRename':!![],'globalPublish':b['globalPublish']};await d['template']({'srcPath':r(0x1f4),'destPath':i+'.'+j,'context':k,'config':c,'force':f});const l=d['pathFromApp']({'pathParts':[r(0x1e5),'startup',r(0x1e6),b[r(0x1da)],'index.'+c[r(0x1f7)]['js']]}),m=b[r(0x1f2)]?'/'+b['dir']+'/':'/';await d[r(0x1e1)]({'filePath':l,'content':r(0x1e0)+m+h+'\x27;'});}catch(n){Log['error'](n),process[r(0x1f3)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a139r=a139d;(function(a,b){const o=a139d,c=a();while(!![]){try{const d=-parseInt(o(0x1d8))/0x1*(-parseInt(o(0x1bb))/0x2)+parseInt(o(0x1d4))/0x3+parseInt(o(0x1c0))/0x4+-parseInt(o(0x1d2))/0x5*(parseInt(o(0x1c7))/0x6)+-parseInt(o(0x1d9))/0x7+-parseInt(o(0x1cc))/0x8*(-parseInt(o(0x1bd))/0x9)+-parseInt(o(0x1d0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x92205));const a139b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a139d;if(c){const e=c[p(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){const q=a139d;return a139a[q(0x1bf)]()['search'](q(0x1d3))['toString']()[q(0x1c1)](a139a)['search'](q(0x1d3));});a139a();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(0x1c5)]({'name':a139r(0x1cb),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a139r(0x1b5),'boolFlag':!![]},{'name':a139r(0x1cb)}],'usage':a139r(0x1b6),'shortDesc':a139r(0x1c4),'examples':[]},async function(a,b){const s=a139r,{fsi:c,scaffold:d,projectConfig:f}=this;try{const g=c['findAppDirectory'](),h=b['private']??![];let i=b[s(0x1cf)][s(0x1b9)]('/')['pop']();if(!i){Log[s(0x1cd)](s(0x1b3));throw new UsageError();}i=pascalCase(i);let j=b['route']?'/'+b[s(0x1cb)]:'/'+b['resourceName'][s(0x1d7)](/\\/g,'/')['toLowerCase']();a[s(0x1ba)]>0x1&&(j='/'+a[s(0x1be)](function(n){return n!=='/';})[s(0x1ce)]('/')[s(0x1bc)]());j=j['replace'](/\/\//g,'/');const k=f[s(0x1d5)]['js'],l=f[s(0x1d5)]['ssr']!==s(0x1c8)?'lib':s(0x1ca),m=a139e['join'](g,'imports',s(0x1b7),l,s(0x1b8)+k);h?await d[s(0x1d1)]({'filePath':m,'content':s(0x1c6)+j+'\x22\x20element={<Component.'+i+s(0x1c9),'begin':[s(0x1d6)],'end':['</Route>']}):await d[s(0x1d1)]({'filePath':m,'content':s(0x1c6)+j+s(0x1c3)+i+s(0x1c9),'begin':['<Route\x20index'],'end':['<Route\x20path=\x22*\x22']});}catch(n){Log[s(0x1cd)](n),process[s(0x1c2)](0x1);}});function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0x1b3;let f=c[d];return f;},a139d(a,b);}function a139c(){const t=['toLowerCase','36JRnvHM','filter','toString','1222008biEaHO','constructor','exit','\x22\x20element={<Component.','Scaffolding\x20for\x20a\x20Route.','create','<Route\x20path=\x22','3576162YEMTXK','none','/>}/>\x0a','client','route','6632ywdsau','error','join','resourceName','2771510CHFugJ','injectIntoFile','5yHXZic','(((.+)+)+)+$','2677434IBUefp','engines','<Route\x20element={<PrivateRoute\x20/>}>','replace','26893UcazeA','2813370EnHLvS','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','apply','private','maka\x20{generate,\x20g}:{route,\x20r}','startup','routes.','split','length','50hrTLlE'];a139c=function(){return t;};return a139c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a140r=a140d;(function(a,b){const o=a140d,c=a();while(!![]){try{const d=-parseInt(o(0x1dd))/0x1+-parseInt(o(0x1d8))/0x2+parseInt(o(0x1e0))/0x3*(parseInt(o(0x1da))/0x4)+parseInt(o(0x1c3))/0x5+-parseInt(o(0x1d1))/0x6*(-parseInt(o(0x1d7))/0x7)+parseInt(o(0x1db))/0x8+-parseInt(o(0x1d6))/0x9*(parseInt(o(0x1d9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x8f93c));function a140c(){const t=['apply','findAppDirectory','90QkzBpg','945oWVyil','449760JiwAhY','1985190RCHdtF','3090892CjIbQC','1394056vnymRB','engines','39178FOzZoJ','services','type','3NwnUis','lib','maka\x20g:svc\x20service-logger\x20--type=logger','winston','projectConfig','maka\x20{generate,\x20g}:{service}\x20<resource-name>','5629950JiaWGv','search','Installing\x20winston','svc','checkNpmPackage','pathFromApp','error','installNpmPackage','(((.+)+)+)+$','service/logger/logger.js','startup','tsx','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','resourceName','33972nTfNlG','create','imports'];a140c=function(){return t;};return a140c();}const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a140d;if(c){const e=c[p(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const q=a140d;return a140a['toString']()[q(0x1c4)]('(((.+)+)+)+$')['toString']()['constructor'](a140a)[q(0x1c4)](q(0x1cb));});a140a();function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a140d(a,b);}import{camelCase,kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a140r(0x1d2)]({'name':'service','aliases':[a140r(0x1c6)],'usage':a140r(0x1c2),'shortDesc':a140r(0x1cf),'mustBeInMakaProject':!![],'requiredOpts':[{'name':a140r(0x1df),'values':['logger']}],'validOpts':[],'maxArgLength':0x1,'examples':[a140r(0x1e2)]},async function(a,b){const s=a140r,{cfg:c,fsi:d,pkg:f,scaffold:g}=this;try{const h=this[s(0x1c1)],i=d[s(0x1d5)](),j=kebabCase(b[s(0x1d0)]),k={'name':pascalCase(b['resourceName']),'fileName':j,'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':h[s(0x1dc)]['js'],'noRename':!![]};let l='js';h[s(0x1dc)]['js']===s(0x1ce)&&(l='ts');if(b['type']==='logger'){!f[s(0x1c7)](s(0x1c0))&&await f[s(0x1ca)]('winston\x20setimmediate',{'cwd':i,'msg':s(0x1c5)});const m=g[s(0x1c8)]({'pathParts':[s(0x1d3),s(0x1cd),s(0x1e1),s(0x1de),j+'.'+l]});await g['template']({'srcPath':s(0x1cc),'destPath':m,'context':k,'config':h});}}catch(n){Log[s(0x1c9)](n);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a141d,c=a();while(!![]){try{var d=-parseInt(f(0x154))/0x1+-parseInt(f(0x153))/0x2*(-parseInt(f(0x149))/0x3)+-parseInt(f(0x146))/0x4*(parseInt(f(0x14f))/0x5)+-parseInt(f(0x151))/0x6+parseInt(f(0x148))/0x7*(parseInt(f(0x14b))/0x8)+-parseInt(f(0x14e))/0x9+parseInt(f(0x14d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xad2bc));function a141c(){var i=['6URoWtO','297023TwauBh','529388UWaqIX','search','98JQNUqG','511833WGvPdb','constructor','522840khfUce','apply','15162800AOaApA','8548065aaQbyu','10Zetskw','(((.+)+)+)+$','4333638CMGkdL','toString'];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(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){var h=a141d;return a141a['toString']()['search'](h(0x150))[h(0x152)]()[h(0x14a)](a141a)[h(0x147)]('(((.+)+)+)+$');});a141a();function a141d(a,b){var c=a141c();return a141d=function(d,e){d=d-0x146;var f=c[d];return f;},a141d(a,b);}import'./translation.js';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(0x123))/0x1*(-parseInt(i(0x115))/0x2)+parseInt(i(0x113))/0x3*(-parseInt(i(0x10d))/0x4)+parseInt(i(0x11b))/0x5*(parseInt(i(0x121))/0x6)+parseInt(i(0x119))/0x7+parseInt(i(0x11d))/0x8+-parseInt(i(0x116))/0x9*(-parseInt(i(0x11f))/0xa)+-parseInt(i(0x10c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xccbc1));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(0x11e)]()[j(0x10f)]('(((.+)+)+)+$')[j(0x11e)]()[j(0x118)](a142a)[j(0x10f)](j(0x122));});function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x107;let f=c[d];return f;},a142d(a,b);}a142a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a142e from'path';Generator[a142k(0x117)]({'name':'sslconfig','usage':a142k(0x107),'shortDesc':a142k(0x120),'resourceNameRequired':![],'requiredOpts':[a142k(0x112)],'examples':[a142k(0x111)],'validOpts':[]},async function(a,b){const l=a142k;try{const c=this[l(0x109)][l(0x10b)](),d=this[l(0x109)][l(0x11a)](b['env']),f=a142e['join'](d,l(0x114),l(0x10a)),g={'app':c['appName'],'noRename':!![]};await this[l(0x11c)][l(0x110)]({'srcPath':'openssl/openssl.conf','destPath':f,'framework':l(0x108),'context':g,'config':c});}catch(h){Log[l(0x10e)](h);}});function a142c(){const m=['openssl.conf','getMakaProjectConfig','37611992qxwTqI','28DJBLwg','error','search','template','maka\x20g:sslconfig\x20--env\x20dev','env','94542iDnQCx','_keys','2yPpkUi','555642wBuAOP','create','constructor','7379379wQBGoV','getAppConfigPath','1795ktRFMn','scaffold','12733768ldhROP','toString','230TDZpnQ','Generate\x20a\x20new\x20openssl\x20config\x20file','732oEDPGY','(((.+)+)+)+$','368773dKysoZ','maka\x20{generate,\x20g}:sslconfig','service','cfg'];a142c=function(){return m;};return a142c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a143C=a143d;(function(a,b){const A=a143d,c=a();while(!![]){try{const d=parseInt(A(0x16a))/0x1*(-parseInt(A(0x157))/0x2)+-parseInt(A(0x162))/0x3*(-parseInt(A(0x17f))/0x4)+-parseInt(A(0x178))/0x5*(-parseInt(A(0x163))/0x6)+parseInt(A(0x186))/0x7+-parseInt(A(0x175))/0x8*(parseInt(A(0x17d))/0x9)+-parseInt(A(0x184))/0xa+parseInt(A(0x16e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x27ba6));const a143b=(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;};}()),a143a=a143b(this,function(){const B=a143d;return a143a[B(0x167)]()[B(0x164)](B(0x16b))[B(0x167)]()[B(0x15a)](a143a)[B(0x164)](B(0x16b));});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-0x148;let f=c[d];return f;},a143d(a,b);}Generator[a143C(0x14b)]({'name':a143C(0x14d),'usage':a143C(0x15b),'aliases':['t'],'resourceNameRequired':![],'requiredOpts':[{'name':a143C(0x17a),'boolFlag':![],'regex':/^[a-z]{2}$/}],'mustBeInMakaProject':!![],'shortDesc':a143C(0x183),'description':a143C(0x151),'examples':[a143C(0x179),a143C(0x165),a143C(0x176)],'validOpts':[]},async function(a,b){const D=a143C;try{const {fsi:c,scaffold:d,pkg:f,cfg:g,projectConfig:h}=this,i=c[D(0x166)]();!b[D(0x17a)]&&(b[D(0x17a)]='en');!b[D(0x152)]&&!f[D(0x16c)](D(0x177))&&(Log['warn'](D(0x172)),f[D(0x188)](D(0x153),{'cwd':i}),g[D(0x156)](D(0x15e),!![]));const j=d[D(0x16d)]({'pathParts':[D(0x15d),D(0x14a),D(0x185),D(0x14f)]}),k=d[D(0x155)]({'pathParts':[j],'config':h}),l=c[D(0x170)](a143e['readFileSync'](k)[D(0x167)](),D(0x189))[0x0]&&!![];if(h['engines']['ssr']==='meteor'){!l&&d[D(0x149)]({'filePath':k,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const w=d[D(0x16d)]({'pathParts':[D(0x15d),'startup',D(0x150),D(0x14f)]}),x=d[D(0x155)]({'pathParts':[w],'config':h}),y=c[D(0x170)](a143e['readFileSync'](x)[D(0x167)](),D(0x189))[0x0]&&!![];!y&&d[D(0x149)]({'filePath':x,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!l&&d['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const m={'app':h[D(0x187)],'config':h},n=d['pathFromApp']({'pathParts':['imports',D(0x14a),D(0x182),D(0x181),'translations',D(0x148)]}),o=c[D(0x169)](d[D(0x155)]({'pathParts':[n],'config':h}));!o&&await d['template']({'srcPath':D(0x16f),'destPath':n,'framework':'service','context':m,'config':h});const p=d['pathFromApp']({'pathParts':[D(0x15d),D(0x14a),D(0x182),D(0x181),D(0x154),D(0x17e),b[D(0x17a)]+D(0x160)]}),q=d[D(0x155)]({'pathParts':[p],'config':h}),r=c[D(0x169)](q);!r?await this['scaffold']['template']({'srcPath':D(0x161),'destPath':p,'framework':D(0x14e),'context':m,'config':h}):Log[D(0x174)](D(0x15f)+q);const s=d[D(0x16d)]({'pathParts':['imports','startup',D(0x182),D(0x181),'translations',D(0x17e),D(0x17b)+h[D(0x171)]['js']]}),t=d['rewriteDestinationPathForEngine']({'pathParts':[s],'config':h}),u=c[D(0x169)](t);!u&&await d[D(0x159)]({'srcPath':D(0x180),'destPath':s,'framework':D(0x14e),'context':m,'config':h});const v=c[D(0x170)](a143e[D(0x173)](s)['toString'](),D(0x17c)+b[D(0x17a)])[0x0]&&!![];!v?await d[D(0x158)]({'filePath':s,'content':'export\x20{\x20default\x20as\x20'+b[D(0x17a)]+D(0x168)+b[D(0x17a)]+'\x27;'}):Log[D(0x174)](D(0x14c)+s);}catch(z){Log[D(0x15c)](z),process['exit'](0x1);}});function a143c(){const E=['root','i18next\x20i18next-browser-languagedetector\x20react-i18next','translations','rewriteDestinationPathForEngine','setProjectConfig','256068afatjf','injectAtEndOfFile','template','constructor','maka\x20{generate,\x20g}:translation','error','imports','features.withTranslations','Locale\x20already\x20defined:\x20','.js','i18n/locales.js','417072MmAXtA','6SJRERJ','search','maka\x20g:translation\x20--lang=fr','findAppDirectory','toString','\x20}\x20from\x20\x27./','isFile','1EOJOeM','(((.+)+)+)+$','checkNpmPackage','pathFromApp','906444HhcunA','i18n/i18n.js','grep','engines','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','readFileSync','warn','185896LATNvz','maka\x20g:translation\x20--lang=de','i18next','329410wpFEwl','maka\x20g:translation\x20--lang=en\x20(default)','lang','index.','default\x20as\x20','117AkPlNd','locales','8DBYanH','i18n/index.js','services','lib','Generate\x20a\x20new\x20locale\x20translation','1476350ANSrYj','client','2198994GubRVj','appName','installNpmPackage','import\x20\x27../lib/services/translations/i18n\x27;','i18n.js','injectAtBeginningOfFile','startup','create','Locale\x20already\x20exported:\x20','translation','service','index.js','server','\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'];a143c=function(){return E;};return a143c();}
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144m=a144d;(function(a,b){const j=a144d,c=a();while(!![]){try{const d=-parseInt(j(0x150))/0x1*(parseInt(j(0x15e))/0x2)+-parseInt(j(0x166))/0x3+-parseInt(j(0x158))/0x4+parseInt(j(0x151))/0x5*(parseInt(j(0x159))/0x6)+-parseInt(j(0x14c))/0x7*(parseInt(j(0x15d))/0x8)+parseInt(j(0x14e))/0x9+parseInt(j(0x15c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0xb80e6));const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a144d;if(c){const e=c[k(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const l=a144d;return a144a[l(0x15f)]()[l(0x163)](l(0x14f))[l(0x15f)]()['constructor'](a144a)[l(0x163)](l(0x14f));});a144a();import a144e from'minimist';import a144f from'os';function a144c(){const n=['stringify','7410690HYxPxO','(((.+)+)+)+$','155kstjPu','30070DGyrYp','url','dirname','--max-old-space-size=','argv','TOOL_NODE_FLAGS','camelizeKeys','5961304qbmJPw','198YCNOIO','apply','totalmem','30617740hXPDeq','848864PZXqeW','13178qDgnzy','toString','BROWSERSLIST_IGNORE_OLD_DATA','floor','env','search','MAKA_COMMAND_PATH','parse','1181097qyRJXr','28THckFz'];a144c=function(){return n;};return a144c();}import a144g from'path';import a144h from'humps';import a144i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x14c;let f=c[d];return f;},a144d(a,b);}const __filename=fileURLToPath(import.meta[a144m(0x152)]),__dirname=a144g[a144m(0x153)](__filename);global[a144m(0x164)]=__dirname;const total_memory=a144f[a144m(0x15b)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a144m(0x161)](total_mem_in_mb),process[a144m(0x162)][a144m(0x156)]=a144m(0x154)+total_mem_in_mb,process[a144m(0x162)][a144m(0x160)]='1',process[a144m(0x162)]['NODE_NO_WARNINGS']='1';const argv=a144e(process[a144m(0x155)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a144m(0x165)](JSON[a144m(0x14d)](argv));delete deepCopyArgv['_'];const opts=a144h[a144m(0x157)](deepCopyArgv);a144i['run'](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 a145z=a145d;(function(a,b){const w=a145d,c=a();while(!![]){try{const d=parseInt(w(0xb5))/0x1+parseInt(w(0x66))/0x2*(parseInt(w(0xac))/0x3)+parseInt(w(0x6e))/0x4*(-parseInt(w(0x7f))/0x5)+parseInt(w(0xa8))/0x6+-parseInt(w(0x73))/0x7*(parseInt(w(0xa6))/0x8)+parseInt(w(0x80))/0x9*(-parseInt(w(0x8b))/0xa)+-parseInt(w(0x7e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x692e9));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a145d;if(c){const e=c[x(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const y=a145d;return a145a[y(0x9c)]()[y(0xa3)](y(0x78))[y(0x9c)]()[y(0xa0)](a145a)[y(0xa3)](y(0x78));});a145a();import a145e from'path';import a145f from'os';import a145g from'fs';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x65;let f=c[d];return f;},a145d(a,b);}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';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['homedir']();function a145c(){const Q=['4774662ysclIy','exit','keys','You\x20must\x20have\x20','3MwhZZj','remapShortToLong','platform','description','map','usage','Please\x20provide\x20a\x20value\x20for\x20','validateInputOptions','docker','721507wRfjdn','join','Invalid\x20argument:\x20','mpi','validateParams','1546840nemGjA','validateMakaProject','filter','root','formatToNamedParam','askForOption','Please\x20choose\x20a\x20valid\x20value\x20for\x20','_handler','1036fIxjuO','includes','experimental','examples','\x20version\x20','728KvpbPG','pkg','Invalid\x20option:\x20','validateMeteorInstall','match','(((.+)+)+)+$','error','name','find','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','win32','16359937WHadbT','45zKkIIe','9XscYap','ask','cfg','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','scaffold','length','validateUserIsLoggedIn','getInstance','options','config','fsi','2561930aaJFGr','shortDesc','NIE','aliases','concat','parent','env','help','select','dir','indexOf','resourceName','AppData','engines','Invalid\x20value\x20for\x20','apply','local','toString','getMakaProjectConfig','getShortName','validateEngines','constructor','getAppProjectConfigs','existsSync','search','None','.meteor','8776tbSllP','push'];a145c=function(){return Q;};return a145c();}export class Tool{[a145z(0xb4)];[a145z(0x8a)];['cfg'];[a145z(0xb8)];[a145z(0x74)];['aws'];[a145z(0x84)];['options'];[a145z(0x7a)];[a145z(0x90)];[a145z(0x6d)];constructor(){const A=a145z;this[A(0xb4)]=new Docker(),this[A(0x8a)]=FSI[A(0x87)](),this['cfg']=CFG[A(0x87)](this[A(0x8a)]),this[A(0x74)]=PKG[A(0x87)](this['fsi']),this[A(0xb8)]=MPI['getInstance'](this['fsi'],this[A(0x82)],this[A(0x74)]),this['aws']=AWS[A(0x87)](this[A(0x8a)],this[A(0x82)],this[A(0x84)]),this[A(0x84)]=Scaffold['getInstance'](this['fsi'],this[A(0xb8)]);}[a145z(0x9e)](a){return a['charAt'](0x0);}[a145z(0xad)](a,b){const B=a145z,c=this['formatToNamedParam'](b),d={...a};for(const e of c){const f=this['getShortName'](e[B(0x7a)]);a[f]&&(d[e['name']]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const C=a145z;if(a['every'](b=>typeof b==='string'))return a[C(0xb0)](b=>({'name':b}));return a;}[a145z(0x77)](a){const D=a145z,b=[this[D(0x7a)]][D(0x8f)](this['options']['aliases']||[]);return this[D(0x90)]&&b['push'](this[D(0x90)]),b['includes'](a);}[a145z(0x67)](){const E=a145z,a=this[E(0x8a)]['findProjectDirectory']();return a!==undefined;}async[a145z(0x86)](){return!![];}[a145z(0x76)](){const F=a145z,a=process[F(0xae)]===F(0x7d),b=a?a145e['join'](homeDir,F(0x97),'Local',F(0xa5)):a145e[F(0xb6)](homeDir,F(0xa5));return a145g[F(0xa2)](b);}async[a145z(0x9f)](a){const G=a145z,b=this[G(0x82)][G(0x9d)]();if(!b)throw MustBeInProjectError;const c=b[G(0x98)],d=Object[G(0xaa)](a);if(d[G(0x85)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[G(0x79)](G(0xab)+e+G(0x72)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a145z(0x65)](a,b,c){const H=a145z,{requiredOpts:d,validArgs:e,validOpts:f,resourceNameRequired:g,mustBeInMakaProject:h}=c;if(h&&!this[H(0x67)]()){Log['error']('You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20command.');throw MustBeInProjectError;}b['resourceName']===undefined&&g===!![]&&(b['resourceName']=await Actions['ask']('Please\x20provide\x20a\x20resource\x20name:'));let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[H(0xad)](b,i);for(const m of i){const {name:n,values:o,regex:p}=m;if(!Object[H(0xaa)](j)[H(0x6f)](n)){if(n===H(0x91)){const q=this['cfg'][H(0xa1)]()[H(0x68)](r=>r!==H(0x9b))['map'](r=>({'name':r,'value':r}));q['length']===0x0&&(Log['error'](H(0x83)),process[H(0xa9)](0x1)),b['env']=await Actions[H(0x93)]({'name':'env','message':'Please\x20choose\x20an\x20environment','choices':q});}else b[n]=await this[H(0x6b)](n,o,p);}else{if(o&&!o[H(0x6f)](j[n])){Log[H(0x79)](H(0x99)+n+':\x20'+j[n]);throw new UsageError();}}}}let k=this[H(0x6a)](f),l=b;if(k&&k[H(0x85)]>0x0){k=k[H(0x8f)](i||[]),k[H(0xa7)]({'name':H(0x96),'hidden':!![]}),k['push']({'name':H(0x92),'boolFlag':!![]}),k[H(0xa7)]({'name':H(0x94),'hidden':!![]}),k[H(0xa7)]({'name':'cwd','hidden':!![]}),k[H(0xa7)]({'name':H(0x69),'hidden':!![]}),k[H(0xa7)]({'name':H(0x89),'hidden':!![]}),l=this[H(0xad)](b,k);for(const r of k){const {name:s,values:t}=r,u=l[s];u!==undefined&&t&&!t[H(0x6f)](u)&&(l[s]=await Actions[H(0x93)]({'name':s,'message':H(0x6c)+s,'choices':t['map'](v=>({'name':v,'value':v}))})),this['validateInputOptions'](l,k);}}if(e&&e[H(0x85)]>0x0)for(const v of a){!e['includes'](v)&&(Log[H(0x79)](H(0xb7)+v),a[a[H(0x95)](v)]=await Actions[H(0x81)](H(0x7c)+v));}return Object['assign'](j,l);}async[a145z(0x6b)](a,b,c){const I=a145z;if(b)return Actions[I(0x93)]({'name':a,'message':'Please\x20choose\x20a\x20value\x20for\x20'+a,'choices':b[I(0xb0)](d=>({'name':d,'value':d}))});else{if(c){const d=await Actions['ask'](I(0xb2)+a);if(d[I(0x77)](c))return d;else{Log[I(0x79)](I(0x99)+a+':\x20'+d);throw new UsageError();}}else return Actions[I(0x81)](I(0xb2)+a);}}[a145z(0xb3)](a,b){const J=a145z;for(const c of Object['keys'](a)){const d=b[J(0x7b)](e=>e['name']===c);if(!d){Log[J(0x79)](J(0x75)+c);throw new UsageError();}}}['description'](){const K=a145z;return this['options'][K(0xaf)]||this[K(0x88)][K(0x8c)]||'No\x20description\x20provided.';}['shortDesc'](){const L=a145z;return this[L(0x88)][L(0x8c)]||L(0x8d);}[a145z(0xb1)](){const M=a145z;return this[M(0x88)][M(0xb1)]||'No\x20usage\x20provided.';}[a145z(0x71)](){const N=a145z;return this[N(0x88)]['examples']||[];}['aliases'](){const O=a145z;return this[O(0x88)][O(0x8e)]||O(0xa4);}['experimental'](){const P=a145z;return this['options'][P(0x70)]||![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a146i=a146d;(function(a,b){const f=a146d,c=a();while(!![]){try{const d=-parseInt(f(0xaf))/0x1+-parseInt(f(0xb2))/0x2*(-parseInt(f(0xa7))/0x3)+parseInt(f(0xb3))/0x4*(parseInt(f(0xaa))/0x5)+-parseInt(f(0xb7))/0x6*(parseInt(f(0xb0))/0x7)+parseInt(f(0xb1))/0x8+-parseInt(f(0xb8))/0x9+-parseInt(f(0xb4))/0xa*(-parseInt(f(0xa6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x39787));function a146c(){const l=['392869LaIVUU','1045254hZdXmj','2981584NtYqZL','568622DjtMwi','452492MsLpOC','2840thfGsC','apply','constructor','6CczJvT','743130WrrFuH','ask','(((.+)+)+)+$','3487GxBThg','3VFvNhy','choices','checkbox','5amvHwI','select','toString','message','search'];a146c=function(){return l;};return a146c();}const a146b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a146d;if(c){const e=c[g(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a146a=a146b(this,function(){const h=a146d;return a146a[h(0xac)]()[h(0xae)]('(((.+)+)+)+$')[h(0xac)]()[h(0xb6)](a146a)[h(0xae)](h(0xa5));});function a146d(a,b){const c=a146c();return a146d=function(d,e){d=d-0xa5;let f=c[d];return f;},a146d(a,b);}a146a();import{input,confirm,password,select,checkbox}from'@inquirer/prompts';export class Actions{static async[a146i(0xb9)](a,b){const c=await(b?password({'message':a}):input({'message':a}));return c;}static async['confirm'](a,b=![]){const c=await confirm({'message':a,'default':b});return c;}static async[a146i(0xab)](a){const j=a146i,b=await select({'message':a[j(0xad)],'choices':a[j(0xa8)]});return b;}static async[a146i(0xa9)](a){const k=a146i,b=await checkbox({'message':a['message'],'choices':a[k(0xa8)]});return b;}}
|