Skip to content

Commit cdda231

Browse files
Shaun2D2msluther
authored andcommitted
Storybook (#37)
* added storybook support and sample stories * added stories, added webpack less settings into storybook. * created react hook component to demo add images, cleaned up some other stuff. * updated change log, version bump, removed webpack dev server, removed examples.
1 parent 0722e96 commit cdda231

File tree

7 files changed

+22088
-13967
lines changed

7 files changed

+22088
-13967
lines changed

.storybook/config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { configure } from '@storybook/react';
2+
3+
configure(require.context('../src', true, /\.stories\.js$/), module);

.storybook/webpack.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
module: {
5+
rules: [
6+
{
7+
test: /\.less$/,
8+
use: ['style-loader', 'css-loader', 'less-loader'],
9+
include: path.resolve(__dirname, '../'),
10+
},
11+
],
12+
},
13+
};

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.5.4 - Nov 2019
2+
3+
***(Enhancement)*** Replaced example application with Storybook
4+
15
# 1.5.3 - Nov 2019
26

37
***(Enhancement)*** Only call preventDefault in mousedown handler when the target is an img element

example.js

-146
This file was deleted.

0 commit comments

Comments
 (0)