@martinsura/ui 0.1.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/README.md +74 -0
- package/dist/index.cjs +4259 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +2 -0
- package/dist/index.d.cts +1192 -0
- package/dist/index.d.ts +1192 -0
- package/dist/index.js +4197 -0
- package/dist/index.js.map +1 -0
- package/package.json +69 -0
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# @martinsura/ui
|
|
2
|
+
|
|
3
|
+
React UI component library built on Tailwind CSS v4.
|
|
4
|
+
|
|
5
|
+
## Development
|
|
6
|
+
|
|
7
|
+
Start the local preview app:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm start
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Build the library for publishing:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm run build
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Publishing Workflow
|
|
20
|
+
|
|
21
|
+
Source code lives in a private GitHub repository:
|
|
22
|
+
|
|
23
|
+
- GitHub: [https://github.com/martinsura/ui](https://github.com/martinsura/ui)
|
|
24
|
+
- npm package: `@martinsura/ui`
|
|
25
|
+
|
|
26
|
+
Publishing to npm is handled by GitHub Actions in [publish.yml](/Users/martinsura/Develop/Projects/martinsura-ui/.github/workflows/publish.yml).
|
|
27
|
+
|
|
28
|
+
### Push changes to GitHub only
|
|
29
|
+
|
|
30
|
+
If you want to save work to GitHub without creating an npm release, push only the branch:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
git add .
|
|
34
|
+
git commit -m "Update components"
|
|
35
|
+
git push origin main
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
This does not publish anything to npm.
|
|
39
|
+
|
|
40
|
+
### Publish a new npm version
|
|
41
|
+
|
|
42
|
+
1. Update the version in `package.json`.
|
|
43
|
+
2. Commit and push the branch.
|
|
44
|
+
3. Create a Git tag with the same version prefixed by `v`.
|
|
45
|
+
4. Push the tag.
|
|
46
|
+
|
|
47
|
+
Example for version `0.1.1`:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
git add .
|
|
51
|
+
git commit -m "Release 0.1.1"
|
|
52
|
+
git push origin main
|
|
53
|
+
|
|
54
|
+
git tag v0.1.1
|
|
55
|
+
git push origin v0.1.1
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Important:
|
|
59
|
+
|
|
60
|
+
- `package.json` version should match the tag version
|
|
61
|
+
- example: `package.json` = `0.1.1`, Git tag = `v0.1.1`
|
|
62
|
+
- the npm publish runs only when the tag is pushed
|
|
63
|
+
|
|
64
|
+
## GitHub Actions Setup
|
|
65
|
+
|
|
66
|
+
Before the first npm release, add this repository secret in GitHub:
|
|
67
|
+
|
|
68
|
+
- `NPM_TOKEN`
|
|
69
|
+
|
|
70
|
+
That token is used by the publish workflow to run:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npm publish
|
|
74
|
+
```
|