0.3.1 • Published 4 years ago
@freshworks/react-nucleus v0.3.1
Nucleus design system in React based on Styled Components
Installation
Peer Dependencies to be installed
npm install styled-componentsInstall the package with github. Please ensure you are using a proper version tag or commit id.
Dont' install using the master branch or default url
npm install git+ssh://git@github.com/freshworksinc/react-nucleus.git@0.1.3Usage
Here is a quick example to get you started, it's all you need:
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'react-nucleus';
function App() {
return (
<Button>
Nucleus Button
</Button>
);
}
ReactDOM.render(<App />, document.querySelector('#app'));Contribution
This project follows conventional commit messages using commitlint. Hence please adhere to the conventions for your commit messages.
Install Dependencies
npm installStart the app using storybook
npm run storybookBuild react-nucleus Ui Core Components
npm run buildGenerate a PAT with admin:org, write:packages, read:packages, delete:packages
Authenticate to npm github package
npm login --registry=https://registry.npmjs.org/Publish the package to npm
npm publishDeploy to Netlify
npm run deploy