Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
fix(package): include css and redux at root
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSharpieOne committed Sep 7, 2016
1 parent 9259b71 commit e70559b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@ node_modules
/build
/lib
/.tmp
/style.css
12 changes: 5 additions & 7 deletions README.md
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/Availity/react-block-ui.svg?branch=master)](https://travis-ci.org/Availity/react-block-ui) [![Coverage Status](https://coveralls.io/repos/github/Availity/react-block-ui/badge.svg?branch=master)](https://coveralls.io/github/Availity/react-block-ui?branch=master)
[![npm version](https://badge.fury.io/js/react-block-ui.svg)](https://badge.fury.io/js/react-block-ui) [![Build Status](https://travis-ci.org/Availity/react-block-ui.svg?branch=master)](https://travis-ci.org/Availity/react-block-ui) [![Coverage Status](https://coveralls.io/repos/github/Availity/react-block-ui/badge.svg?branch=master)](https://coveralls.io/github/Availity/react-block-ui?branch=master)
# react-block-ui
Easy way to block the user from interacting with your UI.

Expand All @@ -15,17 +15,15 @@ See: [https://availity.github.io/react-block-ui/](https://availity.github.io/rea
Install `react-block-ui` via NPM

```sh
npm install --save react-block-ui
npm install --save react-block-ui react-addons-transition-group react react-dom
```

Import the components you need, example:

```js
import BlockUi from 'react-block-ui';
```
-OR-
```js
import ReduxBlockUi from 'react-block-ui/redux';
import BlockUi, { Loader } from 'react-block-ui';
import ReduxBlockUi, { BlockUiMiddleware } from 'react-block-ui/redux';
import from 'react-block-ui/style.css';
```

## Development
Expand Down
11 changes: 7 additions & 4 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "react-block-ui",
"version": "0.1.0",
"version": "0.1.1",
"author": "Evan Sharp <evan.sharp@availity.com>",
"description": "Block UI for react",
"main": "lib/index.js",
Expand All @@ -16,8 +16,8 @@
"cleanup": "rimraf .nyc_output .tmp",
"start": "webpack-dev-server --config ./webpack.dev.config.js --watch",
"build:docs": "cross-env WEBPACK_BUILD=production webpack --config ./webpack.dev.config.js --colors",
"build": "cross-env WEBPACK_BUILD=production webpack --progress --colors && webpack --colors",
"prebuild": "babel src --out-dir lib",
"build": "cross-env WEBPACK_BUILD=production webpack --progress --colors && webpack --colors && copyfiles -f src/style.css dist",
"prebuild": "babel src --out-dir lib && copyfiles -f src/style.css lib && copyfiles -f src/style.css .",
"create-release": "npm test && sh ./scripts/release",
"publish-release": "npm test && sh ./scripts/publish"
},
Expand All @@ -30,7 +30,9 @@
"README.md",
"CHANGELOG.md",
"lib",
"dist"
"dist",
"redux.js",
"style.css"
],
"keywords": [
"availity",
Expand Down Expand Up @@ -81,6 +83,7 @@
"conventional-changelog-cli": "^1.1.1",
"conventional-recommended-bump": "^0.2.0",
"copy-webpack-plugin": "^3.0.1",
"copyfiles": "^1.0.0",
"coveralls": "^2.11.9",
"cross-env": "^2.0.0",
"css-loader": "^0.23.1",
Expand Down
17 changes: 17 additions & 0 deletions redux.js
@@ -0,0 +1,17 @@
'use strict';

exports.__esModule = true;
exports.BlockUiMiddleware = undefined;

var _ReduxBlockUi = require('./lib/ReduxBlockUi');

var _ReduxBlockUi2 = _interopRequireDefault(_ReduxBlockUi);

var _reduxMiddleware = require('./lib/reduxMiddleware');

var _reduxMiddleware2 = _interopRequireDefault(_reduxMiddleware);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.BlockUiMiddleware = _reduxMiddleware2.default;
exports.default = _ReduxBlockUi2.default;

0 comments on commit e70559b

Please sign in to comment.