-
Notifications
You must be signed in to change notification settings - Fork 0
Add README.md into plugin package #10
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
Open
f8thl3ss
wants to merge
7
commits into
main
Choose a base branch
from
cg-bundle-readme
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b6ae9e0
Add README.md into plugin package
f8thl3ss 03f4a4d
Fix assets tests
f8thl3ss a011430
Add knip, fix knip issues, migrated to inline assets in README, added…
f8thl3ss e366c7d
Removed unused assets
f8thl3ss 223d1dd
Fix paths
f8thl3ss b5f0067
Fix tests
f8thl3ss 08c73f3
Rework html element parsing
f8thl3ss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -44,3 +44,6 @@ jobs: | |
|
|
||
| - name: Typecheck | ||
| run: pnpm typecheck | ||
|
|
||
| - name: Knip | ||
| run: pnpm exec knip | ||
This file contains hidden or 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 hidden or 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,9 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/knip@6/schema.json", | ||
| "entry": ["src/**/*.spec.ts", "playgrounds/**/*.spec.ts"], | ||
| "project": ["src/**/*.ts", "playgrounds/**/*.ts", "*.config.ts"], | ||
| "ignore": [ | ||
| "playgrounds/**/caido.config.ts", | ||
| "playgrounds/**/packages/**" | ||
| ] | ||
| } |
This file contains hidden or 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 hidden or 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,8 @@ | ||
| # Backend Plugin Playground | ||
|
|
||
| This is a test playground for building backend plugins. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| The plugin includes a backend plugin with assets. |
This file contains hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,58 @@ | ||
| # Frontend Build Playground | ||
|
|
||
| This directory serves as a test fixture for validating frontend plugin build behavior in `@caido-community/dev`. | ||
|
|
||
| ## Purpose | ||
|
|
||
| It demonstrates a minimal frontend Caido plugin configuration and is used in integration tests to verify: | ||
|
|
||
| - Vite-based frontend builds | ||
| - Asset bundling | ||
| - README and referenced asset inclusion in final plugin packages | ||
|
|
||
| ## Test Asset Reference | ||
|
|
||
| The following image reference is used to test automatic asset detection from README content: | ||
|
|
||
|  | ||
|
|
||
| ## Link Test Cases | ||
|
|
||
| Local link that should be preserved: | ||
|
|
||
| [Local Doc](assets/test.txt) | ||
|
|
||
| External link that should be removed: | ||
|
|
||
| [External Link](https://example.com/docs) | ||
|
|
||
| Fragment-only link that should be preserved: | ||
|
|
||
| [Jump to section](#purpose) | ||
|
|
||
| ## Reference-Style Definition Test Cases | ||
|
|
||
| Reference-style image and link using definitions: | ||
|
|
||
| ![Ref Image][ref-image] | ||
| [Ref Link][ref-link] | ||
|
|
||
| [ref-image]: assets/test.png | ||
| [ref-link]: https://example.com/docs | ||
|
|
||
| ## HTML Test Cases | ||
|
|
||
| Raw HTML with local and external URLs: | ||
|
|
||
| <img src="assets/test.png" alt="HTML Local Image" /> | ||
| <img src="https://example.com/image.png" alt="HTML External Image" /> | ||
| <a href="assets/test.txt">HTML Local Link</a> | ||
| <a href="https://example.com/docs">HTML External Link</a> | ||
|
|
||
| ## External URL Test Cases | ||
|
|
||
| The following images test external URL handling (should be removed): | ||
|
|
||
|  | ||
|  | ||
|  |
This file contains hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remarkis added as a runtime dependency but isn’t imported/used anywhere in the codebase (onlyremark-parseandremark-stringifyare). Removing the unused dependency will reduce install size and lockfile churn.