Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updated the readme file path. #1242

Closed
wants to merge 12 commits into from
5 changes: 5 additions & 0 deletions .changeset/proud-brooms-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@asyncapi/generator": patch
---

Updated the method for importing the Nunjucks filter dependency
23 changes: 12 additions & 11 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Release Docker Image
on:
release:
types:
- published
push:
branch:
- testing-master

jobs:

Expand All @@ -14,7 +14,7 @@ jobs:
id: version
run: |
VERSION=${{github.event.release.tag_name}}
VERSION_WITHOUT_V=${VERSION##*@}
VERSION_WITHOUT_V=2.1.3
echo "value=${VERSION_WITHOUT_V}" >> $GITHUB_OUTPUT

- name: Set Up QEMU
Expand All @@ -26,8 +26,8 @@ jobs:
- name: login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
username: ayush706020
password: dockerayushnau

# This workflow triggers on GitHub Release, but it may start before the npm package is published.
- name: Sleep for 1s seconds
Expand All @@ -40,18 +40,19 @@ jobs:
push: true
load: false
build-args: |
ASYNCAPI_GENERATOR_VERSION=${{ steps.version.outputs.value }}
ASYNCAPI_GENERATOR_VERSION=2.1.3
tags: |
asyncapi/generator:${{ steps.version.outputs.value }}
asyncapi/generator:latest
ayushnautiyal706020/generator:${{ steps.version.outputs.value }}
ayushnautiyal706020/generator:latest
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha

- name: Update Docker Hub Readme
uses: meeDamian/[email protected]
with:
user: ${{ secrets.DOCKER_USERNAME }}
pass: ${{ secrets.DOCKER_PASSWORD }}
user: ayush706020
pass: dockerayushnau
slug: asyncapi/generator
readme: ../../README.md
description: Use your AsyncAPI definition to generate literally anything. Markdown documentation, Node.js code, HTML documentation, anything!
4 changes: 2 additions & 2 deletions apps/generator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG ASYNCAPI_GENERATOR_VERSION=1.10.9

FROM node:14-alpine
FROM node:18-alpine

WORKDIR /app

Expand All @@ -16,6 +16,6 @@ RUN apk --update add git chromium && \
rm /var/cache/apk/*

# Installing latest released npm package
RUN npm install -g @asyncapi/generator@$ASYNCAPI_GENERATOR_VERSION
RUN npm install -g @ayushnautiyal706020/generator@$ASYNCAPI_GENERATOR_VERSION

ENTRYPOINT [ "ag" ]
2 changes: 1 addition & 1 deletion apps/generator/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ module.exports = {
moduleNameMapper: {
'^nimma/legacy$': '<rootDir>../../node_modules/nimma/dist/legacy/cjs/index.js',
'^nimma/(.*)': '<rootDir>../../node_modules/nimma/dist/cjs/$1',
'^nunjucks-filters$': path.resolve(__dirname, '../nunjucks-filters'),
'^@asyncapi/nunjucks-filters$': path.resolve(__dirname, '../nunjucks-filters'),
},
};
2 changes: 1 addition & 1 deletion apps/generator/lib/filtersRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
const fs = require('fs');
const xfs = require('fs.extra');
const { isAsyncFunction } = require('./utils');
const nunjucksFilters = require('nunjucks-filters');
const nunjucksFilters = require('@asyncapi/nunjucks-filters');

/**
* Registers all template filters.
Expand Down
2 changes: 1 addition & 1 deletion apps/generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"source-map-support": "^0.5.19",
"ts-node": "^10.9.1",
"typescript": "^4.9.3",
"nunjucks-filters": "file:../nunjucks-filters"
"@asyncapi/nunjucks-filters": "*"
},
"devDependencies": {
"eslint": "^6.8.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/generator/test/test-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"moduleNameMapper": {
"^nimma/legacy$": "<rootDir>/../../../../node_modules/nimma/dist/legacy/cjs/index.js",
"^nimma/(.*)": "<rootDir>/../../../../node_modules/nimma/dist/cjs/$1",
"^nunjucks-filters$": "<rootDir>/../../../nunjucks-filters"
"^@asyncapi/nunjucks-filters$": "<rootDir>/../../../nunjucks-filters"
}
}
}
Loading
Loading