Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[WIP] Better Sass dependencies management #9542

Closed
wants to merge 8 commits into from

Conversation

ncoden
Copy link
Contributor

@ncoden ncoden commented Dec 21, 2016

From: #9478
Fix: #9492

Changes:

Note to myself: the _vendor folder was a f stupid idea. Don't do that again !

Prepare a better way to handle SCSS dependencies.

Revert:
- foundation#9430: add normalize dependency
- foundation#9458: import Sass dependencies in vendor folder
- foundation#9469: [TMP] Fix Sass dependencies import for Bower
Use `gulp-shopify-sass` (@ncoden’s fork) to compile SCSS files and
dependencies into a distribution SCSS file `dist/scss/foundation.scss`.

BREAKING CHANGE: This file should be imported into external projects
instead of `scss/foundation.scss`. To import Foundation partials
manually, the dependencies `normalize-scss` and `sassy-lists` should be
imported before.

Changes:
- Add `ncoden/gulp-shopify-sass` dependency.
- Add `sass:foundationSCSS` gulp task, which concat SCSS files into
`_build/assets/scss/foundation.scss`.
- Rename `sass:foundation` gulp task to `sass:foundationCSS`.
- Update `deploy:dist` gulp task to handle SCSS dist file

Other changes:
- Add missing paths to include for Sass in `customiser` gulp task.
`sass:foundation` was renamed to `sass:foundationCSS
Unpin dependency `gulp-shopify-sass` from my repo and use official
`v0.4.0` (the waited pull requests has been merged).

Other changes:
- Update yarn.lock`
@ncoden ncoden requested review from kball and removed request for kball December 21, 2016 02:51
@kball
Copy link
Contributor

kball commented Jan 13, 2017

@ncoden what is the current state of this PR?

@ncoden
Copy link
Contributor Author

ncoden commented Jan 13, 2017

I have to:

  • Finish a commit for gulp-shopify-sass (ensure it does not create bugs).
  • Move some variable definitions in grids to mixins/functions.
  • Update docs.

@ncoden
Copy link
Contributor Author

ncoden commented Jan 18, 2017

Some news: I just added Eyeglass support for gulp-shopify-sass.
Still to do: Move variable definitions to mixins/functions and update docs.

@ncoden ncoden mentioned this pull request Jan 20, 2017
@kball
Copy link
Contributor

kball commented Apr 18, 2017

Coming back to this, @ncoden what was the status here?

@DanielRuf
Copy link
Contributor

We have to rebase this PR. Is this still highly relevant when we switch to a pure webpack solution?

@joeworkman
Copy link
Member

Going to close this one out and we can rethink this for F7.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor settings & import approach to allow dist/scss, better dependency management
5 participants