Comparing version 1.2.1 to 1.2.2
@@ -1,4 +0,3 @@ | ||
#!/usr/bin/env node | ||
'use strict'; | ||
'use strict'; | ||
var fs = require('fs'); | ||
@@ -5,0 +4,0 @@ var path = require('path'); |
@@ -6,12 +6,7 @@ 'use strict'; | ||
var log = require('gulplog'); | ||
var sortBy = require('lodash.sortby'); | ||
var isString = require('lodash.isstring'); | ||
var isObject = require('lodash.isplainobject'); | ||
function isString(val) { | ||
return typeof val === 'string'; | ||
} | ||
function isObject(val) { | ||
return typeof val === 'object' && !Array.isArray(val); | ||
} | ||
function logTasks(tree, depth, getTask) { | ||
@@ -18,0 +13,0 @@ depth = (typeof depth !== 'number') ? null : ((depth < 1) ? 1 : depth); |
@@ -18,2 +18,4 @@ 'use strict'; | ||
var getTask = require('../^4.0.0/log/getTask'); | ||
function execute(opts, env) { | ||
@@ -52,5 +54,3 @@ | ||
return logTasks(tree, opts.depth, function(taskname) { | ||
return gulpInst.task(taskname); | ||
}); | ||
return logTasks(tree, opts.depth, getTask(gulpInst)); | ||
} | ||
@@ -57,0 +57,0 @@ if (opts.tasksJson) { |
@@ -18,2 +18,4 @@ 'use strict'; | ||
var getTask = require('./log/getTask'); | ||
function execute(opts, env) { | ||
@@ -52,5 +54,3 @@ | ||
return logTasks(tree, opts.depth, function(taskname) { | ||
return gulpInst.task(taskname); | ||
}); | ||
return logTasks(tree, opts.depth, getTask(gulpInst)); | ||
} | ||
@@ -57,0 +57,0 @@ if (opts.tasksJson) { |
{ | ||
"name": "gulp-cli", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Command line interface for gulp", | ||
@@ -30,3 +30,4 @@ "author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)", | ||
"pretest": "npm run lint", | ||
"test": "lab test/*.js -cv" | ||
"test": "lab test/*.js -cv -I Reflect", | ||
"changelog": "github-changes -o gulpjs -r gulp-cli -b master -f ./CHANGELOG.md --order-semver --use-commit-body" | ||
}, | ||
@@ -40,3 +41,6 @@ "dependencies": { | ||
"liftoff": "^2.1.0", | ||
"lodash.sortby": "^4.0.1", | ||
"lodash.isfunction": "^3.0.8", | ||
"lodash.isplainobject": "^4.0.4", | ||
"lodash.isstring": "^4.0.1", | ||
"lodash.sortby": "^4.5.0", | ||
"matchdep": "^1.0.0", | ||
@@ -59,2 +63,3 @@ "mute-stdout": "^1.0.0", | ||
"fs-extra": "^0.26.1", | ||
"github-changes": "^1.0.1", | ||
"gulp": "gulpjs/gulp#4.0", | ||
@@ -61,0 +66,0 @@ "jscs": "^2.3.5", |
@@ -57,2 +57,23 @@ <p align="center"> | ||
## Completion | ||
> Thanks to the grunt team, specifically Tyler Kellen | ||
To enable tasks auto-completion in shell you should add `eval "$(gulp --completion=shell)"` in your `.shellrc` file. | ||
###### Bash: | ||
Add `eval "$(gulp --completion=bash)"` to `~/.bashrc`. | ||
###### Zsh: | ||
Add `eval "$(gulp --completion=zsh)"` to `~/.zshrc`. | ||
###### Powershell: | ||
Add `Invoke-Expression ((gulp --completion=powershell) -join [System.Environment]::NewLine)` to `$PROFILE`. | ||
###### Fish: | ||
Add `gulp --completion=fish | source` to `~/.config/fish/config.fish`. | ||
## Compilers | ||
@@ -59,0 +80,0 @@ |
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
60984
35
975
201
18
13
+ Addedlodash.isfunction@^3.0.8
+ Addedlodash.isplainobject@^4.0.4
+ Addedlodash.isstring@^4.0.1
+ Addedlodash.isfunction@3.0.9(transitive)
+ Addedlodash.isplainobject@4.0.6(transitive)
+ Addedlodash.isstring@4.0.1(transitive)
Updatedlodash.sortby@^4.5.0