stylecleanup
Lint & fix unused aphrodite and react-native styles
Last updated 2 months ago by jabapyth .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install stylecleanup 
SYNC missed versions from official npm registry.

Style Cleanup

Wouldn't it be nice if you could automatically find & remove unused React Native and Aphrodite style declarations?

stylecleanup is here to help!

$ yarn global add stylecleanup
# or
$ npm install -g stylecleanup

screen capture demo

Usage

Usage: stylecleanup [command] some/file/to/check.js
  command: one of 'check', 'fix', 'fix-force'
  globs are also supported, e.g.

  stylecleanup check './src/**/*.js'

  check: find & report missing & unused styles
  fix: remove all unused styles, but skip styles that *might* be used, but
    can't be verified because e.g. the stylesheet variable is passed around,
    or there's a computed property access. If you do 'styles[something]' it
    might be accessing anything, so we can't know for sure that apparently
    unused styles are actually unused.
  fix-force: remove all unnused styles, and all 'potentially' unused styles

Contributing

Does this sound interesting to you? Do you want it to do something it doesn't? Please jump in! I don't have a ton of opinions about this project, so if there's a change you think should happen, I'm probably down for it. Just file an issue or make a pull request!

Current Tags

  • 1.3.0                                ...           latest (2 months ago)

5 Versions

  • 1.3.0                                ...           2 months ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 8
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |