Skip to content

Fix local testing workflow - #3876

Merged
gaearon merged 1 commit into
react:nextfrom
gaearon:fix-local
Jan 20, 2018
Merged

gaearon merged 1 commit into
react:nextfrom
gaearon:fix-local

Conversation

@gaearon

@gaearon gaearon commented Jan 20, 2018

Copy link
Copy Markdown
Contributor

This fixes yarn create-react-app ../myproj. It used to fail because we only replaced names with file URLs for react-script deps. Not it does that for all packages.

Happy to change this to work via npm link later but for now I just wanted to fix the existing approach.

I also made it fail on non-clean repo state, and reset its edits to package.json files on exit.

Comment thread tasks/cra.js
console.log();
console.log('-------------------------------------------------------');
console.log('Assuming you have already run `yarn` to update the deps.');
console.log('If not, remember to do this before testing!');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Bootstrapping was way too slow and annoying for local testing. Removed it here.

@gaearon
gaearon merged commit ab2e0f8 into react:next Jan 20, 2018
akstuhl pushed a commit to akstuhl/create-react-app that referenced this pull request Mar 15, 2018
@lock lock Bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants