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

Namespace exports with 'govuk' #732

Merged
merged 2 commits into from
May 31, 2018
Merged

Namespace exports with 'govuk' #732

merged 2 commits into from
May 31, 2018

Conversation

kr8n3r
Copy link

@kr8n3r kr8n3r commented May 30, 2018

We have found that an application using the same export as us, it will conflict resulting in a broken build.

For example, when releasing the Header component, it conflicted with the application level export.

This fixes: #724

Trello ticket: https://trello.com/c/UaX5dWyO/1025-namespace-all-scss-exports-with-govuk

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-732 May 30, 2018 08:00 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-732 May 30, 2018 08:03 Inactive
Copy link
Contributor

@NickColley NickColley left a comment

Choose a reason for hiding this comment

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

Nice!

@36degrees
Copy link
Contributor

Thought – do we want to standardise on how we construct these strings to avoid conflicts across layers?

e.g. govuk/component/button, govuk/helpers/typography, govuk/overrides/typography

@kr8n3r
Copy link
Author

kr8n3r commented May 30, 2018

@36degrees can do, i see no issue with it. will amend

@kr8n3r kr8n3r force-pushed the namespace-exports branch from 6e0d7eb to 65a806a Compare May 30, 2018 11:25
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-732 May 30, 2018 11:25 Inactive
@kr8n3r
Copy link
Author

kr8n3r commented May 30, 2018

@36degrees updated the exports with layer names

@@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("back-link") {
@include govuk-exports("govuk/component/back-link") {
Copy link
Contributor

Choose a reason for hiding this comment

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

'component' -> 'components'

Copy link
Author

Choose a reason for hiding this comment

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

I'd argue for the use of singular

Copy link
Contributor

@36degrees 36degrees May 31, 2018

Choose a reason for hiding this comment

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

It's a bit weird having component, but helpers, objects, utilities. But probably not going back and changing now.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's not part of the public api, so not too much trouble

@kr8n3r kr8n3r changed the title Namespace exports with 'govuk-' Namespace exports with 'govuk/' May 30, 2018
@kr8n3r kr8n3r changed the title Namespace exports with 'govuk/' Namespace exports with 'govuk' May 30, 2018
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.

Namespace all SCSS exports with govuk
4 participants