react-lib-ghui
v2.4.12
Published
A shareable component library with a example folder to live-test components as you are developing them.
Downloads
34
Readme
A shareable component library with a example folder to live-test components as you are developing them.
Setup the Node Environment
Node JS is the primary language used for development of the Web Management UI. We enforce the use of node v18 for this project. Node Version Manager nvm-windows
: [https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows] is used to switch node versions automatically.
Node 18 is required to successfully build the application.
Running the Application Locally
- Run
npm run i-all
to install all dependencies - Run
npm run start-example
to run the example application in development mode - Open http://localhost:3000 to view it in the browser.
Available Scripts
In the project directory, you can run:
npm run build
Builds the library to the dist
folder.
The build is minified.
npm run dev
Runs build command and start-example command in parallel.
npm publish
Publishes the library to npm registry.
npm run test
Runs unit tests.
Usage
All exported components are listed in src/index.js
import React from 'react';
import { Button } from '@deltacontrols/ui-test';
const App = () => {
return <Button />
}
export default App;