readytech-ui-library-v2 0.0.37 → 0.0.39
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 +93 -3
- package/dist/readytech-ui-library-v2.css +1 -1
- package/dist/readytech-ui-library-v2.es.js +1227 -1206
- package/dist/readytech-ui-library-v2.umd.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,5 +1,95 @@
|
|
1
|
-
#
|
1
|
+
# default
|
2
2
|
|
3
|
-
|
3
|
+
## Project setup (install dependencies)
|
4
4
|
|
5
|
-
|
5
|
+
```
|
6
|
+
# yarn
|
7
|
+
yarn
|
8
|
+
```
|
9
|
+
|
10
|
+
## Run Storybook
|
11
|
+
|
12
|
+
```
|
13
|
+
# yarn
|
14
|
+
yarn storybook
|
15
|
+
```
|
16
|
+
|
17
|
+
### Run build to compile components
|
18
|
+
|
19
|
+
```
|
20
|
+
# yarn
|
21
|
+
yarn build
|
22
|
+
```
|
23
|
+
|
24
|
+
### Publish to NPM
|
25
|
+
|
26
|
+
```
|
27
|
+
# yarn
|
28
|
+
yarn publish
|
29
|
+
|
30
|
+
(It will ask you to enter the new version number)
|
31
|
+
```
|
32
|
+
|
33
|
+
### Customize configuration
|
34
|
+
|
35
|
+
See [Configuration Reference](https://vitejs.dev/config/).
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
# Welcome to Readytech Digital UI Library Storybook
|
40
|
+
|
41
|
+
## This application is a Storybook for the Readytech Digital UI Library. It will show you the components that are available in the library and how to use them.
|
42
|
+
|
43
|
+
```
|
44
|
+
Storybook helps you build UI components in isolation from your app's business logic, data, and context.
|
45
|
+
That makes it easy to develop hard-to-reach states. Save these UI states as **stories** to revisit during development, testing, or QA.
|
46
|
+
|
47
|
+
Browse example stories now by navigating to them in the sidebar.
|
48
|
+
View their code in the `stories` directory to learn how they work.
|
49
|
+
We recommend building UIs with a [**component-driven**](https://componentdriven.org) process starting with atomic components and ending with pages.
|
50
|
+
```
|
51
|
+
|
52
|
+
|
53
|
+
<div className="subheading">What UI library is are the Readytech Digital UI Library based off [Vuetify](https://vuetifyjs.com/en/)</div>
|
54
|
+
<h4>The Readytech Digital UI Library component are based off the [Vuetify](https://vuetifyjs.com/en/) library.</h4>
|
55
|
+
<p>Vuetify is a Vue UI Library with beautifully handcrafted Material Components that gives you the power of Vue plus the functionality of a Material Design. It is a Vue implementation of the Google Material Design specification.</p>
|
56
|
+
<p><strong>It's clean it's modern and it's very flexible, simple and easy to use!</strong></p>
|
57
|
+
|
58
|
+
<div className="subheading">Adding a new component</div>
|
59
|
+
|
60
|
+
<div>
|
61
|
+
<h4>To add a new component, follow these steps:</h4>
|
62
|
+
1. Branch off of the `main` branch. Preferably create a new branch from `main` called `feature/{my new component name} OR use the Jira ticket number in such a format as `feature/RT-1234-my-new-component`.
|
63
|
+
2. Create within the branch a new folder in the `src/components/{my new component name}`.
|
64
|
+
3. Create within the branch a new component file in the `src/components/{my new component folder}/{my new component name}.vue`.
|
65
|
+
4. Create within the branch a new story file in the `src/components/{my new component folder}/{my new component name}.stories.js`.
|
66
|
+
5. Create within the branch a new test file in the `src/components/{my new component folder}/{my new component name}.spec.js`.
|
67
|
+
6. Please ensure you have a test within your spec file which test to see if the component is listed within the exports of the `src/index.js` file.
|
68
|
+
</div>
|
69
|
+
|
70
|
+
<div className="subheading">Updating the export file for npmregistry</div>
|
71
|
+
|
72
|
+
<div>
|
73
|
+
<h4>Once you've added a new component, you'll need to update the export file for npmregistry:</h4>
|
74
|
+
1. Locate the `src/index.js` file.
|
75
|
+
2. Update the export file to include your new component. (See previous entries for examples)
|
76
|
+
3. Once this is done, you'll need to bump the version of the library in the `package.json` file. (This means increasing the version number on line 3 and that's it)
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div className="subheading">Testing your new component locally and pushing to your branch</div>
|
80
|
+
|
81
|
+
<div>
|
82
|
+
<h4>Testing your new component:</h4>
|
83
|
+
1. You can test your new component by running the task `yarn test {path to your new component}.spec.js`.
|
84
|
+
2. Or if you want to you can run the test suite by simply running the task `yarn test`.
|
85
|
+
3. If this is the first time you are running the tests, it may prompt you to install the necessary dependencies. Say `Y` to install.
|
86
|
+
4. If the test for your new component passes you are ready to commit your changes to your branch!
|
87
|
+
5. If the tests fails please correct the errors before commiting your changes to your branch.
|
88
|
+
</div>
|
89
|
+
|
90
|
+
<div className="subheading">Creating a Merge Request</div>
|
91
|
+
|
92
|
+
<div>
|
93
|
+
<h4>Once you've tested your new component and have pushed your changed to your branch you are ready to commit to raise a merge request to merge your branch into `main`:</h4>
|
94
|
+
1. Instructions to raise a merge request can be found <a href="https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html" target="_blank">here</a>.
|
95
|
+
</div>
|