Install the git remote url only.
latest:
yarn add https://github.com/tengine/blocks-util-js/
specific:
yarn add https://github.com/tengine/blocks-util-js#<commit-ish>
import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import {
defaultTheme,
FlatButton
} from 'blocks-util-js';
class Main extends React.Component {
render() {
return (
<MuiThemeProvider muiTheme={defaultTheme}>
<FlatButton label="Label" />
</MuiThemeProvider>
);
}
}
ReactDOM.render(<Main />, document.getElementById('container'));
git clone [email protected]:tengine/blocks-util-js.git
npm install
production build:
npm run build
development build:
npm run storybook
Update GitHub Pages (Demo):
npm run deploy-storybook