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

Add parcel config crate #9700

Merged
merged 1 commit into from May 7, 2024
Merged

Add parcel config crate #9700

merged 1 commit into from May 7, 2024

Conversation

MonicaOlejniczak
Copy link
Contributor

@MonicaOlejniczak MonicaOlejniczak commented May 7, 2024

↪️ Pull Request

This change introduces a new parcel_config crate that ports some of the logic in v2...core-rs2 and ultimately expands on the implementation there.

  • Parcel config handles .parcelrc file loading, config merging, and performs minor validation
  • Added a basic package_manager crate and trait to add as a dependency of the config

🚨 Test instructions

cargo test -p parcel_config

crates/package_manager/Cargo.toml Outdated Show resolved Hide resolved
crates/parcel_config/src/parcel_rc_config.rs Outdated Show resolved Hide resolved
crates/parcel_config/src/parcel_rc_config.rs Outdated Show resolved Hide resolved
crates/parcel_config/src/parcel_rc_config.rs Outdated Show resolved Hide resolved
};
}

test_pipeline_map!(compressors);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd personally write helper functions rather than macro it unless not possible because macros mess-up a lot of IDE features

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I get that, but there's far too much repetition / not enough coverage without the use of macros.

crates/parcel_config/src/pipeline.rs Outdated Show resolved Hide resolved
crates/parcel_filesystem/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@yamadapc yamadapc left a comment

Choose a reason for hiding this comment

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

Thanks, the PR looks good.

I left some comments regarding documentation and nits.

@MonicaOlejniczak MonicaOlejniczak added this pull request to the merge queue May 7, 2024
Merged via the queue into v2 with commit 6faf7b2 May 7, 2024
16 of 17 checks passed
@MonicaOlejniczak MonicaOlejniczak deleted the molejniczak/parcel-config branch May 7, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants