Code Monkey home page Code Monkey logo

gatsby-storybook-jest-starter's People

Contributors

elie222 avatar m-allanson avatar mathspy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gatsby-storybook-jest-starter's Issues

storybook-router

looks like a great starter. i found you from this tweet. i'll definitely dive deeper when i start my next gatsby site.

one thing i've found useful in my storybook instances, including those i've done for gatsby, is storybook-router. it lets you define links between stories that work with react-router's link and therefore (at least until today) gatsby-link. i thought it could be a useful addition to your starter to further highlight the value of a storybook instance.

i've already opened an issue about @reach/router support. since react-router and vue-router are both already supported, i imagine there is a good chance that we will see this get added as well.

Storybook v5 upgrade

Your starter is really useful, but my concern is: how to use Storybook v5 with gatsby +scss + css modules

actually i was unable to make it possible

do you have any plan to upgrade from v3 to v5?

Use Project .babelrc From Storybook

It looks like Storybook isn't using the .babelrc defined in the project root. I think you are defining a different set of babel plugins inside storybook/webpack.config.

Wouldn't it make more sense to parse babelrc and use the plugins defined there?

My usecase is that I'm using styled-components and babel-plugin-styled-components which automatically generates a display name for components based on either the variable or file name. I have this defined in the project's .babelrc, however this isn't being used for components within storybook, meaning if I want to display their source within storybook it looks like: <styled.div> instead of <VLayout>.

Idea: Add Visual Regression Tests

Firstly, thanks for this. Hopefully Gatsby will fully embrace storybook and make the integration significantly easier, but in the mean time this is really helpful.

Thought you might consider adding visual regression testing via: jest-image-snapshot

__PATH_PREFIX__

Thanks for posting this starter. When running storybook http://localhost:6006/ I get error for header and layout.stories.js and header.stories.js

I'm getting error :

__PATH_PREFIX__ is not defined
            ReferenceError: __PATH_PREFIX__ is not defined

Any idea why this might be happening ?

repository has misspelling

gatsby-storybook-jest-stater should be gatsby-storybook-jest-starter

the r in starter is missing ๐Ÿ˜„

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.