I’m basically new to Sage. I used an early version of Roots ages ago, but haven’t done any WordPress work recently. I’m still getting a feel for the project’s workflows and patterns, but I’ve had good experiences with the toolset you’re using.
After having some trouble with Sass source maps, I patched in some of my existing gulp tasks as a workaround. But I wanted to get a feel for where you’re at (especially @austin) before starting to work on any pull requests.
Are you open to refactoring the pathways through some of the tasks? I see a few places where gulp’s native constructs can probably save time and simplify code. The Gulp ecosystem also moves crazy-fast, and there are some evolving patterns which could be brought in as well. This could be fun!
Does anyone have an opinion about migrating the gulpfile more towards the npm standard of explicitly including modules at the top of the file?
I’d also like to move away from gulp-load-plugins, which saves a few keystrokes but ends up creating a lot of cognitive overhead in tracing through the code and understanding how the file works. I think readability would be increased quite a bit by dropping this.
Space-aligning the require statements also feels very foreign to JavaScript.
I know you saw #1445 already, but this should be good to go now. I pounded on this for a while, output is identical.
The one thing I wasn’t expecting was a nearly 20% speedup… I thought we might get a little bit, but I’m repeatedly seeing builds saving 2+ seconds vs. the previous gulpfile in a fresh clone.