Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dlangston opened this issue Apr 13, 2017 · 1 comment
Open

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

dlangston opened this issue Apr 13, 2017 · 1 comment

Comments

@dlangston
Copy link

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
Copy link
Author

dlangston commented Apr 20, 2017

Anyone???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant