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.
-
It increases visual and behavioral consistency across the applications using the library.
-
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.
Halstack React CDK is a set of reusable components distributed as a npm library. See the documentation site for details on how to use it.
Before opening new issues or pull requests, please refer to CONTRIBUTING.MD.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
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.
Contained in the lib
folder.
cd lib
Install the library dependencies.
npm install
Run the build process into dist
folder, detecting and automatically building changes in src.
npm run build:watch #'npm run build' if there is no need to watch for changes
Contained in the app
folder.
cd app # from the root folder
Install the application dependencies. The Halstack React CDK dependency is linked to the local lib
folder. This one must have been previously built.
npm install
Start the application.
npm start # runs create-react-app dev server
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.