couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [08/47] couchdb commit: updated refs/heads/Update-Sidebar-Ui to c173e52
Date Mon, 19 May 2014 16:17:26 GMT
Fauxton: test for globals

As a developer, I don't want to accidentally pollute the global
namespace and rely on global state.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/12485a00
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/12485a00
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/12485a00

Branch: refs/heads/Update-Sidebar-Ui
Commit: 12485a0090fb212e4a6dc49435fe2c0ab07daa79
Parents: abeaf26
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Sun Apr 20 15:32:42 2014 +0200
Committer: Robert Kowalski <rok@kowalski.gd>
Committed: Thu Apr 24 20:32:08 2014 +0200

----------------------------------------------------------------------
 src/fauxton/Gruntfile.js | 36 ++++++++++++++++++++++++++++++++++--
 1 file changed, 34 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/12485a00/src/fauxton/Gruntfile.js
----------------------------------------------------------------------
diff --git a/src/fauxton/Gruntfile.js b/src/fauxton/Gruntfile.js
index c650b9f..8ffb2f8 100644
--- a/src/fauxton/Gruntfile.js
+++ b/src/fauxton/Gruntfile.js
@@ -164,7 +164,39 @@ module.exports = function(grunt) {
       options: {
         scripturl: true,
         evil: true,
-        expr: true
+        expr: true,
+        undef: true,
+        globals: {
+          document: true,
+          window: true,
+          location: true,
+          alert: true,
+          console: true,
+          clearInterval: true,
+          setInterval: true,
+          setTimeout: true,
+          prompt: true,
+          confirm: true,
+
+          jQuery: true,
+          Backbone: true,
+          $: true,
+          _: true,
+          require: true,
+          module: true,
+          sinon: true,
+          it: true,
+          describe: true,
+          beforeEach: true,
+          afterEach: true,
+          before: true,
+          after: true,
+          define: true,
+
+          Spinner: true,
+          prettyPrint: true
+
+        }
       }
     },
 
@@ -242,7 +274,7 @@ module.exports = function(grunt) {
     couchserver: couchserver_config,
 
     watch: {
-      js: { 
+      js: {
         files: helper.watchFiles(['.js'], ["./app/**/*.js", '!./app/load_addons.js',"./assets/**/*.js",
"./test/**/*.js"]),
         tasks: ['watchRun'],
       },


Mime
View raw message