-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
3.0.0 migration assistance : codemod, update installation and usage instructions #1093
Conversation
@aaronmcadam Can you add instructions for how to apply this to a whole project from start to finish?
|
You need to be careful to ignore your Can you try We also need to check whether we have to tell users to clone the repo, like react-codemod, or like the docs say, install the package and register it with |
@aaronmcadam Do you think you can demo this? We could create a video like so:
I need help with step 4. |
@aaronmcadam how hard would it be to add this to you run it in your project:
|
I have big plans for the cli, and that would be one of them @shilman I actually want to build something like this (eventually): storybook start # starts and opens storybook storybook start --public # starts and create a temp public url to share storybook build # builds to static site storybook deploy # builds to static site & deploy to heroku storybook help <searchterm> # search our documentation storybook migrate # run codemods to latest version |
@aaronmcadam it's not working for me. here's my steps:
I'm getting errors that look like this:
And the resulting files look something like this (note this is from a different app, but the pattern is the same): import { configure } from undefined;
import undefined
const req = require.context('../src', true, /.story.js$/);
function loadStories() {
req.keys().forEach(filename => req(filename));
}
configure(loadStories, module); |
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.
Need help! See my comment above 😄
Codecov Report
@@ Coverage Diff @@
## master #1093 +/- ##
==========================================
- Coverage 12.86% 12.84% -0.03%
==========================================
Files 198 198
Lines 4501 4540 +39
Branches 715 718 +3
==========================================
+ Hits 579 583 +4
- Misses 3289 3322 +33
- Partials 633 635 +2
Continue to review full report at Codecov.
|
Hey @shilman judging from that output, it looks like the |
5bea2d9
to
d0ea916
Compare
Here's the implementation of the codemod: Give it a test |
@ndelangen I am still having problems running this on my project. Can you please test it on a from-scratch project that is not part of the monorepo and tell me if it works for you. Here are my repro steps, updated per your instructions:
|
bfce2cb
to
c6bddac
Compare
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.
GREAT!!!
I noticed that the codemod script name is wrong.
TODO