You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/03/31 09:42:30 UTC

[3/4] incubator-weex git commit: * [html5] fix dangerfile.

* [html5] fix dangerfile.


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/82ff96d9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/82ff96d9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/82ff96d9

Branch: refs/heads/0.11-dev
Commit: 82ff96d989504b932f744e421bb59cec2e6955f4
Parents: 1375a6a
Author: MrRaindrop <te...@gmail.com>
Authored: Fri Mar 31 15:13:15 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Fri Mar 31 15:13:15 2017 +0800

----------------------------------------------------------------------
 dangerfile.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/82ff96d9/dangerfile.js
----------------------------------------------------------------------
diff --git a/dangerfile.js b/dangerfile.js
index 6d82fdb..b81e155 100644
--- a/dangerfile.js
+++ b/dangerfile.js
@@ -23,7 +23,9 @@ const flowIgnorePaths = [
   'bin',
   'dist',
   'flow-typed'
-].map(absolute);
+].map(function (rel) {
+  return absolute('html5/' + rel)
+});
 
 // new js files should have `@flow` at the top
 const unFlowedFiles = jsFiles.filter(filepath => {
@@ -31,7 +33,7 @@ const unFlowedFiles = jsFiles.filter(filepath => {
   const len = flowIgnorePaths.length
   while (i < len) {
     const p = flowIgnorePaths[i]
-    if (filepath.indexOf(p) > -1) {
+    if (absolute(filepath).indexOf(p) > -1) {
       // ignore this file because it's in the flow-ignore-paths.
       return false;
     }