couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [10/12] fauxton commit: updated refs/heads/import-master to 14dac8d
Date Sat, 26 Apr 2014 19:29:39 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-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/539b707d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/539b707d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/539b707d

Branch: refs/heads/import-master
Commit: 539b707d51e23c7ff225a192df1474879233bdca
Parents: 2007403
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

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


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/539b707d/Gruntfile.js
----------------------------------------------------------------------
diff --git a/Gruntfile.js b/Gruntfile.js
index c650b9f..8ffb2f8 100644
--- a/Gruntfile.js
+++ b/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