You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by to...@apache.org on 2015/01/07 16:47:27 UTC
svn commit: r1650090 - in /avro/trunk: CHANGES.txt lang/js/Gruntfile.js
lang/js/build.sh lang/js/grunt.js lang/js/package.json
Author: tomwhite
Date: Wed Jan 7 15:47:26 2015
New Revision: 1650090
URL: http://svn.apache.org/r1650090
Log:
AVRO-1573. Javascript. Upgrade to Grunt 0.4 for testing.
Added:
avro/trunk/lang/js/Gruntfile.js
Removed:
avro/trunk/lang/js/grunt.js
Modified:
avro/trunk/CHANGES.txt
avro/trunk/lang/js/build.sh
avro/trunk/lang/js/package.json
Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1650090&r1=1650089&r2=1650090&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Wed Jan 7 15:47:26 2015
@@ -107,6 +107,8 @@ Trunk (not yet released)
AVRO-1621. PHP: FloatIntEncodingTest fails for NAN. (tomwhite)
+ AVRO-1573. Javascript. Upgrade to Grunt 0.4 for testing. (tomwhite)
+
Avro 1.7.7 (23 July 2014)
NEW FEATURES
Added: avro/trunk/lang/js/Gruntfile.js
URL: http://svn.apache.org/viewvc/avro/trunk/lang/js/Gruntfile.js?rev=1650090&view=auto
==============================================================================
--- avro/trunk/lang/js/Gruntfile.js (added)
+++ avro/trunk/lang/js/Gruntfile.js Wed Jan 7 15:47:26 2015
@@ -0,0 +1,57 @@
+// 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']
+ },
+ watch: {
+ files: ['<%= jshint.files %>'],
+ tasks: ['jshint', 'nodeunit']
+ },
+ jshint: {
+ files: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js'],
+ 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']);
+
+};
Modified: avro/trunk/lang/js/build.sh
URL: http://svn.apache.org/viewvc/avro/trunk/lang/js/build.sh?rev=1650090&r1=1650089&r2=1650090&view=diff
==============================================================================
--- avro/trunk/lang/js/build.sh (original)
+++ avro/trunk/lang/js/build.sh Wed Jan 7 15:47:26 2015
@@ -22,7 +22,7 @@ cd `dirname "$0"`
case "$1" in
test)
npm install
- node_modules/grunt/bin/grunt test
+ grunt test
;;
dist)
Modified: avro/trunk/lang/js/package.json
URL: http://svn.apache.org/viewvc/avro/trunk/lang/js/package.json?rev=1650090&r1=1650089&r2=1650090&view=diff
==============================================================================
--- avro/trunk/lang/js/package.json (original)
+++ avro/trunk/lang/js/package.json Wed Jan 7 15:47:26 2015
@@ -24,7 +24,10 @@
"underscore" : "*"
},
"devDependencies" : {
- "grunt" : "*"
+ "grunt" : "*",
+ "grunt-contrib-jshint" : "*",
+ "grunt-contrib-nodeunit" : "*",
+ "grunt-contrib-watch" : "*"
},
"noAnalyze": true,
"license": "Apache",