@candy.thieves/ui-kit-lumos 0.0.10 β 0.0.11
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 +115 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,9 +27,13 @@ The project is built on _React_ and _TypeScript_, using _Storybook_ for componen
|
|
|
27
27
|
|
|
28
28
|
## π Related Projects
|
|
29
29
|
|
|
30
|
-
[UI-kit Lumos npm-package](https://www.npmjs.com/package/@candy.thieves/ui-kit-lumos) β a UI component library (UI-kit) for the Lumos application
|
|
30
|
+
[UI-kit Lumos npm-package](https://www.npmjs.com/package/@candy.thieves/ui-kit-lumos) β a UI component library (UI-kit) for the **Lumos** application
|
|
31
31
|
|
|
32
|
-
[Lumos
|
|
32
|
+
[UI-kit Lumos repository](https://github.com/candysthieves/lumos-ui-kit) β UI-kit library repository for the **Lumos** application
|
|
33
|
+
|
|
34
|
+
[Lumos app repository](https://github.com/candysthieves/client) β main application using the UI-kit
|
|
35
|
+
|
|
36
|
+
[Lumos app deploy link](https://lumosapp.net/) β deployment link for the application using the UI-kit
|
|
33
37
|
|
|
34
38
|
[Figma Design](https://www.figma.com/design/UehOuThHVruUR8jcC22FXS/Inctagram?m=auto&t=DixPh2DJFl4iZtwB-6) β mockups and design system
|
|
35
39
|
|
|
@@ -131,4 +135,112 @@ export const MyComponent = () => {
|
|
|
131
135
|
|
|
132
136
|
## π Getting started locally with the UI-kit library
|
|
133
137
|
|
|
134
|
-
|
|
138
|
+
Follow these steps to run the application locally:
|
|
139
|
+
|
|
140
|
+
1. **Clone the repository:**
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
git clone https://github.com/candysthieves/lumos-ui-kit.git
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
2. **Navigate to the project directory:**
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
cd lumos-ui-kit
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
3. **Switch to the `develop` branch:**
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
git checkout develop
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
4. **Install dependencies:**
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
pnpm install
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
_If you have problems with running the script, use the following command in the CLI:_
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
pnpm install --legacy-peer-deps
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
5. **Launch the StoryBook local development server to visually test components:**
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
pnpm run storybook
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
6. **Access the application:**
|
|
177
|
+
|
|
178
|
+
Open your browser and navigate to the link provided in the CLI.*
|
|
179
|
+
|
|
180
|
+
## βοΈAvailable Scripts
|
|
181
|
+
|
|
182
|
+
- **`dev`:** π» Starts a local Vite development server for quick debugging of the application.
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
pnpm run dev
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
- **`build`:** π¦ Checks the TypeScript, then it builds an optimised production build of the project.
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
pnpm run build
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
- **`type:check`:** π· Checks TypeScript types without generating files; for validation purposes only.
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
pnpm run type:check
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
- **`stylelint:check`:** π¨ Checks SCSS files for stylelint errors.
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
pnpm run stylelint:check
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
- **`stylelint:fix`:** π§ Automatically fixes SCSS stylelint errors.
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
pnpm run stylelint:fix
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
- **`format`:** β
Checks and automatically formats code with Prettier.
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
pnpm run format
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
- **`lint`:** π Runs ESLint to check for code quality issues and automatically fixes ESLint errors.
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
pnpm run lint
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
- **`preview`:** π Starts a local server to preview the production build.
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
pnpm run preview
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
- **`storybook`:** β¨ Starts a local server to preview the production build.
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
pnpm run storybook
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
- **`build-storybook`:** π Starts a local server to preview the production build.
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
pnpm run build-storybook
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
- **`prepare`:** βοΈA lifecycle script that Husky uses to set up Git hooks. This is automatically run after `npm install`.
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
pnpm run build-storybook
|
|
246
|
+
```
|