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
475 stars 43 forks source link

Watcher #69

Open apertureless opened 6 years ago

apertureless commented 6 years ago

I could not find anything about this in the docs. A --watch command would be pretty useful for development. Right now you write your css / scss and annotate it and have to re-run nucleus --config config.nucleus.json every time.

A small dev server with watch, HMR etc. would be really nice.

hirnschmalz commented 6 years ago

Why not use grunt/gulp for this? I use grunt and let it run npm run styleguide as soon a SCSS file changes.

apertureless commented 6 years ago

Well because I have a webpack pipeline. And it's a difference if theres an internal watcher, which then only rebuilds the changed files, which is faster and enables for example HMR, and manually watching the scss files and always rebuilding and generating the whole project.