hbg-react 1.0.0
Install from the command line:
Learn more about npm packages
$ npm install @helsingborg-stad/hbg-react@1.0.0
Install via package.json:
"@helsingborg-stad/hbg-react": "1.0.0"
About this version
Library of reusable React components
npm install --save-dev hbg-react
Then require the components you want to use:
import {Dropdown, Button} from 'hbg-react';
- This library uses nwb for building assets and requires it to be installed globally
npm install -g nwb
- Clone the repo into a own directory
git clone [email protected]:helsingborg-stad/hbg-react.git hbg-react
- Go to the directory and install dependencies:
cd hbg-react
npm install
- Start development server
npm run start
- Go to hbg-react directory and make sure you are logged in:
npm whoami
- Run npm version to bump package version, build assets and add version commit.
npm version patch | minor | major
- Review the generated commit, if happy run npm publish - this will push to origin master (with tags) & publish NPM package.
npm publish
- Write tests for each component
- Demo page