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

feature: Use inline css #3

Merged
merged 20 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
914a125
chore: Provide url and email for reporting bugs
oluwatobiss Dec 24, 2023
94e5ee2
build: Remove emotionjs package
oluwatobiss Dec 24, 2023
f33d542
style: Remove emotion's configurations
oluwatobiss Dec 24, 2023
392cb57
test: Change jest configuration file to typescript
oluwatobiss Dec 24, 2023
e514fc4
build: Configure jest to read typescript configuration files
oluwatobiss Dec 24, 2023
51ad035
test: Add configuration file to the test command
oluwatobiss Dec 24, 2023
01d1eb8
refactor: Rename index files to YouTubePlaylist
oluwatobiss Dec 24, 2023
b7f2b0b
style: Replace emotion css with inline styling
oluwatobiss Dec 24, 2023
9a0885d
refactor: Change package's export mode from default to named exportation
oluwatobiss Dec 24, 2023
7aa8ec4
chore: Delete css modules type declaration file
oluwatobiss Dec 24, 2023
a4a356a
chore: Change commitlint configuration file to typescript
oluwatobiss Dec 24, 2023
d5cb82d
ci(github): Lint commit messages for pull and push requests
oluwatobiss Dec 24, 2023
f5ee273
build: Remove jest-transform-css configurations
oluwatobiss Dec 24, 2023
2634c14
chore: Change entry point from index to YouTubePlaylist
oluwatobiss Dec 25, 2023
0934bc5
style: Use spinner color with aa contrast on dark and light scheme
oluwatobiss Dec 25, 2023
501bd0c
docs: Remove emotionjs references and change import statement to name…
oluwatobiss Dec 25, 2023
95b9c9e
build: Bump @types/react to v18.2.46
oluwatobiss Jan 3, 2024
081b997
docs: Update license's year
oluwatobiss Jan 3, 2024
95dbc01
docs: Add contact email
oluwatobiss Jan 3, 2024
e4ac718
chore: Add email
oluwatobiss Jan 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Lint Commit Messages
on: [pull_request, push]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 CodeSweetly
Copyright (c) 2022-present Oluwatobi Sofela & CodeSweetly <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
29 changes: 2 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
> **Important**
>
> Yarn users also need `@emotion/[email protected]` installation.

# React YouTube Playlist

An easy-to-use and responsive React component for displaying YouTube playlists on a web app. Create a beautiful gallery of YouTube videos.
Expand All @@ -22,32 +18,12 @@ This section shows how to install the React YouTube Playlist package.
npm install @codesweetly/react-youtube-playlist
```

> **Note**
>
> Did you get an `'npm ERR! ERESOLVE unable to resolve dependency tree'` error?
>
> If yes, please add `--legacy-peer-deps` to your installation command like so:
>
> ```
> npm install @codesweetly/react-youtube-playlist --legacy-peer-deps
> ```

### Using yarn

```
yarn add @codesweetly/react-youtube-playlist
```

> **Note**
>
> Did you get a `Module not found: Error: Can't resolve '@emotion/react/jsx-runtime'` error?
>
> If yes, please install `@emotion/[email protected]`:
>
> ```
> yarn add @emotion/[email protected]
> ```

### Using pnpm

```
Expand All @@ -57,7 +33,7 @@ pnpm add @codesweetly/react-youtube-playlist
## Usage

```js
import YouTubePlaylist from "@codesweetly/react-youtube-playlist";
import { YouTubePlaylist } from "@codesweetly/react-youtube-playlist";

function App() {
return (
Expand Down Expand Up @@ -149,7 +125,7 @@ import ImageGallery from "react-image-grid-gallery";

The `"use client"` directive tells NextJS to consider all modules imported into the page as part of the Client Component module graph.

The `YouTubePlaylist` package works only as a Client Component because it uses React's State and Lifecycle effects, such as `useState()` and `useEffect()`.
The `YouTubePlaylist` package works _only_ as a Client Component because it uses React's State and Lifecycle effects, such as `useState()` and `useEffect()`.

## Build

Expand All @@ -159,7 +135,6 @@ npm run build

## Dependencies

- [emotion](https://github.com/emotion-js/emotion/)
- [fslightbox-react](https://github.com/banthagroup/fslightbox-react)
- [prop-types](https://github.com/facebook/prop-types)
- [react](https://github.com/facebook/react)
Expand Down
6 changes: 0 additions & 6 deletions commitlint.config.js

This file was deleted.

10 changes: 10 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { UserConfig } from "@commitlint/types";

const Configuration: UserConfig = {
extends: ["@commitlint/config-conventional"],
rules: {
"subject-case": [2, "always", ["sentence-case"]],
},
};

module.exports = Configuration;
8 changes: 0 additions & 8 deletions jest.config.js

This file was deleted.

10 changes: 10 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { Config } from "jest";

const config: Config = {
testEnvironment: "jsdom",
transform: {
"^.+\\.tsx?$": "ts-jest",
},
};

export default config;
Loading