Skip to content

Commit b8f39ce

Browse files
committed
refactor: infra
1 parent 5530745 commit b8f39ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1327
-1762
lines changed

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.cache
2+
.DS_Store
3+
.idea
4+
*.log
5+
*.tgz
6+
coverage
7+
dist
8+
lib-cov
9+
logs
10+
node_modules
11+
temp

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore-workspace-root-check=true
2+
shell-emulator=true

LICENSE renamed to LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Sunny-117
3+
Copyright (c) 2025 Sunny-117 <https://github.com/Sunny-117>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
1+
# use-react-core
2+
3+
[![npm version][npm-version-src]][npm-version-href]
4+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
5+
[![bundle][bundle-src]][bundle-href]
6+
[![JSDocs][jsdocs-src]][jsdocs-href]
7+
[![License][license-src]][license-href]
8+
9+
A TypeScript project
10+
11+
> **Note**:
12+
> Replace `use-react-core`, `A TypeScript project` and `Sunny-117` globally to use this template.
13+
14+
## Sponsors
15+
116
<p align="center">
2-
<a href="https://github.com/Sunny-117/shooks">
3-
<img width="100%" src="assets/logo.png">
17+
<a href="https://cdn.jsdelivr.net/gh/Sunny-117/static/sponsors.svg">
18+
<img src='https://cdn.jsdelivr.net/gh/Sunny-117/static/sponsors.svg'/>
419
</a>
520
</p>
21+
22+
## License
23+
24+
[MIT](./LICENSE) License © 2024-PRESENT [Sunny-117](https://github.com/Sunny-117)
25+
26+
<!-- Badges -->
27+
28+
[npm-version-src]: https://img.shields.io/npm/v/use-react-core?style=flat&colorA=080f12&colorB=1fa669
29+
[npm-version-href]: https://npmjs.com/package/use-react-core
30+
[npm-downloads-src]: https://img.shields.io/npm/dm/use-react-core?style=flat&colorA=080f12&colorB=1fa669
31+
[npm-downloads-href]: https://npmjs.com/package/use-react-core
32+
[bundle-src]: https://img.shields.io/bundlephobia/minzip/use-react-core?style=flat&colorA=080f12&colorB=1fa669&label=minzip
33+
[bundle-href]: https://bundlephobia.com/result?p=use-react-core
34+
[license-src]: https://img.shields.io/github/license/Sunny-117/use-react-core.svg?style=flat&colorA=080f12&colorB=1fa669
35+
[license-href]: https://github.com/Sunny-117/use-react-core/blob/main/LICENSE
36+
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
37+
[jsdocs-href]: https://www.jsdocs.io/package/use-react-core

assets/logo.png

-37.9 KB
Binary file not shown.

build.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from 'robuild'
2+
3+
export default defineConfig({
4+
entries: [
5+
{
6+
input: 'src/index',
7+
type: 'bundle',
8+
}
9+
],
10+
})

package.json

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,39 @@
11
{
2-
"name": "@sunnyhooks",
3-
"version": "0.0.1",
4-
"description": "",
5-
"main": "index.js",
6-
"scripts": {
7-
"dev": "cd packages && cd hooks && npm run dev"
2+
"name": "use-react-core",
3+
"type": "module",
4+
"version": "0.0.0",
5+
"description": "A TypeScript project",
6+
"author": "Sunny-117",
7+
"license": "MIT",
8+
"homepage": "https://github.com/Sunny-117/use-react-core#readme",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/Sunny-117/use-react-core.git"
812
},
9-
"dependencies": {},
10-
"devDependencies": {},
13+
"bugs": "https://github.com/Sunny-117/use-react-core/issues",
1114
"keywords": [],
12-
"author": "",
13-
"license": "ISC"
14-
}
15+
"main": "./dist/index.mjs",
16+
"module": "./dist/index.mjs",
17+
"types": "./dist/index.d.mts",
18+
"files": [
19+
"dist"
20+
],
21+
"scripts": {
22+
"build": "robuild",
23+
"dev": "robuild --watch",
24+
"prepublishOnly": "npm run build",
25+
"commit": "git-cz"
26+
},
27+
"peerDependencies": {
28+
"react": "^18.2.0",
29+
"react-dom": "^18.2.0"
30+
},
31+
"devDependencies": {
32+
"@types/node": "^24.6.2",
33+
"@types/react": "^18.0.26",
34+
"@types/react-dom": "^18.0.9",
35+
"git-cz": "^4.9.0",
36+
"robuild": "^0.0.10",
37+
"typescript": "^5.5.4"
38+
}
39+
}

packages/hooks/global.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/hooks/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/hooks/package.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)