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

Added typescript plugins dev guide #497

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

mrigankmg
Copy link
Contributor

@mrigankmg mrigankmg commented Aug 29, 2024

Added dev guide for typescript plugins.

Change Type (required)

Indicate the type of change your pull request is:

  • patch
  • minor
  • major

Does your PR have any documentation updates?

  • Updated docs
  • No Update needed
  • Unable to update docs

@mrigankmg mrigankmg changed the title Added typescript plugins dev guide. Added typescript plugins dev guide Aug 29, 2024
DEV_GUIDE.md Outdated Show resolved Hide resolved
DEV_GUIDE.md Outdated Show resolved Hide resolved
DEV_GUIDE.md Outdated Show resolved Hide resolved
@mrigankmg mrigankmg force-pushed the typescript-dev-guide branch 2 times, most recently from a2a55f9 to d89a41c Compare August 29, 2024 17:30
DEV_GUIDE.md Outdated Show resolved Hide resolved
DEV_GUIDE.md Show resolved Hide resolved
### Scaffold
All plugins follow a common structure:

The basic structure is as follows:
Copy link
Member

Choose a reason for hiding this comment

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

I would expand a bit on what that common structure is and why its important to make sure since it might not be immediately understandable by looking at the diagram

{
"name": "@player-ui/example-plugin",
"version": "0.0.0-PLACEHOLDER",
"main": "src/index.tsx",
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick but technically the entrypoint to a React Plugin doesn't have to be a .tsx file

DEV_GUIDE.md Outdated Show resolved Hide resolved
Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.97%. Comparing base (9d3589e) to head (e409fe2).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #497   +/-   ##
=======================================
  Coverage   91.97%   91.97%           
=======================================
  Files         340      340           
  Lines       26960    26960           
  Branches     1945     1945           
=======================================
  Hits        24796    24796           
  Misses       2150     2150           
  Partials       14       14           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

### Sections:
1. [Setup](#Setup)
2. [Adding a new plugin](#adding-a-new-plugin)
2. [Dependencies](#Dependencies)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
2. [Dependencies](#Dependencies)
3. [Dependencies](#Dependencies)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants