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

Fix sass files being copied to public directory #948

Merged
merged 2 commits into from
Oct 28, 2020

Conversation

36degrees
Copy link
Contributor

Move the negative glob to exclude the sass directory after the broader ‘non-negative’ glob, as per the gulp documentation:

Since globs are matched in array order, a negative glob must follow at least one non-negative glob in an array. The first finds a set of matches, then the negative glob removes a portion of those results. When excluding all files within a directory, you must add /** after the directory name, which the globbing library optimizes internally.

https://gulpjs.com/docs/en/getting-started/explaining-globs/#special-character--negative

The {,/**/*} expansion doesn’t seem to do anything versus including ${config.paths.assets}/**, so simplify it to remove the expansion.

Fixes #932

Move the negative glob to exclude the sass directory after the broader ‘non-negative’ glob, as per the gulp documentation:

> Since globs are matched in array order, a negative glob must follow at least one non-negative glob in an array. The first finds a set of matches, then the negative glob removes a portion of those results. When excluding all files within a directory, you must add /** after the directory name, which the globbing library optimizes internally. [1]

The `{,/**/*}` expansion doesn’t seem to do anything versus including `${config.paths.assets}/**`, so simplify it to remove the expansion.

[1]: https://gulpjs.com/docs/en/getting-started/explaining-globs/#special-character--negative
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-prototype-kit-pr-948 October 27, 2020 16:20 Inactive
Copy link

@TechPunk316 TechPunk316 left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link

@TechPunk316 TechPunk316 left a comment

Choose a reason for hiding this comment

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

FBM

@vanitabarrett vanitabarrett mentioned this pull request Nov 23, 2020
@36degrees 36degrees removed this from the v9.11.0 milestone Dec 1, 2020
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.

The kit is copying sass into the public folder, it shouldn't
5 participants