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

feat: add mIgnore tag #34

Merged
merged 2 commits into from
Jun 25, 2024
Merged

feat: add mIgnore tag #34

merged 2 commits into from
Jun 25, 2024

Conversation

Zyie
Copy link
Collaborator

@Zyie Zyie commented Jun 20, 2024

adds the mIgnore tag which will cause the manifest to ignore the asset and not add it.

@Zyie Zyie requested a review from GoodBoyDigital June 20, 2024 14:36
Copy link

@GoodBoyDigital GoodBoyDigital left a comment

Choose a reason for hiding this comment

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

couple of suggested tweaks! looking good!

const finalAssets = asset.getFinalTransformedChildren();

if (asset.transformChildren.length > 0)
if (asset.transformChildren.length > 0 && !asset.inheritedMetaData[options.tags!.mIgnore!])

Choose a reason for hiding this comment

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

I guess this is kind of an early out, but wandering if we need this check? as we are filtering just below anyways?

{
const nonIgnored = finalAssets.filter((finalAsset) => !finalAsset.inheritedMetaData[options.tags!.mIgnore!]);

Choose a reason for hiding this comment

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

lets rename to something like finalManifestAssets or something along those lines!

@Zyie
Copy link
Collaborator Author

Zyie commented Jun 25, 2024

will follow up in separate PR

https://github.com/play-co/pixi-external/issues/89

Base automatically changed from feat/copy-tag to main June 25, 2024 08:53
@Zyie Zyie merged commit 9c48d84 into main Jun 25, 2024
3 of 4 checks passed
@Zyie Zyie deleted the feat/mIgnore branch June 25, 2024 08:57
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.

2 participants