-
Notifications
You must be signed in to change notification settings - Fork 132
Add new flag --write-includes for tracking imported dependencies
#228
base: master
Are you sure you want to change the base?
Conversation
b81a349 to
10e97fe
Compare
|
I've rebased this against master and cleaned it up a bit |
|
bump. @xzyfer |
|
ping @glebm |
|
This should probably be out on hold as the upcoming module system won't be
compatible.
…On Thu., 28 Feb. 2019, 7:55 am Bit Connor, ***@***.***> wrote:
ping @glebm <https://github.com/glebm>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#228 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAjZWNyCuX1foyxY0C9lUspBFpUUHPdYks5vRvDBgaJpZM4UMOHF>
.
|
|
Looking at the design of the upcoming module system, it'll be pretty much the same for this purpose (am I missing something?). Looks good to me. |
|
I'd say this is pretty interesting. Wish libsass had a possibility to do this before running everything, i.e just by parsing the files. |
|
bump @aaronkelton @xzyfer @am11 @mgreter |
|
This is a feature that I think should be included one way or another. Just this week I had to convert from compass to straight sassc, and the lack of dependency support makes the Makefile less robust than I'd like. I love how simple this patch is, but I don't think the current PR is the right way to do it. In particular, I don't like the idea of passing a single option to I'm not sure what is the best way to add dependency support. There are a few options I'd consider. Option 1: Add a This may be the easiest way. The The current Option 2: Push the functionality down into libsass. This would mean adding the Option 2.5: Libsass as a separate pre-flight If it's a separate pre-flight function, then |
|
As a separate issue, I'd prefer the format to better mimic the output as generated by styles.css : styles.scss _init.scss _page1.scss |
|
+1 for using the Make-style output format. This makes for easy use with Meson's depfiles support for constructs like |
In order to be useful to build systems, it would in fact make sense to emit gcc's -MMD output (a valid subset of Makefile), which "build systems" support, rather than emitting a list of unformatted text lines which build systems do NOT support. |
|
It will be very easy to modify this pull request to emit Makefile-style output (if that is what is wanted) |
This adds a new flag:
When this flag is used, after
sasscfinishes compiling, it will write an additional file, containing a list of all the files that were imported. This is useful for integrating into build systems / live file watching, where you need to know which ".scss" files need to be recompiled after some arbitrary file on the file system has changed.This is similar to gcc
-MMDoption, but here the format of the generated file is simply a list of filenames, one per line.Happy to make any changes/improvements based on feedback.