0.0.1 • Published 10 years ago
css-modules-conversion-analysis v0.0.1
Crudely analyse your bad css to modular css
Run
Globally:
cmca
Module:
node_modules/.bin/cmca
Alternativly, reference in your package.json:
"scripts": {
"analyse": "cmca"
},Options
-p: path of the folder to check. default:..-o: the extension foroldcss. default:.scss.-m: the extension formodularcss. default:.mcss.-i: detectinlinestyles. default:false.-v:verboseoutput, includes file paths. default:false.
example
cmca -p packages/modal -o .less -m .css -i
Output
- total: Total number of React components, detected via
react.createclass(. - none: No reference to
old,modularorinline. - inline: Inline css, detected via
style={. - notModular:
oldfiles. - modular:
modularfiles. - combination: more than one of
old,modularorinline.
total none inline notModular modular combination
----- ---- ------ ---------- ------- -----------
162 66 16 57 22 1
You're 22% of the way there!i did say it was crude, didn't i?
0.0.1
10 years ago