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

chore: add ci action #96

Merged
merged 16 commits into from
Dec 14, 2024
Merged

chore: add ci action #96

merged 16 commits into from
Dec 14, 2024

Conversation

manudeli
Copy link
Member

@manudeli manudeli commented Dec 12, 2024

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • CI

Checklist

  • I have performed a self-review of my own code.
  • My code is commented, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

Further Comments

@manudeli manudeli self-assigned this Dec 12, 2024
Copy link

changeset-bot bot commented Dec 12, 2024

⚠️ No Changeset found

Latest commit: 6594151

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Dec 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
overlay-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 10:28am

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Copy link
Member Author

@manudeli manudeli left a comment

Choose a reason for hiding this comment

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

I want to use and contribute overlay-kit but since this repository don't have ci, I couldn't do it well. so I added it

  1. publint
  2. arethetypeswrong
  3. build (not only package self, also examples react 16/17/18)
  4. lint
  5. test (w/ coverage upload on codecov - we can expose our coverage rate in README.md)

import { defineConfig } from 'vitest/config';
import packageJson from './package.json';

export default defineConfig({
plugins: [react()],
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 removed unnecessary plugin

"@types/use-sync-external-store": "^0.0.6",
"@vitejs/plugin-react": "^4.3.0",
"@vitest/coverage-v8": "^2.1.8",
Copy link
Member Author

Choose a reason for hiding this comment

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

For vitest coverage

"jsdom": "^24.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"publint": "^0.2.12",
Copy link
Member Author

Choose a reason for hiding this comment

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

image

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'll fix these after this Pull Request

Copy link
Member Author

@manudeli manudeli Dec 12, 2024

Choose a reason for hiding this comment

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

I'm ready to get review after this Pull Request merge

#97, #98

},
"dependencies": {
"use-sync-external-store": "^1.2.2"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
Copy link
Member Author

Choose a reason for hiding this comment

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

image

Comment on lines +11 to +13
coverage: {
provider: 'v8',
},
Copy link
Member Author

Choose a reason for hiding this comment

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

coverage

Comment on lines +3 to +21
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"jsx": "preserve"

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
Copy link
Member Author

Choose a reason for hiding this comment

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

To vite project build

dist
coverage
Copy link
Member Author

Choose a reason for hiding this comment

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

gitignore coverage

@@ -1,6 +1,6 @@
![](../docs/public/og.png)

# overlay-kit · [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/toss/overlay-kit/blob/main/LICENSE)
# overlay-kit · [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/toss/overlay-kit/blob/main/LICENSE) [![codecov](https://codecov.io/gh/toss/overlay-kit/graph/badge.svg?token=JBEAQTL7XK)](https://codecov.io/gh/toss/overlay-kit)
Copy link
Member Author

Choose a reason for hiding this comment

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

codecov badge

codecov

Comment on lines +44 to +47
- if: matrix.command == 'yarn workspace overlay-kit run test'
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Copy link
Member Author

Choose a reason for hiding this comment

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

Setup Codecov to expose our coverage to make library users believe overlay-kit

image

Copy link
Member Author

@manudeli manudeli Dec 12, 2024

Choose a reason for hiding this comment

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

To make library users feel free to apply overlay-kit, Let's improve test coverage together

```

Here are the features overlay-kit provides:

- **Hassle-free**: overlay-kit makes overlay management straightforward with a simple function call: just call `overlay.open(...)`. See [the overlay problem](https://overlay-kit.slash.page/motivation.html) for details.
Copy link
Member Author

Choose a reason for hiding this comment

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

Wrong link

@manudeli manudeli marked this pull request as ready for review December 12, 2024 18:03
@manudeli manudeli requested a review from jungpaeng as a code owner December 12, 2024 18:03
Copy link
Member

@jungpaeng jungpaeng left a comment

Choose a reason for hiding this comment

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

I have posted a question.
Aside from that, all the other changes look great. Thank you!

@@ -1,7 +1,7 @@
import { OverlayProvider } from 'overlay-kit';
import React from 'react';
import ReactDOM from 'react-dom';
import { Demo } from './demo';
import { Demo } from './demo.tsx';
Copy link
Member

Choose a reason for hiding this comment

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

I have a question.

Since moduleResolution is set to bundler, it seems like the .tsx extension wouldn’t be necessary.
Could you help me understand why it might have been included?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah! That's not necessary chage right!

Copy link
Member

@jungpaeng jungpaeng left a comment

Choose a reason for hiding this comment

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

The review I left doesn’t seem to be a critical issue, so I will approve it.

Thank you!

@jungpaeng jungpaeng merged commit 37980bc into main Dec 14, 2024
9 checks passed
@jungpaeng jungpaeng deleted the chore/add-ci-action branch December 14, 2024 04:29
@manudeli
Copy link
Member Author

The review I left doesn’t seem to be a critical issue, so I will approve it.

Thank you!

I love your work, overlay-kit! Let's go🚀

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.

3 participants