Skip to content

Commit

Permalink
Mention the PostCSS CLI in a more prominent place
Browse files Browse the repository at this point in the history
There was a [discussion going on at Gitter](https://gitter.im/postcss/postcss?at=56ac380ceaf741c118d5c7b6) that initiated this change.
  • Loading branch information
Siilwyn committed Feb 1, 2016
1 parent deeab9d commit 0417e7b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ module.exports = {

[`postcss-loader`]: https://github.com/postcss/postcss-loader

### CLI

To use PostCSS from your command-line interface or with npm scripts there is: [`postcss-cli`](https://github.com/postcss/postcss-cli).
```bash
postcss --use autoprefixer -c options.json -o main.css css/*.css
```

### CSS-in-JS

For React Inline Styles, JSS, Radium and other CSS-in-JS you can use
Expand All @@ -195,7 +202,6 @@ prefixer({ display: 'flex' }); //=> { display: ['-webkit-box', '-webkit-flex', '

### Runners

* **CLI**: [`postcss-cli`](https://github.com/postcss/postcss-cli)
* **Grunt**: [`grunt-postcss`](https://github.com/nDmitry/grunt-postcss)
* **HTML**: [`posthtml-postcss`](https://github.com/posthtml/posthtml-postcss)
* **Stylus**: [`poststylus`](https://github.com/seaneking/poststylus)
Expand All @@ -209,7 +215,7 @@ prefixer({ display: 'flex' }); //=> { display: ['-webkit-box', '-webkit-flex', '

### JS API

For other environments, you can use the [CLI tool] or the JS API:
For other environments, you can use the JS API:

```js
var postcss = require('postcss');
Expand All @@ -227,7 +233,6 @@ All PostCSS JS API users should pass [PostCSS Runner Guidelines].

[PostCSS Runner Guidelines]: https://github.com/postcss/postcss/blob/master/docs/guidelines/runner.md
[PostCSS API documentation]: https://github.com/postcss/postcss/blob/master/docs/api.md
[CLI tool]: https://github.com/postcss/postcss-cli

### Options

Expand Down

0 comments on commit 0417e7b

Please sign in to comment.