30 Commits

Author SHA1 Message Date
Norbert de Langen
af1b0c11d2 Merge branch 'master' into eslint-strict
# Conflicts:
#	.eslintignore
#	.travis.yml
#	addons/actions/src/containers/ActionLogger/index.js
#	addons/centered/package.json
#	addons/graphql/package.json
#	addons/info/src/components/PropTable.js
#	addons/info/src/components/Props.js
#	addons/knobs/package.json
#	addons/knobs/src/components/Panel.js
#	addons/notes/package.json
#	addons/notes/src/index.js
#	addons/notes/src/register.js
#	addons/storyshots/package.json
#	addons/storyshots/src/index.js
#	app/react-native/package.json
#	app/react/package.json
#	examples/cra-storybook/package.json
#	examples/cra-storybook/src/stories/Welcome.js
#	examples/test-cra/src/stories/Button.js
#	examples/test-cra/src/stories/Welcome.js
#	lib/channel-postmessage/package.json
#	lib/channel-websocket/package.json
#	lib/cli/bin/generate.js
#	lib/cli/generators/METEOR/index.js
#	lib/cli/generators/REACT/index.js
#	lib/cli/generators/REACT/template/stories/index.js
#	lib/cli/generators/REACT_NATIVE/index.js
#	lib/cli/generators/REACT_SCRIPTS/index.js
#	lib/cli/generators/REACT_SCRIPTS/template/src/stories/Welcome.js
#	lib/cli/generators/WEBPACK_REACT/index.js
#	lib/cli/lib/helpers.js
#	lib/cli/package.json
#	package.json
2017-05-31 07:45:04 +02:00
Norbert de Langen
bd016f236a ADD docs scripts 2017-05-26 14:02:54 +02:00
Norbert de Langen
2bcaae9d81 FIX linting 2017-05-18 09:14:29 +02:00
Norbert de Langen
51ad5d5e8d Single source of truth for LICENCE for all packages 2017-05-16 08:16:22 +02:00
Darek Rossman
2ac8cf3077 Do not ignore story.js in prepublish
This is causing an issue with addons-info as it ends up ignoring `Story.js` during compilation. Seems there are case-similar files in other addon packages called `story.js` that were supposed to be ignored from output... However, this seems like the quickest fix that doesn't really have an impact on other packages.
2017-04-28 08:58:01 -04:00
Norbert de Langen
3f86f6cc59 FIX republish script so it exits with !0 if babel fails 2017-04-27 23:59:23 +02:00
Norbert de Langen
7ccb773e72 FIX an issue where a test in a package was using async-await
but was not transpiring them correctly.

MOVE jest cache directory to subdirectory `.cache`
2017-04-27 22:33:36 +02:00
Norbert de Langen
e50dbd1cdf FIX webpack overriding && CLEANUP && ADD example
for testing a non-linked example based on create-react-app
2017-04-27 21:08:13 +02:00
UsulPro
4845e21a73 Update --ignore flag in prepublish script
stories -> stories/ to ignore only folders
added test.js
2017-04-24 19:04:42 +07:00
UsulPro
df4117fb7b Add --copy-files flag 2017-04-24 17:33:46 +07:00
UsulPro
2965d6d78b Switch to the only prepublish.js script
use ./scripts/prepublish.js as a prepublish script for all packages
2017-04-24 17:33:46 +07:00
Norbert de Langen
33ba266ece ADD travis 2017-03-30 00:00:55 +02:00
Norbert de Langen
ac9948dc48 ADD & MOVE react-storybook 2017-03-29 18:08:26 +02:00
Muhammed Thanish
add2e2ae2d Serve the storybook favicon 2016-09-21 15:59:31 +05:30
Arunoda Susiripala
bb426b899d Update defaults to match create-react-app (#342)
* Match default setup same as create-react-app.

* Stop pre-building the manager
This allow us to customize the manager dynamically.

* Update manager for the production build.

* Remove building source-maps.

* Fix lint issues.

* Improve static file handling.

* Update dev docs.

* Use dist directory for the manager's source.

* Add support for stage-0.

* Replace raw loader with the css loader in production CSS handling.

* Remove specific babel plugins since we support stage-0.
2016-08-01 15:30:21 +05:30
Muhammed Thanish
8f91067549 Fix prepublish script 2016-07-18 14:03:59 +05:30
Aruna Herath
8e0458961a Wrote prepublish in javascript
This allows storybook to be built in windows too.
2016-07-13 17:18:27 +05:30
TigerC10
d21dad1252 Switching to stage-0 support 2016-06-03 12:23:24 -05:00
Arunoda Susiripala
49335e7ec3 Update scripts to make them compatible with linux. 2016-05-11 04:16:29 +05:30
Arunoda Susiripala
279ede38fa Optimize production build compute time.
We simply avoid building the manager code in the production build
Uglifying, already uglified code takes a lot of time.
We we avoid that by simply copying the manager code comes with
React Storybook to the build output directly bypassing webpack.
2016-05-06 17:14:05 +05:30
Arunoda Susiripala
738d65dfd4 Optimize the final build. 2016-05-05 14:44:48 +05:30
Arunoda Susiripala
052ad95817 Implement Mantra Architecture (#165)
* Add preview container in preview module.

* Update comments.

* Implement preview module.

* Add component tests.

* Add tests for actions.

* Add container tests.

* Write tests for reducers.

* Fix lint issues.

* Add tests for init_pagebus

* Add base ui model with the layout.

* Fix the reducer.

* Add select story pageBus event.

* Update some test cases/

* Implement basic communication with the preview iframe.

* Move actions to a common place.

* Clean mantra reducers.

* Integrated initial leftPanel.

* Implement story filter

* Add initial ActionLogger.

* Add actions grouping.

* Fix lint issues.

* Implement initial routing.
This version lacks, back button support.

* Handle back button properly with routing.

* Add keyboard shortcut support.

* Add responsive tags.

* Move all the admin dependencies to the dev env.
So, end user doesn't need to download the stuff
we use inside the manager.

* Optimize dev build with enabling webpack
when developing the manager.

* Update CONTRIBUTING.md to support the new build environment.

* Add proper support for production build.

* Introduce the api module.

* Add initial docs.

* Add keyboard shortcut help dialog.

* Fix lint issues.

* Fix some missing tests.

* Add tests for actions.

* Write tests for action logger.

* Add tests for layout

* Add tests for left_panel.header.

* Add tests for left_panel.text_filter

* Add tests for left_panel.stories

* Complete tests for the left panel component.

* Simplyfy the container code by implementing the reduxComposer.

* Add container tests.

* Add ui reducer tests.

* Add tests for handle key events

* Add tests to handle_routing.

* Add filters tests

* Add tests for reduxComposer

* Add tests for reduxComposer

* Use a unique Id for the action.id.
We need to support unique id for the action id since now
it's possible to reload the preview iframe.
So, if we use a number from 0, there's a chance for
duplicate ids.

* Update docs.

* Update docs.

* Add manager.js

* Move redux and keycode to dependencies.
2016-05-05 14:26:52 +05:30
Arunoda Susiripala
4d7479c314 Add enzyme's mount API for testing.
So, we don't need to use classNames
2016-04-18 12:33:27 +05:30
Muhammed Thanish
e71647c4c5 Remove ./dist before running babel 2016-04-12 09:47:14 +05:30
Arunoda Susiripala
d4b1c35e15 Add development utility with 'npm run dev' 2016-04-04 13:28:12 +05:30
Arunoda Susiripala
b39cada5d8 Add a script to publish to NPM 2016-03-28 10:29:00 +05:30
Arunoda Susiripala
5017a02769 Add test cases for storybook 2016-03-26 03:59:42 +05:30
Arunoda Susiripala
ffd8fcd935 Refactor base UI 2016-03-21 14:16:00 +05:30
Arunoda Susiripala
4f68099f8b Ignore dist form babel 2016-03-18 15:05:17 +05:30
Arunoda Susiripala
9a5aabf0ca Transpile to ES2015 before publishing to NPM 2016-03-18 13:25:31 +05:30