grunt-shell
Advanced tools
Comparing version 3.0.1 to 4.0.0
{ | ||
"name": "grunt-shell", | ||
"version": "3.0.1", | ||
"version": "4.0.0", | ||
"description": "Run shell commands", | ||
"license": "MIT", | ||
"repository": "sindresorhus/grunt-shell", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
"url": "https://sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=12" | ||
}, | ||
@@ -33,5 +34,5 @@ "scripts": { | ||
"dependencies": { | ||
"chalk": "^2.4.1", | ||
"chalk": "^3.0.0", | ||
"npm-run-path": "^2.0.0", | ||
"strip-ansi": "^5.0.0" | ||
"strip-ansi": "^6.0.1" | ||
}, | ||
@@ -38,0 +39,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
# grunt-shell [![Build Status](https://travis-ci.org/sindresorhus/grunt-shell.svg?branch=master)](https://travis-ci.org/sindresorhus/grunt-shell) | ||
# grunt-shell | ||
@@ -7,16 +7,8 @@ > Run shell commands | ||
**Use [Stack Overflow](https://stackoverflow.com/questions/tagged/gruntjs) for support questions.** | ||
## Install | ||
```sh | ||
npm install --save-dev grunt-shell | ||
``` | ||
$ npm install --save-dev grunt-shell | ||
``` | ||
<a href="https://www.patreon.com/sindresorhus"> | ||
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160"> | ||
</a> | ||
## Usage | ||
@@ -42,3 +34,2 @@ | ||
## Examples | ||
@@ -185,4 +176,4 @@ | ||
*Required*<br> | ||
Type: `string` `Function` | ||
*Required*\ | ||
Type: `string | Function` | ||
@@ -199,3 +190,2 @@ Command to run or a function which returns the command. Supports underscore templates. | ||
## Options | ||
@@ -205,3 +195,3 @@ | ||
Type: `boolean`<br> | ||
Type: `boolean`\ | ||
Default: `true` | ||
@@ -213,3 +203,3 @@ | ||
Type: `boolean`<br> | ||
Type: `boolean`\ | ||
Default: `true` | ||
@@ -221,3 +211,3 @@ | ||
Type: `boolean`<br> | ||
Type: `boolean`\ | ||
Default: `true` | ||
@@ -229,10 +219,10 @@ | ||
Type: `boolean`<br> | ||
Type: `boolean`\ | ||
Default: `true` | ||
Fail task if it encounters an error. Doesn't apply if you specify a `callback`. | ||
Fail task if it encounters an error. Does not apply if you specify a `callback`. | ||
### stdinRawMode | ||
Type: `boolean`<br> | ||
Type: `boolean`\ | ||
Default: `false` | ||
@@ -252,3 +242,3 @@ | ||
Type: `boolean`<br> | ||
Type: `boolean`\ | ||
Default: `true` | ||
@@ -260,3 +250,3 @@ | ||
Type: `Object` | ||
Type: `object` | ||
@@ -272,6 +262,1 @@ Specify some options to be passed to the [.exec()](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) method: | ||
- `killSignal` string *(Default: `'SIGTERM'`)* | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
@@ -10,3 +10,3 @@ 'use strict'; | ||
module.exports = grunt => { | ||
grunt.registerMultiTask('shell', 'Run shell commands', function (...args) { | ||
grunt.registerMultiTask('shell', 'Run shell commands', function (...arguments_) { | ||
const callback = this.async(); | ||
@@ -34,6 +34,6 @@ const options = this.options({ | ||
// Increase max buffer | ||
options.execOptions = Object.assign({}, options.execOptions); | ||
options.execOptions = {...options.execOptions}; | ||
options.execOptions.maxBuffer = options.execOptions.maxBuffer || TEN_MEGABYTES; | ||
cmd = grunt.template.process(typeof cmd === 'function' ? cmd.apply(grunt, args) : cmd); | ||
cmd = grunt.template.process(typeof cmd === 'function' ? cmd.apply(grunt, arguments_) : cmd); | ||
@@ -40,0 +40,0 @@ if (options.preferLocal === true) { |
Sorry, the diff of this file is not supported yet
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
8337
252
+ Addedansi-regex@5.0.1(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedstrip-ansi@5.2.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedchalk@^3.0.0
Updatedstrip-ansi@^6.0.1