Skip to content

Commit

Permalink
Merge branch 'master' into component-with-ref-example
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed May 22, 2017
2 parents 0644b21 + 5780921 commit abac423
Show file tree
Hide file tree
Showing 16 changed files with 42 additions and 38 deletions.
4 changes: 2 additions & 2 deletions addons/actions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-actions",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.4",
"description": "Action Logger addon for storybook",
"main": "dist/index.js",
"scripts": {
Expand All @@ -22,7 +22,7 @@
"homepage": "https://github.com/storybooks/storybook/tree/master/packages/addon-actions",
"devDependencies": {
"@storybook/addons": "^3.0.0-alpha.0",
"@storybook/react": "^3.0.0-alpha.1",
"@storybook/react": "^3.0.0-alpha.4",
"@storybook/ui": "^3.0.0-alpha.0",
"react": "^15.5.4",
"react-dom": "^15.5.4",
Expand Down
4 changes: 2 additions & 2 deletions addons/comments/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-comments",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.4",
"description": "Comments addon for Storybook",
"keywords": [
"storybook"
Expand Down Expand Up @@ -37,7 +37,7 @@
"@kadira/storybook-database-cloud": "*",
"@kadira/storybook-deployer": "*",
"@storybook/addons": "^3.0.0-alpha.0",
"@storybook/react": "^3.0.0-alpha.1",
"@storybook/react": "^3.0.0-alpha.4",
"@storybook/ui": "^3.0.0-alpha.0",
"git-url-parse": "^6.2.2",
"react": "^15.5.4",
Expand Down
4 changes: 2 additions & 2 deletions addons/graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-graphql",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.4",
"description": "Storybook addon to display the GraphiQL IDE",
"main": "dist/index.js",
"scripts": {
Expand All @@ -21,7 +21,7 @@
},
"homepage": "https://github.com/storybooks/storybook/tree/master/packages/addon-graphql",
"devDependencies": {
"@storybook/react": "^3.0.0-alpha.1",
"@storybook/react": "^3.0.0-alpha.4",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"shelljs": "^0.7.7"
Expand Down
4 changes: 2 additions & 2 deletions addons/info/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-info",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.4",
"description": "A Storybook addon to show additional information for your stories.",
"repository": {
"type": "git",
Expand All @@ -13,7 +13,7 @@
"publish-storybook": "bash .scripts/publish_storybook.sh"
},
"devDependencies": {
"@storybook/react": "^3.0.0-alpha.1",
"@storybook/react": "^3.0.0-alpha.4",
"git-url-parse": "^6.2.2",
"react": "^15.5.4",
"react-dom": "^15.5.4",
Expand Down
2 changes: 1 addition & 1 deletion addons/knobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ You can see your Knobs in a Storybook panel as shown below.
* Introduction blog post.
* Watch this video on how to use knobs
* [Live Storybook with Knobs](https://goo.gl/uX9WLf)
* Have a look at this [sample Storybook repo](https://github.com/storybook-samples/storybook-knobs-example).
* Have a look at this [sample Storybook repo](https://github.com/kadira-samples/storybook-knobs-example).

## Available Knobs

Expand Down
4 changes: 2 additions & 2 deletions addons/knobs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-knobs",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.4",
"description": "Storybook Addon Prop Editor Component",
"repository": {
"type": "git",
Expand All @@ -14,7 +14,7 @@
"publish-storybook": "bash .scripts/publish_storybook.sh"
},
"devDependencies": {
"@storybook/react": "^3.0.0-alpha.1",
"@storybook/react": "^3.0.0-alpha.4",
"@types/node": "^7.0.12",
"@types/react": "^15.0.21",
"git-url-parse": "^6.2.2",
Expand Down
4 changes: 2 additions & 2 deletions addons/links/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-links",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.4",
"description": "Story Links addon for storybook",
"main": "dist/index.js",
"scripts": {
Expand All @@ -22,7 +22,7 @@
"homepage": "https://github.com/kadirahq/storybook-addon-links#readme",
"devDependencies": {
"@storybook/addons": "^3.0.0-alpha.0",
"@storybook/react": "^3.0.0-alpha.1",
"@storybook/react": "^3.0.0-alpha.4",
"@storybook/ui": "^3.0.0-alpha.0",
"react": "^15.5.4",
"react-dom": "^15.5.4",
Expand Down
4 changes: 2 additions & 2 deletions addons/notes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-notes",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.4",
"description": "Write notes for your Storybook stories.",
"repository": {
"type": "git",
Expand All @@ -13,7 +13,7 @@
"publish-storybook": "bash .scripts/publish_storybook.sh"
},
"devDependencies": {
"@storybook/react": "^3.0.0-alpha.1",
"@storybook/react": "^3.0.0-alpha.4",
"git-url-parse": "^6.2.2",
"react": "^15.5.4",
"react-addons-test-utils": "^15.5.1",
Expand Down
4 changes: 2 additions & 2 deletions addons/options/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-options",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.4",
"description": "Options addon for storybook",
"main": "preview.js",
"scripts": {
Expand All @@ -21,7 +21,7 @@
"homepage": "https://github.com/storybooks/storybook/tree/master/packages/addon-options",
"devDependencies": {
"@storybook/addons": "^3.0.0-alpha.0",
"@storybook/react": "^3.0.0-alpha.1",
"@storybook/react": "^3.0.0-alpha.4",
"@storybook/ui": "^3.0.0-alpha.0",
"react": "^15.5.4",
"react-dom": "^15.5.4",
Expand Down
2 changes: 1 addition & 1 deletion addons/storyshots/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-storyshots",
"version": "3.0.0-alpha.2",
"version": "3.0.0-alpha.4",
"description": "StoryShots is a Jest Snapshot Testing Addon for Storybook.",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions app/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/react-native",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.4",
"description": "A better way to develop React Native Components for your app",
"main": "dist/index.js",
"bin": {
Expand Down Expand Up @@ -34,8 +34,8 @@
"react-native": "^0.43.3"
},
"dependencies": {
"@storybook/addon-actions": "^3.0.0-alpha.1",
"@storybook/addon-links": "^3.0.0-alpha.1",
"@storybook/addon-actions": "^3.0.0-alpha.4",
"@storybook/addon-links": "^3.0.0-alpha.4",
"@storybook/addons": "^3.0.0-alpha.0",
"@storybook/channel-websocket": "^3.0.0-alpha.0",
"@storybook/ui": "^3.0.0-alpha.0",
Expand Down
26 changes: 15 additions & 11 deletions app/react-native/src/server/config/defaults/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,26 @@ import { includePaths } from '../utils';

// Add a default custom config which is similar to what React Create App does.
module.exports = storybookBaseConfig => {
const newConfig = storybookBaseConfig;
const newConfig = { ...storybookBaseConfig };

newConfig.module.loaders = [
...newConfig.module.loaders,
{
test: /\.css?$/,
include: includePaths,
loaders: [
use: [
require.resolve('style-loader'),
require.resolve('css-loader'),
require.resolve('postcss-loader'),
{
loader: require.resolve('postcss-loader'),
options: {
plugins: () => [
autoprefixer({
browsers: ['>1%', 'last 4 versions', 'Firefox ESR', 'not ie < 9'],
}),
],
},
},
],
},
{
Expand All @@ -39,16 +49,10 @@ module.exports = storybookBaseConfig => {
},
];

newConfig.postcss = () => [
autoprefixer({
browsers: ['>1%', 'last 4 versions', 'Firefox ESR', 'not ie < 9'],
}),
];

newConfig.resolve = {
// These are the reasonable defaults supported by the Node ecosystem.
extensions: ['.js', '.json', ''],
...newConfig.resolve,
alias: {
...((newConfig.resolve && newConfig.resolve.alias) || {}),
// This is to support NPM2
'babel-runtime/regenerator': require.resolve('babel-runtime/regenerator'),
},
Expand Down
6 changes: 3 additions & 3 deletions app/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/react",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.4",
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
"license": "MIT",
"main": "dist/client/index.js",
Expand All @@ -19,8 +19,8 @@
"prepublish": "node ../../scripts/prepublish.js"
},
"dependencies": {
"@storybook/addon-actions": "^3.0.0-alpha.1",
"@storybook/addon-links": "^3.0.0-alpha.1",
"@storybook/addon-actions": "^3.0.0-alpha.4",
"@storybook/addon-links": "^3.0.0-alpha.4",
"@storybook/addons": "^3.0.0-alpha.0",
"@storybook/channel-postmessage": "^3.0.0-alpha.0",
"@storybook/ui": "^3.0.0-alpha.0",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "2.0.0-rc.3",
"version": "3.0.0-alpha.2",
"version": "3.0.0-alpha.4",
"commands": {
"bootstrap": {
"ignore": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// you can use this file to add your custom webpack plugins, loaders and anything you like.
// This is just the basic way to add addional webpack configurations.
// This is just the basic way to add additional webpack configurations.
// For more information refer the docs: https://storybooks.js.org/docs/react-storybook/configurations/custom-webpack-config

// IMPORTANT
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/cli",
"version": "3.0.0-alpha.2",
"version": "3.0.0-alpha.4",
"description": "Easiest way to add Storybook support to your project.",
"bin": {
"getstorybook": "./bin/generate.js"
Expand Down

0 comments on commit abac423

Please sign in to comment.