1.0.5 • Published 7 years ago

common-components v1.0.5

Weekly downloads
30
License
-
Repository
github
Last release
7 years ago

common-components

Common Components

Install and Usage

npm i -S common-components

In React component:

import * as React from 'react'
import * as ReactDOM from 'react-dom'
import {Button} from 'common-components'

class App extends Component {
  render() {
    return (
      <Button text='Click Me' />
    )
  }
}

ReactDOM.render(
  <Button text='Click Me' />,
  document.body
)

Running

Clone the repository and install dependencies.

npm install

Running and building

To start in development mode with HRM:

npm run start

To create bundle.js with index.html in dist/ folder:

npm run build

To release for publication in NPM:

npm run release
npm version patch
npm publish

To release minified production bundle:

npm run relmini

To release and install locally:

npm pack
> common-components-1.0.0.tgz

From project directory:

npm i /path/to/generated/common-components-1.0.0.tgz
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago