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 169 forks source link

Add Section In Between Is Deleting `Styleguide:ignore` Code #1073

Open dlangston opened 7 years ago

dlangston commented 7 years ago

The addSection helper is deleting the ignored sections of my code inside styleguide: ignore:start and styleguide:ignore:end

-// styleguide:ignore:start
-// page
-$fw-page-background: white;
-$fw-loading-page-background: #f2f2f2;
-// styleguide:ignore:end
+
+
+
+
+

It is also replacing the first line of code with what looks like a Windows line ending character ^M.

-<U+FEFF>/* All Framework styles should start with 'fw-'  */
+/* All Framework styles should start with 'fw-'  */^M

This is what I have in my gulp file:

gulp.task("styleguide:addsection", function() {
  return gulp.src(scssRoot) // all files - 'path/to/components/**/*.scss'
    .pipe(styleguide.addSection())
    .pipe(gulp.dest(srcRootSass)) // root folder - 'path/to/components/'
});

and I use the task like this:

gulp styleguide:addsection --name=NewSection --order-4.2.2

Not sure if I am doing something wrong or if this is a bug in the helper.

Please Help!

dlangston commented 7 years ago

Anyone???