@brightspot/ui 1.0.0-alpha.4 → 1.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 +80 -8
- package/dist/storybook/{906.0b06b831.iframe.bundle.js → 906.a03add0d.iframe.bundle.js} +3 -3
- package/dist/storybook/{906.0b06b831.iframe.bundle.js.map → 906.a03add0d.iframe.bundle.js.map} +1 -1
- package/dist/storybook/{936.9ad0e832.iframe.bundle.js → 936.31ecad10.iframe.bundle.js} +1 -1
- package/dist/storybook/iframe.html +3 -3
- package/dist/storybook/{main.60eb2a33.iframe.bundle.js → main.76e651e5.iframe.bundle.js} +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/runtime~main.7d6d5df6.iframe.bundle.js +1 -0
- package/dist/tailwind-plugin-theme.js +2 -2
- package/dist/tailwind-plugin-theme.ts +2 -2
- package/package.json +16 -16
- package/dist/storybook/runtime~main.0d0d1d44.iframe.bundle.js +0 -1
- /package/dist/storybook/{906.0b06b831.iframe.bundle.js.LICENSE.txt → 906.a03add0d.iframe.bundle.js.LICENSE.txt} +0 -0
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
Brightspot UI
|
|
2
|
+
=======
|
|
1
3
|
<a id="readme-top"></a>
|
|
2
4
|
<div>
|
|
3
5
|
<h2 align="center">brightspot-ui</h2>
|
|
@@ -142,17 +144,87 @@ We use [Storybook](https://storybook.js.org/) for interactive previewing of our
|
|
|
142
144
|
|
|
143
145
|
## Development
|
|
144
146
|
|
|
145
|
-
|
|
146
|
-
* To use this package locally, run `yarn pack` to create a distribution package. Then install the node module in your project using `yarn add {/PATH/TO/TARBALL}/brightspot-ui-v{VERSION}.tgz`. __Note:__ You could also use `yarn link` for this or [local paths](https://classic.yarnpkg.com/lang/en/docs/cli/add/).
|
|
147
|
-
* To publish a release, run `npm publish` and follow the prompts. **Make sure to update the version number in the package.json first!**
|
|
147
|
+
### Building the Package
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
To build the package, run `yarn build` from the package root to create the `dist` folder containing all the compiled assets.
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
### Local Development with yarn link
|
|
152
|
+
|
|
153
|
+
For local development and testing, use `yarn link` to create a symlink between this package and your consuming project. This approach provides real-time updates as you make changes to the brightspot-ui source code.
|
|
154
|
+
|
|
155
|
+
#### Setting up the link
|
|
156
|
+
|
|
157
|
+
1. **In the brightspot-ui package directory:**
|
|
158
|
+
```sh
|
|
159
|
+
yarn link
|
|
160
|
+
```
|
|
161
|
+
This registers the package globally on your system for linking.
|
|
162
|
+
|
|
163
|
+
2. **In your consuming project directory:**
|
|
164
|
+
```sh
|
|
165
|
+
yarn link @brightspot/ui
|
|
166
|
+
```
|
|
167
|
+
This creates a symlink from your project's node_modules to the brightspot-ui package.
|
|
168
|
+
|
|
169
|
+
#### Working with the linked package
|
|
170
|
+
|
|
171
|
+
- Any changes you make to the brightspot-ui source code will be immediately available in your consuming project
|
|
172
|
+
- Run `yarn build` in the brightspot-ui directory whenever you make changes to ensure the `dist` folder is updated
|
|
173
|
+
- Your project will use the local development version instead of the published npm version
|
|
174
|
+
|
|
175
|
+
#### Removing the link
|
|
176
|
+
|
|
177
|
+
When you're done with local development:
|
|
178
|
+
|
|
179
|
+
1. **In your consuming project:**
|
|
180
|
+
```sh
|
|
181
|
+
yarn unlink @brightspot/ui
|
|
182
|
+
yarn install --force
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
2. **In the brightspot-ui package directory:**
|
|
186
|
+
```sh
|
|
187
|
+
yarn unlink
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
This restores your project to use the published version from npm.
|
|
152
191
|
|
|
153
|
-
|
|
192
|
+
### Publishing
|
|
154
193
|
|
|
155
|
-
|
|
194
|
+
#### Prerelease (Testing)
|
|
195
|
+
|
|
196
|
+
For testing changes before a full release, create a prerelease version:
|
|
197
|
+
|
|
198
|
+
```sh
|
|
199
|
+
yarn version --prerelease
|
|
200
|
+
npm publish --tag beta
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
This automatically increments the version with a prerelease identifier (e.g., `1.2.3-0`) and publishes it under the `beta` tag. Users can install prereleases with:
|
|
204
|
+
|
|
205
|
+
```sh
|
|
206
|
+
yarn add @brightspot/ui@beta
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
#### Full Release
|
|
210
|
+
|
|
211
|
+
For a production release:
|
|
212
|
+
|
|
213
|
+
```sh
|
|
214
|
+
yarn version --patch # for bug fixes
|
|
215
|
+
# or
|
|
216
|
+
yarn version --minor # for new features
|
|
217
|
+
# or
|
|
218
|
+
yarn version --major # for breaking changes
|
|
219
|
+
|
|
220
|
+
npm publish
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
The `yarn version` command automatically updates the version number in package.json and creates a git commit and tag. Choose the appropriate version bump based on the type of changes you're releasing.
|
|
224
|
+
|
|
225
|
+
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
226
|
+
|
|
227
|
+
## Frequently Asked Questions
|
|
156
228
|
|
|
157
229
|
Q: How can I see examples of the components and theme?
|
|
158
230
|
|
|
@@ -162,4 +234,4 @@ Q: Can I choose which Brightspot UI plugins my project uses?
|
|
|
162
234
|
|
|
163
235
|
A: You have full control over which plugins you include in the tailwind.config file. See the ["using plugins"](#using-plugins) section above.
|
|
164
236
|
|
|
165
|
-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
237
|
+
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|