gulp-shell
Advanced tools
Comparing version 0.6.5 to 0.7.0
{ | ||
"name": "gulp-shell", | ||
"version": "0.6.5", | ||
"version": "0.7.0", | ||
"description": "A handy command line interface for gulp", | ||
"main": "index.js", | ||
"main": "./lib/index.js", | ||
"typings": "./lib/index.d.ts", | ||
"files": [ | ||
"lib/index.*" | ||
], | ||
"scripts": { | ||
"build": "gulp build", | ||
"test": "gulp test lint", | ||
"coveralls": "gulp coveralls" | ||
"coveralls": "gulp coveralls", | ||
"prepare": "npm run build", | ||
"prepublishOnly": "npm test" | ||
}, | ||
@@ -27,23 +34,36 @@ "repository": { | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"coveralls": "^3.0.0", | ||
"gulp": "^3.9.1", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^4.1.0", | ||
"@types/async": "^2.4.1", | ||
"@types/chai": "^4.1.7", | ||
"@types/fancy-log": "^1.3.1", | ||
"@types/gulp": "^4.0.5", | ||
"@types/lodash.template": "^4.4.5", | ||
"@types/mocha": "^5.2.6", | ||
"@types/node": "^11.10.4", | ||
"@types/through2": "^2.0.34", | ||
"@typescript-eslint/eslint-plugin": "^1.4.2", | ||
"@typescript-eslint/parser": "^1.4.2", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.3", | ||
"eslint": "^5.15.0", | ||
"eslint-config-prettier": "^4.1.0", | ||
"gulp": "^4.0.0", | ||
"mocha": "^6.0.2", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
"standard": "^10.0.3", | ||
"vinyl": "^2.1.0" | ||
"nyc": "^13.3.0", | ||
"prettier": "^1.16.4", | ||
"ts-node": "^8.0.2", | ||
"typescript": "^3.3.3333", | ||
"vinyl": "^2.2.0" | ||
}, | ||
"dependencies": { | ||
"async": "^2.1.5", | ||
"chalk": "^2.3.0", | ||
"fancy-log": "^1.3.2", | ||
"lodash": "^4.17.4", | ||
"async": "^2.6.2", | ||
"chalk": "^2.4.2", | ||
"fancy-log": "^1.3.3", | ||
"lodash.template": "^4.4.0", | ||
"plugin-error": "^0.1.2", | ||
"through2": "^2.0.3" | ||
"plugin-error": "^1.0.1", | ||
"through2": "^3.0.1" | ||
}, | ||
"engines": { | ||
"node": ">=4.8.0 <5.0.0 || >=5.7.0" | ||
"node": ">=6.0.0" | ||
} | ||
} |
# gulp-shell | ||
[![NPM version](https://img.shields.io/npm/v/gulp-shell.svg)](https://npmjs.org/package/gulp-shell) | ||
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](http://standardjs.com/) | ||
[![Build Status](https://img.shields.io/travis/sun-zheng-an/gulp-shell/master.svg)](https://travis-ci.org/sun-zheng-an/gulp-shell) | ||
@@ -25,6 +24,5 @@ [![Coveralls Status](https://img.shields.io/coveralls/sun-zheng-an/gulp-shell/master.svg)](https://coveralls.io/r/sun-zheng-an/gulp-shell) | ||
gulp.task('example', () => { | ||
return gulp.src('*.js', {read: false}) | ||
.pipe(shell([ | ||
'echo <%= file.path %>' | ||
])) | ||
return gulp | ||
.src('*.js', { read: false }) | ||
.pipe(shell(['echo <%= file.path %>'])) | ||
}) | ||
@@ -39,3 +37,3 @@ ``` | ||
You can find more examples in the [gulpfile](https://github.com/sun-zheng-an/gulp-shell/blob/master/gulpfile.js) of this project. | ||
You can find more examples in the [gulpfile](https://github.com/sun-zheng-an/gulp-shell/blob/master/gulpfile.ts) of this project. | ||
@@ -50,3 +48,3 @@ **WARNING**: Running commands like ~~`gulp.src('').pipe(shell('whatever'))`~~ is [considered as an anti-pattern](https://github.com/sun-zheng-an/gulp-shell/issues/55). **PLEASE DON'T DO THAT ANYMORE**. | ||
type: `Array` or `String` | ||
type: `string` or `Array<string>` | ||
@@ -59,3 +57,3 @@ A command can be a [template][] which can be interpolated by some [file][] info (e.g. `file.path`). | ||
type: `String` | ||
type: `string` | ||
@@ -68,3 +66,3 @@ default: [`process.cwd()`](http://nodejs.org/api/process.html#process_process_cwd) | ||
type: `Object` | ||
type: `object` | ||
@@ -75,7 +73,7 @@ By default, all the commands will be executed in an environment with all the variables in [`process.env`](http://nodejs.org/api/process.html#process_process_env) and `PATH` prepended by `./node_modules/.bin` (allowing you to run executables in your Node's dependencies). | ||
For example, setting it to `{PATH: process.env.PATH}` will reset the `PATH` if the default one brings your some troubles. | ||
For example, setting it to `{ PATH: process.env.PATH }` will reset the `PATH` if the default one brings your some troubles. | ||
#### options.shell | ||
type: `String` | ||
type: `string` | ||
@@ -88,3 +86,3 @@ default: `/bin/sh` on UNIX, and `cmd.exe` on Windows | ||
type: `Boolean` | ||
type: `boolean` | ||
@@ -97,3 +95,3 @@ default: `false` | ||
type: `Boolean` | ||
type: `boolean` | ||
@@ -106,3 +104,3 @@ default: `false` | ||
type: `Boolean` | ||
type: `boolean` | ||
@@ -115,5 +113,5 @@ default: `false` | ||
type: `String` | ||
type: `string` | ||
default: ``Command `<%= command %>` failed with exit code <%= error.code %>`` | ||
default: `` Command `<%= command %>` failed with exit code <%= error.code %> `` | ||
@@ -125,3 +123,3 @@ You can add a custom error message for when the command fails. | ||
type: `Object` | ||
type: `object` | ||
@@ -128,0 +126,0 @@ The data that can be accessed in [template][]. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
14436
6
22
7
112
123
2
+ Addedansi-colors@1.1.0(transitive)
+ Addedarr-diff@4.0.0(transitive)
+ Addedarr-union@3.1.0(transitive)
+ Addedassign-symbols@1.0.0(transitive)
+ Addedextend-shallow@3.0.2(transitive)
+ Addedis-extendable@1.0.1(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedisobject@3.0.1(transitive)
+ Addedplugin-error@1.0.1(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedthrough2@3.0.2(transitive)
- Removedlodash@^4.17.4
- Removedansi-cyan@0.1.1(transitive)
- Removedansi-red@0.1.1(transitive)
- Removedarr-diff@1.1.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarr-union@2.1.0(transitive)
- Removedarray-slice@0.2.3(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedextend-shallow@1.1.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedkind-of@1.1.0(transitive)
- Removedplugin-error@0.1.2(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedxtend@4.0.2(transitive)
Updatedasync@^2.6.2
Updatedchalk@^2.4.2
Updatedfancy-log@^1.3.3
Updatedplugin-error@^1.0.1
Updatedthrough2@^3.0.1