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

feat: introduce the turborepo to the parser.js #1008

Merged
merged 50 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2e000ba
web: prepare web codebase for turborepo
AyushNautiyalDeveloper Apr 20, 2024
853be5c
feat(create-turbo): create basic
turbobot-temp Apr 20, 2024
480e0ab
feat(create-turbo): apply official-starter transform
turbobot-temp Apr 20, 2024
a88dd0a
feat(create-turbo): apply package-manager transform
turbobot-temp Apr 20, 2024
6e2463c
initial commit
AyushNautiyalDeveloper Apr 20, 2024
c52d8f0
Merge remote-tracking branch 'parser/master'
AyushNautiyalDeveloper Apr 20, 2024
648aa1f
Added the required scripts for the turborepo
AyushNautiyalDeveloper Apr 21, 2024
d455df3
removed unwanted files.
AyushNautiyalDeveloper Apr 21, 2024
9939c51
Added the gitignore file.
AyushNautiyalDeveloper Apr 21, 2024
f25d259
fixed the eslintrc file.
AyushNautiyalDeveloper Apr 21, 2024
7c25ae9
Added the required changes .
AyushNautiyalDeveloper Apr 29, 2024
dcd54eb
Added the required
AyushNautiyalDeveloper Apr 30, 2024
994f9a4
Merge branch 'master' into master
smoya May 3, 2024
3555b0b
Merge branch 'master' into master
smoya May 6, 2024
d2cfa24
added the build script in the turbo.json file.
AyushNautiyalDeveloper May 6, 2024
423aa67
Corrected the Monorepo spelling.
AyushNautiyalDeveloper May 11, 2024
5ae43bf
added the readmd file.
AyushNautiyalDeveloper May 22, 2024
1e0484a
Added the correct context for the monorepo in the Readme.md file.
AyushNautiyalDeveloper May 27, 2024
0d329da
Added the correct version.
AyushNautiyalDeveloper May 27, 2024
6f8e295
remove the unwated dev dependencies.
AyushNautiyalDeveloper May 27, 2024
c32f8b0
made the required readmd file changes.
AyushNautiyalDeveloper May 29, 2024
7a6ce88
updated the lock file.
AyushNautiyalDeveloper Jun 2, 2024
5556406
added the cache false for the test command.
AyushNautiyalDeveloper Jun 3, 2024
1378ee3
Merge branch 'master' of github.com:asyncapi/parser-js
AyushNautiyalDeveloper Jun 5, 2024
454e620
Merge branch 'master' of github.com:asyncapi/parser-js
AyushNautiyalDeveloper Jun 22, 2024
993cd2d
Added the required changes for the master branch.
AyushNautiyalDeveloper Jun 22, 2024
1513588
updated the release file.
AyushNautiyalDeveloper Jun 22, 2024
4802101
updated.
AyushNautiyalDeveloper Jun 22, 2024
b3d0cf3
updated 2
AyushNautiyalDeveloper Jun 22, 2024
5dce695
updated the ci
AyushNautiyalDeveloper Jun 22, 2024
0147424
updated the release.
AyushNautiyalDeveloper Jun 22, 2024
00de800
updated the release file.
AyushNautiyalDeveloper Jun 22, 2024
e219ae2
updaed the packages
AyushNautiyalDeveloper Jun 22, 2024
0b8f1ef
updaed the file s.
AyushNautiyalDeveloper Jun 22, 2024
0210fd3
updated the files .
AyushNautiyalDeveloper Jun 22, 2024
2128de4
update the file.
AyushNautiyalDeveloper Jun 22, 2024
113a346
upated
AyushNautiyalDeveloper Jun 22, 2024
cf05ebe
updated the file.
AyushNautiyalDeveloper Jun 22, 2024
c399bf2
udpated the file.
AyushNautiyalDeveloper Jun 22, 2024
7cb0562
updated the realealse fie.
AyushNautiyalDeveloper Jun 23, 2024
c57c65e
Added the correct config for the changesets.
AyushNautiyalDeveloper Jun 24, 2024
faf1aa1
removed the unwated files.
AyushNautiyalDeveloper Jun 24, 2024
2d3f254
updated the package.json
AyushNautiyalDeveloper Jun 24, 2024
65655e1
updated the config and realease
AyushNautiyalDeveloper Jun 30, 2024
db15617
updated the name of the package.json.
AyushNautiyalDeveloper Jun 30, 2024
a14d512
updated the name.
AyushNautiyalDeveloper Jun 30, 2024
c30002f
updated the name of the repo name
AyushNautiyalDeveloper Jun 30, 2024
97ddd2c
empty commit used to trigger a new CI build
smoya Jul 4, 2024
0935dd0
fix .sonarcloud.properties file
smoya Jul 4, 2024
ae696e0
empty commit used to trigger a new CI build
smoya Jul 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-git", { "repo": "asyncapi/parser-js" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"privatePackages": {
"version": true,
"tag": true
}
}
5 changes: 5 additions & 0 deletions .changeset/wise-laws-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@asyncapi/parser": minor
---

