Skip to content
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

Switch to monorepo #749

Merged
merged 1,649 commits into from
Apr 14, 2017
Merged

Switch to monorepo #749

merged 1,649 commits into from
Apr 14, 2017

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Apr 5, 2017

Issue: #742

What I did

Moved all the source for this package into a /packages/react-storybook
Merged in the monorepo master
Resolved mergeconflicts

How to test

install dependencies - this should bootstrap lerna.
run npm run test in the root

arunoda and others added 30 commits December 24, 2016 04:27
Fix wrong npm package path
Provide storybook context to render
Add support for matching a story against a regex to run a story
Updated README to include sortStoriesByKind option
Provide mock Storybook Channel to Storybook Addons for compatibility with Storybook Addon Knobs
addons might init expecting the channel to exist.
@shilman
Copy link
Member

shilman commented Apr 13, 2017

@ndelangen Here are some notes from running it on a local project. TLDR; worked for me after a few minor bumps. Looks good!

  1. When I initially installed using npm install, I saw this warning:

Lerna v2.0.0-rc.1
Encountered a cycle in the dependency graph. This may cause instability!
I don't think this is a serious issue, but I wanted to raise it in case you hadn't seen it.

  1. Got the error Error: Couldn't find preset "stage-0" relative to directory ... when I tried to replace the version of storybooks I had with the current PR. Solved by adding babel-preset-stage-0.

  2. Broke some of my private addons, but when I commented those out, everything worked fine. I'll upgrade the addons once this version has been released!

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

Looks good! See my comments above, and also I agree with @tmeasday about merging early.

@ndelangen
Copy link
Member Author

ndelangen commented Apr 13, 2017

Encountered a cycle in the dependency graph. This may cause instability!

This message is a known issue: https://github.com/storybooks/mono/issues/19

@ndelangen ndelangen changed the title WIP: Switch to monorepo Switch to monorepo Apr 13, 2017
.eslintrc Outdated
"printWidth": 100,
"tabWidth": 2,
"bracketSpacing": true,
# "trailingComma": "es5",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to decide on this comma rule? I vote for all as a value

Copy link
Member Author

Choose a reason for hiding this comment

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

done

.eslintrc Outdated
}],
"quotes": ["warn", "single"],
"arrow-parens": ["warn", "as-needed"]
# "comma-dangle": ["warn", "always"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to remove this line?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

# Conflicts:
#	packages/react-storybook/src/server/config/defaults/webpack.config.js
#	packages/react-storybook/src/server/middleware.js
Copy link
Member

@usulpro usulpro left a comment

Choose a reason for hiding this comment

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

+1 for mergin

@ndelangen ndelangen merged commit 69a3b94 into master Apr 14, 2017
@ndelangen ndelangen deleted the switch-to-monorepo branch April 28, 2017 16:04
@shilman shilman added the misc label May 27, 2017
@ndelangen ndelangen added the maintenance User-facing maintenance tasks label Sep 15, 2017
Copy link

nx-cloud bot commented Nov 27, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 2df4be7. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.