1.0.4 • Published 11 months ago

scss-code-analyzer v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Scss Code Analyzer

Scss Code Analyzer is a tool for cleaning code from scss waste. After some time of development the code contains references to styles that are not already exists or scss files contain classes that are not used anymore. It creates difficulties for new developers in reading code and increase package size for new users.

Limitations

This tool does not five any guaranties it just helps to find waste in your code. It is helpful if you meet folowing code condtions

  • Use .tsx files for code
  • Use .scss files for styles
  • Import styles in the form
    import <style_object> from "<path_to_style_file>"
  • Use styles in the form
    <a className={<style_object>.<class_name>} href="link">Any text</a>

Installation

npm install --save-dev scss-code-analyzer

Usage

npx scss-code-analyzer <project_dir>

project_dir is optional parameter. If it is not set the current directory will be used to search tsx and scss files

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago