25 Commits

Author SHA1 Message Date
Arunoda Susiripala
b33f6bb4ed Update eslint rules to the latest and fix some lint issues. 2016-09-21 13:50:09 +05:30
Arunoda Susiripala
efaab861f4 Update dist. 2016-09-19 22:27:55 +05:30
Arunoda Susiripala
18ac324a90 Add @kadira/storybook-addons into resolve.alias. (#462)
Then addons will work on NPM2 properly.
2016-09-19 12:29:23 +05:30
Arunoda Susiripala
460b3a5095 Update dist. 2016-09-08 01:10:16 +05:30
Arunoda Susiripala
531e6eb705 chore(package): update dependencies (#421)
https://greenkeeper.io/
2016-09-04 12:53:00 +05:30
Arunoda Susiripala
97d96b3195 Use JSON5 instead of CJSON to parse .babelrc. (#398)
* Use JSON5 instead of CJSON to parse .babelrc.

* Remove cjson from package.json
2016-08-23 16:23:10 +05:30
Arunoda Susiripala
0be9294e48 Add NPM2 support. (#356)
* Add NPM2 support.
With the use alot of require.resolve and
defining the missing redux dependency.

* Fix lint issues.

* Update storybook-ui which is optimized for NPM2
2016-08-05 13:47:42 +05:30
Arunoda Susiripala
7bda9413f8 Remove default webpack config for all config types. (#348)
Now we only use the Create React App based config
if there's no custom webpack config.
This will fix issues like #347.
2016-08-03 06:57:04 +05:30
Muhammed Thanish
19da88846b [WIP] Use the new addons API (#346)
* Update Storybook UI

* Setup channel for preview

* Load addons from user or load default addons

* Allow easy importing default set of addons

For an example addons.js:

```js
import '@kadira/storybook/addons';
import '@kadira/storybook-addon-hello/register';

```

* Export correct action, linkTo functions

* Rename pageBus to channel

* Fix tests and lint errors

* Update some comments.
2016-08-02 18:07:14 +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
TigerC10
d21dad1252 Switching to stage-0 support 2016-06-03 12:23:24 -05:00
Arunoda Susiripala
4da4402c76 Merge with master. 2016-05-11 04:02:33 +05:30
Stefan Huynh
a365743bdb Fix babel extends issue by replacing with absolute paths 2016-05-10 11:42:18 -07:00
witnessmenow
3fd60c4d33 Fix for #183 - issue with removing a preset from users babelrc 2016-05-10 14:14:06 +01:00
Arunoda Susiripala
b85d187bff Remove NODE_ENV=production flag.
Also added some checks for react-hmre existance and removed it.
It doesn't work well with React Storybook and we don't need it.
2016-05-10 11:42:30 +05:30
Stefan Huynh
1053fe2357 Fix loader concatentation bug (#173) 2016-05-09 09:58:00 +05:30
Muhammed Thanish
530b7e464f Add configType argument to custom config function (#169) 2016-05-06 14:28:10 +05:30
Tim Kindberg
23283395f8 Allow full control over webpack config. (#160)
If a function is returned from the '.storybook/webpack.config.js' then it will kick in 'full-control mode'. The function accepts the baseConfig from storybook and the dev can modify it with full control. This is necessary for more custom webpack configurations.
2016-05-05 14:32:01 +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
Seth Kinast
75fbf6395b Search for a .babelrc in the storybook config directory first, then the project root (#149)
Closes #138, #139
2016-04-27 05:12:00 +05:30
Stewart Duffy
f3e1a16fe5 Adds support for preLoaders in custom webpack config (#107)
* Adds support for preLoaders in custom webpack config

* Changes the way it loads custom webpacck config to more generic way. Support for postLoaders
2016-04-14 05:23:53 +05:30
Louis Acresti
85201ba117 use cjson for .babelrc parsing 2016-04-11 15:24:49 -07:00
Muhammed Thanish
0760f47b50 Create a static storybook builder (#88)
* Build static html storybooks

* Add NODE_ENV env variable

* Add a message when building the storybook.
2016-04-11 21:27:38 +05:30
Arunoda Susiripala
f538e72b4d Render admin page 2016-03-23 18:45:52 +05:30
Arunoda Susiripala
832911c3d1 Add support for custom webpack loaders and plugins.
This help us to support, nearly any CSS loading system
2016-03-23 16:24:37 +05:30