A node module that read through some SASS files that follow BEM syntax to automatically add full name class comment above each classes. Make the file much more readable to know the final classes generated.
npm install bem-content --save
node bem-content <src_file_1> <src_file_2> ...
/* before */
.button {
&__cancel {
....
}
&--active {
....
}
}
/* after */
// button
.button {
// button__cancel
&__cancel {
....
}
// button--active
&--active {
....
}
}
npm test
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
- 0.1.0 Initial release