pure-blueprint
v1.0.0
Published
Pure Component
Readme
pure-blueprint
Blueprint of a Pure Component
Install and Usage
npm i -S pure-blueprintIn 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 installRunning and building
To start in development mode with HRM:
npm run startTo create bundle.js with index.html in dist/ folder:
npm run buildTo release for publication in NPM:
npm run release
npm version patch
npm publishTo release minified production bundle:
npm run relminiTo release and install locally:
npm pack
> pure-blueprint-1.0.7.tgzFrom project directory:
npm i /path/to/generated/pure-blueprint-1.0.0.tgz