1.0.0 • Published 8 years ago

pure-blueprint v1.0.0

Weekly downloads
6
License
-
Repository
github
Last release
8 years ago

pure-blueprint

Blueprint of a Pure Component

Install and Usage

npm i -S pure-blueprint

In React component:

import * as React from 'react'
import * as ReactDOM from 'react-dom'
import {Button} from 'pure-blueprint'

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

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

Clone and Setup

Clone the repository and install dependencies.

git clone https://github.com/schabluk/pure-blueprint.git
cd pure-blueprint
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
> pure-blueprint-1.0.7.tgz

From project directory:

npm i /path/to/generated/pure-blueprint-1.0.0.tgz