react-mcu 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +39 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +8 -0
- package/package.json +61 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Matt Pocock 2024
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# react-mcu
|
|
2
|
+
|
|
3
|
+
A React component library.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install react-mcu
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { Mcu } from 'react-mcu';
|
|
15
|
+
|
|
16
|
+
function App() {
|
|
17
|
+
return <Mcu />;
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Components
|
|
22
|
+
|
|
23
|
+
### Mcu
|
|
24
|
+
|
|
25
|
+
A simple component that renders "Hello World".
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
<Mcu />
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Contributing
|
|
32
|
+
|
|
33
|
+
When submitting a pull request, please include a changeset to document your changes:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx changeset
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
This helps us maintain the changelog and version the package appropriately.
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-mcu",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A React component library",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"component",
|
|
8
|
+
"typescript"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/abernier/react-mcu",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/abernier/react-mcu/issues"
|
|
19
|
+
},
|
|
20
|
+
"author": "abernier",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/abernier/react-mcu.git"
|
|
24
|
+
},
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"type": "module",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@arethetypeswrong/cli": "^0.15.4",
|
|
32
|
+
"@changesets/cli": "^2.27.7",
|
|
33
|
+
"@testing-library/dom": "^10.4.1",
|
|
34
|
+
"@testing-library/react": "^16.3.1",
|
|
35
|
+
"@types/react": "^19.2.7",
|
|
36
|
+
"@types/react-dom": "^19.2.3",
|
|
37
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
38
|
+
"jsdom": "^27.4.0",
|
|
39
|
+
"prettier": "^3.3.3",
|
|
40
|
+
"react": "^19.2.3",
|
|
41
|
+
"react-dom": "^19.2.3",
|
|
42
|
+
"tsup": "^8.2.4",
|
|
43
|
+
"typescript": "^5.5.4",
|
|
44
|
+
"vitest": "^2.0.5"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsup",
|
|
48
|
+
"ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test",
|
|
49
|
+
"lint": "tsc",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"format": "prettier --write .",
|
|
52
|
+
"check-format": "prettier --check .",
|
|
53
|
+
"check-exports": "attw --pack . --ignore-rules cjs-resolves-to-esm no-resolution",
|
|
54
|
+
"release": "npm run build && changeset publish",
|
|
55
|
+
"local-release": "npm run ci && changeset version && changeset publish"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"react": "^19.2.3",
|
|
59
|
+
"react-dom": "^19.2.3"
|
|
60
|
+
}
|
|
61
|
+
}
|