-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat: Add support for multiple configurations in package.json #701
Conversation
Thanks so much for this @rogerfitz! I'm reviewing now and will leave comments as I go. I believe you should be able to safely exclude the |
@@ -3570,7 +3570,7 @@ command-join@^2.0.0: | |||
dependencies: | |||
"@improved/node" "^1.0.0" | |||
|
|||
command-line-args@^5.0.0: | |||
command-line-args@^5.0.0, command-line-args@^5.1.1: |
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.
If you end up changing the package.json
based on my comment above, re-run yarn
to regenerate this file.
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.
I think I did this right but not 100% sure. Quite a large diff but that could be expected from full regenerate? I copied yarn.lock from idyll master and then ran yarn install
@@ -1,330 +1,397 @@ | |||
const fs = require('fs'); |
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.
Big diff for this file - is this a full re-write or just Git being annoying? If you can point to the parts that changed it will be helpful
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.
Is the change to searchParentDirectories
the only existing functionality that changed?
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.
Yes that and then the new functionality. Will clean up based on your other comment about that one liner
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.
Just pushed a merged version of this. I think Git was just being funny, I handled the merge by copying idyll master's index.js over and making the edits by copying lines from my fork into that so I didn't miss anything. Should be relatively straightforward to see the line changes but the diff is ugly
packages/idyll-cli/test/env-options/outer-project/node_modules/d3/.gitattributes
Outdated
Show resolved
Hide resolved
There was a small change to |
All those comments should be resolved. Let me know if there's anything else that needs changing. Anything else you think would be a good issue for me to look at? A while ago I thought I saw something about adding a leaflet component that looked interesting (I'm starting to work with leaflet on some other projects right now) but I could be mistaken. Happy to look deeper into that husky error or windows development issues I had too if that sounds good to you |
Nice, thanks @rogerfitz! I'll review the new changes and get this merged shortly. Some type of Another issue that would be helpful is #694. This one should be a relatively quick fix - it seems like there's an issues with the latest node, I believe related to the specific version of For the husky errors fixes are also welcome. It would also be good to just open an issue on them for visibility if others are running into the same problem |
Thanks sounds good. I'll take a stab at #694 first and open a husky issue once I replicate it to see if others have the issues too before looking into |
Awesome, thanks @rogerfitz! I have a temporary fix for #649 that I'm going to PR and merge soon because I need it for some user studies that are running tomorrow, but if you figure out a way to solve the problem without nuking the dependency completely that would still be appreciated |
Just merged, thanks @rogerfitz! Since you've made a substantial contribution I've invited you to join as a member of the Idyll organization on GitHub, per our policy. In the future you can work off of branches directly on this repo rather than forks, which will make it easier for us to collaborate if we both want to push changes to the same PR. |
Oh cool thanks! |
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
feature
What is the current behavior? (You can also link to an open issue here)
Currently package.json does not support env's and inherits properties following parent vs nested logic introduced in feat: improve configuration from package.json #606
What is the new behavior (if this is a feature change)?
Adds support for package.json idyll to have multiple options. Selectable by API and command line env with functionality as described in Add support for multiple configurations in package.json #640
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No
Other information: