Comments (7)
@kopipejst Thanks for the suggestion. Do you mean something more than what you get from find ... | xargs csscss ...
?
I'd like to keep cssscss part of a normal posix toolchain. Some questions come up with file selection from a directory that may make the command line interface more complex.
from csscss.
I'm not sure if and how that can be achieved with find ... | xargs csscss ...
but I was thinking that something like:
csscss path/to/folder -v
give output similar to:
{.class1} from file1.css AND {.class2} from file2.css share 4 rules
- border-style: solid
- border-width: 1px
- padding-bottom: 15px
- padding-top: 15px
that will help to find duplicates in development phase, before merging.
from csscss.
@kopipejst so right now csscss -v file1.css file2.css some/dir/file3.css
will work. I think what you're suggesting is a way for csscss to find all css files within a directory. For example find . -iname "*.css" | xargs csscss -v
would work. And I'd rather lean on that for now.
However. I think I found a bug in csscss -v file1.css file2.css some/dir/file3.css
finding duplications. So I'll investigate.
from csscss.
@zmoazeni thanks for quick reply. find ... | xargs csscss ...
works just fine, but it seems that csscss -v for multiple files still compare css within each file separately. Also, it will be great if we could see file name in output, something like this:
{.class1} from file1.css AND {.class2} from file2.css share 4 rules
from csscss.
Also, it will be great if we could see file name in output, something like this:
{.class1} from file1.css AND {.class2} from file2.css share 4 rules
Ah great suggestion. I think that does make sense. There's some talk about including line numbers too #9
from csscss.
@kopipejst I just opened #39 which is all about line numbers
from csscss.
Ok, I just pushed a fix to the consolidation issue. WIth that along with the new issue with line numbers, I'm going to close this one. That will get released in the next version (the one after v1.0.0).
from csscss.
Related Issues (20)
- Terminology HOT 4
- Unable to install HOT 4
- "command not found: csscss" HOT 3
- Include SASS files from the cli HOT 7
- fail on import of Compass plugin HOT 3
- Don't know what to do with "@keyframes" HOT 2
- Line numbers HOT 1
- less @import statements with relative paths fail HOT 1
- undefined method `downcase' HOT 8
- csscss has problems with unicode even when ruby version is 2.0 HOT 1
- Add Gulp extension to community extensions HOT 1
- http://connectionrequired.com/ is down HOT 1
- csscss hanging/giving no output HOT 2
- No check for duplicate selector HOT 1
- Duplicate CSS selectors not returned int result HOT 1
- Multiple Rulesets with exact same Selector HOT 1
- Community extension: csscssbeauty
- Comments/charset declarations are included in selectors
- charset followed by comment with code inside raises error
- Requirement of saas Gem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csscss.