holidaypirates / nucleus

Nucleus is a living style guide generator for atomic css based components. It's a Node application parsing the source SCSS files and reading information from DocBlock annotations.
https://holidaypirates.github.io/nucleus/
MIT License
474 stars 43 forks source link

support parsing <style> tags #61

Open afknapping opened 7 years ago

afknapping commented 7 years ago

my usecase are component files which bring their css in <style> tags (for example Vue.js Single File Components).

doesn't need to be vue-specific though, i could do the same thing with vanilla html files.

adambullmer commented 7 years ago

I'd also like to see support for inline style tags. I'm definitely hunting for vue single file components, but I don't imagine it would be difficult to ignore things outside of <style> tags regardless of file extension. Vue also uses a language property on their style tags so if necessary, you could filter on scss annotated style.