1.0.1 • Published 4 years ago
freemium-ui-trial v1.0.1
React based light weight ui components based on Styled Components
Installation
Add the resistry to .npmrc
file in parent folder
registry=https://npm.pkg.github.com/freshdesk
Peer Dependencies to be installed
npm install styled-components
Install the package
npm install @freshdesk/freemium-ui
Please note that @next
will only point to pre-releases; to get the latest stable release use @latest
instead.
Usage
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 '@freshdesk/freemium-ui';
function App() {
return (
<Button>
Freemium Button
</Button>
);
}
ReactDOM.render(<App />, document.querySelector('#app'));
Contribution
Install Dependencies
npm install
Start the app
npm start
Build Freemium Ui Core Components
npm run build
Generate a PAT with admin:org
, write:packages
, read:packages
, delete:packages
Authenticate to npm github package
npm login --registry=https://npm.pkg.github.com/
Publish the package to npm
npm publish