GithubHelp home page GithubHelp logo

danieldpence / storybook_rails Goto Github PK

View Code? Open in Web Editor NEW
49.0 49.0 3.0 143 KB

Native Rails partial previews and testing in Storybook.

License: MIT License

Ruby 96.96% HTML 1.83% Shell 0.18% JavaScript 0.05% CSS 0.97%

storybook_rails's People

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  avatar  avatar  avatar  avatar

Watchers

 avatar

storybook_rails's Issues

Don't know how to build task 'storybook_rails:write_stories_json'

When I run the rake task in the README I get

rake aborted!
Don't know how to build task 'storybook_rails:write_stories_json' (See the list of available tasks with `rake --tasks`)
/Users/ryanstuhl/Git/ryan_sandbox/.bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/Users/ryanstuhl/.rbenv/versions/2.7.2/bin/bundle:23:in `load'
/Users/ryanstuhl/.rbenv/versions/2.7.2/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)

If I let the NPM script run it for me, I get a similar error:

yarn run storybook:start                                                                                                                                                                                          1 ↵ ryanstuhl@Ryans-MacBook-Pro
yarn run v1.22.10
$ yarn storybook:clean && yarn storybook:write-json && start-storybook -p 8081
$ find ./test/components/stories -name '*.stories.json' -delete && rm -rf node_modules/.cache/storybook
$ bundle exec rake storybook_rails:write_stories_json
rake aborted!
Don't know how to build task 'storybook_rails:write_stories_json' (See the list of available tasks with `rake --tasks`)
/Users/ryanstuhl/Git/ryan_sandbox/.bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/Users/ryanstuhl/.rbenv/versions/2.7.2/bin/bundle:23:in `load'
/Users/ryanstuhl/.rbenv/versions/2.7.2/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Do I need to create this file in my app? If so what goes in it?

Incorrect yarn command

The README states to run

yarn storybook-start

I found that this returned

yarn run storybook-start
> yarn run v1.22.10
> error Command "storybook-start" not found. Did you mean "storybook:start"?

Running the following seems to do the trick

yarn run storybook:start

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.