Problem/Motivation
A few features were lost when the build tools were refactored a while back. This issue is to track bringing those back.
- No source files are compiled when starting the watch process. This becomes more of an issue in codebases where the built assets are ignored from the source repository. In these cases, a dev may pull the latest changes but won't actually see the updated build assets unless they run the build command.
- While running watch, if a CSS file change is detected, all CSS files are compiled. Likewise with JS. This becomes a performance issue in larger codebases resulting in multiple second compile times on each save.
- When saving a dependency, such as a Sass partial file, the depending files are not recompiled. This requires an extra file save to trigger a file to be compiled.
Updating existing themes
If you used the generator to generate a custom Prototype theme from the 5.x version, you can manually update your tools by doing the following.
- Add new dependencies
npm install -D vinyl-named gulp-dependents - Remove unneeded dependencies
npm remove gulp-plumber - Replace your gulpfile with this one
Issue fork prototype-3415158
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
pixelwhip commentedComment #4
pixelwhip commentedComment #5
pixelwhip commentedComment #6
pixelwhip commentedComment #7
pixelwhip commentedComment #8
pixelwhip commentedComment #11
jldust commentedThis is an awesome change, and worked great! It has been merged in and will be included in the next tagged release. Thank you
Comment #12
jldust commentedComment #13
jldust commented