Skip to content

Commit

Permalink
BREAKING: Update globby to version 7.1.1; expand directories
Browse files Browse the repository at this point in the history
Resolve #181
  • Loading branch information
RyanZim committed Feb 3, 2018
1 parent 4b2421b commit fecf832
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ npm i -g|-D postcss-cli
Usage:
postcss [input.css] [OPTIONS] [-o|--output output.css] [--watch|-w]
postcss <input.css>... [OPTIONS] --dir <output-directory> [--watch|-w]
postcss <input-directory> [OPTIONS] --dir <output-directory> [--watch|-w]
postcss <input.css>... [OPTIONS] --replace
Basic options:
Expand Down Expand Up @@ -63,17 +64,13 @@ If no input files are passed, it reads from stdin. If neither -o, --dir, or
--replace is passed, it writes to stdout.
If there are multiple input files, the --dir or --replace option must be passed.
Input files may contain globs.
Input files may contain globs. If you pass an input directory, it will process
all files in the directory and any subdirectories.
```

> ℹ️ More details on custom parsers, stringifiers and syntaxes, can be found [here](https://github.com/postcss/postcss#syntaxes).
To recursively read a directory, you'd do:

```bash
postcss "src/**/*.css" [OPTIONS]
```

### [Config](https://github.com/michael-ciniawsky/postcss-load-config)

If you need to pass options to your plugins, or have a long plugin chain, you'll want to use a configuration file.
Expand Down
5 changes: 4 additions & 1 deletion lib/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module.exports = require('yargs')
Usage:
$0 [input.css] [OPTIONS] [-o|--output output.css] [--watch|-w]
$0 <input.css>... [OPTIONS] --dir <output-directory> [--watch|-w]
$0 <input-directory> [OPTIONS] --dir <output-directory> [--watch|-w]
$0 <input.css>... [OPTIONS] --replace`
)
.group(['o', 'd', 'r', 'map', 'no-map', 'watch', 'env'], 'Basic options:')
Expand Down Expand Up @@ -129,7 +130,9 @@ Usage:
.epilog(
`If no input files are passed, it reads from stdin. If neither -o, --dir, or --replace is passed, it writes to stdout.
If there are multiple input files, the --dir or --replace option must be passed. Input files may contain globs.
If there are multiple input files, the --dir or --replace option must be passed.
Input files may contain globs. If you pass an input directory, it will process all files in the directory and any subdirectories.
For more details, please see https://github.com/postcss/postcss-cli`
).argv
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependency-graph": "^0.7.0",
"fs-extra": "^4.0.1",
"get-stdin": "^5.0.1",
"globby": "^6.1.0",
"globby": "^7.1.1",
"ora": "1.3.0",
"postcss": "^6.0.1",
"postcss-load-config": "^1.1.0",
Expand Down

0 comments on commit fecf832

Please sign in to comment.