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

docs: Add README documentation to root and individual packages. #28

Merged
merged 8 commits into from
Dec 14, 2023

Conversation

nicholas-codecov
Copy link
Collaborator

Description

This PR adds in documentation for each of the packages that we publish, as well as a root README for the project as a whole.

Notable changes

  • Add root package README
  • Add README for each package
  • Add README for integration tests package

Copy link

@codecov codecov bot left a comment

Choose a reason for hiding this comment

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

This review focuses on areas of the code changes where there might be a need for improvement or possible error. The changes generally improve the clarity of the Readme files, explaining what each plugin does, and provide effective examples for installation and usage. However, there are areas where we could further improve code quality by addressing hard-coding token values, using environment variables instead and ensuring consistency across the usage examples.

packages/rollup-plugin/README.md Show resolved Hide resolved
packages/vite-plugin/README.md Show resolved Hide resolved
packages/rollup-plugin/README.md Outdated Show resolved Hide resolved
packages/webpack-plugin/README.md Show resolved Hide resolved
packages/vite-plugin/README.md Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0160343) 85.81% compared to head (29b3975) 85.81%.

Additional details and impacted files
Components Coverage Δ
Plugin core 96.34% <ø> (ø)
Rollup plugin 7.14% <ø> (ø)
Vite plugin 7.14% <ø> (ø)
Webpack plugin 9.30% <ø> (ø)

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

Copy link

@codecov codecov bot left a comment

Choose a reason for hiding this comment

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

CodecovAI submitted a new review for 9a10dd6

packages/rollup-plugin/README.md Show resolved Hide resolved
packages/vite-plugin/README.md Show resolved Hide resolved
packages/rollup-plugin/README.md Show resolved Hide resolved
packages/vite-plugin/README.md Show resolved Hide resolved
packages/rollup-plugin/README.md Show resolved Hide resolved
Copy link

@codecov codecov bot left a comment

Choose a reason for hiding this comment

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

CodecovAI submitted a new review for 29b3975


```js
// rollup.config.js
import { defineConfig } from "rollup";
Copy link

Choose a reason for hiding this comment

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

The inclusion of the installation code for the plugins in the README is a useful guide for new users. It demonstrates a good practice for documentation.

@@ -6,4 +6,52 @@

# Codecov Vite Plugin
Copy link

Choose a reason for hiding this comment

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

The clarity and structure of information presented in this segment are commendable. Segregating the content into 'features', 'installation', and 'example usage' sections is a good practice for better user understanding.

@@ -6,4 +6,26 @@

# Codecov Bundler Plugins

TODO
Copy link

Choose a reason for hiding this comment

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

Updating the 'TODO' comments with necessary information shows progress and is a positive change. It reflects the completion of a task and enhances the quality of the documentation.


# Integration Tests

Each directory in the fixtures directory represents one testing scenario, with a corresponding test file for each bundler we currently support.
Copy link

Choose a reason for hiding this comment

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

A brief description of the directory structure within the repository in the README file is a good practice for new developers to navigate the project more efficiently.


In the `test-api` directory is a simple API that we use to create more realistic testing scenarios for each bundler.

In the `test-apps` directory are a set of apps that we use to test the integration with each bundler.
Copy link

Choose a reason for hiding this comment

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

Documentation could be more elaborate about what the different apps in the 'test-apps' directory do and why they are vital for testing the integration with each bundler.

> [!WARNING]
> These plugins are currently in alpha and are subject to change.

Codecov plugins for various JavaScript bundlers. Currently supporting Rollup, Vite, Webpack 5.
Copy link

Choose a reason for hiding this comment

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

The active communication of the plugins being in alpha and subject to change is a critical piece of information. Consumers need this knowledge to anticipate future changes and handle unexpected problems if they arise.

## More information

- [Codecov Documentation](https://docs.codecov.com/docs)
- [Codecov Feedback](https://github.com/codecov/feedback/discussions)
Copy link

Choose a reason for hiding this comment

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

The addition of feedback/discussion links and the Discord server link specialized for issues are very useful. It allows users to seek help when running into problems, providing a continuous feedback mechanism.

@nicholas-codecov nicholas-codecov merged commit 1d258a6 into main Dec 14, 2023
12 checks passed
@nicholas-codecov nicholas-codecov deleted the documentation-time branch December 14, 2023 19:51
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.

None yet

2 participants