Comparing version 3.0.0-beta.3 to 3.0.0
History | ||
======= | ||
## Unreleased | ||
## 3.0.0 | ||
* **BREAKING**: Remove `--unlimited-buffer` command line option. It is unneeded | ||
with switch to `spawn`. | ||
**BREAKING**: | ||
* Remove `--unlimited-buffer` command line option. It is unneeded with switch to | ||
`spawn`. | ||
Other: | ||
* Default log level to `none` for `help` and `version` commands. | ||
[#127](https://github.com/FormidableLabs/builder/issues/127) | ||
* Switch from `exec` to `spawn` child process spawning for better stdio/stderr | ||
@@ -9,0 +16,0 @@ propagation. ( [@exogen][] ) |
"use strict"; | ||
/*eslint max-statements:[2, 20]*/ | ||
@@ -159,2 +160,5 @@ /** | ||
// Stash if log-level was actually set. | ||
var logLevel = parsedOpts["log-level"]; | ||
// Inject defaults and mutate parsed object. | ||
@@ -171,2 +175,17 @@ _.extend(parsedOpts, _.mapValues(flags, function (val, key) { | ||
// Update options for _command_ of `help`, `` (nothing = help), `version` | ||
if (parsedOpts.argv.remain[0] === "version") { | ||
parsedOpts.version = true; | ||
} | ||
if (!parsedOpts.version && | ||
(parsedOpts.argv.remain.length === 0 || parsedOpts.argv.remain[0] === "help")) { | ||
parsedOpts.help = true; | ||
} | ||
// If `help` or `version`, silence log if not explicitly set. | ||
// https://github.com/FormidableLabs/builder/issues/127 | ||
if ((parsedOpts.help || parsedOpts.version) && !logLevel) { | ||
parsedOpts["log-level"] = "none"; | ||
} | ||
return _(parsedOpts) | ||
@@ -173,0 +192,0 @@ // Camel-case flags. |
@@ -65,3 +65,5 @@ "use strict"; | ||
_unsetLevel: function () { | ||
delete log._env._BUILDER_ARGS_LOG_LEVEL; | ||
if (log._env) { | ||
delete log._env._BUILDER_ARGS_LOG_LEVEL; | ||
} | ||
delete log._level; | ||
@@ -68,0 +70,0 @@ delete log._queue; |
@@ -179,4 +179,5 @@ "use strict"; | ||
log.info("help", | ||
"\n\n" + chalk.green.bold("Usage") + ": \n\n builder " + actionDisplay + " <task(s)>" + | ||
// Use raw stdout instead of logger so we can disable logger on "help". | ||
process.stdout.write( | ||
chalk.green.bold("Usage") + ": \n\n builder " + actionDisplay + " <task(s)>" + | ||
"\n\n" + chalk.green.bold("Actions") + ": \n\n " + actions + | ||
@@ -186,3 +187,3 @@ "\n\n" + flagsDisplay + ": General\n\n " + args.help() + | ||
(taskConfigs ? "\n\n" + chalk.green.bold("Task Configs") + ": \n" + taskConfigs : "") + | ||
"\n\n" + chalk.green.bold("Tasks") + ": \n" + this._config.displayScripts(archetypes)); | ||
"\n\n" + chalk.green.bold("Tasks") + ": \n" + this._config.displayScripts(archetypes) + "\n"); | ||
@@ -189,0 +190,0 @@ callback(); |
{ | ||
"name": "builder", | ||
"version": "3.0.0-beta.3", | ||
"version": "3.0.0", | ||
"description": "An NPM-based task runner", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
109582
1568
0