You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by su...@apache.org on 2017/04/06 03:07:50 UTC

avro git commit: AVRO-2012 Make JS build on branch 1.7

Repository: avro
Updated Branches:
  refs/heads/branch-1.7 69e8c54da -> ca5bdfd7a


AVRO-2012 Make JS build on branch 1.7

Signed-off-by: Thiruvalluvan M G <th...@startsmartlabs.com>
Signed-off-by: sacharya <su...@apache.org>


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

Branch: refs/heads/branch-1.7
Commit: ca5bdfd7a18b9889ddb43e625967ca67e8dc9154
Parents: 69e8c54
Author: Suraj <su...@apache.org>
Authored: Sun Mar 26 15:32:53 2017 +0000
Committer: sacharya <su...@apache.org>
Committed: Wed Apr 5 22:06:52 2017 -0500

----------------------------------------------------------------------
 lang/js/Gruntfile.js | 58 +++++++++++++++++++++++++++++++++++++++++++++++
 lang/js/grunt.js     | 52 ------------------------------------------
 lang/js/package.json | 11 +++++++--
 3 files changed, 67 insertions(+), 54 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/avro/blob/ca5bdfd7/lang/js/Gruntfile.js
----------------------------------------------------------------------
diff --git a/lang/js/Gruntfile.js b/lang/js/Gruntfile.js
new file mode 100644
index 0000000..fbf4909
--- /dev/null
+++ b/lang/js/Gruntfile.js
@@ -0,0 +1,58 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements.  See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+module.exports = function(grunt) {
+
+  // Project configuration.
+  grunt.initConfig({
+    pkg: grunt.file.readJSON('package.json'),
+    nodeunit: {
+      files: ['test/**/*.js']
+    },
+    lint: {
+      files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
+    },
+    watch: {
+      files: '<config:lint.files>',
+      tasks: 'lint:files test:files'
+    },
+    jshint: {
+      options: {
+        curly: true,
+        eqeqeq: true,
+        immed: true,
+        latedef: true,
+        newcap: true,
+        noarg: true,
+        sub: true,
+        undef: true,
+        boss: true,
+        eqnull: true,
+        node: true
+      },
+      globals: {
+        exports: true
+      }
+    }
+  });
+
+  grunt.loadNpmTasks('grunt-contrib-jshint');
+  grunt.loadNpmTasks('grunt-contrib-nodeunit');
+  grunt.loadNpmTasks('grunt-contrib-watch');
+
+  grunt.registerTask('default', ['jshint', 'nodeunit']);
+  grunt.registerTask('test', ['nodeunit']);
+  grunt.registerTask('lint', ['jshint']);
+};

http://git-wip-us.apache.org/repos/asf/avro/blob/ca5bdfd7/lang/js/grunt.js
----------------------------------------------------------------------
diff --git a/lang/js/grunt.js b/lang/js/grunt.js
deleted file mode 100644
index 6b91ebc..0000000
--- a/lang/js/grunt.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements.  See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License.  You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-module.exports = function(grunt) {
-
-  // Project configuration.
-  grunt.initConfig({
-    test: {
-      files: ['test/**/*.js']
-    },
-    lint: {
-      files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
-    },
-    watch: {
-      files: '<config:lint.files>',
-      tasks: 'lint:files test:files'
-    },
-    jshint: {
-      options: {
-        curly: true,
-        eqeqeq: true,
-        immed: true,
-        latedef: true,
-        newcap: true,
-        noarg: true,
-        sub: true,
-        undef: true,
-        boss: true,
-        eqnull: true,
-        node: true
-      },
-      globals: {
-        exports: true
-      }
-    }
-  });
-
-  grunt.registerTask('default', 'lint test');
-
-};

http://git-wip-us.apache.org/repos/asf/avro/blob/ca5bdfd7/lang/js/package.json
----------------------------------------------------------------------
diff --git a/lang/js/package.json b/lang/js/package.json
index 3adace6..96957ac 100644
--- a/lang/js/package.json
+++ b/lang/js/package.json
@@ -24,10 +24,17 @@
     "underscore"   :  "*"
   },
   "devDependencies" : {
-    "grunt"        :  "*"
+    "grunt-contrib-jshint": "^1.1.0",
+    "grunt-contrib-nodeunit": "^1.0.0",
+    "grunt-contrib-watch": "^1.0.0",
+    "coveralls": "^2.11.4",
+    "istanbul": "^0.3.19",
+    "mocha": "^2.3.2",
+    "tmp": "^0.0.28",
+    "grunt": "^1.0.1"
   },
   "noAnalyze": true,
-  "license": "Apache",
+  "license": "Apache-2.0",
   "engine": {
     "node": ">=0.4"
   }