-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
[fix] Re-enable EX_CROSS_PLATFORM in load-examples.js [tiny ux] Use example index as a prefix in story name. [fix api] Implement preset-based solution based on storybookjs/storybook#4995 [api] Debug using `diagnostics` [refactor] Move reusable functionality from package/react/webpack.config.js to packages/react/{constants,resolve}.js
packages/react/package.json
Outdated
"test": "echo \"Error: no test specified\" && exit 1", | ||
"self": "node bin/start.js" | ||
"lint": "eslint-godaddy-react bin/*.js examples/*.js *.js ./.storybook/*.js --no-ignore", | ||
"test": "nyc mocha test/*.test.js", |
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.
These test files do not exist.
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.
"storybook": "start-storybook -c ./" | ||
}, | ||
"bin": { | ||
"start-exemplar": "bin/start-exemplar.js" |
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 file currently hard codes port 6006
, do we want to maintain that or allow the -p
flag the storybook typically expects?
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.
IMHO it should providing a sane default, but allow overriding
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.
Some suggestions, but nothing I'd block on.
@@ -4,8 +4,14 @@ | |||
"description": "Storybook rocket fuel to launch structured examples of React", | |||
"main": "index.js", | |||
"scripts": { | |||
"test": "echo \"Error: no test specified\" && exit 1", | |||
"self": "node bin/start.js" | |||
"lint": "eslint-godaddy-react bin/*.js examples/*.js *.js ./.storybook/*.js --no-ignore", |
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.
you could do that like so for (maybe) improved readability / future-proofing
"lint": "eslint-godaddy-react \"{bin,examples,.storybook}/**/*.js\" *.js --no-ignore",
similarly with the test script:
"test": "nyc mocha \"test/**/*.test.js\"",
"storybook": "start-storybook -c ./" | ||
}, | ||
"bin": { | ||
"start-exemplar": "bin/start-exemplar.js" |
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.
IMHO it should providing a sane default, but allow overriding
Requested changes have been made.
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.
Perhaps a bit more pending tests so we can fully verify functionality at a later point.
This is not blocking though 😄
}); | ||
|
||
it('build-storybook -c ./ should work correctly', assumeBuildStorybook('./')); | ||
it('build-storybook -c ./.storybook should work correctly', assumeBuildStorybook('./.storybook')); |
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 isn't very comprehensive but it's a good starting point.
Notable Changes
package/react/webpack.config.js
topackages/react/{constants,resolve}.js
README.md
Small additional changes
diagnostics