Skip to content

Commit ea7c414

Browse files
committed
chore: setup changeset
1 parent 8142c7e commit ea7c414

File tree

6 files changed

+526
-1
lines changed

6 files changed

+526
-1
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
"test": "turbo run test",
1010
"lint": "turbo run lint",
1111
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
12-
"gen-hook": "turbo gen hook --config \"turbo/generators/config.cts\" && pnpm format"
12+
"gen-hook": "turbo gen hook --config \"turbo/generators/config.cts\" && pnpm format",
13+
"publish-packages": "turbo run build lint test && changeset version && changeset publish"
1314
},
1415
"devDependencies": {
16+
"@changesets/cli": "^2.29.1",
1517
"@turbo/gen": "^2.5.0",
1618
"date-fns": "^4.1.0",
1719
"prettier": "^3.5.3",
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<div align="center">
2+
<h1>tiny-react-hooks</h1>
3+
<div>A React hook library, written in Typescript.</div>
4+
<br />
5+
<div align="center">
6+
<sub>Created by <a href="https://github.com/tuananhl">Tuan Anh</a>.</sub>
7+
</div>
8+
9+
</div>
10+
<br />
11+
12+
## 💫 Introduction
13+
14+
This is a React hooks library, written in Typescript and easy to use. It provides a set of hooks that enables you to build your React applications faster. There are hooks for most common use cases you might need.
15+
16+
### Usage example
17+
18+
```tsx
19+
import { useDisclosure } from 'tiny-react-hooks'; // might be deploy in the future
20+
21+
function Component() {
22+
const { isOpen, onOpen, onClose, onToggle } = useDisclosure();
23+
24+
// ...
25+
}
26+
```
27+
28+
## 🪝 Available Hooks
29+
30+
<!-- HOOKS:START -->
31+
32+
- [`useDisclosure`] — handles boolean state with useful utility functions.
33+
<!-- HOOKS:END -->

packages/tiny-react-hooks/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"private": false,
66
"author": "Tuan Anh <tuananhit.oct@gmail.com",
77
"homepage": "https://tiny-react-hooks.com",
8+
"keywords": [
9+
"typescript",
10+
"react",
11+
"hooks"
12+
],
813
"scripts": {
914
"dev": "tsup --watch",
1015
"build": "tsup",

0 commit comments

Comments
 (0)