-
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: introduce monorepo to Generator Repo (#1213)
Co-authored-by: AyushNautiyalDeveloper <ayush@betalectic.com>%0ACo-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>%0ACo-authored-by: Turbobot <turbobot@vercel.com>
- Loading branch information
1 parent
128c92c
commit bc9dbec
Showing
95 changed files
with
8,371 additions
and
10,275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
output | ||
node_modules | ||
.github/templates-list-validator/dist | ||
test/temp | ||
test/test-templates/react-template/__transpiled | ||
apps/generator/output/* | ||
**/node_modules/ | ||
.github/templates-list-validator/dist/* | ||
apps/generator/test/temp/* | ||
apps/generator/test/test-templates/react-template/__transpiled/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
.DS_Store | ||
|
||
node_modules | ||
npm-debug.log | ||
output | ||
.vscode | ||
###################### | ||
# Intellij | ||
###################### | ||
.idea/ | ||
*.iml | ||
*.iws | ||
*.ipr | ||
*.ids | ||
*.orig | ||
out/ | ||
|
||
# Local env files | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# Testing | ||
coverage | ||
test/temp/integrationTestResult | ||
test/test-project/package-lock.json | ||
test/test-project/verdaccio/storage/ | ||
test/test-project/storage/ | ||
|
||
# Turbo | ||
.turbo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
--- | ||
branches: | ||
- master | ||
# by default release workflow reacts on push not only to master. | ||
#This is why out of the box sematic release is configured for all these branches | ||
- name: next-spec | ||
prerelease: true | ||
- name: next-major | ||
prerelease: true | ||
- name: next-major-spec | ||
prerelease: true | ||
- name: beta | ||
prerelease: true | ||
- name: alpha | ||
prerelease: true | ||
- name: next | ||
prerelease: true | ||
- master | ||
# by default release workflow reacts on push not only to master. | ||
# This is why out of the box semantic release is configured for all these branches | ||
- name: next-spec | ||
prerelease: true | ||
- name: next-major | ||
prerelease: true | ||
- name: next-major-spec | ||
prerelease: true | ||
- name: beta | ||
prerelease: true | ||
- name: alpha | ||
prerelease: true | ||
- name: next | ||
prerelease: true | ||
|
||
plugins: | ||
- - "@semantic-release/commit-analyzer" | ||
- preset: conventionalcommits | ||
- - "@semantic-release/release-notes-generator" | ||
- preset: conventionalcommits | ||
- "@semantic-release/npm" | ||
- "@semantic-release/github" | ||
- - "@semantic-release/commit-analyzer" | ||
- preset: conventionalcommits | ||
- - "@semantic-release/release-notes-generator" | ||
- preset: conventionalcommits | ||
- "@semantic-release/npm": | ||
pkgRoot: ./apps/generator | ||
- "@semantic-release/github" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.DS_Store | ||
node_modules | ||
npm-debug.log | ||
output | ||
.vscode | ||
###################### | ||
# Intellij | ||
###################### | ||
.idea/ | ||
*.iml | ||
*.iws | ||
*.ipr | ||
*.ids | ||
*.orig | ||
out/ | ||
coverage | ||
test/temp/integrationTestResult | ||
test/test-project/package-lock.json | ||
test/test-project/verdaccio/storage/ | ||
test/test-project/storage/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
clearMocks: true, | ||
moduleNameMapper: { | ||
'^nimma/legacy$': '<rootDir>../../node_modules/nimma/dist/legacy/cjs/index.js', | ||
'^nimma/(.*)': '<rootDir>../../node_modules/nimma/dist/cjs/$1', | ||
}, | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"name": "@asyncapi/generator", | ||
"version": "2.0.1", | ||
"description": "The AsyncAPI generator. It can generate documentation, code, anything!", | ||
"main": "./lib/generator.js", | ||
"bin": { | ||
"asyncapi-generator": "./cli.js", | ||
"ag": "./cli.js" | ||
}, | ||
"engines": { | ||
"node": ">=18.12.0", | ||
"npm": ">=8.19.0" | ||
}, | ||
"scripts": { | ||
"test": "npm run test:unit && npm run test:integration && npm run test:cli", | ||
"test:unit": "jest --coverage --testPathIgnorePatterns=integration --testPathIgnorePatterns=test-project", | ||
"test:dev": "npm run test:unit -- --watchAll", | ||
"test:integration": "npm run test:cleanup && jest --testPathPattern=integration --modulePathIgnorePatterns='./__mocks__'", | ||
"test:integration:update": "jest --updateSnapshot --testPathPattern=integration --modulePathIgnorePatterns='./__mocks__'", | ||
"test:cli": "node cli.js ./test/docs/dummy.yml ./test/test-templates/react-template -o test/output --force-write --debug && test -e test/output/test-file.md", | ||
"test:cleanup": "rimraf \"test/temp\"", | ||
"docs": "jsdoc2md --partial docs/jsdoc2md-handlebars/custom-sig-name.hbs docs/jsdoc2md-handlebars/main.hbs docs/jsdoc2md-handlebars/docs.hbs docs/jsdoc2md-handlebars/header.hbs docs/jsdoc2md-handlebars/defaultvalue.hbs docs/jsdoc2md-handlebars/link.hbs docs/jsdoc2md-handlebars/params-table.hbs --files lib/generator.js > docs/api.md", | ||
"docker:build": "docker build -t asyncapi/generator:latest .", | ||
"lint": "eslint --max-warnings 0 --config ../../.eslintrc --ignore-path ../../.eslintignore .", | ||
"lint:tpl:validator": "eslint --fix --config ../../.eslintrc ../../.github/templates-list-validator", | ||
"generate:readme:toc": "markdown-toc -i README.md", | ||
"generate:assets": "npm run docs && npm run generate:readme:toc", | ||
"bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION" | ||
}, | ||
"preferGlobal": true, | ||
"bugs": { | ||
"url": "https://github.com/asyncapi/generator/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/asyncapi/generator.git" | ||
}, | ||
"keywords": [ | ||
"asyncapi", | ||
"documentation", | ||
"generator", | ||
"markdown", | ||
"codegen" | ||
], | ||
"author": "Fran Mendez <fmvilas@gmail.com>", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"license": "Apache-2.0", | ||
"homepage": "https://github.com/asyncapi/generator", | ||
"dependencies": { | ||
"@npmcli/arborist": "5.6.3", | ||
"@npmcli/config": "^8.0.2", | ||
"@asyncapi/generator-react-sdk": "^1.0.18", | ||
"@asyncapi/parser": "^3.0.14", | ||
"@smoya/multi-parser": "^5.0.0", | ||
"ajv": "^8.12.0", | ||
"chokidar": "^3.4.0", | ||
"commander": "^6.1.0", | ||
"filenamify": "^4.1.0", | ||
"fs.extra": "^1.3.2", | ||
"global-dirs": "^3.0.0", | ||
"jmespath": "^0.15.0", | ||
"js-yaml": "^3.13.1", | ||
"levenshtein-edit-distance": "^2.0.5", | ||
"loglevel": "^1.6.8", | ||
"minimatch": "^3.0.4", | ||
"node-fetch": "^2.6.0", | ||
"nunjucks": "^3.2.0", | ||
"requireg": "^0.2.2", | ||
"resolve-from": "^5.0.0", | ||
"resolve-pkg": "^2.0.0", | ||
"semver": "^7.3.2", | ||
"simple-git": "^3.3.0", | ||
"source-map-support": "^0.5.19", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.3" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"eslint-plugin-jest": "^23.8.2", | ||
"eslint-plugin-sonarjs": "^0.5.0", | ||
"eslint-plugin-react": "^7.34.1", | ||
"jest": "^25.5.0", | ||
"jsdoc-to-markdown": "^7.1.1", | ||
"markdown-toc": "^1.2.0", | ||
"rimraf": "^3.0.2", | ||
"unixify": "^1.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.