Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johno/immutable-css-cli
CSS linter for immutable selectors.
https://github.com/johno/immutable-css-cli
Last synced: 2 months ago
JSON representation
CSS linter for immutable selectors.
- Host: GitHub
- URL: https://github.com/johno/immutable-css-cli
- Owner: johno
- License: mit
- Created: 2015-10-22T20:10:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-19T00:39:32.000Z (almost 9 years ago)
- Last Synced: 2024-10-19T17:31:06.693Z (3 months ago)
- Language: JavaScript
- Homepage: http://immutablecss.com
- Size: 33.2 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
[![Build Status](https://secure.travis-ci.org/johnotander/immutable-css-cli.png?branch=master)](https://travis-ci.org/johnotander/immutable-css-cli) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
CLI app for [immutable-css](https://github.com/johnotander/immutable-css.git).
## Installation
```bash
npm i -g immutable-css-cli
```## Usage
```sh
immutable-css -h
CSS linter for immutable selectors.Usage
$ immutable-css [ ...]Options
-j, --json Return json to std out
-s, --strict Lint mutations in the same fileExample
$ immutable-css vendor.css app.css
$ immutable-css src/css/**/*.css
$ immutable-css app.css --strict
$ immutable-css src/css/**/*.css --json > mutations.json
``````sh
immutable-css test/fixtures/app.css test/fixtures/vendor.css.awesome was mutated 2 times
[line 5, col 1]: /Users/johnotander/code/lab/immutable-css-cli/test/fixtures/app.css
[line 5, col 1]: /Users/johnotander/code/lab/immutable-css-cli/test/fixtures/vendor.css.foo was mutated 2 times
[line 17, col 1]: /Users/johnotander/code/lab/immutable-css-cli/test/fixtures/app.css
[line 1, col 1]: /Users/johnotander/code/lab/immutable-css-cli/test/fixtures/vendor.css
```When mutations are present, `immutable-css` exits with an error code of `1`.
```sh
npm t && immutable-css dist/vendor.css dist/app.css && npm run deploy
```## License
MIT
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull RequestCrafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).
***
> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).