Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

🎉🚀👻 OH YEAH ... it's web time! #4

Merged
merged 7 commits into from
Jan 29, 2019
Merged

Conversation

indexzero
Copy link
Contributor

@indexzero indexzero commented Jan 29, 2019

Notable Changes

Small additional changes

  • s/add-all-examples.js/load-examples.js/
  • Re-enable EX_CROSS_PLATFORM in load-examples.js
  • Use example index as a prefix in story name.
  • Debug using diagnostics

[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
"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",
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screen shot 2019-01-29 at 1 05 58 pm

"You're not thinking fourth dimensionally Marty Sivan! The bridge test files WILL EXIST in 1985 when that check box is checked!"

  • Doc Brown Robbins

"storybook": "start-storybook -c ./"
},
"bin": {
"start-exemplar": "bin/start-exemplar.js"
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor

@msluther msluther left a 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",
Copy link
Contributor

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"
Copy link
Contributor

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

@indexzero indexzero dismissed SivanMehta’s stale review January 29, 2019 19:33

Requested changes have been made.

Copy link
Contributor

@SivanMehta SivanMehta left a 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'));
Copy link
Contributor

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.

@indexzero indexzero merged commit 4605127 into button Jan 29, 2019
@indexzero indexzero deleted the final-countdown branch January 29, 2019 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants