Code Monkey home page Code Monkey logo

core's Introduction

Potentially interesting stats on stylesheets.

Installation

git clone https://github.com/cssstats/cssstats
cd cssstats
yarn

Usage

yarn start
open http://localhost:8000

License

MIT


Built by mrmrs, jxnblk, and johno

core's People

Contributors

ahmedelgabri avatar aurelioderosa avatar gael-boyenval avatar hoffi avatar johno avatar jxnblk avatar mahtd avatar peter-mouland avatar scott113341 avatar thedancingcode avatar xzyfer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

core's Issues

get the selector associated to a rule size

feature request : get the selector associated with a rule size.
it could allow us to detect selectors that are too specialised.

very usefull lib by the way :) love it !

Grunt plugin

This should be a separate repo and package, but just keeping note here for now.

Condense Duplicate Colors

I've found the plugin will list the same color multiple times if the way it is declared is changed (short names, upper case, lower case, three digit hex, six digit hex and rgb).

Ex on http://cssstats.com/stats?url=http%3A%2F%2Fconsumerfinance.gov

  • white and #fff
  • black and #000
  • #50a748 and #50A748
  • #4d819a and #4D819A
  • etc

Reducing these to single entries would highlight the more accurate divides between the total and unique declarations.

Usage pattern for automated CI builds/report generation?

How are folks using cssstats in an automated, CI environment? I'd love to integrate this into my gulp build that gets run on Jenkins. I could get a consumable report I could point to which is always up to date, similar to our code coverage reports, ESLint statistics, etc.

But I'm not sure how to do it; every approach I can think of has some limitations.

Right now running the gulp task & generating JSON doesn't help visualize the way we'd want. The cssstats-webapp requires a node server to be running, while we'd prefer static HTML. And I don't think there are any Jenkins or other CI plugins that know how to consume the JSON report.

Are you aware of anyone who's doing this well?

Related: this issue makes it look like there's some interest in an HTML report.

Support for keyframes

It’d be handy to export the number of animations in your CSS file (from @keyframes) β€” some stylesheets include a whole animation library and seeing the number of animations would help people remember the weight of them.

Publish 1.2.0?

@jxnblk when you get a chance could you please publish 1.2.0 or add me to the npm package?

Thank you!

RangeError: Invalid string length

getcss thegrid.io > tmp.css
cssstats file tmp.css
CSS Statistics CLI (0.0.1)
CSS Statistics encountered an error reading tmp.css
[RangeError: Invalid string length]

Add average specificity to the returned object

I feel like it'd be useful to include an averageSpecificity metric to the returned object, as it could useful to illustrate the overall health of a project's CSS and its specificity. I also think it'd be a very worthwhile data point on cssstats.com. Thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.