modulor-storybook's People
modulor-storybook's Issues
print local ip address when run storybook server
Semver?
Now we are adopting semver
in modulor-html
; shall we follow same for storybook as well?
Refactor storybook components using modulor-html
adapt storybook for mobile
Change routing
Change routing of manager and preview apps, pass all parameter via query string
format:
?story=<story>&story_kind=<storykind>[&plugin=<plugin>][&...]
App chrashes when no stories defined
error:
Uncaught TypeError: Cannot read property 'storyName' of undefined
branding and mobile storybook
Todo:
- Add Branding to storybook
- Branding related Components
- Configure branding and favicon from config
- Mobile Storybook
- Conditional Split.js render
- Mobile attribute support for the
sandbox-application
component - Switch to Mobile UI on resize
- Allow panes to be collapsible on Mobile (maybe Desktop as well)
create readme
create proper readme of how to install, write stories, plugins, etc
upgrade webpack to v4
Define loaders for project internal files + add webcomponents polyfill
Add babel and other loaders only for internal files
Can we adopt Malvid?
enhanced stories grouping
api proposal:
storiesOf('Stories group')
.add(
//grouping stories
storiesOf('Main story')
.add(...story1...)
.add(...story1...)
)
//old way to keep consistency
.add(...story...)
Add hot module replacement support
Better output of webpack build
Implement short and meaningful output of webpack build process
Improve installation
Create .storybook directory with needed files on installation
support story as HTML Node
example:
import { storiesOf } from 'modulor-storybook';
const $el = document.createElement('my-component');
storiesOf('My component')
.add('default', () => $el);
This is needed to render react, vue, etc components and templates rendered by hyperhtml, bel, yoyo, etc
Implement build-storybook script
Implement script which builds static storybook that can be hosted on github pages or any other place
Handle file changes and new files
Application should handle following cases:
- new story was created,
- webpack config was changed
- server config was changed
Can probably be solved with nodemon
storybook jumps into the node_modules to include other stories
I have two components and and one of them is devDependency for another named inspector-component
and dates
respectively and both of them have some stories.
When I run stories in dates
, storybook grabs stories from inspector-component
as well.
dates
has following config:
module.exports = {
storiesMask: '**/stories/*'
}
Event Data along with the Events
It will be great to show the eventData
along with the event being fired, this will reduce the need to open the debugger.
extract tree as separate component
extract tree as separate component, use it in stories tree + story to make it a demo component
http requests mock plugin
api proposal:
storiesOf('Foo')
//as decorator
.addDecorator(withMock({
...mocks map (see below)...
}))
//in story
.add('some story', withMock({
"foo/bar": (url, params) => {},
"foo/baz*": { bla: baz },
"foo/baz*": [{
mock: () => {},
times: 1,
delay: 2000
}, {
mock: () => {}
}],
})
example mock lib:
http://www.wheresrhys.co.uk/fetch-mock
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.