-
Notifications
You must be signed in to change notification settings - Fork 113
Conversation
"npm run travis" gets much further locally than on travis itself. It kinda feels like somehow webpack is being run in a context on travis where the JS dialect doesn't support destructuring assignment. Hmmm... Will investigate further tomorrow. |
|
||
function loadStories() { | ||
require('../content-test/components/Spotlight.story'); | ||
require('../content-test/components/ContextMenu.story'); |
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.
Nit: odd mix of single and double quotes in this file, which will surely (hopefully) make ESLint cry.
} | ||
|
||
&.icon-showMore { | ||
background-image: url('img/glyph-show-more-16.svg'); | ||
background-image: url($image-path + 'glyph-show-more-16.svg'); |
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.
Nit: I think this should be "glyph-showmore-16.svg" (not hyphenated "show-more").
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.
Filed as #1057
content-src/styles/icons.scss, line 67 [r3] (raw file):
|
@@ -0,0 +1,11 @@ | |||
const {configure} = require('@kadira/storybook'); | |||
|
|||
require("../data/content/main.css"); |
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.
This might actually be better as a static directory (it would reduce the additional configuration needed in webpack) https://github.com/kadirahq/react-storybook/blob/master/docs/configure_storybook.md#static-directory
Looks great! Do you think when you're ready to land this you could squash some of your commits? We use the angular commit style with the github issue added in if necessary (for example I noticed the webpack build is throwing out weird messages and being really slow, I'm thinking it might be because react storybook is trying to process
|
Weirdly, their code appears to exclude node_modules: https://github.com/kadirahq/react-storybook/blob/0be9294e485e51fa7c5f7d1cc5570269227d4ffd/src/server/config/paths.js |
After merging your latest commit, these messages are gone, so I'm betting your guess was correct. Comments from Reviewable |
package.json, line 185 [r3] (raw file):
|
.storybook/config.js, line 3 [r3] (raw file):
|
.storybook/webpack.config.js, line 14 [r3] (raw file):
|
content-test/components/Spotlight.story.js, line 23 [r3] (raw file):
|
content-src/styles/icons.scss, line 67 [r3] (raw file):
|
OK, here's an updated patch. Highlights:
|
@dmose 🔥 🔥 🔥 🔥 🔥 Land it! |
I've removed the storybooks.io integration for the moment, in the interest of getting something landed, and because the current version of React storybook seems to have an odd install issue with it.
Presumably I'll need to squash this before landing, I've left the commits for reviewing, though, as they might be useful in understanding the motivation for given changes.
r? @k88hudson
This change is