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

Adding the postcss-mixins plugin to our build step #1335

Merged
merged 9 commits into from
Aug 25, 2022
Merged

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented Aug 24, 2022

This PR adds postcss-mixins plugin to our PostCSS pipeline.

Where do the mixins get defined?

The postcss-mixins plugin supports defining the mixins in JavaScript which feels like we can write more complex mixins and not have to do some of the complex Sass mixins we've had.

I created a directory at lib/postcss-mixins/ which is configurable for the plugin mixinsDir https://github.com/postcss/postcss-mixins#mixinsdir it will load all mixins from this directory no matter if they're *.js, *.pcss format.

@jonrohan jonrohan requested review from a team and keithamus August 24, 2022 23:11
@changeset-bot
Copy link

changeset-bot bot commented Aug 24, 2022

🦋 Changeset detected

Latest commit: 30b353b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jonrohan jonrohan requested review from a team and langermank August 24, 2022 23:11
@jonrohan jonrohan temporarily deployed to github-pages August 24, 2022 23:16 Inactive
@jonrohan jonrohan temporarily deployed to github-pages August 24, 2022 23:38 Inactive
@jonrohan jonrohan temporarily deployed to github-pages August 24, 2022 23:57 Inactive
@jonrohan jonrohan temporarily deployed to github-pages August 25, 2022 00:06 Inactive
@jonrohan jonrohan temporarily deployed to github-pages August 25, 2022 00:13 Inactive
@jonrohan jonrohan temporarily deployed to github-pages August 25, 2022 00:17 Inactive
Copy link
Contributor

@langermank langermank left a comment

Choose a reason for hiding this comment

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

I'm excited!!

@jonrohan jonrohan enabled auto-merge (squash) August 25, 2022 03:04
@jonrohan jonrohan disabled auto-merge August 25, 2022 03:04
@jonrohan jonrohan merged commit cbf5276 into main Aug 25, 2022
@jonrohan jonrohan deleted the postcss-mixins branch August 25, 2022 03:04
@jonrohan jonrohan temporarily deployed to github-pages August 25, 2022 03:05 Inactive
@primer-css primer-css mentioned this pull request Aug 25, 2022
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