SC5 / sc5-styleguide

Styleguide generator is a handy little tool that helps you generate good looking styleguides from stylesheets using KSS notation
http://styleguide.sc5.io/
MIT License
1.26k stars 171 forks source link

customColors option is breaking Gulp watch #1126

Closed hamanovich closed 6 years ago

hamanovich commented 6 years ago

Once I enable customColors option, gulp watch fails with an error: [15:50:44] Starting 'styleguide:generate'... ERROR: customColors option is defined but the file is not copyable. Using default colors. [15:50:46] 'styleguide:generate' errored after 1.84 s [15:50:46] Error: ENOENT: no such file or directory, lstat '\node_modules\sc5-styleguide\lib\dist\css\_styleguide_custom_variables.css' [15:50:46] 'styleguide:applystyles' errored after 1.85 s [15:50:46] 'styleguide' errored after 1.85 s [15:50:46] '<anonymous>' errored after 47 s

And it removes _styleguide_custom_variables.css from a node_modules sc5-styleguide folder.

Gulp 'watch' task: gulp.task('watch', gulp.parallel('styleguide', () => { gulp.watch([PATH.src.style], { delay: 300 }, gulp.parallel('styleguide')); }));