Skip to content

Instantly share code, notes, and snippets.

View Souvikns's full-sized avatar
🎯
Focusing

souvik Souvikns

🎯
Focusing
View GitHub Profile
@Souvikns
Souvikns / onboarding.md
Created March 11, 2024 03:18
Maintainer onboarding guide for asyncapi/glee

Onboarding guide for asycapi/glee

Welcome new maintainer! Now that you have been voted in as a new asyncapi/glee maintainer, we wanted to make sure we got you off to a good start.

Your Core Responsibilities


The primary objective of a core maintainer is to further CLI's goal of being both an awesome command Line Interface and a thriving and friendly community.

All maintainers are expected to do the following:

@Souvikns
Souvikns / onboarding.md
Last active March 11, 2024 03:08
Maintainer onboarding guide for asyncapi/cli

Onboading guide for asyncapi/cli

Welcome new maintainer! Now that you have been voted in as a new asyncapi/cli maintainer, we wanted to make sure we got you off to a good start.

Your Core Responsibilities


The primary objective of a core maintainer is to further CLI's goal of being both an awesome command Line Interface and a thriving and friendly community.

export default async function () {
return {
authentication: (servername: string, channelname: string, parsedAsyncAPISpec: AsyncAPI) {
if (servername === 'ws-client') {
return {token: process.env.TOKEN}
}
}
}
}
@Souvikns
Souvikns / log.txt
Created January 11, 2023 12:53
Error Log from running tests in asyncapi cli
➜ npm run test
> @asyncapi/cli@0.27.2 pretest
> npm run build
> @asyncapi/cli@0.27.2 build
> rimraf lib && node scripts/fetch-asyncapi-example.js && tsc && echo "Build Completed"
Fetched ZIP file
@Souvikns
Souvikns / integration.js
Created March 10, 2022 07:25
POC for JSON schema integration of AsyncAPI internal tools
// bundler integration function
const bundle = require('@asyncapi/bundler');
async function bundler(inputs,options, output) {
const files = inputs.files;
const base = options.base;
const format = output.format;
const document = await bundle(files, {
base: base
@Souvikns
Souvikns / bundle.ts
Last active February 12, 2022 12:11
This is how the bundle command would look...
import {main, options} from '@asyncapi/bundler/cli';
import bundle from '@asyncapi/bundler';
import Command from './base';
import {Flags} from '@oclif/core';
export default class Bundle extends Command {
static strict = false;
static flags = options.getFlags(Flags);
async run(){
import {main, options} from '@asyncapi/diff/cli';
import Command from '../base';
import {flags} from '@oclif/command';
export default class Diff extends Command {
static flags = options.getFlags(flags);
static args = options.args;
import "./styles.css";
import { usePokemon } from "./hook";
export default function App() {
let pokemons = usePokemon();
return (
<div>
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
<table>
<tr>
@Souvikns
Souvikns / index.js
Created March 29, 2021 22:00
AsyncApiDiff_v2
/**
*
* Having two asynapi doc we will be trying to find changes with respect to the first
* basically we will be checking how much of the first document has changed
*
* We can try to change categorise the changes as
* - additions
* - deletions
* - changes
*
@Souvikns
Souvikns / index.js
Created March 28, 2021 12:23
asyncApiDiff
const parser = require('@asyncapi/parser');
const fs = require('fs');
const path = require('path');
const main = async () => {
const diff = {
additions: [],
deletions: [],
changes: {},
generate: doc => {