-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: config location is now flexible and paths relative from main.js #278
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice set of changes! 👏
Added a small change to prevent the on add from being ran for every file on the intial setup of the watcher. |
Added some unit tests for the loader file to validate a few things. The beginning of more testing to come in the future 🙂. |
Will merge this tomorrow and create a new alpha build |
…storybookjs#278) - you can now specify a config location and you can change the folder name storybookjs#278 - note that this folder should still contain all the same files - `—absolute` option will use absolute imports in the requires.js file - paths in general should work better with the watcher and get stories script - In main.js stories are relative from the config directory and no longer add "../", this should fix absolute paths and other bugs storybookjs#278 - `sbn-get-stories` and `sbn-watcher` are now `sb-rn-get-stories` and `sb-rn-watcher`
Issue: closes #275
What I did
I've changed the get stories and watcher commands so that you can now pass a config path which will be used to determine your .storybook folder location (you can call .storybook something else now).
I've also added prettier and commander to make the code a bit easier to work with.
How to test
Please explain how to test your changes and consider the following questions