@fws/cli
Version:
This CLI is work in progress and it's meant to work together with other Forwardslash boilerplates. Please do not use it if you don't have access to other stuff.
33 lines (27 loc) • 728 B
Plain Text
import <%= componentName %> from '<%= componentSrc %>';
import StoryWrapper from './config/StoryWrapper';
export default {
title: '<%= componentPrettyNamePrefix %><%= componentPrettyName %>'
};
// Default State
export const Story<%= componentName %> = () => ({
components: {
StoryWrapper,
<%= componentName %>
},
data: function() {
return {
title: '<%= componentPrettyName %>',
data: {
}
};
},
template: `
<StoryWrapper :title="title" :container="<%= componentWrapFluid %>">
<<%= componentName %> :data="data"/>
</StoryWrapper>
`
});
Story<%= componentName %>.story = {
name: 'Default State'
};