The KSS style guide needs to know all of the CSS for each component.

In 7.x-6.x, the CSS for all components was aggregated into style.css so it was easy to hard code that file into KSS' options.

As a developer adds new components to their library, we would like the gulpfile.js to automatically find those CSS files (in components/asset-builds/css) and add them to KSS' options.

CommentFileSizeAuthor
#4 update_gulpfile_js_to-2716777-4.patch3.99 KBfinnsky

Comments

JohnAlbin created an issue. See original summary.

xturgorex’s picture

Component: PHP/JS code » Component markup (CSS/Sass/HTML/Twig)

Any progress with this? I've added a new component file and it does show up on the newly generated style guide but is not implemented in my theme.

update: Nevermind. Zen-6.x is such a departure with all of these new frameworks, libraries and so forth. I just keep getting overwhelmed!

johnalbin’s picture

Component: Component markup (CSS/Sass/HTML/Twig) » JavaScript code

This feature is not needed for 7.x-6.x.

finnsky’s picture

StatusFileSize
new3.99 KB

Hello!
I found way how to do this without additional dependencies. But i'm not sure how to manage it correctly. Additional options list or function?
Please review. Thanks

finnsky’s picture

Status: Active » Needs review
johnalbin’s picture

Assigned: johnalbin » Unassigned

Not sure why I assigned this one to myself. Thanks for working on this, finnsky! I'll review very soon as I need it too.

duaelfr’s picture

Status: Needs review » Reviewed & tested by the community

It's working well and is super useful to preserve themers mind :)
Thanks @finnsky!

andypost’s picture

rtbc +1 to get this in

rootwork’s picture

Yeah, this works great! Another +1 to commit.