Turning Parser-JS into monorepo by integrating Turborepo. No new features or bugfixes were introduced.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ node_modules
/lib
/esm
/cjs
/browser
/browser
esm
smoya marked this conversation as resolved.
Show resolved Hide resolved
cjs
134 changes: 0 additions & 134 deletions .eslintrc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# This action is centrally managed in https://github.com/asyncapi/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo

# It does magic only if there is package.json file in the root of the project
# It does magic only if there is a package.json file in the root of the project
name: Release - if Node project

on:
push:
branches:
- master
# below lines are not enough to have release supported for these branches
# make sure configuration of `semantic-release` package mentions these branches
# The below lines are not enough to have release supported for these branches
- next-spec
- next-major
- next-major-spec
Expand All @@ -18,10 +14,9 @@ on:
- next

jobs:

test-nodejs:
# We just check the message of first commit as there is always just one commit because we squash into one before merging
# "commits" contains array of objects where one of the properties is commit "message"
# We just check the message of the first commit as there is always just one commit because we squash into one before merging
# "commits" contains an array of objects where one of the properties is the commit "message"
# Release workflow will be skipped if release conventional commits are not used
if: |
startsWith( github.repository, 'asyncapi/' ) &&
Expand All @@ -33,11 +28,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Using macos-13 instead of latest (macos-14) due to an issue with Puppeteer and such runner.
# Using macos-13 instead of latest (macos-14) due to an issue with Puppeteer and such runner.
# See: https://github.com/puppeteer/puppeteer/issues/12327 and https://github.com/asyncapi/parser-js/issues/1001
os: [ubuntu-latest, macos-13, windows-latest]
steps:
- name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
- name: Set git to use LF # To once and for all finish the never-ending fight between Unix and Windows
run: |
git config --global core.autocrlf false
git config --global core.eol lf
Expand All @@ -60,7 +55,7 @@ jobs:
- if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest'
name: Install npm cli 8
shell: bash
#npm cli 10 is buggy because of some cache issues
# npm cli 10 is buggy because of some cache issues
run: npm install -g [email protected]
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
Expand All @@ -75,16 +70,16 @@ jobs:
with:
status: ${{ job.status }}
fields: repo,action,workflow
text: 'Release workflow failed in testing job'
text: "Release workflow failed in testing job"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}

release:
needs: [test-nodejs]
name: Publish to any of NPM, Github, or Docker Hub
name: Publish to any of NPM, GitHub, or Docker Hub
runs-on: ubuntu-latest
steps:
- name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
- name: Set git to use LF # To once and for all finish the never-ending fight between Unix and Windows
run: |
git config --global core.autocrlf false
git config --global core.eol lf
Expand All @@ -108,11 +103,19 @@ jobs:
shell: bash
run: npm ci
- if: steps.packagejson.outputs.exists == 'true'
name: Add plugin for conventional commits for semantic-release
run: npm install --save-dev [email protected]
name: Install changelog
shell: bash
run: npm install @changesets/[email protected]
- if: steps.packagejson.outputs.exists == 'true'
name: Publish to any of NPM, Github, and Docker Hub
uses: changesets/action@v1
id: release
smoya marked this conversation as resolved.
Show resolved Hide resolved
with:
version: npx -p @changesets/cli changeset version
commit: version packages
title: "chore: version packages"
publish: npx -p @changesets/cli changeset publish
setupGitUser: false
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -122,13 +125,12 @@ jobs:
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: asyncapi-bot
GIT_COMMITTER_EMAIL: [email protected]
run: npx [email protected]
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci Slack channel
name: Report workflow run status to Slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,action,workflow
text: 'Release workflow failed in release job'
text: "Release workflow failed in release job"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ node_modules
/cjs
/browser
*.tgz
.turbo
Empty file added .npmrc
Empty file.
24 changes: 0 additions & 24 deletions .releaserc

This file was deleted.

4 changes: 2 additions & 2 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Disable specific duplicate code since it would introduce more complexity to reduce it.
sonar.cpd.exclusions=src/models/**/*.ts,src/spec-types/*.ts
sonar.exclusions=test/**/*
sonar.cpd.exclusions=packages/parser/src/models/**/*.ts,packages/parser/src/spec-types/*.ts
sonar.exclusions=packages/parser/test/**/*
Loading
Loading