You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by al...@apache.org on 2020/04/01 07:00:42 UTC

[openwhisk-wskdebug] branch fix-fswatch-exclusion created (now 46c5f47)

This is an automated email from the ASF dual-hosted git repository.

alexkli pushed a change to branch fix-fswatch-exclusion
in repository https://gitbox.apache.org/repos/asf/openwhisk-wskdebug.git.


      at 46c5f47  fix node_modules exclusion glob that made tests fail on Linux sometimes

This branch includes the following new commits:

     new 46c5f47  fix node_modules exclusion glob that made tests fail on Linux sometimes

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[openwhisk-wskdebug] 01/01: fix node_modules exclusion glob that made tests fail on Linux sometimes

Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

alexkli pushed a commit to branch fix-fswatch-exclusion
in repository https://gitbox.apache.org/repos/asf/openwhisk-wskdebug.git

commit 46c5f472c93cb1c7b1e69142fab56e658da62292
Author: Alexander Klimetschek <ak...@adobe.com>
AuthorDate: Tue Mar 31 23:59:28 2020 -0700

    fix node_modules exclusion glob that made tests fail on Linux sometimes
    
    because it was watching all files in the node_modules folder for the test:
    should invoke action when a source file changes and -P is set when source-path points to directory
---
 src/watcher.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/watcher.js b/src/watcher.js
index 8488ffa..4e0fd91 100644
--- a/src/watcher.js
+++ b/src/watcher.js
@@ -40,7 +40,7 @@ class Watcher {
             this.liveReloadServer = livereload.createServer({
                 port: this.argv.livereloadPort,
                 noListen: !this.argv.livereload,
-                exclusions: [this.argv.buildPath, "node_modules/**"],
+                exclusions: [this.argv.buildPath, "**/node_modules/**", "**/.*"],
                 exts: this.argv.watchExts || ["json", "js", "ts", "coffee", "py", "rb", "erb", "go", "java", "scala", "php", "swift", "rs", "cs", "bal", "php", "php5"],
                 extraExts: []
             });