Skip to content

Commit

Permalink
fixed exports, prepare to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRabey committed Jul 25, 2017
1 parent 73cad49 commit ed545c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
13 changes: 0 additions & 13 deletions dist/Flex.js

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"docs": "npm run dist && npm run docs:build && npm run docs:deploy",
"examples": "webpack --devtool inline-source-map",
"start": "webpack-dev-server --devtool inline-source-map --progress --colors --inline --hot --content-base demo",
"test": "ava"
"test": "ava",
"prepublish": "npm run dist && npm run docs"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as Flex } from './Flex';
export { default as FlexItem } from './FlexItem';
export { default as FlexItem } from './FlexItem';
6 changes: 3 additions & 3 deletions webpack.dist.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const config = require('./webpack.config');

config.entry = './src/Flex.jsx';
config.entry = './src';
config.output = {
path: path.join(__dirname, './dist'),
filename: 'Flex.js',
library: 'Flex',
filename: 'index.js',
library: 'Re-Flex',
libraryTarget: 'commonjs2',
};
config.externals = {
Expand Down

0 comments on commit ed545c0

Please sign in to comment.