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

refactor: remove unnecessary code #309

Merged

Conversation

magicmatatjahu
Copy link
Member

@magicmatatjahu magicmatatjahu commented Apr 21, 2021

Description

Changes proposed in this pull request:

  • Remove old, not used in component (from few PRs) code - I created this PR separately, because refactor: unify styling vol.2 #301 has a lot changed files (with css and JS) and it's hard to review, this PR only have removed JS code.
  • Update umd bundles from @asyncapi/react-component/bundles/umd/... to @asyncapi/react-component/browser to improve DX.
  • Update docs for umd bundles - Readme.md and in NextJS tutorial.
  • Update deps in root package.json (by this PR has about 20k Changed LOC 😅)

Related issue(s)
Part of asyncapi/shape-up-process#83

@magicmatatjahu magicmatatjahu added the area/library Related to all activities around Library package label Apr 21, 2021
@magicmatatjahu magicmatatjahu requested a review from derberg April 21, 2021 08:41
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

"prepare": "npm run build:prod",
"prepack": "cp ../README.md ./README.md && cp ../LICENSE ./LICENSE",
"prepare": "npm run build:dev",
"prepack": "npm run build:prod && cp ../README.md ./README.md && cp ../LICENSE ./LICENSE",
"postpack": "rm -rf ./README.md && rm -rf ./LICENSE",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this for? why do we remove readme and license

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License and Readme are moved from root of project to library before publish, so by this library hasn't Readme in git, but we have it in npm https://www.npmjs.com/package/@asyncapi/react-component?activeTab=dependencies
After postpack we remove it (but these are copies).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect, thanks for explanation, I wish there was package.yml so we could have comments for future :(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦🏼 Due to this https://github.com/asyncapi/asyncapi-react/blob/master/package.json#L20 from this commit a00fcc9 currently we haven't License and Readme on npm...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will fix it the PR with bumping dependencies for "old" component.

@magicmatatjahu magicmatatjahu merged commit 2dcc730 into asyncapi:unify-component Apr 21, 2021
@magicmatatjahu magicmatatjahu deleted the unify-leftovers-2 branch April 21, 2021 11:48
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.21.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/library Related to all activities around Library package released on @next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants