Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix --ignore-watch to accept globs #4224

Merged
merged 3 commits into from
Apr 23, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix --ignore-watch to take in globs
  • Loading branch information
oleg-codaio committed Mar 29, 2019
commit 66122d8093eb658da53ce0be1b706653b522281f
10 changes: 0 additions & 10 deletions lib/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ var Modularizer = require('./API/Modules/Modularizer.js');
var path_structure = require('../paths.js');
var UX = require('./API/CliUx');
var pkg = require('../package.json');
var flagWatch = require("./API/Modules/flagWatch.js");
var hf = require('./API/Modules/flagExt.js');
var Configuration = require('./Configuration.js');
const semver = require('semver')
Expand Down Expand Up @@ -667,8 +666,6 @@ class API {
var app_conf = Config.filterOptions(opts);
var appConf = {};

var ignoreFileArray = [];

if (typeof app_conf.name == 'function')
delete app_conf.name;

Expand All @@ -689,13 +686,6 @@ class API {

app_conf = appConf[0];

if (opts.ignoreWatch) {
flagWatch.handleFolders(opts.ignoreWatch, ignoreFileArray);
if (app_conf.ignore_watch) {
app_conf.ignore_watch = ignoreFileArray;
}
}

if (opts.watchDelay) {
if (typeof opts.watchDelay === "string" && opts.watchDelay.indexOf("ms") !== -1)
app_conf.watch_delay = parseInt(opts.watchDelay);
Expand Down
29 changes: 0 additions & 29 deletions lib/API/Modules/flagWatch.js

This file was deleted.

55 changes: 0 additions & 55 deletions test/programmatic/flagWatch.mocha.js

This file was deleted.