Skip to content

Commit 7aeee5d

Browse files
authored
chore!: Remove --verify flag (#251)
1 parent 89a67e5 commit 7aeee5d

File tree

12 files changed

+0
-274
lines changed

12 files changed

+0
-274
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,6 @@ __Some flags only work with gulp 4 and will be ignored when invoked against gulp
157157
<td></td>
158158
<td>Manually set the CWD. The search for the gulpfile, as well as the relativity of all preloads (with the `--preload` flag) will be from here.</td>
159159
</tr>
160-
<tr>
161-
<td>--verify [path (optional)]</td>
162-
<td></td>
163-
<td>Will verify plugins referenced in project's package.json against the plugins blacklist.</td>
164-
</tr>
165160
<tr>
166161
<td>--tasks</td>
167162
<td>-T</td>

docs/CLI.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ gulp has very few flags to know about. All other flags are for tasks to use if n
4343
**--cwd** [path]
4444
Manually set the CWD. The search for the gulpfile, as well as the relativity of all requires will be from here.
4545

46-
**--verify** [path (optional)]
47-
Will verify plugins referenced in project's package.json against the plugins blacklist.
48-
4946
**--tasks**, **-T**
5047
Print the task dependency tree for the loaded gulpfile.
5148

index.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,12 @@ var tildify = require('./lib/shared/tildify');
1414
var makeTitle = require('./lib/shared/make-title');
1515
var parser = require('./lib/shared/options/parser');
1616
var completion = require('./lib/shared/completion');
17-
var verifyDeps = require('./lib/shared/verify-dependencies');
1817
var cliVersion = require('./package.json').version;
19-
var getBlacklist = require('./lib/shared/blacklist');
2018
var toConsole = require('./lib/shared/log/to-console');
2119

2220
var mergeProjectAndUserHomeConfigs = require('./lib/shared/config/merge-configs');
2321
var overrideEnvFlagsByConfigAndCliOpts = require('./lib/shared/config/env-flags');
2422

25-
// Logging functions
26-
var logVerify = require('./lib/shared/log/verify');
27-
var logBlacklistError = require('./lib/shared/log/blacklist-error');
28-
2923
// Get supported ranges
3024
var ranges = fs.readdirSync(path.join(__dirname, '/lib/versioned/'));
3125

@@ -150,25 +144,6 @@ function onExecute(env) {
150144
exit(0);
151145
}
152146

153-
if (env.config.flags.verify) {
154-
var pkgPath = env.config.flags.verify !== true ? env.config.flags.verify : 'package.json';
155-
/* istanbul ignore else */
156-
if (path.resolve(pkgPath) !== path.normalize(pkgPath)) {
157-
pkgPath = path.join(env.cwd, pkgPath);
158-
}
159-
log.info('Verifying plugins in ' + pkgPath);
160-
return getBlacklist(function(err, blacklist) {
161-
/* istanbul ignore if */
162-
if (err) {
163-
return logBlacklistError(err);
164-
}
165-
166-
var blacklisted = verifyDeps(require(pkgPath), blacklist);
167-
168-
logVerify(blacklisted);
169-
});
170-
}
171-
172147
if (!env.modulePath) {
173148
/* istanbul ignore next */
174149
var missingNodeModules =

lib/shared/blacklist/get-remote-json.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

lib/shared/blacklist/index.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/shared/log/blacklist-error.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

lib/shared/log/verify.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

lib/shared/options/parser.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ var options = {
4242
'Manually set the CWD. The search for the gulpfile, ' +
4343
'as well as the relativity of all requires will be from here.'),
4444
},
45-
verify: {
46-
desc: chalk.gray(
47-
'Will verify plugins referenced in project\'s package.json against ' +
48-
'the plugins blacklist.'),
49-
},
5045
tasks: {
5146
alias: 'T',
5247
type: 'boolean',

lib/shared/verify-dependencies.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

test/expected/flags-help.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ Options:
1313
--cwd Manually set the CWD. The search for the gulpfile,
1414
as well as the relativity of all requires will be
1515
from here. [string]
16-
--verify Will verify plugins referenced in project's
17-
package.json against the plugins blacklist.
1816
-T, --tasks Print the task dependency tree for the loaded
1917
gulpfile. [boolean]
2018
--tasks-simple Print a plaintext list of tasks for the loaded

0 commit comments

Comments
 (0)