Commit f146f45
authored
feat: Publish Veda UI to npm and workflow proposal (#1391)
**Related Ticket:** closes
[#1369](#1369)
### Description of Changes
- Changed the registry in .npmrc from the private Verdaccio registry to
the public NPM registry under the scope `teamimpact`
- [Published the
library](https://www.npmjs.com/~teamimpact?activeTab=packages) under the
`teamimpact` scope and updated the docs on how to set the necessary npm
credentials
- Experimented with a new `README-lib.md`:
- Added an experimental workflow to copy this file to the lib dist
during the library build
- This allows us to have a unique `README.md` for the library when its
published on NPM, separate from the veda-ui submodule documentation
- I noticed the lib bundle size increased, largely due to the USWDS
images and fonts being copied in the library build. There’s room for
optimization, including removing unused assets or modules from the
existing veda-ui (e.g. `air-quality-and-covid-19--story-cover.png` etc),
and I made a tracking issue for that: #1392
### Notes & Questions About Changes
Proposed workflow for developing, testing and publishing the NPM
registry:
- Workflow proposal for veda-ui NPM publishing and development / testing
with consuming apps (Next.JS) is [documented
here](https://docs.google.com/document/d/1JRvZybU08mSdZTTXPkJr5pqYgoB_5EYYNWixXlgUIlA/edit?usp=sharing).
The proposal aligns and extends our current veda-ui publishing workflow
with the bi-weekly automated releases
### Validation / Testing
1. Set the necessary npm auth credentials mentioned in the set up docs
2. dry-run publish a version to make sure everything you're correctly
authenticated
3. Review the [Google
doc](https://docs.google.com/document/d/1JRvZybU08mSdZTTXPkJr5pqYgoB_5EYYNWixXlgUIlA/edit?usp=sharing)
proposal and share feedbackFile tree
5 files changed
+61
-10
lines changed- docs/development
5 files changed
+61
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
33 | 54 | | |
34 | 55 | | |
35 | 56 | | |
| |||
49 | 70 | | |
50 | 71 | | |
51 | 72 | | |
52 | | - | |
| 73 | + | |
53 | 74 | | |
54 | 75 | | |
55 | 76 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments