postcss-cli
Advanced tools
Comparing version 7.1.1 to 7.1.2
@@ -0,1 +1,7 @@ | ||
# 7.1.2 / 2020-08-31 | ||
- Make `--version` machine-readable ([#334](https://github.com/postcss/postcss-cli/issues/334), [#335](https://github.com/postcss/postcss-cli/pull/335)) | ||
- Organize and clarify `--help` text ([#336](https://github.com/postcss/postcss-cli/pull/336)) | ||
- Update dependencies | ||
# 7.1.1 / 2020-04-27 | ||
@@ -2,0 +8,0 @@ |
@@ -16,15 +16,2 @@ 'use strict' | ||
const cli = require('../package.json').version | ||
const version = chalk.bold.red(` | ||
/|\\ | ||
// // | ||
// // | ||
//___*___*___// | ||
//--*---------*--// | ||
/|| * * ||/ | ||
// ||* v${cli} *|| // | ||
// || * * || // | ||
//_____||___*_________*___||_____// | ||
`) | ||
module.exports = require('yargs') | ||
@@ -41,3 +28,3 @@ .usage( | ||
.group( | ||
['o', 'd', 'r', 'map', 'no-map', 'verbose', 'watch', 'env'], | ||
['o', 'd', 'r', 'map', 'no-map', 'watch', 'verbose', 'env'], | ||
'Basic options:' | ||
@@ -63,9 +50,11 @@ ) | ||
}) | ||
.option('include-dotfiles', { | ||
desc: 'Enables glob to match files/dirs that begin with "."', | ||
.alias('m', 'map') | ||
.describe('map', 'Create an external sourcemap') | ||
.describe('no-map', 'Disable the default inline sourcemaps') | ||
.option('w', { | ||
alias: 'watch', | ||
desc: 'Watch files for changes and recompile as needed', | ||
type: 'boolean', | ||
conflicts: 'replace', | ||
}) | ||
.alias('map', 'm') | ||
.describe('map', 'Create an external sourcemap') | ||
.describe('no-map', 'Disable the default inline sourcemaps') | ||
.option('verbose', { | ||
@@ -75,8 +64,2 @@ desc: 'Be verbose', | ||
}) | ||
.option('watch', { | ||
alias: 'w', | ||
desc: 'Watch files for changes and recompile as needed', | ||
type: 'boolean', | ||
conflicts: 'replace', | ||
}) | ||
.option('env', { | ||
@@ -88,3 +71,3 @@ desc: 'A shortcut for setting NODE_ENV', | ||
['u', 'parser', 'stringifier', 'syntax'], | ||
'Options for when not using a config file:' | ||
'Options for use without a config file:' | ||
) | ||
@@ -108,3 +91,3 @@ .option('u', { | ||
}) | ||
.group(['ext', 'base', 'poll', 'config'], 'Advanced options:') | ||
.group(['ext', 'base'], 'Options for use with --dir:') | ||
.option('ext', { | ||
@@ -125,2 +108,7 @@ desc: 'Override the output file extension; for use with --dir', | ||
}) | ||
.group(['include-dotfiles', 'poll', 'config'], 'Advanced options:') | ||
.option('include-dotfiles', { | ||
desc: 'Enable glob to match files/dirs that begin with "."', | ||
type: 'boolean', | ||
}) | ||
.option('poll', { | ||
@@ -135,3 +123,2 @@ desc: | ||
}) | ||
.version(version) | ||
.alias('h', 'help') | ||
@@ -138,0 +125,0 @@ .example('$0 input.css -o output.css', 'Basic usage') |
{ | ||
"name": "postcss-cli", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"description": "CLI for PostCSS", | ||
@@ -25,3 +25,3 @@ "main": "index.js", | ||
"fs-extra": "^9.0.0", | ||
"get-stdin": "^7.0.0", | ||
"get-stdin": "^8.0.0", | ||
"globby": "^11.0.0", | ||
@@ -44,3 +44,3 @@ "postcss": "^7.0.0", | ||
"sugarss": "^2.0.0", | ||
"uuid": "^7.0.0" | ||
"uuid": "^8.0.0" | ||
}, | ||
@@ -47,0 +47,0 @@ "files": [ |
@@ -33,13 +33,12 @@ [![npm][npm]][npm-url] | ||
Basic options: | ||
-o, --output Output file [string] | ||
-d, --dir Output directory [string] | ||
-r, --replace Replace (overwrite) the input file [boolean] | ||
--map, -m Create an external sourcemap | ||
--no-map Disable the default inline sourcemaps | ||
--verbose Be verbose [boolean] | ||
--watch, -w Watch files for changes and recompile as needed [boolean] | ||
--env A shortcut for setting NODE_ENV [string] | ||
--include-dotfiles Enables glob to match files/dirs that begin with "." [boolean] | ||
-o, --output Output file [string] | ||
-d, --dir Output directory [string] | ||
-r, --replace Replace (overwrite) the input file [boolean] | ||
-m, --map Create an external sourcemap | ||
--no-map Disable the default inline sourcemaps | ||
-w, --watch Watch files for changes and recompile as needed [boolean] | ||
--verbose Be verbose [boolean] | ||
--env A shortcut for setting NODE_ENV [string] | ||
Options for when not using a config file: | ||
Options for use without a config file: | ||
-u, --use List of postcss plugins to use [array] | ||
@@ -50,13 +49,17 @@ --parser Custom postcss parser [string] | ||
Options for use with --dir: | ||
--ext Override the output file extension; for use with --dir [string] | ||
--base Mirror the directory structure relative to this path in the output | ||
directory, for use with --dir [string] | ||
Advanced options: | ||
--ext Override the output file extension; for use with --dir [string] | ||
--base Mirror the directory structure relative to this path in the output | ||
directory, for use with --dir [string] | ||
--poll Use polling for file watching. Can optionally pass polling interval; | ||
default 100 ms | ||
--config Set a custom directory to look for a config file [string] | ||
--include-dotfiles Enable glob to match files/dirs that begin with "." | ||
[boolean] | ||
--poll Use polling for file watching. Can optionally pass polling | ||
interval; default 100 ms | ||
--config Set a custom directory to look for a config file [string] | ||
Options: | ||
--version Show version number [boolean] | ||
-h, --help Show help [boolean] | ||
--version Show version number [boolean] | ||
-h, --help Show help [boolean] | ||
@@ -73,4 +76,5 @@ Examples: | ||
Input files may contain globs (e.g. src/**/*.css). If you pass an input directory, it will process | ||
all files in the directory and any subdirectories, respecting the glob pattern. | ||
Input files may contain globs (e.g. src/**/*.css). If you pass an input | ||
directory, it will process all files in the directory and any subdirectories, | ||
respecting the glob pattern. | ||
``` | ||
@@ -77,0 +81,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151
30680
378
+ Addedget-stdin@8.0.0(transitive)
- Removedget-stdin@7.0.0(transitive)
Updatedget-stdin@^8.0.0