Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
auto-bem-scss-commenter
Advanced tools
Automatically comment your BEM compliant SCSS files to add class name comments. (inpired by dpellier/bem-comment)
Automatically comment your BEM compliant SCSS files to add class name comments. (inpired by dpellier/bem-comment)
Auto-bem-scss-commenter can be installed using
$ npm install --save-dev auto-bem-scss-commenter
// file.scss
//
.object {
/* styles */
&__child {
/* styles */
&--modifier {
/* styles */
}
}
}
auto-bem-scss-commenter file.scss > file.scss
// file.scss
//
// object
.object {
/* styles */
// object__child
&__child {
/* styles */
// object__child--modifier
&--modifier {
/* styles */
}
}
}
auto-bem-scss-commenter -h
for more info
var bemComment = require('auto-bem-scss-commenter ');
gulp.task('helper:bem-comment', function () {
return gulp.src(['**/{,*/}/*.scss'], {cwd: options.app})
.pipe(bemComment({ force: true }))
.pipe(gulp.dest(options.app));
});
The force
option force rewrite all comments
Copyright © 2014 Douglas Duteil <douglasduteil@gmail.com>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the LICENCE file for more details.
FAQs
Automatically comment your BEM compliant SCSS files to add class name comments. (inpired by dpellier/bem-comment)
The npm package auto-bem-scss-commenter receives a total of 4 weekly downloads. As such, auto-bem-scss-commenter popularity was classified as not popular.
We found that auto-bem-scss-commenter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.