Socket
Socket
Sign inDemoInstall

gulp-shell

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-shell - npm Package Compare versions

Comparing version 0.6.5 to 0.7.0

lib/index.d.ts

54

package.json
{
"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][].

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc