danieldpence / storybook_rails Goto Github PK
View Code? Open in Web Editor NEWNative Rails partial previews and testing in Storybook.
License: MIT License
Native Rails partial previews and testing in Storybook.
License: MIT License
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?
We need to document here the various controls that this gem supports: https://github.com/danieldpence/storybook_rails/tree/main/lib/action_view/storybook/controls
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.