@narmi/design_system 4.46.3 → 4.46.5
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 +21 -20
- package/dist/fonts/icomoon.svg +347 -0
- package/dist/fonts/icomoon.woff +0 -0
- package/dist/icons/style.css +1 -1
- package/dist/index.js +27 -27
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.map +1 -1
- package/dist/tokens/css/rgbColors.css +1 -1
- package/dist/tokens/css/rgbColors.scss +39 -0
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.scss +147 -0
- package/dist/tokens/js/colors.esm.js +1 -1
- package/dist/tokens/js/colors.js +1 -1
- package/dist/tokens/js/manifest.esm.js +1 -1
- package/dist/tokens/js/manifest.js +1 -1
- package/dist/tokens/js/reactNativeWeb.js +1 -1
- package/package.json +2 -1
- package/dist/fonts/fonts.css +0 -11
package/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
[](http://www.npmjs.com/package/@narmi/design_system)
|
|
2
|
-
[](https://github.com/narmi/design_system/actions/workflows/build.yaml)
|
|
3
2
|
|
|
4
3
|
# Narmi Design System (NDS)
|
|
5
4
|
|
|
@@ -160,15 +159,6 @@ Any modification to the design system that requires consumers to update their us
|
|
|
160
159
|
|
|
161
160
|
If you are making a breaking change, please [note it in your commit message](https://www.conventionalcommits.org/en/v1.0.0/#commit-message-with-description-and-breaking-change-footer) appropriately.
|
|
162
161
|
|
|
163
|
-
### Pull Request guide
|
|
164
|
-
|
|
165
|
-
There are a number of github actions we run automatically for every PR.
|
|
166
|
-
In order for your PR to merge it must:
|
|
167
|
-
|
|
168
|
-
- Build without failures and/or typescript errors
|
|
169
|
-
- Pass all unit tests
|
|
170
|
-
- Pass Chromatic snapshot tests
|
|
171
|
-
|
|
172
162
|
#### 📸 Working with snapshot tests
|
|
173
163
|
|
|
174
164
|
The workflow that runs visual snapshot testing is "Chromatic PR Checks"/`run_chromatic`. All pull requests will block merging until this workflow passes.
|
|
@@ -202,25 +192,18 @@ Baselines are managed by Chromatic, using the latest _approved_ build, regardles
|
|
|
202
192
|
To keep `main` as the branch that should be tracked as the baseline in Chromatic, we run a workflow on
|
|
203
193
|
merges to `main` that creates an auto-accepted build, designating it as the new baseline.
|
|
204
194
|
|
|
205
|
-
###
|
|
195
|
+
### Manual publishing (Narmi only)
|
|
206
196
|
|
|
207
|
-
|
|
208
|
-
There are however, some rare circumstances where you may need to test NDS changes against some consuming application.
|
|
209
|
-
|
|
210
|
-
The best way to approach testing unpublished NDS changes in a consumer is to use
|
|
211
|
-
**beta versions**.
|
|
197
|
+
In rare circumstances, you may need to manually publish a version of NDS outside of the normal automated release process.
|
|
212
198
|
|
|
213
199
|
#### Publishing a beta version
|
|
214
200
|
|
|
215
|
-
⚠️ Only do this if absolutely necessary
|
|
216
|
-
|
|
217
201
|
1. Rebuild NDS (`npm run build`)
|
|
218
202
|
2. Update the `version` field of package.json to be a beta of the next minor.
|
|
219
203
|
For example, you would change `2.35.2` to `2.36.0-beta.0`.
|
|
220
204
|
DO NOT COMMIT THIS CHANGE.
|
|
221
205
|
3. Publish the package (`npm publish --tag beta`)
|
|
222
|
-
4. In your consuming application, you can point the `@narmi/design_system`
|
|
223
|
-
version to the beta version you just published.
|
|
206
|
+
4. In your consuming application, you can point the `@narmi/design_system@2.36.0-beta`
|
|
224
207
|
|
|
225
208
|
If you need to make additional changes after the beta is published...
|
|
226
209
|
|
|
@@ -228,6 +211,24 @@ If you need to make additional changes after the beta is published...
|
|
|
228
211
|
2. Bump the beta version number in package.json (`2.36.0-beta.0` -> `2.36.0-beta.1`)
|
|
229
212
|
3. Install the new beta version in your consuming application.
|
|
230
213
|
|
|
214
|
+
#### Publishing a patch over a previous version
|
|
215
|
+
|
|
216
|
+
In rare cases, you may need to publish a patch over a previous version (e.g., patching `2.35.2` when the current version is `2.36.0`).
|
|
217
|
+
|
|
218
|
+
Follow the same steps as [publishing a beta version](#publishing-a-beta-version), but without the `--tag beta` flag:
|
|
219
|
+
|
|
220
|
+
1. Rebuild NDS (`npm run build`)
|
|
221
|
+
2. Update the `version` field of package.json to the desired patch version (e.g., `2.35.3`). DO NOT COMMIT THIS CHANGE.
|
|
222
|
+
3. Publish the package (`npm publish`)
|
|
223
|
+
|
|
224
|
+
### Testing unpublished changes in a consumer
|
|
225
|
+
|
|
226
|
+
**Development of Narmi Design System should be done in isolation within this repo.**
|
|
227
|
+
There are however, some rare circumstances where you may need to test NDS changes against some consuming application.
|
|
228
|
+
|
|
229
|
+
The best way to approach testing unpublished NDS changes in a consumer is to use
|
|
230
|
+
**beta versions**. See [Publishing a beta version](#publishing-a-beta-version) for instructions.
|
|
231
|
+
|
|
231
232
|
---
|
|
232
233
|
|
|
233
234
|
## License
|