Skip to content

Commit 9e83fd2

Browse files
authored
Merge pull request #1669 from dxc-technology/gomezivann-update-readmes
Updates to all the READMEs and templates
2 parents 427a80a + 2dd9f77 commit 9e83fd2

File tree

6 files changed

+89
-89
lines changed

6 files changed

+89
-89
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Include steps to reproduce the behaviour.
1111

1212
Example:
1313

14-
1. Create a new React App using `create-react-app`.
15-
2. Install the `@dxc-technology\halstack-react` dependencies and run the app.
14+
1. Create a new React app using Vite.
15+
2. Install `@dxc-technology\halstack-react` package.
1616
3. Click on '...'.
1717
4. Scroll down to '...'.
1818
5. See the error.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ about: Suggest an idea for this project
44
---
55

66
**Is your feature request related to a problem? Please describe.**
7-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
7+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...].
88

99
**Describe the solution you'd like**
1010
A clear and concise description of what you want to happen.
@@ -16,4 +16,4 @@ A clear and concise description of any alternative solutions or features you've
1616
Add any other context or screenshots about the feature request here.
1717

1818
**Add Labels**
19-
Add any applicable labels like related components, services, team or project reporting this new feature... etc
19+
Add any applicable labels like related components, services, team or project reporting this new feature... etc.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
**Checklist**
22
_(Check off all the items before submitting)_
3-
- [ ] Build process is done without errors and all tests pass in `/lib` directory.
4-
- [ ] Self-reviewed the code prior to submitting.
3+
4+
- [ ] Build process is done without errors. All tests pass in the `/lib` directory.
5+
- [ ] Self-reviewed the code before submitting.
56
- [ ] Meets accessibility standards.
67
- [ ] Added/updated documentation to `/website` as needed.
78
- [ ] Added/updated tests as needed.
@@ -13,9 +14,9 @@ A clear description of the purpose of the change. Applicable in case this change
1314
A clear and concise description of the change.
1415

1516
**Screenshots**
16-
If applicable, add screenshots to help explain your change.
17+
If applicable, add screenshots to help explain your change request.
1718

1819
**Additional context**
1920
Add any other context about the change here.
2021

21-
**Closes #`issue-number`**
22+
**Closes #`issue-number`**

README.md

Lines changed: 25 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,44 @@
1-
# Halstack React CDK
1+
<p align="center">
2+
<a href="https://developer.dxc.com/halstack/">
3+
<img src="website/screens/common/images/halstack_logo.svg" alt="Halstack Design System logo" />
4+
</a>
5+
</p>
26

3-
Halstack React CDK is a npm library of reusable React components, made with the purpose of helping React developers with the task of implementing User Interfaces following the DXC Design Guidelines.
7+
<h1 align="center">Halstack Design System</h1>
48

5-
- It increases visual and behavioral consistency across the applications using the library.
9+
Halstack is an Open Source Design System built and maintained by DXC Technology with the purpose of providing all the necessary tools for designing and implementing accessible, intuitive and consistent User Experiences with React.
610

7-
- It cuts down development efforts, taking the responsability of following the Design Guidelines away from the developer, and allowing him to focus on providing business value.
11+
## How to start
812

