Skip to content

britishgas-engineering/story2frontify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Story2frontify

This is currently alpha. Not every scenario has been looked into. If you find something, please raise an issue or PR.

About

Convert your stories inside storybook to frontify's pattern library.

Installation

This can be installed globally or local to your repo.

Inside project:

npm i --save story2frontify

Globally:

npm i -g story2frontify

Usage

Pass the arguments:

Examples:

 s2f --token xxxxxxxxxxxx --project xx --baseUrl https://PROJECT.frontify.com
 s2f --token xxxxxxxxxxxx --project xx --baseUrl https://PROJECT.frontify.com --localhost http://localhost:8080/iframe.html
 s2f --token xxxxxxxxxxxx --project xx --baseUrl https://PROJECT.frontify.com --input dist/demo/iframe.html
 export token='xxxxxxxxxxxxx'
 export project='xx'
 export baseUrl='https://PROJECT.frontify.com'
 s2f
 export token='xxxxxxxxxxxxx'
 export project='xx'
 export baseUrl='https://PROJECT.frontify.com'
 s2f --input dist/demo/iframe.html

issues

Each story needs to have a div wrapper around.

Currently to decide if your stories are an atom, molecules, organisms, page or template you need to have a a type attribute in the first (primary) story.

return ('<div type="atom"><button>Click me</button></div>');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published