buildgrid-ui 1.0.0 → 1.1.0-alpha.2

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.
@@ -3,6 +3,9 @@ on:
3
3
  push:
4
4
  branches:
5
5
  - main
6
+ - alpha
7
+ - beta
8
+ - rc
6
9
  jobs:
7
10
  release:
8
11
  runs-on: ubuntu-latest
package/.releaserc.json CHANGED
@@ -1,5 +1,19 @@
1
1
  {
2
- "branches": ["main"],
2
+ "branches": [
3
+ "main",
4
+ {
5
+ "name": "alpha",
6
+ "prerelease": "alpha"
7
+ },
8
+ {
9
+ "name": "beta",
10
+ "prerelease": "beta"
11
+ },
12
+ {
13
+ "name": "release-candidate",
14
+ "prerelease": "rc"
15
+ }
16
+ ],
3
17
  "plugins": [
4
18
  "@semantic-release/commit-analyzer",
5
19
  "@semantic-release/release-notes-generator",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [1.1.0-alpha.1](https://github.com/adrianomaringolo/buildgrid-ui/compare/v1.0.0...v1.1.0-alpha.1) (2025-01-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * adding shadcn configuration ([5841434](https://github.com/adrianomaringolo/buildgrid-ui/commit/584143402fad7aa19e477693d2a4727f5625e430))
7
+ * enhance Button component stories with props and update export ([69292b3](https://github.com/adrianomaringolo/buildgrid-ui/commit/69292b3d467dd5ed8eacf521e9c5f89e465af323))
8
+
1
9
  # 1.0.0 (2025-01-02)
2
10
 
3
11
 
package/README.md ADDED
@@ -0,0 +1,132 @@
1
+ # buildgrid-ui
2
+
3
+ ### This lib is under construction, take a look again soon 🚧
4
+
5
+ A React component library built using [Vite](https://vitejs.dev) and [shadcn](https://ui.shadcn.com/) as the foundation. This library is designed to integrate seamlessly with React and Next.js applications and includes support for [TailwindCSS](https://tailwindcss.com). It also provides a Storybook setup to display and document the components.
6
+
7
+ ## Features
8
+
9
+ - **Built with Vite** for a fast development experience.
10
+ - **TailwindCSS Integration** for utility-first styling.
11
+ - **shadcn Components** as a robust base.
12
+ - **Storybook** for component documentation and testing.
13
+ - **Semantic Versioning** with automated releases using [semantic-release](https://semantic-release.gitbook.io/semantic-release/).
14
+
15
+ ---
16
+
17
+ ## Getting Started
18
+
19
+ ### Installation
20
+
21
+ To install the library, run:
22
+
23
+ ```bash
24
+ npm install buildgrid-ui
25
+ ```
26
+
27
+ or
28
+
29
+ ```bash
30
+ yarn add buildgrid-ui
31
+ ```
32
+
33
+ ---
34
+
35
+ ### Usage
36
+
37
+ 1. Import a component in your React project:
38
+
39
+ ```jsx
40
+ import { Button } from "buildgrid-ui";
41
+
42
+ const App = () => <Button variant="primary">Click Me</Button>;
43
+
44
+ export default App;
45
+ ```
46
+
47
+ 2. Ensure TailwindCSS is configured in your project. Add the following imports to your `styles.css` file (or equivalent):
48
+
49
+ ```css
50
+ @tailwind base;
51
+ @tailwind components;
52
+ @tailwind utilities;
53
+ ```
54
+
55
+ 3. Include the `tailwind.config.js` content paths for buildgrid-ui:
56
+ ```javascript
57
+ module.exports = {
58
+ content: [
59
+ "./src/**/*.{js,ts,jsx,tsx}",
60
+ "./node_modules/buildgrid-ui/**/*.{js,ts,jsx,tsx}",
61
+ ],
62
+ theme: {
63
+ extend: {},
64
+ },
65
+ plugins: [],
66
+ };
67
+ ```
68
+
69
+ ---
70
+
71
+ ## Development
72
+
73
+ ### Setting Up the Project
74
+
75
+ Clone the repository and install dependencies:
76
+
77
+ ```bash
78
+ git clone https://github.com/yourusername/buildgrid-ui.git
79
+ cd buildgrid-ui
80
+ npm install
81
+ ```
82
+
83
+ ### Storybook
84
+
85
+ Run Storybook locally to preview and develop components:
86
+
87
+ ```bash
88
+ npm run storybook
89
+ ```
90
+
91
+ ---
92
+
93
+ ### Build the Library
94
+
95
+ To build the library for production:
96
+
97
+ ```bash
98
+ npm run build
99
+ ```
100
+
101
+ The output will be in the `dist/` directory, ready for publishing or integration.
102
+
103
+ ---
104
+
105
+ ## Semantic Releases
106
+
107
+ This project uses [semantic-release](https://semantic-release.gitbook.io/) for automated versioning and releases.
108
+
109
+ ### Steps to Create a Pre-release
110
+
111
+ 1. Push changes to the designated pre-release branch (e.g., `alpha`):
112
+ ```bash
113
+ git checkout -b alpha
114
+ git push origin alpha
115
+ ```
116
+ 2. Pre-release versions (e.g., `1.0.0-alpha.1`) will be automatically created.
117
+
118
+ ---
119
+
120
+ ## Contributing
121
+
122
+ Contributions are welcome! To contribute:
123
+
124
+ 1. Fork the repository.
125
+ 2. Create a new branch for your feature or bugfix.
126
+ 3. Submit a pull request with a detailed description of your changes.
127
+
128
+ ---
129
+
130
+ ## License
131
+
132
+ This project is licensed under the [MIT License](LICENSE).
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "default",
4
+ "rsc": false,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "tailwind.config.js",
8
+ "css": "src/styles/tailwind.css",
9
+ "baseColor": "neutral",
10
+ "cssVariables": true,
11
+ "prefix": ""
12
+ },
13
+ "aliases": {
14
+ "components": "@/components",
15
+ "utils": "@/lib/utils",
16
+ "ui": "@/components/ui",
17
+ "lib": "@/lib",
18
+ "hooks": "@/hooks"
19
+ },
20
+ "iconLibrary": "lucide"
21
+ }