9-
## Usage
10-
11-
Halstack React CDK is a set of reusable components distributed as a npm library. See the [documentation site](https://developer.dxc.com/halstack/) for details on how to use it.
12-
13-
## Contributing
14-
15-
Before opening new issues or pull requests, please refer to [CONTRIBUTING.MD](https://github.com/dxc-technology/halstack-react/blob/master/CONTRIBUTING.md).
16-
17-
## Development Setup
18-
19-
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
20-
21-
22-
The project is divided in two main folders. One is for the actual library, and the other one is a React application using the library.
23-
24-
### Library
25-
26-
Contained in the `lib` folder.
13+
You can start using Halstack right now:
2714

2815
```bash
29-
cd lib
16+
npm i @dxc-technology/halstack-react
3017
```
3118

32-
Install the library dependencies.
33-
34-
```bash
35-
npm install
36-
```
19+
### Usage
3720

38-
Run the build process into `dist` folder, detecting and automatically building changes in src.
21+
```jsx
22+
import React from "react";
23+
import { DxcButton, DxcTextInput } from "@dxc-technology/halstack-react";
3924

40-
```bash
41-
npm run build:watch #'npm run build' if there is no need to watch for changes
25+
const App = () => (
26+
<>
27+
<DxcTextInput label="Enter your name" />
28+
<DxcButton label="Submit" type="submit" />
29+
</>
30+
);
4231
```
4332

44-
### Example Application
45-
46-
Contained in the `app` folder.
33+
## Where to start
4734

48-
```bash
49-
cd app # from the root folder
50-
```
35+
Learn everything you need to know about Halstack principles and components on the [official documentation site](https://developer.dxc.com/halstack/).
5136

52-
Install the application dependencies. The Halstack React CDK dependency is linked to the local `lib` folder. This one must have been previously built.
53-
54-
```bash
55-
npm install
56-
```
57-
58-
Start the application.
59-
60-
```bash
61-
npm start # runs create-react-app dev server
62-
```
63-
64-
Now, anytime you make a change to the library or the app, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.
65-
66-
## Storybook
67-
68-
Contained in the `lib` folder.
69-
70-
```bash
71-
cd lib
72-
```
37+
## Contributing
7338

74-
Run storybook.
39+
Any feedback is always welcome in Halstack!
7540

76-
```bash
77-
npm run storybook
78-
```
41+
Before opening a new issue, pull request or discussion, please read carefully and respect our [contribution guidelines](https://github.com/dxc-technology/halstack-react/wiki/Contributing).
7942

8043
## Thanks
8144

lib/README.md

Lines changed: 43 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
1-
# Halstack React CDK
1+
<h1 align="center">Halstack React library</h1>
22

3-
Halstack React CDK is a npm library of reusable React components, made with the purpose of helping React developers with the task of implementing User Interfaces following the DXC Design Guidelines.
3+
`@dxc-technology/halstack-react` is an npm library of reusable React components, made to help React developers with the task of implementing User Interfaces following the DXC Halstack Design Guidelines.
44

5-
- It increases visual and behavioral consistency across the applications using the library.
5+
- It increases visual and behavioural consistency across the applications using the library.
66

7-
- It cuts down development efforts, taking the responsability of following the Design Guidelines away from the developer, and allowing him to focus on providing business value.
7+
- It cuts down development efforts, taking the responsibility of following the Design Guidelines away from the developer, and allowing him to focus on providing business value.
88

9-
## Usage
9+
## Before start working
1010

11-
Halstack React CDK is a set of reusable components distributed as a npm library. See the [documentation site](https://developer.dxc.com/halstack/) for details on how to use it.
12-
13-
## Contributing
14-
15-
Before opening new issues or pull requests, please refer to [CONTRIBUTING.MD](https://github.com/dxc-technology/halstack-react/blob/master/CONTRIBUTING.md).
11+
Remember to read [the documentation site](https://developer.dxc.com/halstack/) carefully before trying to modify any Halstack implementation.
1612

1713
## Development Setup
1814

1915
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
2016

21-
The project is divided in two main folders. One is for the actual library, and the other one is a React application using the library.
22-
2317
### Library
2418

2519
Contained in the `lib` folder.
@@ -28,13 +22,13 @@ Contained in the `lib` folder.
2822
cd lib
2923
```
3024

31-
Install the library dependencies.
25+
Install the library dependencies:
3226

3327
```bash
3428
npm install
3529
```
3630

37-
Run the build process into `dist` folder, detecting and automatically building changes in src.
31+
Run the build process into `dist` folder, detecting and automatically building changes in src:
3832

3933
```bash
4034
npm run build:watch #'npm run build' if there is no need to watch for changes
@@ -48,18 +42,50 @@ Contained in the `app` folder.
4842
cd app # from the root folder
4943
```
5044

51-
Install the application dependencies. The Halstack React CDK dependency is linked to the local `lib` folder. This one must have been previously built.
45+
Install the application dependencies. The Halstack React library dependency is linked to the local `lib` folder. This one must have been previously built:
5246

5347
```bash
5448
npm install
5549
```
5650

57-
Start the application.
51+
Start the application:
5852

5953
```bash
6054
npm start # runs create-react-app dev server
6155
```
6256

6357
Now, anytime you make a change to the library or the app, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.
6458

65-
## Running tests
59+
### Running tests
60+
61+
Contained in the `lib` folder.
62+
63+
```bash
64+
cd lib
65+
```
66+
67+
Launch all the tests:
68+
69+
```bash
70+
npm test
71+
```
72+
73+
Or run only those of a specific component:
74+
75+
```bash
76+
npm test Button.test.js
77+
```
78+
79+
### Storybook
80+
81+
Contained in the `lib` folder.
82+
83+
```bash
84+
cd lib
85+
```
86+
87+
Run storybook:
88+
89+
```bash
90+
npm run storybook
91+
```

website/README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
<h1 align="center">Halstack documentation site</h1>
2+
3+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
24

35
## Getting Started
46

5-
First, run the development server:
7+
First, install the project dependencies:
8+
9+
```bash
10+
npm install
11+
# or
12+
yarn
13+
```
14+
15+
And then, run the development server:
616

717
```bash
818
npm run dev

0 commit comments

Comments
 (0)