Skip to content

Commit

Permalink
feat(docs): update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sawaYch committed Mar 29, 2024
1 parent c739077 commit 52cf4c4
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Next Youtube Livechat Monorepo

This is the monorepo for next-youtube-livechat package hook, create with [Turborepo](https://turbo.build/repo).
Contains a demo NextJS 14 website demonstrate the usage of `next-youtube-livechat` react hook library.
Include a demo NextJS 14 website demonstrate the usage of `next-youtube-livechat` react hook library.

## Package `next-youtube-livechat`

See [Packages README.md](./packages/next-youtube-livechat/README.md) for more information about installation and setup.

## Monorepo structure

Expand All @@ -24,7 +28,7 @@ Contains a demo NextJS 14 website demonstrate the usage of `next-youtube-livecha
└── turbo.json
```

- `apps/web` - Demo website
- `apps/web` - Demo website
- `packages/next-youtube-livechat` - React hook library `next-youtube-livechat`
- `packages/eslint-config` - eslint configurations (includes `eslint-config-next`, `eslint-config-prettier` and `eslint-config-turbo`)
- `packages/typescript-config` - tsconfig.json used throughout the monorepo
Expand All @@ -38,8 +42,8 @@ Restore dependencies:
npm i
```

To develop all apps and packages, run:
Both app & packages should be hot reload on file changed, and supporting linting & typecheck.
Developing apps & packages should be able to hot reload on file changed, also with linting & typecheck.
To develop (all apps and packages), run:

```sh
turbo dev
Expand Down
10 changes: 5 additions & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"next": "^14.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"next-youtube-livechat": "*",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
Expand All @@ -25,8 +21,12 @@
"clsx": "^2.1.0",
"framer-motion": "^11.0.20",
"lucide-react": "^0.338.0",
"next": "^14.1.1",
"next-themes": "^0.2.1",
"next-youtube-livechat": "*",
"react": "^18.2.0",
"react-device-detect": "^2.2.3",
"react-dom": "^18.2.0",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"zustand": "^4.5.2"
Expand All @@ -35,8 +35,8 @@
"@next/eslint-plugin-next": "^14.1.1",
"@repo/eslint-config": "*",
"@repo/typescript-config": "*",
"@types/eslint": "^8.56.5",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/eslint": "^8.56.5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions packages/next-youtube-livechat/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# `next-youtube-livechat`

Fetch YouTube live chat without API using NextJS which bypass CORS.

🚨 You will need to take full responsibility for your action 🚨

Fetch YouTube live chat without API using NextJS which bypass CORS.
Demo site: [https://next-youtube-livechat.vercel.app/](https://next-youtube-livechat.vercel.app/)

<sup><sub>🚨 You will need to take full responsibility for your action 🚨</sub></sup>

## Getting started

### Installation

> Package already provide types files
```ts
npm i next-youtube-livechat
```

### Source Code

Hook
Expand Down
2 changes: 1 addition & 1 deletion packages/next-youtube-livechat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-youtube-livechat",
"version": "0.1.22",
"version": "0.1.23",
"private": false,
"description": "Fetch YouTube live chat without API using NextJS + React Hook which bypass CORS.",
"author": "Sawa",
Expand Down

0 comments on commit 52cf4c4

Please sign in to comment.