mc-react-library 0.3.0 → 0.3.1
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 +15 -2
- package/dist/{mc-react-library.js → main.js} +973 -1014
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,10 +10,23 @@ npm install mc-react-library
|
|
|
10
10
|
|
|
11
11
|
Note: make sure all `peerDependencies` (defined in `package.json`) are installed in the host application!
|
|
12
12
|
|
|
13
|
+
And use with
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import {
|
|
17
|
+
DoiBadge,
|
|
18
|
+
HelpButton,
|
|
19
|
+
McloudSpinner,
|
|
20
|
+
...
|
|
21
|
+
} from "mc-react-library";
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Note: see usage examples of each component in the demo page.
|
|
25
|
+
|
|
13
26
|
Project structure:
|
|
14
27
|
|
|
15
28
|
- `lib\` - contains the React components of the library.
|
|
16
|
-
- `src\` - contains a demo page that renders the components
|
|
29
|
+
- `src\` - contains a demo page that renders the components for development.
|
|
17
30
|
|
|
18
31
|
## Development
|
|
19
32
|
|
|
@@ -48,6 +61,6 @@ npm install /path/to/mc-react-library-x.y.z.tgz
|
|
|
48
61
|
To make a new version and publish to npm via GitHub Actions:
|
|
49
62
|
|
|
50
63
|
```bash
|
|
51
|
-
npm version <
|
|
64
|
+
npm version <major/minor/patch>
|
|
52
65
|
git push --follow-tags
|
|
53
66
|
```
|